diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-05-14 16:23:23 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-05-14 16:23:23 +0000 |
commit | 764d59d48848121d89b31ddecf0130ce24a4d91b (patch) | |
tree | 5ab700c4cbc8e39405bb97e7ad1c73a083161cfe /shell/hush_test | |
parent | 03eb8bf6ce2cef8f30402b7c2b18e8479f9da1ea (diff) | |
download | busybox-w32-764d59d48848121d89b31ddecf0130ce24a4d91b.tar.gz busybox-w32-764d59d48848121d89b31ddecf0130ce24a4d91b.tar.bz2 busybox-w32-764d59d48848121d89b31ddecf0130ce24a4d91b.zip |
hush: more fixes to variable expansion, more testcases
Diffstat (limited to 'shell/hush_test')
-rwxr-xr-x[-rw-r--r--] | shell/hush_test/hush-bugs/quote3.tests | 0 | ||||
-rw-r--r-- | shell/hush_test/hush-vars/var_expand_in_assign.right | 5 | ||||
-rwxr-xr-x | shell/hush_test/hush-vars/var_expand_in_assign.tests | 15 | ||||
-rwxr-xr-x[-rw-r--r--] | shell/hush_test/hush-vars/var_subst_in_for.tests | 0 |
4 files changed, 20 insertions, 0 deletions
diff --git a/shell/hush_test/hush-bugs/quote3.tests b/shell/hush_test/hush-bugs/quote3.tests index c52e040cc..c52e040cc 100644..100755 --- a/shell/hush_test/hush-bugs/quote3.tests +++ b/shell/hush_test/hush-bugs/quote3.tests | |||
diff --git a/shell/hush_test/hush-vars/var_expand_in_assign.right b/shell/hush_test/hush-vars/var_expand_in_assign.right new file mode 100644 index 000000000..352210d7e --- /dev/null +++ b/shell/hush_test/hush-vars/var_expand_in_assign.right | |||
@@ -0,0 +1,5 @@ | |||
1 | . . | ||
2 | .abc d e. | ||
3 | .abc d e. | ||
4 | .abc d e. | ||
5 | .abc d e. | ||
diff --git a/shell/hush_test/hush-vars/var_expand_in_assign.tests b/shell/hush_test/hush-vars/var_expand_in_assign.tests new file mode 100755 index 000000000..18cdc74c0 --- /dev/null +++ b/shell/hush_test/hush-vars/var_expand_in_assign.tests | |||
@@ -0,0 +1,15 @@ | |||
1 | if test $# = 0; then | ||
2 | exec "$THIS_SH" "$0" abc "d e" | ||
3 | fi | ||
4 | |||
5 | space=' ' | ||
6 | echo .$space. | ||
7 | |||
8 | a=$* | ||
9 | echo .$a. | ||
10 | a=$@ | ||
11 | echo .$a. | ||
12 | a="$*" | ||
13 | echo .$a. | ||
14 | a="$@" | ||
15 | echo .$a. | ||
diff --git a/shell/hush_test/hush-vars/var_subst_in_for.tests b/shell/hush_test/hush-vars/var_subst_in_for.tests index 4d1c11201..4d1c11201 100644..100755 --- a/shell/hush_test/hush-vars/var_subst_in_for.tests +++ b/shell/hush_test/hush-vars/var_subst_in_for.tests | |||