Don't use single quotes as quotes in command-line parsing on windows?

Philippe Lhoste PhiLho at GMX.net
Sat Nov 7 15:08:08 GMT 2009


On 06/11/2009 18:51, Alexander Belchenko wrote:
> In my understanding this will break usual behavior of windows programs, 
> because standard windows shell and especially CommandLineToArgv Win32 
> API function does not support single quotes in this manner. Especially 
> as Martin (gzlist) noted it will break work with filenames which has 
> single quote inside:

I agree. For better or worse, single quotes have no shell meaning in 
Windows, something like del 'ab cd' will be perceived as a command with 
two arguments.

> I've sent merge proposal to disable support for single quote:
> 
> https://code.launchpad.net/~bialix/bzr/no-single-quote-on-win32/+merge/14537 

Not sure what I can do with this merge proposal, but well, I vocally 
give my two cents here...

-- 
Philippe Lhoste
--  (near) Paris -- France
--  http://Phi.Lho.free.fr
--  --  --  --  --  --  --  --  --  --  --  --  --  --




More information about the bazaar mailing list