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