comparison tests/test-patchbomb @ 9730:732fc0e9d411

patchbomb: fix 'echo -en' bashism in test-patchbomb The echo command doesn't accept options in some shells. printf is required by the SUSv2 (Single UNIX Specification v2).
author Marti Raudsepp <marti@juffo.org>
date Fri, 06 Nov 2009 13:48:17 +0200
parents f0e99a2eac76
children b39f98be96de
comparison
equal deleted inserted replaced
9729:aa9ccab5af37 9730:732fc0e9d411
170 echo "% test multiple flags for multiple patches" 170 echo "% test multiple flags for multiple patches"
171 hg email --date '1970-1-1 0:1' -n --flag fooFlag --flag barFlag -f quux -t foo \ 171 hg email --date '1970-1-1 0:1' -n --flag fooFlag --flag barFlag -f quux -t foo \
172 -c bar -s test -r 0:1 | fixheaders 172 -c bar -s test -r 0:1 | fixheaders
173 173
174 echo "% test multi-byte domain parsing" 174 echo "% test multi-byte domain parsing"
175 UUML=`echo -en '\xfc'` 175 UUML=`printf '\374'`
176 export HGENCODING=iso-8859-1 176 export HGENCODING=iso-8859-1
177 hg email --date '1980-1-1 0:1' -m tmp.mbox -f quux -t "bar@${UUML}nicode.com" \ 177 hg email --date '1980-1-1 0:1' -m tmp.mbox -f quux -t "bar@${UUML}nicode.com" \
178 -s test -r 0 178 -s test -r 0
179 cat tmp.mbox | fixheaders 179 cat tmp.mbox | fixheaders