Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Date: Thu, 31 Aug 2000 09:24:21 -0400
From: Jason Tishler <Jason.Tishler@dothill.com>
To: "Michael L. Creech" <mike@blueoaksoftware.com>
Cc: cygwin@sourceware.cygnus.com
Subject: Re: Newbie bash user problem--interactive bash will not run my scripts!
Message-ID: <20000831092420.A1107@DP>
References: <NEBBIFNNCLFLKNLGGFBCGEEICDAA.mike@blueoaksoftware.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
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.Tishler@dothill.com
Hazlet, NJ 07730 USA                 WWW:   http://www.dothill.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

