Live data from Hacker News

Microsoft Replaces Command Prompt with PowerShell in Latest Windows 10 Build

news.softpedia.com

21–30 of 350 posts

Re: Microsoft Replaces Command Prompt with PowerShell in Latest Windows 10 Build

#22

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.

PowerShell is fully backwards compatible with cmd. Try again.

No, it's not. PowerShell has aliases like 'dir' and so forth, but it's definitely not compatible.

This will break a bunch of legacy stuff. That stuff probably deserves to be broken; the cmd.exe syntax has always been pretty disgusting.

Re: Microsoft Replaces Command Prompt with PowerShell in Latest Windows 10 Build

#23

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.

PowerShell is fully backwards compatible with cmd. Try again.

Are they, though? None of the dir switches work in PowerShell..

Re: Microsoft Replaces Command Prompt with PowerShell in Latest Windows 10 Build

#24

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.

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.

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 Latest Windows 10 Build

#26
post #11

So 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)

http://imgur.com/kDQVBZw

Sure, go ahead, ruin my joke :)

More seriously, how many seconds did it took for the PS to answer to that command?

Re: Microsoft Replaces Command Prompt with PowerShell in Latest Windows 10 Build

#28
post #26

Earlier quoted context omitted.

http://imgur.com/kDQVBZw

Sure, go ahead, ruin my joke :) More seriously, how many seconds did it took for the PS to answer to that command?

    Measure-Command {dir C:\}
    TotalMilliseconds : 2.9708

    Measure-Command {Get-ChildItem "C:\"}
    TotalMilliseconds : 2.4161

Re: Microsoft Replaces Command Prompt with PowerShell in Latest Windows 10 Build

#29
post #27

Btw did anyone noticed that in windows 10 you can resize cmd.exe to more than 80 characters width! When I first saw it I almost cried.

I've been able to do that in versions of Windows going back as far as I can remember.

Re: Microsoft Replaces Command Prompt with PowerShell in Latest Windows 10 Build

#30
post #11

So 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)

At least Powershell has Unixy aliases for the common commands.

I don't know how many times I've been in a cmd shell and typed ls and then swore at things.

Post reply on HN