News for hackers. Stuff that matters.
Re:Hush, a modern shell scripting language by tgv on Tuesday April 26, 2022 @05:58AM (#31165619)
It seems like the powershell occupies a different niche than sh/bash, etc. It seems more oriented towards manipulating system properties than sorting and grepping. At least, the examples are always about system objects and properties. I wouldn't even know how to integrate normal unix commands in the powershell. Things like this look pretty counter-intuitive: https://devblogs.microsoft.com/commandline/integrate-linux-c...
Re:Hush, a modern shell scripting language by majkinetor on Tuesday April 26, 2022 @06:23AM (#31165710)
Sorting and grepping in PowerShell are an every-day trivial thing.

I even use it to as data analytics tool to query moderate amount of data because its just simpler then using anything else (given that ConvertFromTo-XML,Json,Csv etc. are integrated, standard, and don't require bunch of other tools like jq, miler etc.) and I can send it to anybody along with the data to reproduce it or tweak it without having to install anything or learn any new language.

> At least, the examples are always about system objects and properties

Not sure where you get that idea from. Third party examples are not important at all. Majority of usage has nothing to do with the system and its properties.

Not sure why you mentioned that particular method of invoking WSL stuff. If anything, it shows how powerful PowerShell is.