hush: make getch/peek functions directly called
[oweals/busybox.git] / shell / hush_test / hush-vars / param_expand_len.tests
1 "$THIS_SH" -c 'echo $#'
2 "$THIS_SH" -c 'echo $#' arg0
3 "$THIS_SH" -c 'echo $#' arg0 arg1
4
5 echo Make sure len parsing doesnt break arg count
6 set --
7 echo $# ${#}
8 set -- aaaa bbb cc d
9 echo $# ${#}
10
11 echo Testing len op
12 echo ${#1} ${#2} ${#3} ${#4} ${#5} ${#6}
13
14 unset e
15 f=abc
16 g=
17 echo ${#e} ${#f} ${#g}
18
19 set -- a
20 # This must be interpreted as: $# ("1"), then remove trailing "1".
21 # IOW: empty result.
22 echo Nothing:${##1}
23 echo Nothing:${#%1}
24 echo One:${##x}