[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [TSVN] [SubWCRev] Usage question: Paths

From: Simon Large <slarge_at_slarge.plus.com>
Date: 2005-05-27 14:56:31 CEST

johan.stenqvist@skandia.se wrote:
>> From: Simon Large [mailto:slarge@slarge.plus.com]
>> You have escaped the closing quote out. If you want a
>> backslash (which you shouldn't need anyway) you have to
>> double it: "%1\\"
>>
> Hmm, you seem to be right - it does work when I remove the
> last backslash - but since this is a batch script (.bat) I didn't
> think you could escape with a backslash? And what about the other
> backslashes in the path - I mean wouldn't they mean escapes as well?

I'm not exactly clear about where the escaping is happening. It is only
certain characters that get escaped, quotes being one of them.

> Maybe subwcrev should be modified to properly escape path strings
> passed to it as arguments? Or, at least have it's help message
> indicating that you should only pass it properly escaped path strings.

I think this is happening before it even gets as far as SubWCRev.
Whatever parses the command line into argc/argv has already happened
before we get into main(). In my very old Zorland C compiler (when I had
an 8086 PC with 640K RAM), you could link in your own command line
parser instead of the system one, but I have no idea whether that sort
of thing would work here.

Simon

-- 
       ___
  oo  // \\      "De Chelonian Mobile"
 (_,\/ \_/ \     TortoiseSVN
   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
   /_/   \_\     http://tortoisesvn.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Fri May 27 14:55:48 2005

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.