delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/01/30/13:21:29

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:reply-to:mime-version:to
:subject:references:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=wa7f9oqaLg+hx8I2
n9qAcF89VzVuzK8zy/9F+/cnuWDljrNplAh9R3Re02en3pkR1sKg4ts9KFwceuBC
xhe6XBqLcezto0/QfSrQgHeDvu3Jv6mif0zt2COb/Z+Ip3Sa4QZLwI3B4s9QaIA1
2Xr4OgiYEOG8pTFAxzFnwLcXR30=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:reply-to:mime-version:to
:subject:references:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=vQzOifZJuMDr3Ls2uAUvgj
LFg9Q=; b=O5sW6b66uMXo5hAqeS2EwOVJDfRenOb7u32jETjgYmI3bo31HvExwx
H6zB3QKM9ngm1ziXrUXlzvZQuU7GU0k9XX/nPvJ+hVBLDKfKoSJyLyQD1718uayp
YLqrovsbEC8wXWaORL1z7oZPXXBLwbNx4bUp4xebyWhCggcnu0p/w=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2
X-HELO: vms173017pub.verizon.net
Message-id: <52EA9807.5060302@cygwin.com>
Date: Thu, 30 Jan 2014 13:20:55 -0500
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com>
Reply-to: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0
MIME-version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: dircolors generates output with '\r\n' ?
References: <5F8AAC04F9616747BC4CC0E803D5907D0C47638A AT MLBXv04 DOT nih DOT gov>
In-reply-to: <5F8AAC04F9616747BC4CC0E803D5907D0C47638A@MLBXv04.nih.gov>

On 1/30/2014 12:04 PM, Lavrentiev, Anton (NIH/NLM/NCBI) [C] wrote:
> Hi,
>
> I was trying to use the dircolor command on CYGWIN, and it did not work because
> the two lines, which this command produces are separated by CRLF (which when
> sourced by bash are not understood, bash seems to expect single LFs):
>
> LS_OPTIONS='...';\r\n
> export LS_OPTIONS\r\n
>
> Why there are Windows-style EOLs in there?

If you edit the file with a native Windows editor, it will typically
introduce the Windows-style EOL characters.  Use 'dos2unix' or your
favorite utility to clean that up.


-- 
Larry

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

--
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