delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/09/20/14:57:53

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_05,KHOP_THREADED,RP_MATCHES_RCVD,SPF_HELO_PASS,TW_RW,TW_WX
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Andrew DeFaria <Andrew AT DeFaria DOT com>
Subject: Re: bash output: ./configure: line 16: $'\r': command not found
Date: Thu, 20 Sep 2012 11:57:10 -0700
Lines: 21
Message-ID: <k3fou5$jei$1@ger.gmane.org>
References: <1348032215 DOT 75798 DOT YahooMailClassic AT web111505 DOT mail DOT gq1 DOT yahoo DOT com> <505961A4 DOT 3000000 AT molconn DOT com>
Mime-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:15.0) Gecko/20120907 Thunderbird/15.0.1
In-Reply-To: <505961A4.3000000@molconn.com>
X-IsSubscribed: yes
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 9/18/2012 11:09 PM, LMH wrote:
> That error is a sign that the file is in the DOS format and not the 
> UNIX format. Bash doesn't recognize the windows end of line character \r.
>
> Just run dos2unix on the file
> dos2unix configure
>
> that should take care of the error.
DYK:

Ltsdo-adefaria:ll -i /bin/d2u /bin/dos2unix
2533274790476180 -rwxr-xr-x 3 adefaria clearusers 31773 Sep  7 13:07 
/bin/d2u*
2533274790476180 -rwxr-xr-x 3 adefaria clearusers 31773 Sep  7 13:07 
/bin/dos2unix*

So you can just use: d2u configure
-- 
Andrew DeFaria <http://defaria.com>
Dumb Question Department: Been swimming. Smart Answer: No, I was out 
walking my pet fish!


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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