Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Please Start Versioning PowerShell.exe (So The latest version can be found by Get-Command) #5166

Copy link
Copy link
@DarwinJS

Description

@DarwinJS
Issue body actions

Can't do the following from openssh installer to find the latest powershell core.

get-command "c:\program files\PowerShell*\PowerShell.exe"

So the weird thing is to do the same thing for any other default shell candidate from third parties - this would likely work - to, for instance, find the latest bash.exe

I can do a work around by using the versioned folder for now - but that only handles the default install location where the methodology of a versioned folder is followed by convention. If someone drops it in another folder or I try get-command against the file unpathed - I won't find a version.

There are obviously a lot of other reasons this should be done - just giving light to a very practical and current scenario.

Reactions are currently unavailable

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.