Newbie bash user problem--interactive bash will not run my scripts!

Frank Merenda fmerenda@offmail.vetexchange.com
Wed Aug 30 20:20:00 GMT 2000


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@VetExchange.com

"Don't believe the hype." 

-- Public Enemy

> -----Original Message-----
> From: Michael L. Creech [ mailto:mike@blueoaksoftware.com ]
> Sent: Wednesday, August 30, 2000 5:20 PM
> To: cygwin@sourceware.cygnus.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:
> 
> <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@sourceware.cygnus.com
> 

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



More information about the Cygwin mailing list