busybox/shell/hush_test/hush-misc/local1.tests

12 lines
122 B
Plaintext
Raw Normal View History

a=A
f() {
local a
# the above line unsets $a
echo "A2:'$a'"
unset a
echo "A3:'$a'"
}
echo "A1:'$a'"
f
echo "A4:'$a'"