Date: Sun, 8 Sep 1996 10:17:18 +0200 (IST) From: Eli Zaretskii To: Chris Waters Cc: djgpp AT delorie DOT com Subject: Re: executing unix scripts under dos In-Reply-To: Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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.