delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/07/16/14:04:00

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <4cee11bc0807161103v79d2c893of1765539f1bd02ad@mail.gmail.com>
Date: Wed, 16 Jul 2008 11:03:02 -0700
From: "Sam Hanes" <elemecca AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Freeze with the letter "e"
In-Reply-To: <20080716145359.GA28882@ednor.casa.cgf.cx>
MIME-Version: 1.0
References: <005101c8e5ef$2ba90220$34ef5248 AT SweetLou> <20080714203321 DOT GC22253 AT ednor DOT casa DOT cgf DOT cx> <487D80AB DOT 5000702 AT cs DOT cmu DOT edu> <20080716145359 DOT GA28882 AT ednor DOT casa DOT cgf DOT cx>
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

Christopher Faylor wrote:
>
> Paul Newell wrote:
>>
>> Since jrsyangl hasn't written back on this one, I have to take the bait and
>> ask "why CRLF and the lowercase 'e'?".
>>
>
> Check the archives with google:
>
> CRLF .inputrc site:cygwin.com
>
> Hint:  It has nothing to do with 'the letter "e"'.
>
> Hint:  This is Cygwin.  It emulates UNIX(tm).  Does UNIX like CRLF line endings?
>

I think what he's trying to say is that having DOS-style (CR-LF) line
endings in a *NIX-style file (which uses LF line endings) can have
very strange results, especially involving entries near the end of
lines. It should be noted that this is only true if you told setup.exe
to use *NIX-style line endings. If you told it to use DOS-style line
endings, you'll get the same problem if the file is *NIX-style.

The gist of it: If it expects LF and sees CR-LF you have problems, and
vice-versa.

You can convert between the two styles with `dos2unix` and `unix2dos`.

-- Sam Hanes
elemecca AT gmail DOT com

Freedom is a heavy load, a great and strange burden for the spirit to
undertake. It is not easy. It is not a gift given, but a choice made,
and the choice may be a hard one. The road goes upward towards the
light; but the laden traveler may never reach the end of it.
- Ursula K. Le Guin; The Tombs of Atuan

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