-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Need a way to bring back legacy Windows aliases for consistent experience #3610
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Where should this new module go? |
It's not about "what we're used to." I'm a Mac user that has barely used PowerShell at all on windows. If I switched to powershell, it would be for the object-oriented model. My expectation is that |
@Gaelan for your use case, I would suggest using
|
@dchristian3188 If your question was about a module place I believe it is https://github.com/PowerShell/PowerShell/tree/master/src/Modules/Shared |
Putting them in a module is only one proposal. The point is that there needs to be an interactive (and possibly also parse-time) mechanism for turning GNU/POSIX colliding aliases on and off. (Side note: it's not just *nix users who may want to turn them on, Windows users may also want to turn these aliases off.) |
Also, current thinking is that this might be blocked on PowerShell/PowerShell-RFC#48, which is why I'm removing |
@chuanjiao10 for cmdlet name collision, we already support that today: Microsoft.PowerShell.Management\Get-ChildItem |
@chuanjiao10: That might be the behavior you want, but you received far too much feedback on day one that people want things like The fact that you have a preference is why we're proposing that there be an opt-in mechanism for exactly the behavior you're describing. Sound reasonable? Also, the reason your example is failing is because we need to implement globbing with #954 |
Is here a way to explicitly start external (OS) command? &"where" Can we do somethink like: $nativecommand:where It can help with globbing and native pipes. |
@iSazonov - I believe that can be done with Get-Command: $where = Get-Command -Name where -CommandType Application
& $where |
@chuanjiao10 the globbing issue you have above should be fixed in beta.1 |
Closing this as the work will be done in https://github.com/PowerShell/WindowsPowerShellCompatibilityPack |
To address #929 we removed aliases that collided with native tools. However, some customers may want the legacy Windows PowerShell aliases because they are consistent with what they are used to. Proposal that has been discussed is to have a module that only contains aliases that users can import to get back that previous experience.
The text was updated successfully, but these errors were encountered: