delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com> |
List-Archive: | <http://sourceware.cygnus.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sourceware DOT cygnus DOT com> |
List-Help: | <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs> |
Sender: | cygwin-owner AT sourceware DOT cygnus DOT com |
Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
Message-ID: | <3888F6F1.2037EC8F@adaptivesilicon.com> |
Date: | Fri, 21 Jan 2000 16:16:58 -0800 |
From: | Steve Kelem <kelem AT adaptivesilicon DOT com> |
Organization: | Adaptive Silicon, Inc. |
X-Mailer: | Mozilla 4.7 [en] (WinNT; U) |
X-Accept-Language: | en,pdf |
MIME-Version: | 1.0 |
To: | Craig MacFarlane <craigm AT chemconnect DOT com> |
CC: | cygwin AT sourceware DOT cygnus DOT com |
Subject: | Re: Can't execute shell scripts. |
References: | <3888F4C6 DOT CF63BEAE AT chemconnect DOT com> |
--------------ADAB36922036EBFADF1CDCF3 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 AT sourceware DOT cygnus DOT com --------------ADAB36922036EBFADF1CDCF3 Content-Type: text/x-vcard; charset=us-ascii; name="kelem.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Steve Kelem Content-Disposition: attachment; filename="kelem.vcf" 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 AT adaptivesilicon DOT com title:Chief Scientist fn:Steve Kelem end:vcard --------------ADAB36922036EBFADF1CDCF3 Content-Type: text/plain; charset=us-ascii -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com --------------ADAB36922036EBFADF1CDCF3--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |