summaryrefslogtreecommitdiff
path: root/shell/ash_test/ash-misc
diff options
context:
space:
mode:
authorRon Yorston2015-10-29 16:19:14 +0000
committerDenys Vlasenko2015-10-29 20:33:44 +0100
commitef2386b80abfb22ccb697ddbdd4047aacc395c50 (patch)
tree29cdff7d9d254f06913e499b4b25879b1811ab90 /shell/ash_test/ash-misc
parent3f221113a50196e536bfb059712915bd8bde10d1 (diff)
downloadbusybox-ef2386b80abfb22ccb697ddbdd4047aacc395c50.zip
busybox-ef2386b80abfb22ccb697ddbdd4047aacc395c50.tar.gz
ash: only allow local variables in functions
Signed-off-by: Ron Yorston <rmy@pobox.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/ash_test/ash-misc')
-rw-r--r--shell/ash_test/ash-misc/local2.right1
-rwxr-xr-xshell/ash_test/ash-misc/local2.tests1
2 files changed, 2 insertions, 0 deletions
diff --git a/shell/ash_test/ash-misc/local2.right b/shell/ash_test/ash-misc/local2.right
new file mode 100644
index 0000000..630ef79
--- /dev/null
+++ b/shell/ash_test/ash-misc/local2.right
@@ -0,0 +1 @@
+./local2.tests: local: line 1: not in a function
diff --git a/shell/ash_test/ash-misc/local2.tests b/shell/ash_test/ash-misc/local2.tests
new file mode 100755
index 0000000..8e14037
--- /dev/null
+++ b/shell/ash_test/ash-misc/local2.tests
@@ -0,0 +1 @@
+local x=1