1
0
Fork 0
bash/tests/nameref1.sub
Daniel Baumann fa1b3d3922
Adding upstream version 5.2.37.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-21 06:49:21 +02: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]}