summaryrefslogtreecommitdiffstats
path: root/tests/assoc8.sub
blob: 83b43f4894a32fc008e0fa54c1df2ac7874be931 (plain)
1
2
3
4
5
6
7
# warnings introduced beginning with bash-4.4-alpha

var=foo; declare -A "arr$var=([x]=y)"

key1=foo key2=bar

declare -A a=([foo]='([bar]=baz)') "b=${a[$key1]}"