i-bash/tests/nameref1.sub
2014-02-26 09:36:43 -05:00

13 lines
202 B
Text

# indirect referencing of a nameref returns the variable name it references
unset foo bar
bar=one
foo=bar
typeset -n foo
echo ${foo}
echo ${!foo}
# this is a current incompatibility
echo ${!foo[0]}