diff options
author | Mike Frysinger | 2009-03-28 18:55:34 +0000 |
---|---|---|
committer | Mike Frysinger | 2009-03-28 18:55:34 +0000 |
commit | 78f9d8eb7adc10f1af8977212f24ab3c418a9c2b (patch) | |
tree | d63f339b310304c2c8c116503b41f589882ba2be /shell/hush_test/hush-vars/param_expand_len.tests | |
parent | 6379bb4fde15dae3be641625e9af377eeb5a64d8 (diff) | |
download | busybox-78f9d8eb7adc10f1af8977212f24ab3c418a9c2b.zip busybox-78f9d8eb7adc10f1af8977212f24ab3c418a9c2b.tar.gz |
add hush tests for parameter expansion
Diffstat (limited to 'shell/hush_test/hush-vars/param_expand_len.tests')
-rwxr-xr-x | shell/hush_test/hush-vars/param_expand_len.tests | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/shell/hush_test/hush-vars/param_expand_len.tests b/shell/hush_test/hush-vars/param_expand_len.tests new file mode 100755 index 0000000..90f47d2 --- /dev/null +++ b/shell/hush_test/hush-vars/param_expand_len.tests @@ -0,0 +1,12 @@ +# make sure len parsing doesnt break arg count +set -- +echo $# ${#} +set -- aaaa bbb cc d +echo $# ${#} + +echo ${#1} ${#2} ${#3} ${#4} ${#5} ${#6} + +unset e +f=abc +g= +echo ${#e} ${#f} ${#g} |