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 X-Authentication-Warning: hp2.xraylith.wisc.edu: khan owned process doing -bs Date: Wed, 21 Feb 2001 22:08:36 -0600 (CST) From: Mumit Khan To: cygwin AT cygwin DOT com Subject: Re: sh.exe: Command not found In-Reply-To: <20010221223819.A8880@redhat.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Wed, 21 Feb 2001, Christopher Faylor wrote: > Well, you have both renamed it and moved it to a nonstandard location. > I wonder if that is your problem. Usually sh.exe is expected to be in > the standard /bin location. Does /bin/sh.exe exist? Actually, Cygwin port of GNU make uses sh.exe as the default SHELL variable unlike the other Unix ports' /bin/sh. Which means that if sh.exe is not in the PATH, then it won't work. Of course, the solution is trivial: $ make SHELL=/path/to/sh.exe ... Try the following to check: $ cat foo.mak all: @echo "SHELL = $(SHELL)" @$(SHELL) -c "echo SHELLOPTS = $$SHELLOPTS" $ make -f foo.mak SHELL = sh.exe sh.exe -c "echo SHELLOPTS = $SHELLOPTS" SHELLOPTS = $ make SHELL=bash -f foo.mak SHELL = bash bash -c "echo SHELLOPTS = $SHELLOPTS" SHELLOPTS = braceexpand:hashall:interactive-comments Remember running into this issue before Cygwin adopted the current (and sane!) layout.. Regards, Mumit -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple