aboutsummaryrefslogtreecommitdiff
path: root/shell/hush_test
diff options
context:
space:
mode:
Diffstat (limited to 'shell/hush_test')
-rwxr-xr-xshell/hush_test/run-all5
-rw-r--r--shell/hush_test/zbad219
2 files changed, 23 insertions, 1 deletions
diff --git a/shell/hush_test/run-all b/shell/hush_test/run-all
index c75d81e55..805f75ad5 100755
--- a/shell/hush_test/run-all
+++ b/shell/hush_test/run-all
@@ -1,6 +1,9 @@
#!/bin/sh
-test -x hush || { echo "No ./hush?!"; exit; }
+test -x hush || {
+ echo "No ./hush?! Perhaps you want to run 'ln -s ../../busybox hush'"
+ exit
+}
PATH="$PWD:$PATH" # for hush and recho/zecho/printenv
export PATH
diff --git a/shell/hush_test/zbad2 b/shell/hush_test/zbad2
new file mode 100644
index 000000000..c30fa85a0
--- /dev/null
+++ b/shell/hush_test/zbad2
@@ -0,0 +1,19 @@
+## TODO: fix and add to testsuite
+
+## # bash zbad2
+## ZVAR=z.map
+## *.map
+## # hush zbad2
+## ZVAR=z.map
+## z.map <====== !!!
+
+## hush does globbing for "VAR=val" too!
+## it should do it only for non-assignments.
+## even if word looks like assignment, it can be non-assignemnt:
+## ZVAR=*.map /bin/echo ZVAR=*.map
+## ^dont_glob ^glob
+
+>ZVAR=z.map
+ZVAR=*.map /bin/echo ZVAR=*.map
+ZVAR=*.map
+echo "$ZVAR"