Denis Vlasenko | 05743d7 | 2008-02-10 12:10:08 +0000 | [diff] [blame] | 1 | ## 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 Vlasenko | 0ef240d | 2008-02-10 16:00:30 +0000 | [diff] [blame] | 12 | ## even if word looks like assignment, it can be non-assignment: |
Denis Vlasenko | 05743d7 | 2008-02-10 12:10:08 +0000 | [diff] [blame] | 13 | ## ZVAR=*.map /bin/echo ZVAR=*.map |
| 14 | ## ^dont_glob ^glob |
| 15 | |
| 16 | >ZVAR=z.map |
| 17 | ZVAR=*.map /bin/echo ZVAR=*.map |
| 18 | ZVAR=*.map |
| 19 | echo "$ZVAR" |