hush: more fixes to variable expansion, more testcases
This commit is contained in:
0
shell/hush_test/hush-bugs/quote3.tests
Normal file → Executable file
0
shell/hush_test/hush-bugs/quote3.tests
Normal file → Executable file
5
shell/hush_test/hush-vars/var_expand_in_assign.right
Normal file
5
shell/hush_test/hush-vars/var_expand_in_assign.right
Normal file
@@ -0,0 +1,5 @@
|
||||
. .
|
||||
.abc d e.
|
||||
.abc d e.
|
||||
.abc d e.
|
||||
.abc d e.
|
15
shell/hush_test/hush-vars/var_expand_in_assign.tests
Executable file
15
shell/hush_test/hush-vars/var_expand_in_assign.tests
Executable file
@@ -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.
|
0
shell/hush_test/hush-vars/var_subst_in_for.tests
Normal file → Executable file
0
shell/hush_test/hush-vars/var_subst_in_for.tests
Normal file → Executable file
Reference in New Issue
Block a user