What is the best (portable and maintanable) Shell Scripting language today? What is the best (portable and maintanable) Shell Scripting language today? unix unix

What is the best (portable and maintanable) Shell Scripting language today?


I would suggest plain old sh, which is available everywhere.

Also, it is worth noting that portability involves not only shell but also other commands used in a script such as awk, grep, ps or echo.


If you really want it to be portable (I don't know that any shell-script is maintainable), I would specify #!/bin/sh and test with dash and if possible other shells.


I would expect BASH to be the widest spread shell at the moment since it is the default for many Linux distributions (it can even run on Windows with cygwin, but that's probably true for the other shells, too).An alternative might be to not use the shell itself for scripting but one of the scriping languages out there like perl, python, ruby, ...