Date: Sun, 19 Jan 1997 09:26:48 +0200 (IST) From: Eli Zaretskii To: Andy Eskilsson cc: djgpp AT delorie DOT com Subject: Re: /bin/sh in make, using /bin/sh! In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On 16 Jan 1997, Andy Eskilsson wrote: > Well now finally when I have a /bin/sh (YEP! I put bash there ;-), I > would like make to use /bin/sh instead of command.com.. it seems > hardcoded into make.. because when I set SHELL to bash in the makefile > it works fine.. or maybe it is just to set COMSPEC=bash?? (thought > just struck me..) One way to get Make to use /bin/sh is to set SHELL in the environment: set SHELL=c:/bin/sh.exe Note that when you do that, you are expected to define a full pathname of the shell, including the .exe extension, whereas when you set SHELL from the Makefile, Make will find it even if you don't mention the extension. That's because many Makefile's say SHELL=/bin/sh, and I wanted them to run on MSDOS unaltered. If you are serious about using bash as your shell for Makefiles, please read the file README.dos in the *source* distribution of the Make port (v2gnu/mak375s.zip; by omission that file didn't make it into the binary distribution, sorry). That file explains some important points about the way Make 3.75 handles the shell issue on MSDOS.