]>
Commit | Line | Data |
---|---|---|
deb63bfb | 1 | # $FreeBSD: head/bin/sh/tests/expansion/cmdsubst3.0 218819 2011-02-18 20:37:09Z jilles $ |
71aad674 A |
2 | |
3 | unset LC_ALL | |
4 | export LC_CTYPE=en_US.ISO8859-1 | |
5 | ||
6 | e= | |
7 | for 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 | |
16 | done | |
17 | e1=$(printf "$e") | |
18 | e2="$(printf "$e")" | |
19 | [ "${#e1}" = 510 ] || echo length bad | |
20 | [ "$e1" = "$e2" ] || echo e1 != e2 | |
21 | [ "$e1" = "$(printf "$e")" ] || echo quoted bad | |
22 | IFS= | |
23 | [ "$e1" = $(printf "$e") ] || echo unquoted bad |