hush/shell/ash_test/ash-misc/local1.tests
Denys Vlasenko 109ee5d336 ash: make "locak VAR" unset VAR (bash does that)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2014-03-16 18:41:11 +01:00

12 lines
122 B
Plaintext
Executable File

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'"