xref: /freebsd/bin/sh/tests/parser/dollar-quote4.0 (revision 22cf89c938886d14f5796fc49f9f020c23ea8eaf)
1
2unset LC_ALL
3LC_CTYPE=en_US.ISO8859-1
4export LC_CTYPE
5
6e=
7for i in 0 1 2 3 4 5 6 7 8 9 a b c d e f; do
8	for j in 0 1 2 3 4 5 6 7 8 9 a b c d e f; do
9		case $i$j in
10		00) continue ;;
11		esac
12		e="$e\x$i$j"
13	done
14done
15
16# Start a new shell so the locale change is picked up.
17ee="$(${SH} -c "printf %s \$'$e'")"
18[ "${#ee}" = 255 ] || echo length bad
19