This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Help running bash scripts


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]