# declare -A x
# echo ${x@a}
A
# set -u
# echo ${x@a}
bash: x: unbound variable

Obvious workaround would be to disable `set -u` temporarily or assign
a temporary array value but that shouldn't need to be done.

Same thing happens with `declare -A x=()`.

# bash --version
GNU bash, version 5.3.0(1)-beta (x86_64-pc-linux-gnu)


-- 
konsolebox

Reply via email to