summaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-glob
diff options
context:
space:
mode:
authorDenis Vlasenko2008-06-17 07:26:52 +0000
committerDenis Vlasenko2008-06-17 07:26:52 +0000
commit988339259fb74d81e2bd0f702503815f63edc972 (patch)
tree55d02df7fec9ede538d325af2df7c09b83a171cf /shell/hush_test/hush-glob
parent30c9cc5b178932bc417846919eaa2fc1bf8e5996 (diff)
downloadbusybox-988339259fb74d81e2bd0f702503815f63edc972.zip
busybox-988339259fb74d81e2bd0f702503815f63edc972.tar.gz
move glob_and_assign.tests from hush-bugs to hush-glob
Diffstat (limited to 'shell/hush_test/hush-glob')
-rw-r--r--shell/hush_test/hush-glob/glob_and_assign.right6
-rwxr-xr-xshell/hush_test/hush-glob/glob_and_assign.tests10
2 files changed, 16 insertions, 0 deletions
diff --git a/shell/hush_test/hush-glob/glob_and_assign.right b/shell/hush_test/hush-glob/glob_and_assign.right
new file mode 100644
index 0000000..d46e443
--- /dev/null
+++ b/shell/hush_test/hush-glob/glob_and_assign.right
@@ -0,0 +1,6 @@
+ZVAR=z.tmp ZVAR=*.tmp ZVAR=[z].tmp
+ZVAR=z.tmp ZVAR=*.tmp ZVAR=[z].tmp
+*.tmp
+ZVAR=z.tmp z.tmp
+ZVAR=z.tmp ZVAR=*.tmp ZVAR=[z].tmp
+ZVAR=z.tmp ZVAR=*.tmp ZVAR=[z].tmp
diff --git a/shell/hush_test/hush-glob/glob_and_assign.tests b/shell/hush_test/hush-glob/glob_and_assign.tests
new file mode 100755
index 0000000..0b158f2
--- /dev/null
+++ b/shell/hush_test/hush-glob/glob_and_assign.tests
@@ -0,0 +1,10 @@
+>ZVAR=z.tmp
+>z.tmp
+ZVAR=*.tmp echo ZVAR=*.tmp "ZVAR=*.tmp" "ZVAR=[z].tmp"
+ZVAR=*.tmp /bin/echo ZVAR=*.tmp "ZVAR=*.tmp" "ZVAR=[z].tmp"
+ZVAR=*.tmp
+echo "$ZVAR"
+echo $ZVAR
+echo ZVAR=*.tmp "ZVAR=*.tmp" "ZVAR=[z].tmp"
+/bin/echo ZVAR=*.tmp "ZVAR=*.tmp" "ZVAR=[z].tmp"
+rm ZVAR=z.tmp z.tmp