$ declare -n ref=XXX[0]; mapfile ref <<< $'1\n2'; declare -p
XXX[0]declare -a XXX[0]=([0]=$'1\n' [1]=$'2\n')

maybe makes sense to check for legal identifier before making the array?
​

Reply via email to