xref: /freebsd/bin/sh/tests/expansion/cmdsubst3.0 (revision d0b2dbfa0ecf2bbc9709efc5e20baf8e4b44bbbf)
1
2unset LC_ALL
3export LC_CTYPE=en_US.ISO8859-1
4
5e=
6for i in 0 1 2 3; do
7	for j in 0 1 2 3 4 5 6 7; do
8		for k in 0 1 2 3 4 5 6 7; do
9			case $i$j$k in
10			000) continue ;;
11			esac
12			e="$e\n\\$i$j$k"
13		done
14	done
15done
16e1=$(printf "$e")
17e2="$(printf "$e")"
18[ "${#e1}" = 510 ] || echo length bad
19[ "$e1" = "$e2" ] || echo e1 != e2
20[ "$e1" = "$(printf "$e")" ] || echo quoted bad
21IFS=
22[ "$e1" = $(printf "$e") ] || echo unquoted bad
23