delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/02/02/05:54:16

X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave DOT korn AT artimi DOT com>
To: <cygwin AT cygwin DOT com>
References: <991270 DOT 3681 DOT qm AT web60419 DOT mail DOT yahoo DOT com>
Subject: RE: bad install ?
Date: Fri, 2 Feb 2007 10:53:49 -0000
Message-ID: <070a01c746b8$6ba068f0$2e08a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <991270.3681.qm@web60419.mail.yahoo.com>
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 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019