]> git.saurik.com Git - apple/shell_cmds.git/blame - sh/tests/expansion/cmdsubst3.0
shell_cmds-207.11.1.tar.gz
[apple/shell_cmds.git] / sh / tests / expansion / cmdsubst3.0
CommitLineData
deb63bfb 1# $FreeBSD: head/bin/sh/tests/expansion/cmdsubst3.0 218819 2011-02-18 20:37:09Z jilles $
71aad674
A
2
3unset LC_ALL
4export LC_CTYPE=en_US.ISO8859-1
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\n\\$i$j$k"
14 done
15 done
16done
17e1=$(printf "$e")
18e2="$(printf "$e")"
19[ "${#e1}" = 510 ] || echo length bad
20[ "$e1" = "$e2" ] || echo e1 != e2
21[ "$e1" = "$(printf "$e")" ] || echo quoted bad
22IFS=
23[ "$e1" = $(printf "$e") ] || echo unquoted bad