ash: copy function tests from hush testsuite
Signed-off-by: Ron Yorston <rmy@pobox.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
committed by
Denys Vlasenko
parent
2cf4591413
commit
85405c80a2
7
shell/ash_test/ash-misc/func_local2.tests
Executable file
7
shell/ash_test/ash-misc/func_local2.tests
Executable file
@@ -0,0 +1,7 @@
|
||||
x=1
|
||||
f() { echo $x; local x=$((x+1)); echo $x; }
|
||||
g() { f; echo $x; f; local x=$((x+1)); f; echo $x; f; }
|
||||
f
|
||||
g
|
||||
echo $x
|
||||
echo Done
|
||||
Reference in New Issue
Block a user