[comp.sys.atari.st] shell_p, MWC 2.0

rowley@ORVILLE.ARPA (Karl Rowley) (05/22/87)

MWC 2.0 provides a system() function that does not make use of shell_p.

The function first reads the environment variable SHELL.  If that is defined,
its location is searched for in PATH.  If SHELL is not defined, msh.prg is
searched for in PATH.  The command string passed to system() is then 
Pexec()'d with the shell (apparently using the -c option to msh).

This is a clean way of doing things.  Of course, there are other ways
of implementing the system() function without having the extra overhead 
of a shell process.


Karl Rowley
rowley@orville.nas.nasa.gov