aboutsummaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-vars/param_expand_len.tests
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-03-28 18:55:34 +0000
committerMike Frysinger <vapier@gentoo.org>2009-03-28 18:55:34 +0000
commit78f9d8eb7adc10f1af8977212f24ab3c418a9c2b (patch)
treed63f339b310304c2c8c116503b41f589882ba2be /shell/hush_test/hush-vars/param_expand_len.tests
parent6379bb4fde15dae3be641625e9af377eeb5a64d8 (diff)
downloadbusybox-78f9d8eb7adc10f1af8977212f24ab3c418a9c2b.tar.gz
add hush tests for parameter expansion
Diffstat (limited to 'shell/hush_test/hush-vars/param_expand_len.tests')
-rwxr-xr-xshell/hush_test/hush-vars/param_expand_len.tests12
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 000000000..90f47d2fb
--- /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}