repo.or.cz
/
bush.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
init version.
[bush.git]
/
tests.bak
/
nameref1.sub
blob
50bb25d6efc1b5dd89e98b16fe5ba58338285cd5
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]}