Just another reason to stay away from Windows as a platform. Windows 10 is a moving target if you are trying to work with it.
Microsoft Replaces Command Prompt with PowerShell in Latest Windows 10 Build
51–60 of 350 posts
Re: Microsoft Replaces Command Prompt with PowerShell in Latest Windows 10 Build
#52"Typing cmd in the run dialog will launch PowerShell as well" What? I'm a big PowerShell fan, but I see the need to keep cmd around for a while. Clobbering it before it's phased out seems problematic.
You can run any command from CMD in Powershell
For example, bcdedit with its {}-delimited GUIDs breaks in PowerShell without additional quoting, but works fine in cmd.exe. Makes following online instructions tricky if you're not familiar with that nuance.
Re: Microsoft Replaces Command Prompt with PowerShell in Latest Windows 10 Build
#53Re: Microsoft Replaces Command Prompt with PowerShell in Latest Windows 10 Build
#54So, while I applaud this, I am concerned about the startup time of ps as compared to the old command prompt. Has it been improved recently?
Re: Microsoft Replaces Command Prompt with PowerShell in Latest Windows 10 Build
#55So basically instead of doing dir C:\ I have to learn to type List-Directory-With-Files Drive=C Folder=/ (made up example, but you get the point)
Re: Microsoft Replaces Command Prompt with PowerShell in Latest Windows 10 Build
#56Something that irks me is how PowerShell’s default aliases take precedence over binaries in the PATH. To be able to use the GNU utils, you have to put this in your profile.ps1 : Remove-Item Alias:cat Remove-Item Alias:cp Remove-Item Alias:curl Remove-Item Alias:echo Remove-Item Alias:ls Remove-Item Alias:man Remove-Item Alias:mv Remove-Item Alias:pwd Remove-Item Alias:rm Remove-Item Alias:wget
For those, it's also possible to evade the aliasing just by explicitly appending the .exe onto the command. 'pwd.exe' gets you the GNU version.
Re: Microsoft Replaces Command Prompt with PowerShell in Latest Windows 10 Build
#57Something that irks me is how PowerShell’s default aliases take precedence over binaries in the PATH. To be able to use the GNU utils, you have to put this in your profile.ps1 : Remove-Item Alias:cat Remove-Item Alias:cp Remove-Item Alias:curl Remove-Item Alias:echo Remove-Item Alias:ls Remove-Item Alias:man Remove-Item Alias:mv Remove-Item Alias:pwd Remove-Item Alias:rm Remove-Item Alias:wget
How would an alias work otherwise? That's pretty much the way it behaves in Unix, too (e.g. 'ls' in most default configs). Although I'd still consider curl/wget to be specific tools and not generic commands, so emulating them seems a bit weird.
https://news.ycombinator.com/item?id=12319670
Edit: the RFC intended to address the curl author's issue was rejected.
https://github.com/PowerShell/PowerShell-RFC/blob/master/X-R...
Re: Microsoft Replaces Command Prompt with PowerShell in Latest Windows 10 Build
#58Something that irks me is how PowerShell’s default aliases take precedence over binaries in the PATH. To be able to use the GNU utils, you have to put this in your profile.ps1 : Remove-Item Alias:cat Remove-Item Alias:cp Remove-Item Alias:curl Remove-Item Alias:echo Remove-Item Alias:ls Remove-Item Alias:man Remove-Item Alias:mv Remove-Item Alias:pwd Remove-Item Alias:rm Remove-Item Alias:wget
Re: Microsoft Replaces Command Prompt with PowerShell in Latest Windows 10 Build
#59That's nice. Can you pipe binary data without powershell corrupting it, or is that now a feature? https://brianreiter.org/2010/01/29/powershells-object-pipeli...
Re: Microsoft Replaces Command Prompt with PowerShell in Latest Windows 10 Build
#60So basically instead of doing dir C:\ I have to learn to type List-Directory-With-Files Drive=C Folder=/ (made up example, but you get the point)