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

Re: Acceptable quoting of command-line arguments?

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Sun, 09 May 2010 11:13:44 +0200

On 06.05.2010 05:57, Albert Dvornik wrote:
> Right now, TortoiseMerge accepts command line arguments with values
> either unquoted (-key:val) or with just the value quoted (-key:"val").
> In particular, quoting the key with the value ("-key:val") is not
> currently supported.
> Unfortunately, environments where the command line is generated from
> an argv-like array (e.g. Cygwin or MSYS) don't have a good way of
> divining where to put quotes for arguments that contain whitespace, so
> they quote the whole string. This makes invoking TortoiseMerge there
> more complicated, although you *can* use cmd /c as an intermediary to
> get the right quoting.
> So, my questions are:
> 1. Would it make sense to allow "-key:val" quoting for TortoiseMerge
> arguments? (I'm willing to submit a patch if that would help.)
> 2. Would it make sense to allow "-key:val" for all other commands that
> use CCmdLineParser as well? Or are there exceptions?
> 3. Any other concerns?
> (If the answer is "not our problem", I can understand that...)

If you want to try and get a patch ready for this, I'll be happy to
review and apply it.


   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2010-05-09 11:13:49 CEST

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