From 764d59d48848121d89b31ddecf0130ce24a4d91b Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Mon, 14 May 2007 16:23:23 +0000 Subject: hush: more fixes to variable expansion, more testcases --- shell/hush_test/hush-vars/var_expand_in_assign.right | 5 +++++ shell/hush_test/hush-vars/var_expand_in_assign.tests | 15 +++++++++++++++ shell/hush_test/hush-vars/var_subst_in_for.tests | 0 3 files changed, 20 insertions(+) create mode 100644 shell/hush_test/hush-vars/var_expand_in_assign.right create mode 100755 shell/hush_test/hush-vars/var_expand_in_assign.tests mode change 100644 => 100755 shell/hush_test/hush-vars/var_subst_in_for.tests (limited to 'shell/hush_test/hush-vars') 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 @@ +. . +.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 000000000..18cdc74c0 --- /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 old mode 100644 new mode 100755 -- cgit v1.2.3