On Sun, Mar 20, 2005 at 12:06:51PM -0800, Yitzchak Scott-Thoennes wrote: > It's really a gray area. cygwin aims at providing a linux-like > environment, and when one cygwin program starts another, the args are > passed in an actual array; it's just when a non-cygwin program starts > a cygwin program that the latter needs to perform what's usually the > shell's job of breaking up the command line into parameters. > > For various and sundry reasons, in doing so, it only treats \ as an > escape character inside of "", so something like -DXS_VERSION=\"1.04\" > has the first \ as literal, and the second used to escape the second " > (leaving the opening " unmatched, but there's no way to reject > mismatched quotes as a shell would be able to do.) > > The only possible change I can see would be to not treat the first " > as opening a quoted section, since there's no matching ", but the code > that does all this is extremely hairy, and I'm really reluctant to try > messsing with it. > > Are you open to trying out the patch *after* 6.26 is out?
I'm doubtful. I like to avoid touching the XS code as much as possible. I'd rather wait and see how Cygwin deals with it.
