From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17642 invoked by alias); 17 Dec 2018 12:22:55 -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 17630 invoked by uid 89); 17 Dec 2018 12:22:54 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FROM_EXCESS_BASE64,SPF_PASS autolearn=no version=3.3.2 spammy=slap, sk:michael, physical, dear X-HELO: mx.pao1.isc.org Received: from mx.pao1.isc.org (HELO mx.pao1.isc.org) (149.20.64.53) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 17 Dec 2018 12:22:52 +0000 Received: from zmx1.isc.org (zmx1.isc.org [149.20.0.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx.pao1.isc.org (Postfix) with ESMTPS id 5CDBC3AB03E; Mon, 17 Dec 2018 12:22:51 +0000 (UTC) Received: from zmx1.isc.org (localhost [127.0.0.1]) by zmx1.isc.org (Postfix) with ESMTPS id 1FC0D160045; Mon, 17 Dec 2018 12:22:51 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by zmx1.isc.org (Postfix) with ESMTP id F380F160069; Mon, 17 Dec 2018 12:22:50 +0000 (UTC) Received: from zmx1.isc.org ([127.0.0.1]) by localhost (zmx1.isc.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id lhJl5ElhQORn; Mon, 17 Dec 2018 12:22:50 +0000 (UTC) Received: from [10.10.0.196] (40.20.broadband5.iol.cz [88.100.20.40]) by zmx1.isc.org (Postfix) with ESMTPSA id 33B7D160045; Mon, 17 Dec 2018 12:22:50 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) Subject: Re: grep 3.0-2 not stripping CRs on Windows From: =?utf-8?B?T25kxZllaiBTdXLDvQ==?= In-Reply-To: <0F7D3B1B3C4B894D824F5B822E3E5A178FCF7C86@IRSMSX102.ger.corp.intel.com> Date: Mon, 17 Dec 2018 12:22:00 -0000 Cc: "cygwin@cygwin.com" Content-Transfer-Encoding: quoted-printable Message-Id: <35FC3865-8891-4058-86DF-DA5F1DEFAFD4@isc.org> References: <0F7D3B1B3C4B894D824F5B822E3E5A178FCF7C86@IRSMSX102.ger.corp.intel.com> To: "Soegtrop, Michael" X-SW-Source: 2018-12/txt/msg00148.txt.bz2 Hi Michael, ah, there was a similar change for sed, that=E2=80=99s why I missed it when= searching for the change. I believe this is slightly different case, as the pipes were only included = in the example I sent. The grep fails to match CRLF to $ even if physical = files are involved and `-a` option is enforced: # Create file with CRLF $ echo -ne 'foo\r\n' > crlf.txt # Use 2.27-2 version -> works OK $ ./grep-2.27-2.exe 'foo$' crlf.txt foo # Use --binary =E2=80=94> doesn=E2=80=99t find anything OK $ ./grep-2.27-2.exe -U 'foo$=E2=80=99 crlf.txt # Use =E2=80=94text =E2=80=94> finds the text OK $ ./grep-2.27-2.exe -a 'foo$' crlf.txt foo # No amount of options makes the grep find the text in the file $ ./grep-3.0-2.exe 'foo$=E2=80=99 crlf.txt $ ./grep-3.0-2.exe -U 'foo$' crlf.txt $ ./grep-3.0-2.exe -a 'foo$=E2=80=99 crlf.txt So. I would be perfectly fine, if I had to slap `-a` to every grep command = reading text output, because the default has changed. Sed doesn=E2=80=99t have --text option, so sure, there=E2=80=99s no other o= ption available. Thanks, Ondrej -- Ond=C5=99ej Sur=C3=BD ondrej@isc.org > On 17 Dec 2018, at 13:04, Soegtrop, Michael = wrote: >=20 > Dear Ondrej, >=20 > this has been discussed to quite some length and detail more than once on= this list. The initial message of a lengthy discussion (> 30 replies) on t= he topic is here: >=20 > https://www.cygwin.com/ml/cygwin/2017-06/msg00040.html >=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 > 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