sh
: http://man.cx/sh
bash
: http://man.cx/bash
TL;DR: bash
is a superset of sh
with a more elegant syntax and more functionality. It is safe to use a bash shebang line in almost all cases as it's quite ubiquitous on modern platforms.
NB: in some environments, sh
is bash
. Check sh --version
.