Ravi Sir's Cards › AWS
declare -A fails on Mac?
This interview card answers: declare -A fails on Mac? MacOS ships bash 3.2. Associative arrays need bash 4+. The card’s suggested next step is to check.
Read card text
What this card says
What it is
macOS ships bash 3.2.
Why it matters
Associative arrays need bash 4+.
How / example
Check.
echo $BASH_VERSION