patchbomb: fix 'echo -en' bashism in test-patchbomb
authorMarti Raudsepp <marti@juffo.org>
Fri, 06 Nov 2009 13:48:17 +0200
changeset 9730 732fc0e9d411
parent 9729 aa9ccab5af37
child 9731 0e080d519d1b
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).
tests/test-patchbomb
--- a/tests/test-patchbomb	Thu Nov 05 17:38:03 2009 -0500
+++ b/tests/test-patchbomb	Fri Nov 06 13:48:17 2009 +0200
@@ -172,7 +172,7 @@
  -c bar -s test -r 0:1 | fixheaders
 
 echo "% test multi-byte domain parsing"
-UUML=`echo -en '\xfc'`
+UUML=`printf '\374'`
 export HGENCODING=iso-8859-1
 hg email --date '1980-1-1 0:1' -m tmp.mbox -f quux -t "bar@${UUML}nicode.com" \
   -s test -r 0