This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: sh.exe: Command not found


On 2001年2月21日, 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

AltStyle によって変換されたページ (->オリジナル) /