delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/06/25/20:56:42

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <003a01c0fdd6$7b448290$6464648a@ca.boeing.com>
From: "Michael A. Chase" <mchase AT ix DOT netcom DOT com>
To: "Earl Chew" <earl_chew AT agilent DOT com>, <cygwin AT sources DOT redhat DOT com>
References: <3B37B58B DOT F87EA366 AT agilent DOT com>
Subject: Re: Shell avoidance in make-3.79.1-3
Date: Mon, 25 Jun 2001 17:22:53 -0700
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400

Advice:  Don't do that! :}b

I'm a bit slow today, what is the problem with make using /bin/sh?

Make needs _something_ to interpret shell commands.  The ash shell which is
normally used for /bin/sh under Cygwin is a quicker shell than bash that is
sufficient for the sorts of things make wants a shell to do.
--
Mac :})
** I normally forward private questions to the appropriate mail list. **
Give a hobbit a fish and he eats fish for a day.
Give a hobbit a ring and he eats fish for an age.
----- Original Message -----
From: "Earl Chew" <earl_chew AT agilent DOT com>
To: <cygwin AT sources DOT redhat DOT com>
Sent: Monday, June 25, 2001 15:04
Subject: Shell avoidance in make-3.79.1-3


> Can anyone offer some advice /bin/sh avoidance with make?
>
> I'm trying to figure out how to trigger make-3.79.1-3 to avoid
> invoking /bin/sh unnecessarily.
>
> I construct a makefile:
>
> all: ; sleep 15
>
> Then I try:
>
> bash-2.05$ echo $SHELL
> /bin/sh
> bash-2.05$ ps
>       PID    PPID    PGID     WINPID TTY  UID    STIME COMMAND
>       317       1     317        317  -1  500 14:59:36 /bin/bash
>       261     317     261        458  -1  500 14:59:36 /usr/bin/ps
> bash-2.05$ make -f ../foo.mk
> ps
>       PID    PPID    PGID     WINPID TTY  UID    STIME COMMAND
>       317       1     317        317  -1  500 14:59:36 /bin/bash
>       461     317     461        549  -1  500 14:59:41 /usr/bin/make
>       591     461     461        224  -1  500 14:59:41 /bin/sh
>       662     591     461        585  -1  500 14:59:41 /usr/bin/ps
>
> I then try with SHELL unset:
>
> bash-2.05$ unset SHELL
> bash-2.05$ echo $SHELL
>
> bash-2.05$ make -f ../foo.mk
> ps
>       PID    PPID    PGID     WINPID TTY  UID    STIME COMMAND
>       317       1     317        317  -1  500 14:59:36 /bin/bash
>       465     317     465        563  -1  500 15:01:41 /usr/bin/make
>       666     465     465        620  -1  500 15:01:41 /bin/sh
>       699     666     465        710  -1  500 15:01:41 /usr/bin/ps



--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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