Bash-4.3 distribution sources and documentation
This commit is contained in:
parent
4539d736f1
commit
ac50fbac37
497 changed files with 129395 additions and 87598 deletions
13
tests/nameref1.sub
Normal file
13
tests/nameref1.sub
Normal file
|
|
@ -0,0 +1,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]}
|
||||
Loading…
Add table
Add a link
Reference in a new issue