Re:Microsoft Replaces Command Prompt with PowerShell in Late...
by poizan42 on Friday November 18, 2016 @08:21AM
(#12986517)
How is that any different from Linux distributions camping their default shell? Like back when debian changed their default shell to dash I don't remember anyone saying you should stay away from debian, even though it broke a lot of existing scripts.
[ Parent
| on HN ]
Re:Microsoft Replaces Command Prompt with PowerShell in Late...
by viraptor on Friday November 18, 2016 @08:50AM
(#12986694)
That's a bit different. The change only exposed that some scripts were already broken and worked by accident. Specifying that your script should be run with #!/bin/sh and then using bash syntax is what broke them. It's a bit like naming your files something.c, writing the code in C++ and compiling with `cc` just because `cc` happened to be linked to `c++` on your system. It will work for you, but don't be surprised when you distribute the source and people have problems using it.
Scripts that used #!/bin/bash still worked, scripts that actually used only sh syntax and #!/bin/sh still worked.
Re:Microsoft Replaces Command Prompt with PowerShell in Late...
by ygra on Friday November 18, 2016 @09:31AM
(#12986976)
So there is actually no difference at all on Windows, then. Batch files have .cmd or .bat extensions and will continue to be run by cmd.
Re:Microsoft Replaces Command Prompt with PowerShell in Late...
by viraptor on Friday November 18, 2016 @05:07PM
(#12990498)
That's the difference - the extensions continue to work, but the gui link to the application changes. Essentially now people will open powershell instead of cmd without necessarily realising.
Re:Microsoft Replaces Command Prompt with PowerShell in Late...
by shostack on Friday November 18, 2016 @08:40AM
(#12986632)
Did you have a choice to upgrade? Could you reinstall the old version of you wanted? Windows has stripped that power from users.
Re:Microsoft Replaces Command Prompt with PowerShell in Late...
by Rynant on Friday November 18, 2016 @10:30AM
(#12987382)
What power was stripped? Cmd.exe is still there.