Mail Archives: djgpp/1996/12/19/01:57:28
On Wed, 18 Dec 1996 kagel AT quasar DOT bloomberg DOT com wrote:
> Of course this is exactly what system does except that the process the
> execprog argument system uses is: "command -c myjob" rather than "myjob"
> which permits myjob to be a script.
This is incorrect. `system' only calls COMMAND.COM when its argument
turns out to be an invocation of a batch file, or of an internal command
(like `set' or `time'). In all other cases, it does the job by itself,
eventually calling `spawnve'. COMMAND.COM is too dumb to let it do this
job. For details, see the docs of `system' in the libc reference.
- Raw text -