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:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; q=dns; s= default; b=sWBo9pxyVgdWSDDN+CR9KFLK6jeJ/P7LnDAx00e57PrIFoz487Dyt zPFm15VlE8vei13I1lS5H2mE4lCXjbMiX+nRTHhp/4RU4+zIOkuOHN1in7dbdKqM UFyEYu5iVk+05O+3naz72tCkAgNWvriXYg33kzLavE/91NhM9N6J5Q= 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:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; s=default; bh=h3YNolkcPOhem3V+y5ogff66FAU=; b=OHQtxqc7UaFAtpY3KxJUGZv1urgM g9zgOn9t7wJpNgzIAbNpDaglOtfQKeKqBhAcEOihjGlpnSzU3QKgRGNSWABHfnbr W/m/n08hDEoW3N3E3KVDEsU8jGbyWjGvVkn361i0B6/AnelKpqtOE3m3hbUHPf07 +nf3YPNxSEMIimQ= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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-Spam-SWARE-Status: No, score=-99.5 required=5.0 tests=BAYES_05,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,KAM_SHORT,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=claiming, pure, sur, february X-HELO: mout.kundenserver.de Date: Mon, 17 Dec 2018 13:09:22 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: grep 3.0-2 not stripping CRs on Windows Message-ID: <20181217120922.GW28727@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="GeDkoc8jIzHasOdk" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) --GeDkoc8jIzHasOdk Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Dec 17 12:55, Ond=C5=99ej Sur=C3=BD wrote: > [Sorry, I am not subscribed, so I can=E2=80=99t add proper References: he= aders here.] >=20 > > Cygwin is a POSIX platform not a pure Windows one. > > If you need to strip CR character, d2u of dos2unix package is the tool. >=20 > I am not claiming that Cygwin is a pure Windows platform, but having to r= un everything through d2u (or tr -d =E2=80=98\r=E2=80=99) hardly makes cygw= in usable to write platform agnostic scripts, right? >=20 > It is a regression from 2.27-2 version of the package: >=20 > $ grep --version > grep (GNU grep) 2.27 > Packaged by Cygwin (2.27-2) > Copyright (C) 2016 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later . > This is free software: you are free to change and redistribute it. > There is NO WARRANTY, to the extent permitted by law. >=20 > Written by Mike Haertel and others, see . > $ echo -e 'foo\r\n' | grep -a 'foo$' > foo > $ >=20 > And it also it contradicts from the documentation (manpage) bundled with = the version. >=20 > I think it=E2=80=99s reasonable to classify this as a bug. This was a deliberate change back in February 2017: https://cygwin.com/ml/cygwin-announce/2017-02/msg00035.html https://cygwin.com/ml/cygwin-announce/2017-02/msg00036.html https://cygwin.com/ml/cygwin-announce/2017-02/msg00034.html A documentation change might make sense, though. Corinna --=20 Corinna Vinschen Cygwin Maintainer --GeDkoc8jIzHasOdk Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlwXkfIACgkQ9TYGna5E T6BfuxAAogiwQdTylhGwfg4b2f8ET0Wd3UDy+JjRv1yRC3MPs2jpA7O2QmFM8XNw 7nCnxoAjJn5E9UWRRfdGZ/cXtPBQqIgSHN2RKWlx+Sp6DUqUNykVIgTUtAektekW 80WWGMPDe19K4BtQ6/6aaYNi/IoaOcZGv0vinHNOjIrugnNSDV95dW+92B25NWTL uJDG11IVAj1D9xXbTBWzHDoWiqSODZC/ohVZFK9FubSSB6X00SQll/dbJYm7hV6O 6E8JUPDcMH4eutfXl2BDh/c1yLzgzAysemVfIpx4iPbzMXhurub5JuF6L6cJNvD0 fQPhG8SrCcKMYMHVBzLfOE921m0ZDikz9U1au6zNglVWw2wDcy8FnPSll6RHWhvU 1GbcIEsxqIy9o84PVVBGEPRCXM4i4XkYOaGwIkdC6hgWcVt2Ify6U/iYfnAOwcGx HHShBHHLI62aBzmXCsgWU1bn/EVa1rdKOGAALmxKVpzj572o9GplxLyQu26fh2sJ af9W/lSHbMkEBCiMQ6alEuVV3eEhPeKTIeN5pVjnD1h8SOuGX8aeJdlwYqPrdNde D5Ne3Qj2q5B/cZqR0NjZ+AYUQLPTBIYUY3QPTuiHpqSUPcqtrvND1Xi8ym/WXJlG MyKUF/v3a5JNnzRDQd4fyTWBHf+3syjEMCdJNh3zaJWcIeTSwMI= =Kt9t -----END PGP SIGNATURE----- --GeDkoc8jIzHasOdk--