From 602d13cba552fadb8481283aa7872a4b9f206c48 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sun, 13 May 2007 18:34:53 +0000 Subject: hush: fix '{ false; echo $?; }' bug. hush: expand testsuite. variable expansion is still very broken --- shell/hush_test/hush-vars/star.tests | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 shell/hush_test/hush-vars/star.tests (limited to 'shell/hush_test/hush-vars/star.tests') diff --git a/shell/hush_test/hush-vars/star.tests b/shell/hush_test/hush-vars/star.tests new file mode 100755 index 000000000..1914dde44 --- /dev/null +++ b/shell/hush_test/hush-vars/star.tests @@ -0,0 +1,8 @@ +if test $# = 0; then + exec "$THIS_SH" star.tests 1 abc 'd e f' +fi +# 'd e f' should be split into 3 separate args: +for a in $*; do echo ".$a."; done + +# must produce .1 abc d e f. Currently does not +#for a in "$*"; do echo ".$a."; done -- cgit v1.2.3