android_mt6572_jiabo/external/bash/tests/nameref1.sub
2025-09-05 16:56:03 +08: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]}