3 ms·
I'll target bash (version checks are easy enough if necessary) instead of whatever happens to be /bin/sh. It's no problem for me to install bash wherever I need
by rascul 6y ago
I'll target bash (version checks are easy enough if necessary) instead of whatever happens to be /bin/sh. It's no problem for me to install bash wherever I need it, it provides some features I use, and I don't have to concern myself with POSIX implementation differences.
https://stackoverflow.com/questions/11376975/is-there-a-minimally-posix-2-compliant-shell https://stackoverflow.com/questions/11376975/is-there-a-mini...
- thomasbacklund 6y agoIf you need some bash specific features, I'm not going to argue with that. In my experience, having portability of the script is quite nice when not necessarily controlling the environment it is going to run in, and aiming for ash/dash/bash does take it a long way.