This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: Can't execute shell scripts.
- To: Craig MacFarlane <craigm at chemconnect dot com>
- Subject: Re: Can't execute shell scripts.
- From: Steve Kelem <kelem at adaptivesilicon dot com>
- Date: Fri, 21 Jan 2000 16:16:58 -0800
- CC: cygwin at sourceware dot cygnus dot com
- Organization: Adaptive Silicon, Inc.
- References: <3888F4C6.CF63BEAE@chemconnect.com>
It's usually because the 1st line of your script refers to a program
that isn't in the place you specified. The script works if you invoke
sh directly, because the 1st line of your script starts with a #
character, making it a comment.
> Pardon if this is a FAQ, but I couldn't find an
> answer in the FAQ.
>
> I can't execute shell scripts.
>
> bash-2.02$ foo.sh
> bash: foo.sh: No such file or directory
>
> bash-2.02$ ./foo.sh
> bash: ./foo.sh: No such file or directory
>
> Only by prepending sh does it work.
>
> bash-2.02$ sh foo.sh
>
> Why is this?
>
> Craig
>
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe@sourceware.cygnus.com
begin:vcard
n:Kelem;Steve
tel;fax:408-399-8905
tel;work:408-399-8900x18
x-mozilla-html:FALSE
url:http://www.adaptivesilicon.com
org:Adaptive Silicon, Inc.
adr:;;985 University Ave., Suite 31;Los Gatos;CA;95032-7639;U.S.
version:2.1
email;internet:kelem@adaptivesilicon.com
title:Chief Scientist
fn:Steve Kelem
end:vcard
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com