ash: make "locak VAR" unset VAR (bash does that)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
11
shell/ash_test/ash-misc/local1.tests
Executable file
11
shell/ash_test/ash-misc/local1.tests
Executable file
@@ -0,0 +1,11 @@
|
||||
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'"
|
Reference in New Issue
Block a user