From: Austin Ziegler Date: 2005-07-17T05:25:29+09:00 Subject: Re: Bug in ruby's command line parsing On 7/16/05, mathew wrote: > Eric Hodel wrote: > > On 15 Jul 2005, at 20:09, Doug Kearns wrote: > >> Assuming quoting in Windows works in some sane way; "C:\" "D:\" is > >> equivalent to "C:\" D:\"" ie. one word > > Agreed, I don't think this is ruby's fault > Right. The problem is that Windows' use of '\' as both path separator > and string escape character, leads to unexpected behavior. > I think it's a bit beyond Ruby's scope to try to fix that... I'm not sure. I confirmed what Nobu said, regarding it being a Visual C++ problem. Also, doubling the backslashes in this case gives the expected result. However, as I pointed out with the batch file case, not everything exhibits it. I'm not sure if this is something that Ruby can or should fix. More than that, I didn't get the result that Lothar reported (e.g., 'C:\" D:\"') but 'C:" D:"'. The answer is unclear on this. -austin -- Austin Ziegler * halostatue@gmail.com * Alternate: austin@halostatue.ca