Live data from Hacker News

Microsoft Replaces Command Prompt with PowerShell in Latest Windows 10 Build

news.softpedia.com

241–250 of 350 posts

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

#241
post #220

That'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...

Was super fun to learn about this when restoring the "backup" dumped via pipe in a powershell script.

While the first rule of backup is "do them", the second rule is "test them". If your backups are bad and you only notice it when it's time to restore, you only have yourself to blame.

"The backups fail to restore" is such a common occurrence, it's really scary.

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

#242

Earlier quoted context omitted.

It is strange to claim no one really uses powershell. It is widely used in the Windows world. The main complaint I see about powershell is that it isn't bash. The object pipeline in powershell can be so much more powerful than parsing text between commands. After all, that's why we have data types instead of storing everything in strings.

It's not widely used in the Windows world from what I can see. Walk into any office and ask an IT guy to run "ipconfig". They'll open up cmd.exe without even thinking about it. I read a lot of programming tutorials. Nobody ever reference PowerShell in them. They always instruct people to open cmd. Do you have any evidence to the contrary?

https://www.powershellgallery.com/stats - 100k+ downloads of DSC resources in the last 6 weeks.

https://github.com/search?l=PowerShell&q=powershell&type=Rep... - 7,600 GitHub repositories (compared to 20,000 'shell' and 19,000 'perl')

40k questions on StackOverflow tagged PowerShell, vs. 54k tagged 'Perl', 50k tagged 'shell', 76k tagged 'bash'.

20k /r/powershell subscribers, 10k /r/bash subscribers on Reddit.

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

#243
That's not all in latest build 14971.

Cortana supports to do list now

Dial support for map app

Bringing 3D to Everyone via the Paint 3D Preview app (RIP paint.exe, I am going to use picpick or paint.net from now on)

Read EPUB books in Microsoft Edge

Improved Typing Experience with Japanese and Chinese Input Method Editors

New Get Office hub for Windows Insiders

source:

http://winaero.com/blog/microsoft-is-killing-the-classic-pai...

http://winaero.com/blog/microsoft-releases-new-get-office-hu...

http://winaero.com/blog/edge-gets-epub-support-in-windows-10...

https://www.neowin.net/news/cortana-will-now-keep-track-of-y...

https://www.neowin.net/news/microsoft-adds-support-for-surfa...

https://www.neowin.net/news/windows-10-build-14971-for-pcs-n...

https://www.neowin.net/news/here039s-what039s-fixed-improved...

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

#244

Earlier quoted context omitted.

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

Compare it with cmd.exe's dir

and find that command prompt dir is faster because it's doing less, because it's less capable. It's not creating System.IO.FileInfo and DirectoryInfo objects for each thing in the directory.

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

#245
post #153
post #16

Hopefully one day Bash will be the default Windows CLI.

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.

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

#246
post #153
post #16

Hopefully one day Bash will be the default Windows CLI.

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.

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

#247
post #114

Earlier quoted context omitted.

That's not what I mean by autocomplete. What I mean is more like Visual Studio's intellisense, ie a drop down that lets you know what are all the options from there. You can type DIR , that won't tell you that you can apply the parameters "/p" or "/w" nor what these parameters mean. ISE does a slightly better job but is based on a static specs, rather than the current state of the system. So it won't list the VM name…

The ise can do that if you've got the object at the time you're writing like that, it can't run a command for you as your typing it. You'll never get a drop down list in the host terminal windows has it doesn't have a GUI layer like that. Wrap it in a electron app and make one. you can type `dir - ` and cycle through the options. type `get-help dir` to see what they do or install posh-git and use `dir - ` to get a me…

You'll never get a drop down list in the host terminal windows has it doesn't have a GUI layer like that.

Except you do, with PSReadline, built into Windows 10 PowerShell.

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

#248
post #164

Earlier quoted context omitted.

Drag-resize (affecting buffer, as well) is nice, finally. And you can change opacity in properties, making your window transparent. What I really like though: you can now use Shift + arrow keys to select text and C-c/C-p to copy/paste.

If you're going to use CMD/PS on windows you might go whole hog and install ConEmu. Then load it up with Cygwin, and DosBox. ConEmu can even integrate stuff like Putty.

> ConEmu can even integrate stuff like Putty.

If you're going to use ConEmu, just go ahead and use the straight & regular OpenSSH command-line ssh tool.

Then you get all the standard niceties you can stash away for global reuse in ~/.ssh/config.

I don't miss PuTTY one bit.

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

#250
post #82

Earlier quoted context omitted.

also CTRL+V pastes by default now, but yea you're no longer locked into half the screen by default. I wonder why that's been like that for so long? Must be some reason...

Console GUI applications. Pretty much any tweak to conhost ever and they'd implode. I don't know what's changed now but they've rolled that policy away. Maybe virtualization?

They may have decided that the number of people running console programs with a GUI is low enough now.

I don't know whether it still was necessary, but the removal of support for 16-bit applications from 64-bit Windows 7 will not have hurt there.

Post reply on HN