]> git.saurik.com Git - apple/shell_cmds.git/blob - sh/tests/parser/dollar-quote3.0
shell_cmds-216.60.1.tar.gz
[apple/shell_cmds.git] / sh / tests / parser / dollar-quote3.0
1 # $FreeBSD$
2
3 unset LC_ALL
4 LC_CTYPE=en_US.ISO8859-1
5 export LC_CTYPE
6
7 e=
8 for 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
17 done
18 ee=`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" ]