blob: 50bb25d6efc1b5dd89e98b16fe5ba58338285cd5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
# 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]}
|