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