aboutsummaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-bugs/glob_and_assign.tests
blob: ea11e364b3904d339c54959370844efb3bb503df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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