'\' should be escaped twice, for the shell, and for tr
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Tue, 28 Oct 2008 08:18:11 +0100
changeset 7273 84f807918864
parent 7272 9105467b8167
child 7274 95f3694cc5a4
'\' should be escaped twice, for the shell, and for tr
tests/test-mq-qimport
--- a/tests/test-mq-qimport	Tue Oct 28 00:03:28 2008 +0100
+++ b/tests/test-mq-qimport	Tue Oct 28 08:18:11 2008 +0100
@@ -35,7 +35,7 @@
 rm foo
 # Under unix: file:///foobar/blah
 # Under windows: file:///c:/foobar/blah
-patchurl=`echo $HGTMP/url.diff | tr '\\' /`
+patchurl=`echo $HGTMP/url.diff | tr '\\\\' /`
 expr $patchurl : "\/" > /dev/null
 if [ $? -ne 0 ]; then
     patchurl='/'$patchurl