diff options
Diffstat (limited to 'shell/hush_test/hush-vars')
-rw-r--r-- | shell/hush_test/hush-vars/star.right | 5 | ||||
-rwxr-xr-x | shell/hush_test/hush-vars/star.tests | 8 | ||||
-rw-r--r-- | shell/hush_test/hush-vars/var.right | 2 | ||||
-rwxr-xr-x | shell/hush_test/hush-vars/var.tests | 1 |
4 files changed, 14 insertions, 2 deletions
diff --git a/shell/hush_test/hush-vars/star.right b/shell/hush_test/hush-vars/star.right new file mode 100644 index 000000000..b33b176b2 --- /dev/null +++ b/shell/hush_test/hush-vars/star.right @@ -0,0 +1,5 @@ +.1. +.abc. +.d. +.e. +.f. 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 diff --git a/shell/hush_test/hush-vars/var.right b/shell/hush_test/hush-vars/var.right index c13b98e38..14b2314d9 100644 --- a/shell/hush_test/hush-vars/var.right +++ b/shell/hush_test/hush-vars/var.right @@ -1,4 +1,4 @@ http://busybox.net http://busybox.net_abc 1 -0 +1 diff --git a/shell/hush_test/hush-vars/var.tests b/shell/hush_test/hush-vars/var.tests index b0637ea6b..0a63696c9 100755 --- a/shell/hush_test/hush-vars/var.tests +++ b/shell/hush_test/hush-vars/var.tests @@ -6,5 +6,4 @@ echo ${URL}_abc true false; echo $? true -# BUG: prints 0, must be 1 { false; echo $?; } |