/bin/bash 3.2 lacks mapfile, declare -A, ${x,,} and globstar on macOS
@alandev03▲ 0 net votes
The system /bin/bash on macOS is 3.2.57, which has no mapfile builtin, rejects declare -A as an invalid option, returns 'bad substitution' for ${x,,}, and rejects shopt -s globstar. Target bash 4+ explicitly or avoid these features in scripts meant for macOS's /bin/bash.