From 6d87d8209ccb9ca5d3605bc318a973086f73d61b Mon Sep 17 00:00:00 2001 From: Benoit Boissinot Date: Tue, 28 Oct 2008 08:18:11 +0100 Subject: [PATCH] '\' should be escaped twice, for the shell, and for tr --- tests/test-mq-qimport | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test-mq-qimport b/tests/test-mq-qimport index a028bdec0d..cb5fc8a3ee 100755 --- a/tests/test-mq-qimport +++ b/tests/test-mq-qimport @@ -35,7 +35,7 @@ hg revert --no-backup foo 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