summaryrefslogtreecommitdiff
path: root/shell/hush_test/zbad2
diff options
context:
space:
mode:
Diffstat (limited to 'shell/hush_test/zbad2')
-rw-r--r--shell/hush_test/zbad219
1 files changed, 19 insertions, 0 deletions
diff --git a/shell/hush_test/zbad2 b/shell/hush_test/zbad2
new file mode 100644
index 0000000..c30fa85
--- /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"