delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/08/31/09:26:32

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Thu, 31 Aug 2000 09:24:21 -0400
From: Jason Tishler <Jason DOT Tishler AT dothill DOT com>
To: "Michael L. Creech" <mike AT blueoaksoftware DOT com>
Cc: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: Newbie bash user problem--interactive bash will not run my scripts!
Message-ID: <20000831092420.A1107@DP>
References: <NEBBIFNNCLFLKNLGGFBCGEEICDAA DOT mike AT blueoaksoftware DOT com>
Mime-Version: 1.0
User-Agent: Mutt/1.2.4i
In-Reply-To: <NEBBIFNNCLFLKNLGGFBCGEEICDAA.mike@blueoaksoftware.com>; from mike@blueoaksoftware.com on Wed, Aug 30, 2000 at 02:20:27PM -0700
Organization: Dot Hill Systems Corp.

Michael,

On Wed, Aug 30, 2000 at 02:20:27PM -0700, Michael L. Creech wrote:
>    /cygdrive/c/Work/gc/distrib 151%>build-dist.sh
>    BASH.EXE: ./build-dist.sh: No such file or directory
>    /cygdrive/c/Work/gc/distrib 152%>bash build-dist.sh
>    <script is executed and works fine!>
> 
> What am I missing??

At first I thought that your PATH did not include the current directory,
but I could not reproduce your problem by removing the current directory
from my PATH.

The following is a WAG...  What is the contents of the first line of
your script?  Does it point to a nonexistent shell on your system
(possibly /bin/sh)?

I can duplicate your problem with the following shell script:

--- begin a j.sh ---
#!/bin/sh2
echo hello
--- end a j.sh ---

    $ j.sh
    bash: ./j.sh: No such file or directory
    $ bash j.sh 
    hello

If I happen to be correct, then either change "#!/bin/sh" to
"#!/bin/bash" in your script or install /bin/sh (ie, ash).

Jason

-- 
Jason Tishler
Director, Software Engineering       Phone: +1 (732) 264-8770 x235
Dot Hill Systems Corporation         Fax:   +1 (732) 264-8798
82 Bethany Road, Suite 7             Email: Jason DOT Tishler AT dothill DOT com
Hazlet, NJ 07730 USA                 WWW:   http://www.dothill.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019