[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-hackers] [patch] utils: qs not escaping pipes
From: |
Peter Bex |
Subject: |
Re: [Chicken-hackers] [patch] utils: qs not escaping pipes |
Date: |
Sun, 17 Feb 2013 22:36:30 +0100 |
User-agent: |
Mutt/1.4.2.3i |
On Sun, Feb 17, 2013 at 09:13:16PM +0100, Felix wrote:
> There is no correct version for Windows. Using double-quotes is as
> good as one can get. Note that using double quotes for the
> command-part of a qs'd shell command requires wrapping the whole
> command string into yet another pair of double quotes. I'm not making
> this up.
I found this:
http://technet.microsoft.com/en-us/library/cc723564.aspx
Seems to be pretty straightforward BASIC-style quotation: use double
quotes to quote strings, and repeat any embedded double quotes.
This looks somehow consistent with your mention of having to wrap a
complete command string in double quotes in some situations. Could
you verify this is how it works? If so, this should be simple to
fix: the existing implementation should work, but it should also
replace all " with "" inside the string.
Cheers,
Peter
--
http://www.more-magic.net
Re: [Chicken-hackers] [patch] utils: qs not escaping pipes, Michele La Monaca, 2013/02/19