Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Unsubscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-Id: <3.0.5.32.19990820131415.00d7be70@pop.ma.ultranet.com> X-Sender: lhall AT pop DOT ma DOT ultranet DOT com X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32) Date: Fri, 20 Aug 1999 13:14:15 -0400 To: Phil LaVallee From: "Larry Hall (RFK Partners, Inc)" Subject: Re: Command Live vs. Makefile command Cc: "cygwin AT sourceware DOT cygnus DOT com" In-Reply-To: <566AB05D9AE0D21192DC0090273C9D120ABA85@primary> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 01:00 PM 8/20/99 -0400, you wrote: >Hi, > Does anyone have any ideas why the following Bourne shell >"script" works from the command line but when passed into the shell from >a makefile crashes. > >[host=PHIL] make target >if [ ! -d nt ] ; then echo NO; fi >! was unexpected at this time. >make: *** [target] Error 0x1 > >[host=PHIL] cat -t -v -e makefile >$ >target : $ >^Iif [ ! -d nt ] ; then echo NO; fi$ > >[host=PHIL] if [ ! -d nt ] ; then echo NO; fi >NO >[host=PHIL] > > This installation was done prior to my arrival so I suspect it >may be some environmental/setup issues but I'm not sure. Any help would >be greatly appreciated. > >Thanks, >Phil > >------------------------------------------------------------------------ >----------------- >Phillip E. LaVallee >Software Configuration Management Engineer >Ignitus Communications >(978) 929-9133 x353 > > Probably because you are running in bash interactively but /bin/sh using the makefile and /bin/sh != /bin/bash on your system. /bin/sh by default is ash, not bash. ash is faster than bash but it doesn't understand allot of stuff that bash (and any other decent shell) does. Check this and if this is the problem, I'd recommend switching sh to be bash (although feel free to patch ash if you really want to!;-)) Larry Hall lhall AT rfk DOT com RFK Partners, Inc. http://www.rfk.com 118 Washington Street (508) 893-9779 - RFK Office Holliston, MA 01746 (508) 893-9889 - FAX (508) 560-1285 - cell phone -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com