Mail Archives: djgpp/2001/03/05/02:16:27
On Sun, 4 Mar 2001, Rudolf Polzer wrote:
> So system() does not use the COMMAND.COM functionalities to execute a
> program but searches itself to emulate Unix behaviour, but does not use
> file extensions?
It does use the extensions, but much less than COMMAND.COM does.
Also, there are much more significant benefits to not calling
COMMAND.COM, such as support for long command lines, file names quoted
'like this', forward slashes in redirection, returning the program's
exit status to the parent, etc.
> So system() can call exe files with another extension
> (.xxy for example)? MZ at the beginning and it is treated as
> .EXE?
Yes. In fact, the MZ signature is so strongly believed that you don't
need any extension at all to run such an executable from a DJGPP
program.
- Raw text -