3 ms·
The Holy Grail of POSIX-portable shell scripts is irrelevant these days. Just use bash which is the default on most *nix systems.
by cutler 3y ago
The Holy Grail of POSIX-portable shell scripts is irrelevant these days. Just use bash which is the default on most *nix systems.
- Koshkin 3y ago> *nix "*nux", you mean.
- arp242 3y agoI'll go a step further and say "just use zsh", which is clearly superior for scripting and installed so easily it hardly matters. (aside: I don't think bash the "the default on most *nix systems"; it's not on BSD or macOS (which does ship with a very old bash), and while it's certainly common on Linux even there it's not universal)
- ocrow 3y agoBash comes free. To get zsh I have to convince the sysadmins of the need for it. I'll stick with the (currently) lowest common denominator.
- TheAdamist 3y agoDebian/ubuntu use dash for sh, instead of bash, which breaks a lot of scripts lazily assuming bash is sh. Scripts that specify bash will work, assuming its installed though.