hush: add support for local builtin
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
5
shell/hush_test/hush-misc/func_local1.tests
Executable file
5
shell/hush_test/hush-misc/func_local1.tests
Executable file
@@ -0,0 +1,5 @@
|
||||
export z=z
|
||||
f() { local z=a; env | grep ^z; }
|
||||
f
|
||||
env | grep ^z
|
||||
echo Done
|
||||
Reference in New Issue
Block a user