'\' should be escaped twice, for the shell, and for tr

This commit is contained in:
Benoit Boissinot 2008-10-28 08:18:11 +01:00
parent b16c2d675b
commit 6d87d8209c

View File

@ -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