delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/06/02/14:24:09

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: Fri, 2 Jun 2000 14:23:30 -0400
To: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: New sed in latest
Message-ID: <20000602142330.E1589@cygnus.com>
Reply-To: cygwin AT sourceware DOT cygnus DOT com
Mail-Followup-To: cygwin AT sourceware DOT cygnus DOT com
References: <200006021811 DOT UAA26002 AT pauillac DOT eurecom DOT fr>
Mime-Version: 1.0
User-Agent: Mutt/1.2i
In-Reply-To: <200006021811.UAA26002@pauillac.eurecom.fr>; from Pierre.Humblet@eurecom.fr on Fri, Jun 02, 2000 at 08:11:41PM +0200

On Fri, Jun 02, 2000 at 08:11:41PM +0200, Pierre DOT Humblet AT eurecom DOT fr wrote:
>On Thu, 1 Jun 2000 17:48:39 -0400, Chris Faylor <cgf AT cygnus DOT com> wrote:
>>You have my guarantee that when the cygwin mailing list is filled with
>>the plaintive cries of people who are trying to process their binary
>><snip>
>
>The current plaintive voices are about a textmode processing bug in the
>dll.  Masking that bug by making applications like sed ignore \r even
>on binary mounted systems is only a reasonable TEMPORARY (band aid)
>measure.  Until now users mounting binary file systems had the
>assurance that the tools would behave as on Unix.  That was great, I
>hope it will come back.  Otherwise do you plan to keep on "fixing" more
>applications?  awk (for one) is also "broken" by \r\n :
>
>bash-2.04$ awk 'NF > 1' /u/hello.txt bash-2.04$ mount -b -f u:/ /u
>bash-2.04$ awk 'NF > 1' /u/hello.txt hello bash-2.04$
>
>(hello.txt contains "hello \r\n")

Yes.  I plan on fixing more applications.  In fact, awk is next on my list.

This change was only partially motivated by the recent broken DLL.  We
have always had many many many complaints about "sed not working".  The
1.1.1 DLL just aggravates the potential problems with binmode versus
textmode processing.  The problem won't go away when the DLL is fixed.

You may have noticed that we've recently made similar modifications to
ash and bash.  I also expect that we will be making modifications to
applications like 'od' which do not set binmode appropriately.

Of course, the wonderful thing about all of this is that this is free
software.  You don't have to use it.  Anyone can build their own version
of sed which, theoretically, is able to process a binary file.  It's not
that hard at all.

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