delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/09/27/21:52:30

X-Spam-Check-By: sourceware.org
From: "Gary R. Van Sickle" <g DOT r DOT vansickle AT worldnet DOT att DOT net>
To: <cygwin AT cygwin DOT com>
Subject: RE: Bash 3.1.17(8) CR/LF problem
Date: Wed, 27 Sep 2006 20:52:10 -0500
Message-ID: <003401c6e2a0$b67d0850$020aa8c0@DFW5RB41>
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <451B21EE.3030003@byu.net>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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

> From: Eric Blake
> Sent: Wednesday, September 27, 2006 8:14 PM
> Subject: Re: Bash 3.1.17(8) CR/LF problem
> 
[snip]
> > I guess I'm 50/50 here. On one hand <CR> is most certainly not a 
> > standard line terminator character on Unix systems, but at the same 
> > time Cygwin advertises a "collection of tools which provide 
> Linux look 
> > and feel" for Windows.
> 
> Here's my take on it.  If you want POSIX behavior and Linux 
> compatibility, use binary mounts and LF line endings, and 
> don't edit files with notepad.

Actually, it would be: "don't use notepad at all, don't create any text
files you want bash to understand with any native Windows text editor, and
if you are going to use a native Windows text editor to edit files you want
bash to understand, make sure it maintains the original line endings.  Also,
make sure any other tools you might wish to use to process text, cygwin or
non-cygwin, do the same."

The "/r/n vs /n vs /r" Crisis Which Shall Plague Computer Science Forever is
most assuredly not merely a matter of "don't use notepad".

-- 
Gary R. Van Sickle


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