X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f Date: Wed, 26 Dec 2001 18:51:48 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: big10p AT hotmail DOT com (Chris Chadwick) Message-Id: <8361-Wed26Dec2001185148+0200-eliz@is.elta.co.il> X-Mailer: emacs 21.1.50 (via feedmail 8 I) and Blat ver 1.8.9 CC: djgpp AT delorie DOT com In-reply-to: <809aeb88.0112260726.69d82c97@posting.google.com> (big10p AT hotmail DOT com) Subject: Re: Should I use bash as default shell in makefiles? References: <809aeb88 DOT 0112171814 DOT 317a55ad AT posting DOT google DOT com> <200112200325 DOT fBK3P8528329 AT envy DOT delorie DOT com> <809aeb88 DOT 0112200908 DOT 59cd0b1f AT posting DOT google DOT com> <3C25BBD6 DOT 69061DAF AT is DOT elta DOT co DOT il> <809aeb88 DOT 0112260726 DOT 69d82c97 AT posting DOT google DOT com> 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 > From: big10p AT hotmail DOT com (Chris Chadwick) > Newsgroups: comp.os.msdos.djgpp > Date: 26 Dec 2001 07:26:49 -0800 > > > > You can eat that cake and have it, too: add "SHELL = /bin/sh" line to > > your Makefile, and Make will invoke Bash to run commands such as the > > one above. You don't need to make Bash your interactive shell for > > this to work. (You _do_ need to install the ported Bash, though.) > > This was what I was getting at in my OP although I probably didn't > word it very well. I'm still a bit confused about "SHELL = /bin/sh" > though: doesn't this make sh.exe the default shell, not bash.exe? In DJGPP, sh.exe is a ``symlink'' to bash.exe. If you look at bin/sh.exe on your system, you will see that it's only 2KB long. That's simply a stub loader which was configured to load the code from bash.exe. So you could say "SHELL = /bin/bash" as well, it's just that /bin/sh is more portable, since some Unix systems don't have Bash. > Or > is sh a part of bash? Sorry, but like I said, I'm not familiar with > all this posix/unix stuff, yet :) For more about the "SHELL = /bin/sh" magic, read the file README.dos in the Make distribution (mak3791b.zip).