delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/06/01/17:02:42

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
From: Chris Faylor <cgf AT cygnus DOT com>
Date: Thu, 1 Jun 2000 17:01:52 -0400
To: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: New sed in latest
Message-ID: <20000601170152.A25185@cygnus.com>
Reply-To: cygwin AT sourceware DOT cygnus DOT com
Mail-Followup-To: cygwin AT sourceware DOT cygnus DOT com
References: <200006012052 DOT WAA29525 AT bourgueil DOT eurecom DOT fr>
Mime-Version: 1.0
User-Agent: Mutt/1.2i
In-Reply-To: <200006012052.WAA29525@bourgueil.eurecom.fr>; from Pierre.Humblet@eurecom.fr on Thu, Jun 01, 2000 at 10:52:17PM +0200

On Thu, Jun 01, 2000 at 10:52:17PM +0200, Pierre DOT Humblet AT eurecom DOT fr wrote:
>In http://sourceware.cygnus.com/ml/cygwin/2000-05/msg01160.html
>>Corinna Vinschen wrote:
>>
>>I have uploaded a new version of sed to pub/cygwin/latest/sed
>>on sourceware.cygnus.com. <snip>
>>
>>The new feature of that version is that it reads all files always in
>>text mode so that files are correctly read when they have dos file
>>endings in binary mounted directories as well.
>
>Thanks for the effort Corinna.  Although I understand the reason isn't
>this pushing it too far?  When working on a binary mounted system I
>would expect sed to work exactly as on Unix.  Although perhaps rare,
>aren't there legitimate reasons to want to keep a \r at the end of a
>line?  Sed is often used in fairly complicated fashions that may now be
>broken.  Also, does your change apply to piped stdin?  I would withdraw
>this comment if there was anything in the sed documentation to the
>effect that \r\n is equivalent to \n.

Corinna did this at my request.  The bottom line is that this will solve
thousands of problems while possibly breaking a handful of uses.

If it becomes an issue we can always add a --binary option to sed.

cgf

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019