]> git.ipfire.org Git - thirdparty/bash.git/blame - tests/nameref7.sub
Bash-4.3 patch 7
[thirdparty/bash.git] / tests / nameref7.sub
CommitLineData
ac50fbac
CR
1fn ()
2{
3 declare -n var=foo; var=bar
4}
5
6unset foo
7fn
8echo ${foo:-unset}
9
10unset -f fn
11unset foo
12fn()
13{
14 declare -n var; var=foo
15}
16
17fn
18echo ${foo:-unset}