delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:from:to:references:in-reply-to:subject:date | |
:message-id:mime-version:content-type:content-transfer-encoding; | |
q=dns; s=default; b=S5jV/dtwwYJnqPseR1nPFfDRyqoI8u4KMy9toDyrDXz | |
14EEdx4U2lLnyojbOri0Q/j5ezDbOoFeWqjOXCdLe+tC1LFK7KRZggpysWK6NWAq | |
rFDTYftudL8vJJoQPDhDVb853HDzht+sF8XTvXQXOx7v+Ubf0GtkFo+LWwa2T79w | |
= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:from:to:references:in-reply-to:subject:date | |
:message-id:mime-version:content-type:content-transfer-encoding; | |
s=default; bh=xc1IBcxUpkbms9AW4TE+Q/PT7Dk=; b=xAJ+D66GUcNK4Urbx | |
KuqePIv3WFixM3cjKIub7nP5sOEpRLle8MlvWA+RrZhfdQ/W0o7uSrEYISTVcvC3 | |
geBc7kmVYTx1m4H6ycKAHMXtlHU5uBxtx2S/jIUoZ5jE9rXusCAnqsCBs4e2H7G5 | |
xPb2btWqKCjs5LMIs9ReK/CKQU= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.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 |
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 |
From: | "Michel LaBarre" <michel DOT labarre AT rogers DOT com> |
To: | "'Soegtrop, Michael'" <michael DOT soegtrop AT intel DOT com>, |
"'tuyanyi'" <tuyanyi AT 163 DOT com>, "'cygwin'" <cygwin AT cygwin DOT com> | |
References: | <2bfeabde DOT 39a8 DOT 16403e31153 DOT Coremail DOT tuyanyi AT 163 DOT com> <0F7D3B1B3C4B894D824F5B822E3E5A177880092C AT IRSMSX102 DOT ger DOT corp DOT intel DOT 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 09:06:36 -0400 |
Message-ID: | <003101d40572$dcd479f0$967d6dd0$@rogers.com> |
MIME-Version: | 1.0 |
X-IsSubscribed: | yes |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id w5GD6un1004831 |
> -----Original Message----- > From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT 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 format. > > Dear Tuyanyi, > > 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 behave > 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:] 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 ensure that I find out about future changes? Searching for Cygwin release notes gets me to https://cygwin.com/cygwin-ug-net/ov-new.html In which I have found no (or could not recognise) mention of no longer stripping CR. Are there more detailed release notes somewhere else? 2. Various "solutions" have been noted for gawk in related emails - all require minor but pervasive code changes. Are there any similar solutions for the other tools besides scattering "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. Would these have taken place in another Cygwin-developer-focused mail-list? 3. Is there any chance of Cygwin providing a pervasive file behaviour control switch for all the affected tools that have been used generally for text rather than binary data handling? 4. Would MSYS be better for those of us who are trying to supplement Windows rather than running Linux on Windows? Thanks, /Michel > > 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. > > Best regards, > > 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 > > -- > 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |