From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8575 invoked by alias); 16 Jun 2018 13:06:47 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 8554 invoked by uid 89); 16 Jun 2018 13:06:46 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.8 required=5.0 tests=AWL,BAYES_00,CYGWIN_OWNER_BODY,GIT_PATCH_2,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=supplement, H*RU:sk:sonic31, Hx-spam-relays-external:sk:sonic31, H*r:sk:sonic31 X-HELO: sonic316-11.consmr.mail.gq1.yahoo.com Received: from sonic316-11.consmr.mail.gq1.yahoo.com (HELO sonic316-11.consmr.mail.gq1.yahoo.com) (98.137.69.35) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 16 Jun 2018 13:06:45 +0000 Received: from sonic.gate.mail.ne1.yahoo.com by sonic316.consmr.mail.gq1.yahoo.com with HTTP; Sat, 16 Jun 2018 13:06:43 +0000 Received: from CPEf0f249022813-CMf0f249022810.cpe.net.cable.rogers.com (EHLO spiro1) ([174.112.21.117]) by smtp405.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 63197121cd6e0c2b4600e05f4d938d52; Sat, 16 Jun 2018 13:06:39 +0000 (UTC) From: "Michel LaBarre" To: "'Soegtrop, Michael'" , "'tuyanyi'" , "'cygwin'" References: <2bfeabde.39a8.16403e31153.Coremail.tuyanyi@163.com> <0F7D3B1B3C4B894D824F5B822E3E5A177880092C@IRSMSX102.ger.corp.intel.com> In-Reply-To: <0F7D3B1B3C4B894D824F5B822E3E5A177880092C@IRSMSX102.ger.corp.intel.com> Subject: RE: 2.10.0: Cygwin now can not work well with a file in dos format. Date: Sat, 16 Jun 2018 14:10:00 -0000 Message-ID: <003101d40572$dcd479f0$967d6dd0$@rogers.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2018-06/txt/msg00193.txt.bz2 > -----Original Message----- > From: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.com] On > Behalf Of Soegtrop, Michael > Sent: June 15, 2018 11:11 AM > To: tuyanyi; cygwin > Subject: RE: 2.10.0: Cygwin now can not work well with a file in dos form= at. >=20 > Dear Tuyanyi, >=20 > what has been changed in sed and awk is handling of carriage returns. The= sed > and awk of older Cygwin version strip \r from the input. Newer versions b= ehave > like the same tools on Linux and don't strip CR. This is documented in the > release notes, intended behavior and has been discussed quite extensively= on > the list (I complained about the same issue some-time last year). [Michel LaBrre:]=20 I also find the decision unfortunate as I am one of the many riff-raff who = use Cygwin to supplement windows and have no need for strict POSIX compliance but then I get what I pay for = :-) In any event I have a few questions: 1. Where in the release notes is this mentioned so that I can try to ensu= re that I find out about future changes? Searching for Cygwin release notes gets me to https://cygwin.com/cyg= win-ug-net/ov-new.html In which I have found no (or could not recognise) mention of no long= er stripping CR.=20 Are there more detailed release notes somewhere else? 2. Various "solutions" have been noted for gawk in related emails - all r= equire minor but pervasive code changes.=20=20 Are there any similar solutions for the other tools besides scatterin= g "tr" all over the place? Is everything affected from sort to grep to join? This could impact = the use of such tools with multiple files some of which come from Win32 tools and others from Cygwin tools. I = may be wrong about the pervasiveness of the impact since, as I said, nothing was apparent in= the release notes that I found. Also, I don't recall seeing related discussions in this mail-list. W= ould these have taken place in another Cygwin-developer-focused mail-list? 3. Is there any chance of Cygwin providing a pervasive file behaviour con= trol switch for all the affected tools that have been used generally for text rather than binary data handlin= g? 4. Would MSYS be better for those of us who are trying to supplement Wind= ows rather than running Linux on Windows? Thanks, /Michel =20=20=20=20=20=20 >=20 > The options you have is either to strip the \r characters away first (e.g= . using tr) > or to compile old versions of awk and/or sed from sources. >=20 > Best regards, >=20 > Michael > Intel Deutschland GmbH > Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany > Tel: +49 89 99 8853-0, www.intel.de > Managing Directors: Christin Eisenschmid, Christian Lamprechter > Chairperson of the Supervisory Board: Nicole Lau > Registered Office: Munich > Commercial Register: Amtsgericht Muenchen HRB 186928 >=20 > -- > Problem reports: http://cygwin.com/problems.html > FAQ: http://cygwin.com/faq/ > Documentation: http://cygwin.com/docs.html > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple