r/linuxadmin • u/dimkoss11 • May 22 '26
A high-level language for scripting?
I usually use Python or C# for writing scripts, what are the disadvantages of this compared to use Windows Batch, PowerShell, Bash?
16
Upvotes
View all comments
Show parent comment
11
u/Stephonovich May 22 '26
sh is universally available. bash is not (nor zsh); and for that matter, there are major versioning differences: for example, MacOS stopped updating bash at v3.2, so you can’t use associative arrays if you’re targeting that.
This shouldn’t stop you from writing shell scripts in bash (or even zsh), but you do need to ensure that what you’re shipping doesn’t have an implicit requirement as an unhandled error.