IMO, you should:
-
Always define which shell you want to use with a "shebang" such as
#!/usr/bin/env zsh -f
. -
Anticipate a day in which
bash
is no longer installed at/bin/bash
(or at all) and use#!/usr/bin/env bash
as the shebang if you have a bash-specific script. That way if you addbash
via Homebrew and it ends up at/usr/local/bin/bash
then yourbash
script can still work. -
Migrate to
zsh
whenever possible because it will continue to be installed by default even ifbash
is not.