Re: EMX runtime and command line arguments
Andreas Buening <[email protected]> Sat, 17 Jan 2004 21:36:40 +0100
| Newsgroups | gmane.comp.ide.emx.devel |
|---|---|
| Message-ID | <[email protected]> |
[email protected] wrote: > > Ily wrote: > > > There is no "original argv". The OS/2 model of IPC between the parent > > and the child is not argc/argv, as on Unix, but a pair of strings: > > "program name" and "the rest of the command line" (actually, there may > > be more strings than 2 - this is a very weak spot in the OS/2 design). > > I have to correct the two of us: if an emx program calls an emx program, > the argv elements are passed separately and no parsing will be done. Thank you both very much! Just to make sure I've understood correctly: If I want to run a cmd command line with spawn*() then I can use argv[0] = "cmd"; argv[1] = "/c"; argv[2] = "very long command line"; argv[3] = NULL; which is 100% identical to the case if I split the command line into pieces like the following: argv[0] = "cmd"; argv[1] = "/c"; argv[2] = "very"; argv[3] = "long"; argv[4] = "command"; argv[5] = "line"; argv[6] = NULL; Is this correct? Are there any known limits for the cmd command line arguments? Bye, Andreas