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:
2
shell/hush_test/hush-bugs/glob_and_assign.right
Normal file
2
shell/hush_test/hush-bugs/glob_and_assign.right
Normal file
@@ -0,0 +1,2 @@
|
||||
ZVAR=z.map
|
||||
*.map
|
||||
18
shell/hush_test/hush-bugs/glob_and_assign.tests
Executable file
18
shell/hush_test/hush-bugs/glob_and_assign.tests
Executable 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
|
||||
1
shell/hush_test/hush-bugs/glob_and_vars.right
Normal file
1
shell/hush_test/hush-bugs/glob_and_vars.right
Normal file
@@ -0,0 +1 @@
|
||||
./glob_and_vars.right ./glob_and_vars.tests
|
||||
2
shell/hush_test/hush-bugs/glob_and_vars.tests
Executable file
2
shell/hush_test/hush-bugs/glob_and_vars.tests
Executable file
@@ -0,0 +1,2 @@
|
||||
v=.
|
||||
echo $v/glob_and_vars.*
|
||||
1
shell/hush_test/hush-bugs/while_in_subshell.right
Normal file
1
shell/hush_test/hush-bugs/while_in_subshell.right
Normal file
@@ -0,0 +1 @@
|
||||
OK: 0
|
||||
2
shell/hush_test/hush-bugs/while_in_subshell.tests
Executable file
2
shell/hush_test/hush-bugs/while_in_subshell.tests
Executable file
@@ -0,0 +1,2 @@
|
||||
(while true; do exit; done)
|
||||
echo OK: $?
|
||||
Reference in New Issue
Block a user