From 5d6b8729ed7335c702022f4f3176573f4cf2cf5a Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sun, 2 Oct 2016 17:39:31 +0200 Subject: hush testsuite: add many tests from ash testsuite Signed-off-by: Denys Vlasenko --- shell/hush_test/hush-misc/local1.tests | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 shell/hush_test/hush-misc/local1.tests (limited to 'shell/hush_test/hush-misc/local1.tests') diff --git a/shell/hush_test/hush-misc/local1.tests b/shell/hush_test/hush-misc/local1.tests new file mode 100755 index 000000000..b1e675059 --- /dev/null +++ b/shell/hush_test/hush-misc/local1.tests @@ -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'" -- cgit v1.2.3