Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-Id: From: "Fleischer, Karsten (K.)" To: "'Heinz-Juergen Oertel'" , "Cygwin (E-mail)" 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) Content-Type: text/plain; charset="iso-8859-1" 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