X-Spam-Check-By: sourceware.org From: "Dave Korn" To: Subject: RE: Running .sh files on Cygwin Date: Wed, 17 Jan 2007 19:52:03 -0000 Message-ID: <013501c73a70$f5f46050$a501a8c0@CAM.ARTIMI.COM> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <6607d8850701171146h3fe58077qa79934b41d92fd74@mail.gmail.com> Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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 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/