Re: EMX runtime and command line arguments

<[email protected]> Sun, 18 Jan 2004 22:03:19 +0100
Newsgroups gmane.comp.ide.emx.devel
Organization http://freemail.web.de/
Message-ID <[email protected]>
Andreas wrote:

> argv[0] = "cmd";
> argv[1] = "/c";
> argv[2] = "very";
> argv[3] = "long";
> argv[4] = "command";
> argv[5] = "line";
> argv[6] = NULL;
> 
> Is this correct?

IIRC: No. cmd.exe expects the argument of /c to be one argument.  Just like Unix shells
take only one argument for -c.  Arguments beyond that argument have a different meaning.

IIRC: As the (de)quoting algorithm used by cmd.exe (at least for /c) differs from that one
of other programs, emx.dll treats cmd.exe specially.

Eberhard