3 ms·
Bash is nowhere close for being de facto default shell for Linux. This is a bad analogy. In this case it is more like telling people that want to code Javascrip
by orzen 9y ago
Bash is nowhere close for being de facto default shell for Linux. This is a bad analogy. In this case it is more like telling people that want to code Javascript to only write it in React. You got to go from something generic to something specific. Scripts written with bash will often rely on bash-specifics and can therefore only be interpreted by bash. There are entire projects dedicated to stop this plague. If you want to write portable shell scripts, use dash.
https://linux.die.net/man/1/checkbashisms https://linux.die.net/man/1/checkbashisms
https://mywiki.wooledge.org/Bashism https://mywiki.wooledge.org/Bashism
https://wiki.ubuntu.com/DashAsBinSh https://wiki.ubuntu.com/DashAsBinSh
https://en.wiktionary.org/wiki/bashism https://en.wiktionary.org/wiki/bashism
- raarts 9y ago> Bash is nowhere close for being de facto default shell for Linux. Oh, yes it is. Every important distribution uses bash as the default.
- umanwizard 9y agoUbuntu has dash as /bin/sh.