diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2009-04-20 10:52:31 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2009-04-20 10:52:31 +0000 |
commit | d40fa397e45b35b62d1967a88036e06b4c061abe (patch) | |
tree | d9732c1ed8a24fa60da11e2ef960b598cf43bca8 /shell/hush_test/hush-misc | |
parent | e41fdbc2795e098887af2c5bff3294753b97ffb5 (diff) | |
download | busybox-d40fa397e45b35b62d1967a88036e06b4c061abe.tar.gz |
hush: add two testcases
Diffstat (limited to 'shell/hush_test/hush-misc')
-rw-r--r-- | shell/hush_test/hush-misc/func_args1.right | 5 | ||||
-rwxr-xr-x | shell/hush_test/hush-misc/func_args1.tests | 10 |
2 files changed, 15 insertions, 0 deletions
diff --git a/shell/hush_test/hush-misc/func_args1.right b/shell/hush_test/hush-misc/func_args1.right new file mode 100644 index 000000000..2dfb9629b --- /dev/null +++ b/shell/hush_test/hush-misc/func_args1.right @@ -0,0 +1,5 @@ +params: a b c +'f 1 2 3' called +params: a b c +'f 1 2 3' called +params: a b c diff --git a/shell/hush_test/hush-misc/func_args1.tests b/shell/hush_test/hush-misc/func_args1.tests new file mode 100755 index 000000000..157921fb1 --- /dev/null +++ b/shell/hush_test/hush-misc/func_args1.tests @@ -0,0 +1,10 @@ +# UNFIXED BUG + +f() { echo "'f $1 $2 $3' called"; } + +set -- a b c +echo "params: $1 $2 $3" +f 1 2 3 +echo "params: $1 $2 $3" +true | f 1 2 3 +echo "params: $1 $2 $3" |