blob: b6fffe59ef12447535d55bfc4653633b38c17b08 [file] [log] [blame]
Denis Vlasenko05743d72008-02-10 12:10:08 +00001## TODO: fix and add to testsuite
2
3## # bash zbad2
4## ZVAR=z.map
5## *.map
6## # hush zbad2
7## ZVAR=z.map
8## z.map <====== !!!
9
10## hush does globbing for "VAR=val" too!
11## it should do it only for non-assignments.
Denis Vlasenko0ef240d2008-02-10 16:00:30 +000012## even if word looks like assignment, it can be non-assignment:
Denis Vlasenko05743d72008-02-10 12:10:08 +000013## ZVAR=*.map /bin/echo ZVAR=*.map
14## ^dont_glob ^glob
15
16>ZVAR=z.map
17ZVAR=*.map /bin/echo ZVAR=*.map
18ZVAR=*.map
19echo "$ZVAR"