1# $FreeBSD$ 2 3unset LC_ALL 4LC_CTYPE=en_US.ISO8859-1 5export LC_CTYPE 6 7e= 8for i in 0 1 2 3; do 9 for j in 0 1 2 3 4 5 6 7; do 10 for k in 0 1 2 3 4 5 6 7; do 11 case $i$j$k in 12 000) continue ;; 13 esac 14 e="$e\\$i$j$k" 15 done 16 done 17done 18ee=`printf "$e"` 19[ ${#ee} = 255 ] || echo bad 1 20[ "${#ee}" = 255 ] || echo bad 2 21[ $((${#ee})) = 255 ] || echo bad 3 22[ "$((${#ee}))" = 255 ] || echo bad 4 23set -- "$ee" 24[ ${#1} = 255 ] || echo bad 5 25[ "${#1}" = 255 ] || echo bad 6 26[ $((${#1})) = 255 ] || echo bad 7 27[ "$((${#1}))" = 255 ] || echo bad 8 28