Hacker News new | ask | show | jobs
by BiteCode_dev 2262 days ago
If you need crossplatform scripting and will install a runtime, why go powershell or bash ? Something like ruby or python seems more adpated.
2 comments

Its designed for shell usage, python, ruby and friends don't feel "native" in that manner and are simply akward for many cases by missing most improtant thing - pipeline. People use them because bash suck and because they want to be full stack.

Besides, Powershell comes with OS.

Keyword is "crossplatform"
PowerShell Core is cross-platform. It runs on Mac, Linux and Windows.
Not the point.

Check other comments about ps on unix.

Powershell is more for administrative automation
Same, unless you are on windows only, ps has no benefit.

The selling point of ps is the piping of objects. Mac and linux api don't output those.

PowerShell is built on top of .Net Core, which is also cross-platform.

It does pipe objects on all 3 platforms.

Not the point. No unix api does.