Bash-4.3 distribution sources and documentation
[platform/upstream/bash.git] / tests / nameref1.sub
1 # indirect referencing of a nameref returns the variable name it references
2 unset foo bar
3
4 bar=one
5 foo=bar
6
7 typeset -n foo
8
9 echo ${foo}
10 echo ${!foo}
11
12 # this is a current incompatibility
13 echo ${!foo[0]}