From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6691 invoked by alias); 30 Jan 2014 18:21:11 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 6681 invoked by uid 89); 30 Jan 2014 18:21:10 -0000 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 Received: from vms173017pub.verizon.net (HELO vms173017pub.verizon.net) (206.46.173.17) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 30 Jan 2014 18:21:10 +0000 Received: from [192.168.1.231] ([unknown] [74.104.179.122]) by vms173017.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0N080089R8AQSR90@vms173017.mailsrvcs.net> for cygwin@cygwin.com; Thu, 30 Jan 2014 12:20:56 -0600 (CST) Message-id: <52EA9807.5060302@cygwin.com> Date: Thu, 30 Jan 2014 18:21:00 -0000 From: "Larry Hall (Cygwin)" Reply-to: cygwin@cygwin.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@cygwin.com Subject: Re: dircolors generates output with '\r\n' ? References: <5F8AAC04F9616747BC4CC0E803D5907D0C47638A@MLBXv04.nih.gov> In-reply-to: <5F8AAC04F9616747BC4CC0E803D5907D0C47638A@MLBXv04.nih.gov> Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit X-SW-Source: 2014-01/txt/msg00526.txt.bz2 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