# HG changeset patch # User Marti Raudsepp # Date 2009-11-06 11:48:17 # Node ID 732fc0e9d411e0b94e56779d4ac053ceac0349e4 # Parent aa9ccab5af3753a0ebe7a8a240ba8f1acb78df4a 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). diff --git a/tests/test-patchbomb b/tests/test-patchbomb --- a/tests/test-patchbomb +++ b/tests/test-patchbomb @@ -172,7 +172,7 @@ hg email --date '1970-1-1 0:1' -n --flag -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