Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <514A99C9B14BD411A6600040052669AF0F632A@PDC-VEX-ATL> From: Frank Merenda To: "Michael L. Creech" , cygwin AT sourceware DOT cygnus DOT com Subject: RE: Newbie bash user problem--interactive bash will not run my sc ripts! Date: Wed, 30 Aug 2000 23:17:44 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" If you are in the directory where the script exists, try putting a ./ in front of the shell script, like: ./build-dist.sh That will tell your bash shell to execute the script from the current directory. I hope that helps! Thanks, Frank Merenda | Senior Software Engineer VetExchange | http://www.VetExchange.com fmerenda AT VetExchange DOT com "Don't believe the hype." -- Public Enemy > -----Original Message----- > From: Michael L. Creech [mailto:mike AT blueoaksoftware DOT com] > Sent: Wednesday, August 30, 2000 5:20 PM > To: cygwin AT sourceware DOT cygnus DOT com > Subject: Newbie bash user problem--interactive bash will not run my > scripts! > > > 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: > > 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 >