summaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-vars
diff options
context:
space:
mode:
authorDenis Vlasenko2007-05-14 16:23:23 +0000
committerDenis Vlasenko2007-05-14 16:23:23 +0000
commit764d59d48848121d89b31ddecf0130ce24a4d91b (patch)
tree5ab700c4cbc8e39405bb97e7ad1c73a083161cfe /shell/hush_test/hush-vars
parent03eb8bf6ce2cef8f30402b7c2b18e8479f9da1ea (diff)
downloadbusybox-764d59d48848121d89b31ddecf0130ce24a4d91b.zip
busybox-764d59d48848121d89b31ddecf0130ce24a4d91b.tar.gz
hush: more fixes to variable expansion, more testcases
Diffstat (limited to 'shell/hush_test/hush-vars')
-rw-r--r--shell/hush_test/hush-vars/var_expand_in_assign.right5
-rwxr-xr-xshell/hush_test/hush-vars/var_expand_in_assign.tests15
-rwxr-xr-x[-rw-r--r--]shell/hush_test/hush-vars/var_subst_in_for.tests0
3 files changed, 20 insertions, 0 deletions
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 0000000..352210d
--- /dev/null
+++ b/shell/hush_test/hush-vars/var_expand_in_assign.right
@@ -0,0 +1,5 @@
+. .
+.abc d e.
+.abc d e.
+.abc d e.
+.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 0000000..18cdc74
--- /dev/null
+++ b/shell/hush_test/hush-vars/var_expand_in_assign.tests
@@ -0,0 +1,15 @@
+if test $# = 0; then
+ exec "$THIS_SH" "$0" abc "d e"
+fi
+
+space=' '
+echo .$space.
+
+a=$*
+echo .$a.
+a=$@
+echo .$a.
+a="$*"
+echo .$a.
+a="$@"
+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 4d1c112..4d1c112 100644..100755
--- a/shell/hush_test/hush-vars/var_subst_in_for.tests
+++ b/shell/hush_test/hush-vars/var_subst_in_for.tests