www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/12/19/01:57:28

Date: Thu, 19 Dec 1996 08:44:39 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: kagel AT dg1 DOT bloomberg DOT com
cc: bas AT teclink DOT net, djgpp AT delorie DOT com
Subject: Re: executing files
In-Reply-To: <9612181954.AA16227@quasar.bloomberg.com >
Message-ID: <Pine.SUN.3.91.961219083946.24763J-100000@is>
MIME-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019