From: pjfarley AT dorsai DOT org (Peter J. Farley III) To: djgpp AT delorie DOT com Newsgroups: dorsai.test Subject: Is this error due to make, bash, or me? Date: Sun, 10 Aug 1997 20:03:32 GMT Message-ID: <33ee1e3e.8066476@news.dorsai.org> Precedence: bulk I can run the very simple makefile listed below on SunOS Release 4.1.3_U1, but under DJGPP/bash it always fails. I have listed the executables and versions I'm running for both bash and for make, then I cat the makefile and show the results of testing it under DJGPP/bash. I have created a sh.exe stub, as suggested in the bash documantation, so there is a /bin/sh to execute, and it points to bash.exe. I also list the results of running the makefile on SunOS for comparison. Question: Why do I get "Error -1" when I try to make the target "cshell" under DJGPP/bash? TIA for any help or info you can provide. Peter --------------- Exe/version info, cat makefile and tests ----------- bash.exe/test$ ls -l /bin/bash* -rwxr-xr-x 1 dosuser dos 403968 Jun 7 03:38 /bin/bash.exe bash.exe/test$ GNU bash, version 1.14.7(2) r3.1 w/multibyte extension bash.exe/test$ ls -l /bin/make.* -rwxr-xr-x 1 dosuser dos 168448 Oct 24 1996 /bin/make.exe bash.exe/test$ make --v GNU Make version 3.75, by Richard Stallman and Roland McGrath. Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Report bugs to . bash.exe/test$ cat makefile echo : echo ${SHELL} recurs : make cshell SHELL=/bin/sh cshell : echo ${SHELL} if test -f makefile ; then echo cshell ; fi bash.exe/test$ make echo /bin/sh /bin/sh bash.exe/test$ make cshell echo /bin/sh /bin/sh if test -f makefile ; then echo cshell ; fi make.exe: *** [cshell] Error -1 bash.exe/test$ make cshell SHELL=/bin/sh echo /bin/sh /bin/sh if test -f makefile ; then echo cshell ; fi make.exe: *** [cshell] Error -1 bash.exe/test$ make cshell SHELL=/bin/bash echo /bin/bash /bin/bash if test -f makefile ; then echo cshell ; fi make.exe: *** [cshell] Error -1 bash.exe/test$ ----------- SunOS versions and results ---------------------- [amanda]:~/test$ GNU bash, version 1.14.6(1) [amanda]:~/test$ make --v GNU Make version 3.72.1, by Richard Stallman and Roland McGrath. Copyright (C) 1988, 89, 90, 91, 92, 93, 94 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. [amanda]:~/test$ make echo /bin/sh /bin/sh [amanda]:~/test$ make cshell echo /bin/sh /bin/sh if test -f makefile ; then echo cshell ; fi cshell [amanda]:~/test$ make cshell SHELL=/usr/local/bin/bash echo /usr/local/bin/bash /usr/local/bin/bash if test -f makefile ; then echo cshell ; fi cshell [amanda]:~/test$ ---------------------------------------------------- Peter J. Farley III (pjfarley AT dorsai DOT org)