www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/09/08/03:37:49

Date: Sun, 8 Sep 1996 10:17:18 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Chris Waters <design AT netcom DOT com>
Cc: djgpp AT delorie DOT com
Subject: Re: executing unix scripts under dos
In-Reply-To: <designDxDyHt.31n@netcom.com>
Message-Id: <Pine.SUN.3.91.960908101017.5416Z-100000@is>
Mime-Version: 1.0

On Sat, 7 Sep 1996, Chris Waters wrote:

> Another thing that will cause you major headaches:  running scripts from
> compiled C programs.  One of my biggest complaints about DJGPP is that
> the system() command is always trying to second-guess me about how
> something should be executed.  I have a very UNIX-like command-line
> environment, but DJGPP tries to avoid using my command line, which I
> hate.  (I also hate that it doesn't recognize 4DOS's .btm files or
> ``executable extensions'' too.  This makes its second-guessing all but
> useless to me.)

You might find comfort in the fact that the next release of DJGPP will
stop second-guessing your $SHELL.  The new version of `system' should
allow you to use a Unix-style shell at its full power (it looks at the
value of $SHELL in the environment and uses that).  The 4DOS .btm
extension is also supported, as well as direct execution of shell scripts
with no extension.  The new version of Make will also use $SHELL in the
same circumstances where Make on Unix would call a shell.  If you would
like to help testing the next version, please contact me for details. 

- Raw text -


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