3 ms·
Shell scripts are portable. Bash is specific to Linux, at best, and ... a bloated, hot mess. Programs that hardcode bash but only require basic bourne-shell fe
by silentbicycle 16y ago
Shell scripts are portable. Bash is specific to Linux, at best, and ... a bloated, hot mess.
Programs that hardcode bash but only require basic bourne-shell features are a pet peeve of mine. "My favorite Linux distro has it out of the box" isn't a real standard.</bsd-porter>
- avar 16y agoYou can easily install bash on your BSD. But I get your point about writing POSIX compatible code. I'll declare a bash dependency in the shebang if I've only tested the script on bash. Requiring bash is better than having the script fail on some non-POSIX thing that I wasn't aware of. Linux distributions are getting a lot better in this department these days though, with dash being the default Debian/Ubuntu shell.