I am having some issues declaring an array in Bash.
I am trying to use declare -A props
But it gives me an error that states:
declare -A: invalid option
declare: usage: declare [-afFirtx] [-p] [name[=value]] ...]
Any help would be greatly appreciated as the array is currently 0.
I am trying to create an array that stores a key and a value.
declareis a bash built-in. Are you usingkshorbash?