ash: fix handling of duplicate "local"
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
@ -1 +1 @@
|
||||
heredoc1.tests: line 3: syntax error: unexpected "then"
|
||||
./heredoc1.tests: line 3: syntax error: unexpected "then"
|
||||
|
5
shell/ash_test/ash-vars/var3.right
Normal file
5
shell/ash_test/ash-vars/var3.right
Normal file
@ -0,0 +1,5 @@
|
||||
1
|
||||
1
|
||||
|
||||
|
||||
0
|
1
shell/ash_test/ash-vars/var3.tests
Executable file
1
shell/ash_test/ash-vars/var3.tests
Executable file
@ -0,0 +1 @@
|
||||
x=0; f() { local x=1; echo $x; local x; echo $x; unset x; echo $x; local x; echo $x; }; f; echo $x
|
Reference in New Issue
Block a user