hush: add support for ':'; create testsuite entries

text    data     bss     dec     hex filename
 809569     612    7044  817225   c7849 busybox_old
 809528     612    7044  817184   c7820 busybox_unstripped
This commit is contained in:
Denis Vlasenko
2008-06-14 15:50:55 +00:00
parent a84420062a
commit dd316dd283
11 changed files with 47 additions and 25 deletions

View File

@@ -0,0 +1,2 @@
ZVAR=z.map
*.map

View File

@@ -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

View File

@@ -0,0 +1 @@
./glob_and_vars.right ./glob_and_vars.tests

View File

@@ -0,0 +1,2 @@
v=.
echo $v/glob_and_vars.*

View File

@@ -0,0 +1 @@
OK: 0

View File

@@ -0,0 +1,2 @@
(while true; do exit; done)
echo OK: $?