News for hackers. Stuff that matters.
Re:Microsoft Replaces Command Prompt with PowerShell in Late... by godzillabrennus on Friday November 18, 2016 @08:10AM (#12986450)
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.
Re:Microsoft Replaces Command Prompt with PowerShell in Late... by MyNameIsFred on Friday November 18, 2016 @08:49AM (#12986689)
Your .bat files still work, and you can use the legacy terminal if you I insist. All they did was change the default terminal from the archaic one to newer one they first introduced as a the non-default option only a mere decade ago.

There is no reason to be dramatic.

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.
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.
Re:Microsoft Replaces Command Prompt with PowerShell in Late... by shostack on Friday November 18, 2016 @04:26PM (#12990219)
But making it the default was their decision, and users had no say in the matter since they can't opt out of the update.
Re:Microsoft Replaces Command Prompt with PowerShell in Late... by noja on Friday November 18, 2016 @09:40AM (#12987026)
Debian didn't make a major change within a release.
Re:Microsoft Replaces Command Prompt with PowerShell in Late... by Goronmon on Friday November 18, 2016 @08:38AM (#12986617)
If you're not a fan of change, I feel like software development probably isn't the right career choice.
Re:Microsoft Replaces Command Prompt with PowerShell in Late... by 72deluxe on Friday November 18, 2016 @08:53AM (#12986717)
I am a fan of change. Likely similar to the parent of your comment, I am a fan of change when I can control when those changes happen.

With Windows 10 I am sadly realising that I have very little control over when things change and even less knowledge of what those changes will be. For software, this is a nightmare. As a maintainer, I will never know what changes are going to affect my software if I am not informed.

As a user, I no longer know when a feature of my computer that I use daily will disappear. If I used cmd yesterday, will it disappear tomorrow?

Who wants to be the passenger let alone the driver of a car if it steers and accelerates randomly despite your best efforts to steer it and drive it? Would you get in a car that removed the gearstick without warning? Would you really want to be in a car that accelerated and steered at whim?

This is what Windows 10 feels like, particularly compared to my 20 years of using Windows prior to it (Win3.11, 95, 98, Me for a day, XP, Vista for as little as possible, 7 for a lengthy time). With each of those releases, updates were applied by me in a timely manner, with the crucial point being that I could apply updates when I found it applicable for my own personal machine. I could read up on the release notes for each update and service pack to see what was changed.

With Windows 10, I get updates applied in a phantom fashion and do not know what they contain. It's like Apple's vague "fixed an issue" release notes.

EDIT: I must state that the removal of features is not unique to Microsoft, given that sweeping changes affected my Mac after every release since Snow Leopard. However, the key difference is that with Windows 10 you will never have control over when things are installed (unless you use some of the finer controls for updates available with GPOs in an enterprise; still what's the point of having an AD when you don't have full control over the endpoint systems?)

Re:Microsoft Replaces Command Prompt with PowerShell in Late... by gwbas1c on Friday November 18, 2016 @09:26AM (#12986935)
In technology, there's points where certain things stabilize and change infrequently. You can only build great things when your foundation isn't changing all the time.

I'm not really a heavy shell programmer. I mostly use it for git and simple scripts.

IMO, nothing's really "sold" me on powershell. It's always come across as some tool that some people like, but I've never really seen a reason to use it. (As I don't do a lot of complicated things in the shell.)

Hopefully this is something that's easy to get used to.

Re:Microsoft Replaces Command Prompt with PowerShell in Late... by herbst on Friday November 18, 2016 @09:27AM (#12986943)
Not sure how that is related. Its years ago i last time used Windows for anything development related. And honestly i would prefer the old cmd because its easy to install Gow into it. It seemed quite harder to have my common environment working properly in Powershell without actually learning at least some of that syntax stuff last time i tried.
Re:Microsoft Replaces Command Prompt with PowerShell in Late... by jbb555 on Friday November 18, 2016 @10:20AM (#12987308)
I'm not a fan of BAD change.
Re:Microsoft Replaces Command Prompt with PowerShell in Late... by Goronmon on Friday November 18, 2016 @12:13PM (#12988251)
Nothing would change if the pre-requisite to any given change was that everyone agreed on the change beforehand.
Re:Microsoft Replaces Command Prompt with PowerShell in Late... by adolfojp on Friday November 18, 2016 @09:08AM (#12986821)
PowerShell is 10 years old.
Re:Microsoft Replaces Command Prompt with PowerShell in Late... by int_19h on Friday November 18, 2016 @04:35PM (#12990264)
You say that; and yet [32-bit] Windows 10 can still run 16-bit GUI applications originally compiled for Windows 1.0 back in 1985, more than 30 years ago. We aren't even talking about a recompile here, but straight up binary compatibility.

How many other OS/DE combos do you know that can boast anything similar?

Re:Microsoft Replaces Command Prompt with PowerShell in Late... by dfcowell on Friday November 18, 2016 @08:27AM (#12986559)
PowerShell is fully backwards compatible with cmd. Try again.
Re:Microsoft Replaces Command Prompt with PowerShell in Late... by kabdib on Friday November 18, 2016 @08:39AM (#12986627)
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 Late... by ygra on Friday November 18, 2016 @09:34AM (#12986992)
It's not compatible at the syntax level, but it will also not break anything either. Batch files written for CMD will still be executed by CMD, not PowerShell. Unless you have an application that prompts the user to open a command prompt and then send keystrokes there to run commands, nothing will be broken here.
Re:Microsoft Replaces Command Prompt with PowerShell in Late... by kabdib on Friday November 18, 2016 @10:00AM (#12987156)
"Compatible because we run the other program" isn't really compatibility, it's running the other program.

Let's be clear: The syntax and idiosyncrasies and just plain stupidity of cmd.exe are very, very difficult to be compatible with. There's stuff in cmd.exe that beggars the words "awful and random". Deprecating the terrible thing that is cmd is a good move, it should have been done 20 years ago.

As I understand it, cmd.exe largely stagnated for a couple of decades because a senior dev at Microsoft "owned" the code and took any attempt to improve as a personal affront. It couldn't be changed without bad political fallout. (Frankly I don't care how smart or politically powerful you are: If you're doing damage to customers, you should be told not to, and lose your job if you keep doing it).

So Microsoft is finally getting it. I just wish that PowerShell wasn't their answer, because it's got significant problems of its own.

Re:Microsoft Replaces Command Prompt with PowerShell in Late... by tdsamardzhiev on Friday November 18, 2016 @11:18AM (#12987780)
Yeah, to hell with legacy stuff. Legacy stuff is why we can't have nice things.
Re:Microsoft Replaces Command Prompt with PowerShell in Late... by Longhanks on Friday November 18, 2016 @08:40AM (#12986631)
Are they, though? None of the dir switches work in PowerShell..
Re:Microsoft Replaces Command Prompt with PowerShell in Late... by ska on Friday November 18, 2016 @09:26AM (#12986934)
No, it is mostly backward compatible. Not the same thing at all.