This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: dircolors generates output with '\r\n' ?
- From: "Larry Hall (Cygwin)" <reply-to-list-only-lh at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 30 Jan 2014 13:20:55 -0500
- Subject: Re: dircolors generates output with '\r\n' ?
- Authentication-results: sourceware.org; auth=none
- References: <5F8AAC04F9616747BC4CC0E803D5907D0C47638A at MLBXv04 dot nih dot gov>
- Reply-to: cygwin at cygwin dot com
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