delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/08/30/17:24:09

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
From: "Michael L. Creech" <mike AT blueoaksoftware DOT com>
To: <cygwin AT sourceware DOT cygnus DOT com>
Subject: Newbie bash user problem--interactive bash will not run my scripts!
Date: Wed, 30 Aug 2000 14:20:27 -0700
Message-ID: <NEBBIFNNCLFLKNLGGFBCGEEICDAA.mike@blueoaksoftware.com>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200

There must some really simple thing I'm doing wrong.

I can take any script, such as foo.sh and attempt to run it from a bash
command prompt and it claims it can not find the file. However, if I simply
put 'bash' in front of the command, it works (also if I type 'bash' at a
bash command prompt to run a nested shell, it works). For example:

<run bash by clicking on desktop icon that the cygwin install created--ends
up executing 'bash.exe --login -i'>

   /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??

OS: Win98SE
Bash version: GNU bash, version 2.04.0(1)-release (i586-pc-cygwin)

--
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