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: bad install ?


On 01 February 2007 21:13, C Wells wrote:

> I can't figure out what I have done or not done to
> make .sh scripts NOT run in my seemingly ok cygwin
> install.
> 
> My script.sh
> #!/bin/bash
> PATH=/bin:/usr/bin
> echo OK
> 
> # bash -x script.sh
> + PATH=$'/bin:/usr/bin\r'
> + $'\r'
>> command not found
> + $'\r'
>> command not found
> 
> Is it a Unix - DOS thing ?

  Yep.  Use d2u on it, and try to use a text editor with cygwin that can
create files with unix-style LF line-endings instead of win-style CRLF.


    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]