public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Larry Hall (RFK Partners, Inc)" <lhall@rfk.com>
To: Phil LaVallee <Phil@Ignitus.com>
Cc: "cygwin@sourceware.cygnus.com" <keith@tardis.ed.ac.uk>
Subject: Re: Command Live vs. Makefile command
Date: Fri, 20 Aug 1999 10:16:00 -0000	[thread overview]
Message-ID: <3.0.5.32.19990820131415.00d7be70@pop.ma.ultranet.com> (raw)
In-Reply-To: <566AB05D9AE0D21192DC0090273C9D120ABA85@primary>

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@rfk.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@sourceware.cygnus.com

WARNING: multiple messages have this Message-ID
From: "Larry Hall (RFK Partners, Inc)" <lhall@rfk.com>
To: Phil LaVallee <Phil@Ignitus.com>
Cc: "cygwin@sourceware.cygnus.com" <keith@tardis.ed.ac.uk>
Subject: Re: Command Live vs. Makefile command
Date: Tue, 31 Aug 1999 23:49:00 -0000	[thread overview]
Message-ID: <3.0.5.32.19990820131415.00d7be70@pop.ma.ultranet.com> (raw)
Message-ID: <19990831234900.jUhjkCLdbt501oWFvvnjDiNCUTY2bpAVJVgYD4IV2TM@z> (raw)
In-Reply-To: <566AB05D9AE0D21192DC0090273C9D120ABA85@primary>

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@rfk.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@sourceware.cygnus.com

  reply	other threads:[~1999-08-20 10:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-08-20 10:03 Phil LaVallee
1999-08-20 10:16 ` Larry Hall (RFK Partners, Inc) [this message]
1999-08-31 23:49   ` Larry Hall (RFK Partners, Inc)
1999-08-31 23:49 ` Phil LaVallee

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3.0.5.32.19990820131415.00d7be70@pop.ma.ultranet.com \
    --to=lhall@rfk.com \
    --cc=Phil@Ignitus.com \
    --cc=keith@tardis.ed.ac.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).