Comment on What are the recommended scripting languages for complex shell scripts beyond bash?

MajorHavoc@lemmy.world ⁨7⁩ ⁨months⁩ ago

When I’m doing too much to maintain in bash, and not enough to merit Python, I use PowerShell.

My controversial take: if you’re looking for a better scripting language and haven’t tried PowerShell, you should give it a try.

It’s weird that Microsoft made a real shell.

PowerShell is actually open source, and it runs everywhere, including Mac and Linux. On Windows and Ubuntu, it’s already installed.

Powershell’s quality JSON and CSV handling is a huge game changer for quick scripts. The webrequest module is high quality. File operations are a breeze. Unlile bash, PowerShell can be formated to be pretty readable, when you care. Environment variable handling is mildly improved. Resusable code via modules is huge for quality of life.

PowerShell is the bash rewrite with lessons learned we all have wanted, but it’s not on a lot Linux folks radar because Microsoft published it.

source
Sort:hotnewtop