ash: fix handling of duplicate "local"

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2015-04-18 19:36:38 +02:00
parent 63f4d32c98
commit 0a0acb55db
4 changed files with 42 additions and 17 deletions

View 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