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