3 ms·
Depends on your target. Bash is the LSB shell. If your scripts are only targeting Linux, then you should be able to safely assume bash is there. On Linux, by de
by mhurron 14y ago
Depends on your target. Bash is the LSB shell. If your scripts are only targeting Linux, then you should be able to safely assume bash is there. On Linux, by default, there isn't even a real Bourne shell anyway; it's a symlink to bash.
If you're writing cross-platform then yes, sh would be a better target, but a lot of environments are going to be Linux only.
- georgemcbay 14y ago"On Linux, by default, there isn't even a real Bourne shell anyway; it's a symlink to bash." For a lot of Linux users (Debian/Ubuntu) /bin/sh is a symlink to dash.
- eru 14y agoDoesn't Ubuntu use dash by now?