diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-05-13 18:34:53 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-05-13 18:34:53 +0000 |
commit | 602d13cba552fadb8481283aa7872a4b9f206c48 (patch) | |
tree | 224cc9027daa059db593e561526a8bb13f95de25 /shell/hush_test/hush-bugs | |
parent | 119b995437c52a164b2c5e51ef918c3f46b8a130 (diff) | |
download | busybox-w32-602d13cba552fadb8481283aa7872a4b9f206c48.tar.gz busybox-w32-602d13cba552fadb8481283aa7872a4b9f206c48.tar.bz2 busybox-w32-602d13cba552fadb8481283aa7872a4b9f206c48.zip |
hush: fix '{ false; echo $?; }' bug.
hush: expand testsuite. variable expansion is still very broken
Diffstat (limited to 'shell/hush_test/hush-bugs')
-rw-r--r-- | shell/hush_test/hush-bugs/argv0.right | 1 | ||||
-rwxr-xr-x | shell/hush_test/hush-bugs/argv0.tests | 4 | ||||
-rw-r--r-- | shell/hush_test/hush-bugs/quote1.right | 1 | ||||
-rwxr-xr-x | shell/hush_test/hush-bugs/quote1.tests | 2 | ||||
-rw-r--r-- | shell/hush_test/hush-bugs/quote2.right | 1 | ||||
-rwxr-xr-x | shell/hush_test/hush-bugs/quote2.tests | 2 | ||||
-rw-r--r-- | shell/hush_test/hush-bugs/starquoted.right | 1 | ||||
-rwxr-xr-x | shell/hush_test/hush-bugs/starquoted.tests | 4 |
8 files changed, 16 insertions, 0 deletions
diff --git a/shell/hush_test/hush-bugs/argv0.right b/shell/hush_test/hush-bugs/argv0.right new file mode 100644 index 000000000..d86bac9de --- /dev/null +++ b/shell/hush_test/hush-bugs/argv0.right | |||
@@ -0,0 +1 @@ | |||
OK | |||
diff --git a/shell/hush_test/hush-bugs/argv0.tests b/shell/hush_test/hush-bugs/argv0.tests new file mode 100755 index 000000000..f5c40f6fe --- /dev/null +++ b/shell/hush_test/hush-bugs/argv0.tests | |||
@@ -0,0 +1,4 @@ | |||
1 | if test $# = 0; then | ||
2 | exec "$THIS_SH" "$0" arg | ||
3 | fi | ||
4 | echo OK | ||
diff --git a/shell/hush_test/hush-bugs/quote1.right b/shell/hush_test/hush-bugs/quote1.right new file mode 100644 index 000000000..cb382054c --- /dev/null +++ b/shell/hush_test/hush-bugs/quote1.right | |||
@@ -0,0 +1 @@ | |||
'1' | |||
diff --git a/shell/hush_test/hush-bugs/quote1.tests b/shell/hush_test/hush-bugs/quote1.tests new file mode 100755 index 000000000..f55895466 --- /dev/null +++ b/shell/hush_test/hush-bugs/quote1.tests | |||
@@ -0,0 +1,2 @@ | |||
1 | a=1 | ||
2 | echo "'$a'" | ||
diff --git a/shell/hush_test/hush-bugs/quote2.right b/shell/hush_test/hush-bugs/quote2.right new file mode 100644 index 000000000..3bc9edcd6 --- /dev/null +++ b/shell/hush_test/hush-bugs/quote2.right | |||
@@ -0,0 +1 @@ | |||
>1 | |||
diff --git a/shell/hush_test/hush-bugs/quote2.tests b/shell/hush_test/hush-bugs/quote2.tests new file mode 100755 index 000000000..bd966f30b --- /dev/null +++ b/shell/hush_test/hush-bugs/quote2.tests | |||
@@ -0,0 +1,2 @@ | |||
1 | a=1 | ||
2 | echo ">$a" | ||
diff --git a/shell/hush_test/hush-bugs/starquoted.right b/shell/hush_test/hush-bugs/starquoted.right new file mode 100644 index 000000000..fedaf4805 --- /dev/null +++ b/shell/hush_test/hush-bugs/starquoted.right | |||
@@ -0,0 +1 @@ | |||
.1 abc d e f. | |||
diff --git a/shell/hush_test/hush-bugs/starquoted.tests b/shell/hush_test/hush-bugs/starquoted.tests new file mode 100755 index 000000000..3be2026b7 --- /dev/null +++ b/shell/hush_test/hush-bugs/starquoted.tests | |||
@@ -0,0 +1,4 @@ | |||
1 | if test $# = 0; then | ||
2 | exec "$THIS_SH" starquoted.tests 1 abc 'd e f' | ||
3 | fi | ||
4 | for a in "$*"; do echo ".$a."; done | ||