www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/19/02:46:35

Date: Sun, 19 Jan 1997 09:26:48 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Andy Eskilsson <x-aes AT telelogic DOT se>
cc: djgpp AT delorie DOT com
Subject: Re: /bin/sh in make, using /bin/sh!
In-Reply-To: <ksg202uign.fsf@telelogic.se>
Message-ID: <Pine.SUN.3.91.970119091919.22250C-100000@is>
MIME-Version: 1.0

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.

- Raw text -


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