Open grbailey66 opened 9 years ago
Associative arrays were introduced to bash in version 4. Redhat 5 includes Bash 3.X without associative arrays. So the /usr/local/sbin/fooacl scripts with declare -A ACLOPTS fails with "unknown option -A".
[root sbin]# bash fooacl fooacl: line 7: declare: -A: invalid option declare: usage: declare [-afFirtx] [-p] [name[=value] ...]
bash --version GNU bash, version 3.2.25(1)-release (x86_64-redhat-linux-gnu)
Associative arrays were introduced to bash in version 4. Redhat 5 includes Bash 3.X without associative arrays. So the /usr/local/sbin/fooacl scripts with declare -A ACLOPTS fails with "unknown option -A".
[root sbin]# bash fooacl fooacl: line 7: declare: -A: invalid option declare: usage: declare [-afFirtx] [-p] [name[=value] ...]
bash --version GNU bash, version 3.2.25(1)-release (x86_64-redhat-linux-gnu)