hush: fix '{ false; echo $?; }' bug.
hush: expand testsuite. variable expansion is still very broken
This commit is contained in:
1
shell/hush_test/hush-bugs/argv0.right
Normal file
1
shell/hush_test/hush-bugs/argv0.right
Normal file
@@ -0,0 +1 @@
|
||||
OK
|
4
shell/hush_test/hush-bugs/argv0.tests
Executable file
4
shell/hush_test/hush-bugs/argv0.tests
Executable file
@@ -0,0 +1,4 @@
|
||||
if test $# = 0; then
|
||||
exec "$THIS_SH" "$0" arg
|
||||
fi
|
||||
echo OK
|
1
shell/hush_test/hush-bugs/quote1.right
Normal file
1
shell/hush_test/hush-bugs/quote1.right
Normal file
@@ -0,0 +1 @@
|
||||
'1'
|
2
shell/hush_test/hush-bugs/quote1.tests
Executable file
2
shell/hush_test/hush-bugs/quote1.tests
Executable file
@@ -0,0 +1,2 @@
|
||||
a=1
|
||||
echo "'$a'"
|
1
shell/hush_test/hush-bugs/quote2.right
Normal file
1
shell/hush_test/hush-bugs/quote2.right
Normal file
@@ -0,0 +1 @@
|
||||
>1
|
2
shell/hush_test/hush-bugs/quote2.tests
Executable file
2
shell/hush_test/hush-bugs/quote2.tests
Executable file
@@ -0,0 +1,2 @@
|
||||
a=1
|
||||
echo ">$a"
|
1
shell/hush_test/hush-bugs/starquoted.right
Normal file
1
shell/hush_test/hush-bugs/starquoted.right
Normal file
@@ -0,0 +1 @@
|
||||
.1 abc d e f.
|
4
shell/hush_test/hush-bugs/starquoted.tests
Executable file
4
shell/hush_test/hush-bugs/starquoted.tests
Executable file
@@ -0,0 +1,4 @@
|
||||
if test $# = 0; then
|
||||
exec "$THIS_SH" starquoted.tests 1 abc 'd e f'
|
||||
fi
|
||||
for a in "$*"; do echo ".$a."; done
|
Reference in New Issue
Block a user