delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/05/04/13:11:58

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
From: "Dave Korn" <dave DOT korn AT artimi DOT com>
To: <cygwin AT cygwin DOT com>
Subject: RE: pwd vs $PWD, bash, cygwin vs Linux
Date: Wed, 4 May 2005 18:11:41 +0100
MIME-Version: 1.0
In-Reply-To: <20050504160421.GQ24661@trixie.casa.cgf.cx>
Message-ID: <SERRANODOv5y4FypKsE00000201@SERRANO.CAM.ARTIMI.COM>
X-OriginalArrivalTime: 04 May 2005 17:11:43.0332 (UTC) FILETIME=[58349A40:01C550CC]

----Original Message----
>From: Christopher Faylor
>Sent: 04 May 2005 17:04

> On Wed, May 04, 2005 at 04:38:08PM +0100, Dave Korn wrote:

> Maybe because fixing the Makefile means not having to remember to type
> "SHELL=/bin/bash.exe" every time you invoke make?  

s,every time you invoke make,on those rare occasions when you invoke make on
a buggy non-portable makefile that specifically is non-portable in this
particular fashion of expecting bash behaviour from any arbitrary /bin/sh
implementation,g

>That's why I didn't
> suggest this in my first response even though I'm a makefile *guru*.

  I guess that first post of mine must _still_ not have arrived then,
because all I said was to use the $SHELL variable:  I have never at any
point *denied* there is more than one way to set a make variable.
 
> Of course, you could just put a
> 
> SHELL = /bin/bash
> 
> in the Makefile but then, gasp!, you'd be modifying the makefile and
> shirley you don't intend every person in this space time continuum to do
> that.

  I'm not clear now... are you recommending changing the makefile locally,
or not?!

  In any case, it's not necessarily the most appropriate answer to give in
reply to a post that asked "What if it is not your makefile?", which I
implicitly took as meaning "Is there a solution that *doesn't* involve
editing the makefile?".

> I guess if your goal is to just build a package and forget about it, then
> using the command line is acceptable.  You just have to remember to do
> that again, when you build the package in six months.

  Whereas with your solution, you only have to remember to edit the makefile
and add "SHELL=/bin/bash" again, when you build the package in six months.
Hey, I really don't see one of those as being any more or less  difficult /
easy / reliable / errorprone than the other.

>  Or, maybe you
> could make a shell alias!  Yeah, that's the ticket.
> 
> cgf

  My *goal* was to suggest a solution that met the requirements specified by
the OP:

"Make is spawning ash as the subshell, not bash.  [ ...snip... ] Can that 
behaviour be modified at the runtime/user/Makefile level?"

  The answer I gave was simple and correct and pointed at the *technique*
without specifying a particular implementation:

"The make documentation regarding $SHELL would suggest so."

  When my first post seemed to have entirely skipped below everyone's
threshold of perception, I posted a concrete example.  I didn't say it was
the only way to do it.




    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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