xref: /freebsd/bin/sh/tests/parser/dollar-quote3.0 (revision 4ec234c813eed05c166859bba82c882e40826eb9)
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 length bad
20
21# Start a new shell so the locale change is picked up.
22[ "$(${SH} -c "printf %s \$'$e'")" = "$ee" ]
23