##// END OF EJS Templates
'\' should be escaped twice, for the shell, and for tr
Benoit Boissinot -
r7273:84f80791 default
parent child Browse files
Show More
@@ -35,7 +35,7 b' hg revert --no-backup foo'
35 rm foo
35 rm foo
36 # Under unix: file:///foobar/blah
36 # Under unix: file:///foobar/blah
37 # Under windows: file:///c:/foobar/blah
37 # Under windows: file:///c:/foobar/blah
38 patchurl=`echo $HGTMP/url.diff | tr '\\' /`
38 patchurl=`echo $HGTMP/url.diff | tr '\\\\' /`
39 expr $patchurl : "\/" > /dev/null
39 expr $patchurl : "\/" > /dev/null
40 if [ $? -ne 0 ]; then
40 if [ $? -ne 0 ]; then
41 patchurl='/'$patchurl
41 patchurl='/'$patchurl
General Comments 0
You need to be logged in to leave comments. Login now