summaryrefslogtreecommitdiffhomepage
path: root/shell/hush_test/hush-vars/param_expand_len.tests
blob: fe20a45e957bf55e2af66a2fdf6d3107cac8d99a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
"$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
f=abc
g=
echo ${#e} ${#f} ${#g}