On Tue, 21 Oct 1997 16:49:10 -0700 (PDT), Dean Gaudet wrote:
>> I would think you could just use \"Program Files"\ and have it work as well...
>
>The problem is that under unix it's the shell's job to bust up the command
>line arguments and pass them to the program in an argv[] vector, so this
>works fine. Under WIN32 (and DOS, and OS/2, and Win 16) the program is
>passed an unparsed single string from the command line. It then has to
>bust it up ... and the C runtime typically busts it up on whitespace
>boundaries to form argv[].
>
>A user reported that "\Program Files\Apache" didn't work. So I'm guessing
>that Microsoft's C runtime doesn't grok quotes. Which is annoying.
Sounds pretty broken to me. I just tried Borland, Watcom and emx gcc (under
OS/2). ALL handle quotes on the command line correctly (strip quotes, making
contents a single argv[] entry).
So who picked MS C anyway? Isn't there a gcc for Win32 now?
--
______________________________________________________________________________
| Brian Havard | "He is not the messiah! |
| brianh@kheldar.apana.org.au | He's a very naughty boy!" - Life of Brian |
------------------------------------------------------------------------------
|