News for hackers. Stuff that matters.
Re:Microsoft Replaces Command Prompt with PowerShell in Late... by chrsw on Friday November 18, 2016 @08:27AM (#12986558)
Hopefully one day Bash will be the default Windows CLI.
Re:Microsoft Replaces Command Prompt with PowerShell in Late... by curt15 on Friday November 18, 2016 @10:49AM (#12987534)
Bash has its warts too. Treating everything as strings can cause headaches when filenames have spaces. As a long-time Linux user who recently learned some powershell, I find Bash rather primitive after getting accustomed to an environment where everything is an object.

I wonder how feasible it would be to build a powershell-like environment for Linux on top of Python.

Re:Microsoft Replaces Command Prompt with PowerShell in Late... by Arnavion on Friday November 18, 2016 @01:17PM (#12988814)
>I wonder how feasible it would be to build a powershell-like environment for Linux on top of Python.

Well, you could just run PS itself.

https://github.com/PowerShell/PowerShell/blob/master/docs/in...

Re:Microsoft Replaces Command Prompt with PowerShell in Late... by happycube on Friday November 18, 2016 @01:15PM (#12988793)
It's probably doable with time... and (mostly because nobody's directly linked to it yet) the official Powershell is now on github under the MIT license:

https://github.com/PowerShell/PowerShell

Re:Microsoft Replaces Command Prompt with PowerShell in Late... by ramblenode on Friday November 18, 2016 @12:30PM (#12988391)
There is Xonsh [0].

[0] http://xon.sh/

Re:Microsoft Replaces Command Prompt with PowerShell in Late... by JeffreySnover on Friday November 18, 2016 @10:05PM (#12991848)
That was the approach I took before inventing PowerShell. We didn't WANT to invent a shell - we were forced into it.

The problem was that Bash on Windows wasn't effective. At the heart of the matter is the difference in architecture between Unix and Windows. In Unix, most everything is a file so if you can modify files and restart processes, you can manage everything. In Windows, most everything is an API so tools that manipulate files don't do much for you.

Ergo - we needed an admin automation model which supported an API oriented architecture. Thus PowerShell.

NOTE - Bash on Windows today has a very different focus - it is not about managing Windows (which it still doesn't do) - it is about using OSS tools to develop OSS Software. It does a great job at that.

Jeffrey Snover [MSFT]

Re:Microsoft Replaces Command Prompt with PowerShell in Late... by chrsw on Wednesday November 30, 2016 @07:10AM (#13070056)
I don't see PowerShell as a Bash replacement, I see Bash as more of a cmd replacement. I'm a user, but I'm also a developer so Bash works for my needs. PowerShell, not so much. It's powerful, no doubt, but it's not the solution I was looking for. Admins can always fire up PowerShell if they need it.

I didn't WANT to run Windows - I was forced into it.

Re:Microsoft Replaces Command Prompt with PowerShell in Late... by dagaci on Friday November 18, 2016 @10:18AM (#12987294)
Path of the course perhaps. After 30+ years of fighting a what was always a "rear guard action" against the prevailing dominant Unix customs and methods Nadella has switched Microsoft and Windows into a full-on conformist mode by removing the immediate -> monetization of the OS and thus the need to be "different".

It would not surprise me in a few years to come, to find even sooner than expected that "Windows" had become another variant of Unix in effect if not entirely in fact.

Re:Microsoft Replaces Command Prompt with PowerShell in Late... by BrandonBradley on Friday November 18, 2016 @08:28AM (#12986568)
Microsoft has made some good changes, but don't get your hopes up! :)
Re:Microsoft Replaces Command Prompt with PowerShell in Late... by marcosdumay on Friday November 18, 2016 @09:50AM (#12987088)
Maybe an year or two after all Linux users migrate their to some idiom of Python.
Re:Microsoft Replaces Command Prompt with PowerShell in Late... by neovive on Friday November 18, 2016 @08:56AM (#12986735)
Or maybe a compatibility layer, where they integrate the most common bash commands and Unix utilities. I prefer Git Bash when on Windows for this reason.
Re:Microsoft Replaces Command Prompt with PowerShell in Late... by dtougas on Friday November 18, 2016 @09:03AM (#12986785)
There is a compatibility layer now, it just happens to be a complete Ubuntu environment.
Re:Microsoft Replaces Command Prompt with PowerShell in Late... by UnoriginalGuy on Friday November 18, 2016 @12:10PM (#12988222)
More likely that PS will be the default Linux CLI than visa versa. Looking at their technical merits and all...