Re: declare -Aa var

2024-02-13 Thread Chet Ramey
On 2/7/24 1:48 AM, Grisha Levit wrote: 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 For the time bei

declare -Aa var

2024-02-06 Thread Grisha Levit
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