If given both the -a and -A flags and an existing scalar variable, declare will assign both attributes to the variable:
$ V=X; declare -Aa V; echo $? 0 $ echo ${V@a} aA $ (declare -p V) Segmentation fault: 11
If given both the -a and -A flags and an existing scalar variable, declare will assign both attributes to the variable:
$ V=X; declare -Aa V; echo $? 0 $ echo ${V@a} aA $ (declare -p V) Segmentation fault: 11