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