delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
From: | "Dave Korn" <dave DOT korn AT artimi DOT com> |
To: | "'cygwin'" <cygwin AT cygwin DOT com> |
Subject: | RE: Help running bash scripts |
Date: | Wed, 22 Nov 2006 12:27:14 -0000 |
Message-ID: | <023001c70e31$8ac178b0$a501a8c0@CAM.ARTIMI.COM> |
MIME-Version: | 1.0 |
X-Mailer: | Microsoft Office Outlook 11 |
In-Reply-To: | <001301c70df6$77e7e2f0$0a00a8c0@s3000p> |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
On 22 November 2006 05:24, David Christensen wrote: > Thierry wrote: >> running a simple sh script(test.sh): >> #!/bin/sh >> # test > >> $ ./test.sh >>> command not found > > Get this book: > > http://www.oreilly.com/catalog/bash3/index.html > > > "test" is a Bash built-in command ("man bash"; see CONDITIONAL > EXPRESSIONS). Avoid using that keyword in Bash scripts and anywhere > else Bash might trip over it (such as script and program names). "test" != "test.sh". No confusion is at all possible. Bash is not DOS and does not attempt to append .exe/.com/.bat extensions to every command filename entered, and nor does it try appending .sh either. cheers, DaveK -- Can't think of a witty .sigline today.... -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |