News for hackers. Stuff that matters.
Re:Writing Safe Shell Scripts (2019) by chrisfinazzo on Saturday February 01, 2020 @05:42PM (#22213723)
As I understand it, PowerShell came about because porting the standard Linux/Unix utilities to Windows didn't work out.

PowerShell meets both requirements as it's tuned for the Windows environment, but can still play nicely with the rest of the world.

Of course, now that WSL is a thing, it's a real question why someone would want to use PS unless they had no other options.

https://www.heavybit.com/library/podcasts/to-be-continuous/e...

Re:Writing Safe Shell Scripts (2019) by sjy on Sunday February 02, 2020 @02:13AM (#22215635)
PowerShell has real data structures (arrays and hash tables), built-in functional programming tools (Select-Object, ForEach-Object, Where-Object), GUI cmdlets (Out-GridView) and direct access to .NET libraries. It’s a viable tool for many complex tasks where on Unix, you’d need to reach for Python rather than a shell.
Re:Writing Safe Shell Scripts (2019) by vips7L on Sunday February 02, 2020 @11:16AM (#22217618)
>Of course, now that WSL is a thing, it's a real question why someone would want to use PS unless they had no other options.

I use it because I only have to learn one tool, and not a ton of different ones with different UX.

The 'language' is sane, at least to me, as it's object oriented doesn't revolve around parsing strings.