f897fcb967fb9903ca2c52ca95094eb9b8c361a7
[dragonfly.git] / tools / regression / bin / sh / expansion / cmdsubst3.0
1 # $FreeBSD: src/tools/regression/bin/sh/expansion/cmdsubst3.0,v 1.1 2010/12/16 23:28:20 jilles Exp $
2
3 e=
4 for i in 0 1 2 3; do
5         for j in 0 1 2 3 4 5 6 7; do
6                 for k in 0 1 2 3 4 5 6 7; do
7                         case $i$j$k in
8                         000) continue ;;
9                         esac
10                         e="$e\n\\$i$j$k"
11                 done
12         done
13 done
14 e1=$(printf "$e")
15 e2="$(printf "$e")"
16 [ "${#e1}" = 510 ] || echo length bad
17 [ "$e1" = "$e2" ] || echo e1 != e2
18 [ "$e1" = "$(printf "$e")" ] || echo quoted bad
19 IFS=
20 [ "$e1" = $(printf "$e") ] || echo unquoted bad