1291903Sjilles# $FreeBSD: releng/11.0/bin/sh/tests/parameters/positional9.0 291903 2015-12-06 14:09:31Z jilles $ 2291903Sjilles# Although POSIX leaves the result of expanding ${#@} and ${#*} unspecified, 3291903Sjilles# make sure it is at least numeric. 4291903Sjilles 5291903Sjillesset -- bb cc ddd 6291903Sjillesset -f 7291903Sjilleslengths=${#*}${#@}"${#*}${#@}"$(echo ${#*}${#@}"${#*}${#@}") 8291903SjillesIFS= 9291903Sjilleslengths=$lengths${#*}${#@}"${#*}${#@}"$(echo ${#*}${#@}"${#*}${#@}") 10291903Sjillescase $lengths in 11291903Sjilles*[!0-9]*) 12291903Sjilles printf 'bad: %s\n' "$lengths" 13291903Sjilles exit 3 ;; 14291903Sjilles????????????????*) ;; 15291903Sjilles*) 16291903Sjilles printf 'too short: %s\n' "$lengths" 17291903Sjilles exit 3 ;; 18291903Sjillesesac 19