aboutsummaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-vars/var6.tests
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2016-10-02 18:17:15 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2016-10-02 18:17:15 +0200
commit0ba99705a112d37822f34619b893cf7205a2663c (patch)
tree225768b5b4075e3d535754066171fcc1d7b7ac74 /shell/hush_test/hush-vars/var6.tests
parente3354bc44aa92c20bec0ffdc78e6b57351e8f16d (diff)
downloadbusybox-0ba99705a112d37822f34619b893cf7205a2663c.tar.gz
sh testsuite: sync ash-vars/ and hush-vars/
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/hush_test/hush-vars/var6.tests')
-rwxr-xr-xshell/hush_test/hush-vars/var6.tests4
1 files changed, 4 insertions, 0 deletions
diff --git a/shell/hush_test/hush-vars/var6.tests b/shell/hush_test/hush-vars/var6.tests
new file mode 100755
index 000000000..aea36d62d
--- /dev/null
+++ b/shell/hush_test/hush-vars/var6.tests
@@ -0,0 +1,4 @@
+# reject invalid vars
+"$THIS_SH" -c 'echo ${1q}'
+"$THIS_SH" -c 'echo ${&}'
+#"$THIS_SH" -c 'echo ${$}' -- this is valid as it's the same as $$