Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-ID: <99B82AA9708ED0119B55006097125A00363EA9@ifk63.mach.uni-karlsruhe.de> From: Heribert Dahms To: "'cygwin AT sourceware DOT cygnus DOT com'" Subject: RE: New sed in latest Date: Fri, 2 Jun 2000 22:51:55 +0200 X-Priority: 3 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.0.1457.3) Content-Type: text/plain Hi Chris, what about something like CYGWIN=force_binary for those who need it? If you change od, I'd like that and/or --binary, since I routinely use od -c to check for \r. Do you have another suggestion how to find out (from e.g. bash) actual line endings present in input/output files or pipes for not (yet) text/binary smart programs? Bye, Heribert (heribert_dahms AT icon-gmbh DOT de) > -----Original Message----- > From: Chris Faylor [SMTP:cgf AT cygnus DOT com] > Sent: Friday, June 02, 2000 20:24 > To: cygwin AT sourceware DOT cygnus DOT com > Subject: Re: New sed in latest > > 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 > 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 > >> > > > >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 -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com