My colleague that tested my bash script sent me this screenshot
He installed bash
from brew. Is it possible that declare
has no -A
option in bash:5
?
I checked same with docker, bash:5
must have -A
:
$ docker run -it bash:5
bash-5.0# declare -A
declare -A BASH_ALIASES=()
declare -A BASH_CMDS=()
Screenshot is similar to bash:3
output, when there is no associative arrays support:
$ docker run -it bash:3
bash-3.2# declare -A
bash: declare: -A: invalid option
declare: usage: declare [-afFirtx] [-p] [name[=value] ...]
Is it possible to compile bash:5
without associative arrays support ?
Here is page of bash
package in homebrew, I haven't found any any special options in ./configure
section of Formula ruby installation script.