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: Running .sh files on Cygwin


On 17 January 2007 19:47, K. Basu wrote:

> I am very new to Cygwin, and ran into the following problem while
> trying to run a .sh file. On typing ./filename.sh at the prompt, I get
> a series of  'command not found' errors on what I suppose are several
> line numbers from the .sh file, followed by a syntax error near
> unexpected token 'elf' and so on.
> 
> How should I fix this? Thanks for your help.


  Run d2u on your script file, it has the wrong kind of line-endings (DOS
style CRLF instead of *nix style LF).


    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]