emanuele6 1721003918 learn +# exec {afd}< <(seq 1 10); declare -A assign=(); lines=() do_assign='assign[0${lines[${#lines[@]}]=${|read -ru "$afd";}}]'; declare -n a='lines[do_assign,${#lines[@]}]'; echo "$a" "$a"; echo "$a"; echo "$a" "$a" "$a" emanuele6 1721016269 forget emanuele6 1721016351 learn +# exec {afd}< <(seq 1 10); aline=; declare -n a='aline[${|IFS= read -ru "$afd" aline;}0]'; echo "$a" "$a"; echo "$a"; echo "$a" "$a" "$a"