Date: Mon, 5 Mar 2001 09:14:12 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Rudolf Polzer cc: djgpp AT delorie DOT com Subject: Re: Penalty for immature language (PERL/BASH) In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk 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.