this post was submitted on 24 Mar 2025
31 points (100.0% liked)

Linux Questions

1529 readers
20 users here now

Linux questions Rules (in addition of the Lemmy.zip rules)

Tips for giving and receiving help

Any rule violations will result in disciplinary actions

founded 2 years ago
MODERATORS
 

I have used bash, zsh, ksh, and now powershell. I am by no means an expert on UNIX shells. I could get all my work done on any one of these. My main shell is Zsh with some oh-my-zsh plugins because I'm lazy. What can you do in powershell that you can't do in any other shell? Also, does the shell you use even matter? Sorry if this is a dumb question.

you are viewing a single comment's thread
view the rest of the comments
[โ€“] gratux@lemmy.blahaj.zone 31 points 5 days ago (7 children)

My current stance is that if your task is complex enough to require the advanced features powershell offers, it should probably just use Python or similar programming languages instead of a shell script. Hell, I'd even argue that is almost exactly what Python is for: it is simple to hack something together while offering powerful stuff in its standard library and common packages.

[โ€“] haroldfinch@feddit.nl 1 points 4 days ago

I went through the comments to check if someone hadn't already mentioned exactly this. Here you go.

I have used PowerShell since its inception, and still believe that the Monad manifesto is very relevant. However in recent years I have switched to Python for this same reason.

It's more widely available, especially outside of Windows it already has greater support for advanced features. PowerShell is not a first class contemporary to Python on Linux.

Quite easy to learn. A lot of default learn materials, tutorials, examples.

You'll also be able to find people in market with Python experience more readily (especially going forward) if you need to hire talent for your company.

load more comments (6 replies)