From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 61516 invoked by alias); 17 Dec 2018 11:55: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 61466 invoked by uid 89); 17 Dec 2018 11:55:47 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=1.8 required=5.0 tests=BAYES_50,FROM_EXCESS_BASE64,KAM_SHORT,SPF_PASS autolearn=no version=3.3.2 spammy=claiming, pure, sur, can 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 11:55:45 +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 6836A3AB045 for ; Mon, 17 Dec 2018 11:55:44 +0000 (UTC) Received: from zmx1.isc.org (localhost [127.0.0.1]) by zmx1.isc.org (Postfix) with ESMTPS id 32DD4160045 for ; Mon, 17 Dec 2018 11:55:44 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by zmx1.isc.org (Postfix) with ESMTP id EF18A160069 for ; Mon, 17 Dec 2018 11:55:43 +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 0L8_EeuELVjk for ; Mon, 17 Dec 2018 11:55:43 +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 7617C160045 for ; Mon, 17 Dec 2018 11:55:43 +0000 (UTC) From: =?utf-8?B?T25kxZllaiBTdXLDvQ==?= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) Subject: Re: grep 3.0-2 not stripping CRs on Windows Message-Id: Date: Mon, 17 Dec 2018 11:55:00 -0000 To: cygwin@cygwin.com X-SW-Source: 2018-12/txt/msg00141.txt.bz2 [Sorry, I am not subscribed, so I can=E2=80=99t add proper References: head= ers here.] > Cygwin is a POSIX platform not a pure Windows one. > If you need to strip CR character, d2u of dos2unix package is the tool. I am not claiming that Cygwin is a pure Windows platform, but having to run= everything through d2u (or tr -d =E2=80=98\r=E2=80=99) hardly makes cygwin= usable to write platform agnostic scripts, right? It is a regression from 2.27-2 version of the package: $ 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. Written by Mike Haertel and others, see . $ echo -e 'foo\r\n' | grep -a 'foo$' foo $ And it also it contradicts from the documentation (manpage) bundled with th= e version. I think it=E2=80=99s reasonable to classify this as a bug. Ondrej -- Ond=C5=99ej Sur=C3=BD ondrej@isc.org -- 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