delorie.com/archives/browse.cgi | search |
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: | <B0012462772@mzdy05.allegro.net> |
From: | "Fleischer, Karsten (K.)" <kfleisc1 AT ford DOT com> |
To: | "'Heinz-Juergen Oertel'" <oe AT port DOT de>, |
"Cygwin (E-mail)" | |
<cygwin AT sourceware DOT cygnus DOT com> | |
Subject: | RE: Shell spawning and environment problem on W2K |
Date: | Wed, 2 Aug 2000 05:52:04 -0400 |
MIME-Version: | 1.0 |
X-Mailer: | Internet Mail Service (5.5.2651.58) |
Default for SHELL is sh.exe, this should be the same as /bin/sh. I just found out something interesting. First look at this makefile: ============ SHELL=/bin/sh export TIME:=$(shell date) target: @echo $(SHELL) $(TIME) ============= This prints out "/bin/sh" and the current date and time. Now look at this one (note the quotes around /bin/sh): ============ SHELL="/bin/sh" export TIME:=$(shell date) target: @echo $(SHELL) $(TIME) ============= This one prints nonsense and fails with error 127, at least on my system. Where is the difference? IMHO both makefiles should do the same. -----Original Message----- From: Heinz-Juergen Oertel [mailto:oe AT port DOT de] Sent: Mittwoch, 2. August 2000 10:40 To: Fleischer, Karsten (K.) Cc: 'cygwin AT sourceware DOT cygnus DOT com' Subject: Re: Shell spawning and environment problem on W2K "Fleischer, Karsten (K.)" wrote: > > The lowercase $(shell ...) statement is a builtin GNU Make function and has > nothing to do with the $(SHELL) variable, expcept that the specified shell > is used for command execution. My question is: why does command execution > does not work properly when I specify /bin/sh explicitly? > > Karsten > can you see any difference in the used shell, e.g. is /bin/sh the same that is used without specifying SHELL ? Heinz -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |