projects
/
oweals
/
busybox.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
hush: fix a bug where we were requiring semicolon here: (cmd;)
[oweals/busybox.git]
/
shell
/
hush_test
/
hush-bugs
/
glob_and_assign.tests
1
## # bash zbad2
2
## ZVAR=z.map
3
## *.map
4
## # hush zbad2
5
## ZVAR=z.map
6
## z.map <====== !!!
7
8
## hush does globbing for "VAR=val" too!
9
## it should do it only for non-assignments.
10
## even if word looks like assignment, it can be non-assignment:
11
## ZVAR=*.map /bin/echo ZVAR=*.map
12
## ^dont_glob ^glob
13
14
>ZVAR=z.map
15
ZVAR=*.map /bin/echo ZVAR=*.map
16
ZVAR=*.map
17
echo "$ZVAR"
18
rm ZVAR=z.map