www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/03/05/02:16:27

Date: Mon, 5 Mar 2001 09:14:12 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Rudolf Polzer <rpolzer AT web DOT de>
cc: djgpp AT delorie DOT com
Subject: Re: Penalty for immature language (PERL/BASH)
In-Reply-To: <slrn9a56dn.7do.rpolzer@rebounce.rpolzer-lx>
Message-ID: <Pine.SUN.3.91.1010305091352.23825B@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

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 -


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