diff options
author | Denys Vlasenko | 2010-05-22 06:05:02 +0200 |
---|---|---|
committer | Denys Vlasenko | 2010-05-22 06:05:02 +0200 |
commit | 8a33679694b0fdf459d69868f85c081cab5687cb (patch) | |
tree | be6d2ea8d9a5132d82939892736d2531877632e8 /shell/hush_test/hush-vars/param_expand_len.tests | |
parent | 1e811b12317d0eab4e78d848caa640cca497a0a7 (diff) | |
download | busybox-8a33679694b0fdf459d69868f85c081cab5687cb.zip busybox-8a33679694b0fdf459d69868f85c081cab5687cb.tar.gz |
hush: fix "hush -c 'echo $#'" showing -1
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/hush_test/hush-vars/param_expand_len.tests')
-rwxr-xr-x | shell/hush_test/hush-vars/param_expand_len.tests | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/shell/hush_test/hush-vars/param_expand_len.tests b/shell/hush_test/hush-vars/param_expand_len.tests index 90f47d2..fe20a45 100755 --- a/shell/hush_test/hush-vars/param_expand_len.tests +++ b/shell/hush_test/hush-vars/param_expand_len.tests @@ -1,9 +1,14 @@ -# make sure len parsing doesnt break arg count +"$THIS_SH" -c 'echo $#' +"$THIS_SH" -c 'echo $#' arg0 +"$THIS_SH" -c 'echo $#' arg0 arg1 + +echo Make sure len parsing doesnt break arg count set -- echo $# ${#} set -- aaaa bbb cc d echo $# ${#} +echo Testing len op echo ${#1} ${#2} ${#3} ${#4} ${#5} ${#6} unset e |