1 # $FreeBSD: head/bin/sh/tests/parameters/positional9.0 291903 2015-12-06 14:09:31Z jilles $
2 # Although POSIX leaves the result of expanding ${#@} and ${#*} unspecified,
3 # make sure it is at least numeric.
7 lengths=${#*}${#@}"${#*}${#@}"$(echo ${#*}${#@}"${#*}${#@}")
9 lengths=$lengths${#*}${#@}"${#*}${#@}"$(echo ${#*}${#@}"${#*}${#@}")
12 printf 'bad: %s\n' "$lengths"
16 printf 'too short: %s\n' "$lengths"