2010-05-22 06:05:02 +02:00
|
|
|
"$THIS_SH" -c 'echo $#'
|
|
|
|
"$THIS_SH" -c 'echo $#' arg0
|
|
|
|
"$THIS_SH" -c 'echo $#' arg0 arg1
|
|
|
|
|
|
|
|
echo Make sure len parsing doesnt break arg count
|
2009-03-28 18:55:34 +00:00
|
|
|
set --
|
|
|
|
echo $# ${#}
|
|
|
|
set -- aaaa bbb cc d
|
|
|
|
echo $# ${#}
|
|
|
|
|
2010-05-22 06:05:02 +02:00
|
|
|
echo Testing len op
|
2009-03-28 18:55:34 +00:00
|
|
|
echo ${#1} ${#2} ${#3} ${#4} ${#5} ${#6}
|
|
|
|
|
|
|
|
unset e
|
|
|
|
f=abc
|
|
|
|
g=
|
|
|
|
echo ${#e} ${#f} ${#g}
|