r/programming • • Mar 30 '16

Microsoft is bringing the Bash shell to Windows 10

http://techcrunch.com/2016/03/30/be-very-afraid-hell-has-frozen-over-bash-is-coming-to-windows-10/
5.5k Upvotes

1.2k comments sorted by

View all comments

Show parent comments

25

u/tavert Mar 30 '16

Powershell is far superior for that. Or cmake so you don't need to touch msbuild yourself.

0

u/[deleted] Mar 30 '16

[deleted]

3

u/benpye Mar 30 '16

There is PowerShell Core which runs on .NET Core which is used in Windows Nano Server. The issue I guess would be all the cmdlets that wouldn't work on Unix as is.

1

u/tavert Mar 30 '16

Me too. I like an object-oriented shell that speaks JSON and XML natively, rather than messing with curl or httpie or jq or xmllint etc. Python scripts work fine for this, but it's a pretty heavy dependency for small stuff and not my "shell of choice."

1

u/systembreaker Mar 30 '16

I can't deny, cmake is pretty damn slick.

0

u/[deleted] Mar 30 '16

Powershell is a pain in the ass Imo. It's really counter intuitive and was definitely designed to be read rather than written.

1

u/Tarmen Mar 31 '16

How is powershell counter intuitive? All commands have consistent names and completion for both commands and arguments plus great help.

For example I would have no idea how to get all log files that were written today or yesterday that lie somewhere under a directory. Probably some weird syntax for find to get the file names?

in powershell you can just ls -r *.log | where lastwritetime -ge (get-date).addDay(-1)

and autocomplete everything like -r or lastwritetime or get-date or addDay...