aboutsummaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-bugs/glob_and_assign.tests
diff options
context:
space:
mode:
Diffstat (limited to 'shell/hush_test/hush-bugs/glob_and_assign.tests')
-rwxr-xr-xshell/hush_test/hush-bugs/glob_and_assign.tests18
1 files changed, 18 insertions, 0 deletions
diff --git a/shell/hush_test/hush-bugs/glob_and_assign.tests b/shell/hush_test/hush-bugs/glob_and_assign.tests
new file mode 100755
index 000000000..ea11e364b
--- /dev/null
+++ b/shell/hush_test/hush-bugs/glob_and_assign.tests
@@ -0,0 +1,18 @@
+## # 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-assignment:
+## ZVAR=*.map /bin/echo ZVAR=*.map
+## ^dont_glob ^glob
+
+>ZVAR=z.map
+ZVAR=*.map /bin/echo ZVAR=*.map
+ZVAR=*.map
+echo "$ZVAR"
+rm ZVAR=z.map