Received: (at 32838) by debbugs.gnu.org; 21 Sep 2020 22:41:32 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 21 18:41:32 2020 Received: from localhost ([127.0.0.1]:56700 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1kKUV1-0002lT-Ob for submit <at> debbugs.gnu.org; Mon, 21 Sep 2020 18:41:31 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:56772) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eggert@HIDDEN>) id 1kKUV0-0002lD-EV; Mon, 21 Sep 2020 18:41:30 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 1585E1600F9; Mon, 21 Sep 2020 15:41:25 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id K_OqUUyOwTfU; Mon, 21 Sep 2020 15:41:24 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 373961600FD; Mon, 21 Sep 2020 15:41:24 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Gky3RFvkpohF; Mon, 21 Sep 2020 15:41:24 -0700 (PDT) Received: from [192.168.1.9] (cpe-23-243-218-95.socal.res.rr.com [23.243.218.95]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 058A31600F9; Mon, 21 Sep 2020 15:41:24 -0700 (PDT) Subject: Re: bug#32838: Regression in grep 3.1: Grep '$' matcher no longer works on CRLF files on Windows To: Konstantin Kolinko <knst.kolinko@HIDDEN>, Holger Klene <h.klene@HIDDEN> References: <CABzHfVnYOYDd9v3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c1lIZkRvNXMKbWY5bG82WVh4N045Cj0zTGFJCi0tLS0tRU5EIFBHUCBQVUJMSUMg S0VZIEJMT0NLLS0tLS0K Organization: UCLA Computer Science Department Message-ID: <119b7bf4-2336-cc6c-ebc5-8123b16afa84@HIDDEN> Date: Mon, 21 Sep 2020 15:41:23 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <CABzHfVnYOYDd9v3ENJr63z+qDxfkazXMJ1Sz6tthzaV4+h9DXQ@HIDDEN> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 32838 Cc: 33162 <at> debbugs.gnu.org, 32838 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) On 9/25/18 1:15 AM, Konstantin Kolinko wrote: > https://github.com/git-for-windows/git/issues/1841 Looking at that downstream bug report, it appears that this is a wishlist request and that there have been no takers for implementing an MS-Windows-specific --strip-trailing-cr option. I have marked Bug#32838 and Bug#33162 as wishlist in the grep bug database.
bug-grep@HIDDEN
:bug#32838
; Package grep
.
Full text available.Paul Eggert <eggert@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Paul Eggert <eggert@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at submit) by debbugs.gnu.org; 25 Sep 2018 15:15:15 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Sep 25 11:15:15 2018 Received: from localhost ([127.0.0.1]:53916 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1g4p3S-0002jO-Pr for submit <at> debbugs.gnu.org; Tue, 25 Sep 2018 11:15:15 -0400 Received: from eggs.gnu.org ([208.118.235.92]:56366) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <knst.kolinko@HIDDEN>) id 1g4iW8-0006R9-K4 for submit <at> debbugs.gnu.org; Tue, 25 Sep 2018 04:16:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <knst.kolinko@HIDDEN>) id 1g4iW2-0000EK-NY for submit <at> debbugs.gnu.org; Tue, 25 Sep 2018 04:16:19 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:49091) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <knst.kolinko@HIDDEN>) id 1g4iW2-0000EE-JZ for submit <at> debbugs.gnu.org; Tue, 25 Sep 2018 04:16:18 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37705) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <knst.kolinko@HIDDEN>) id 1g4iVw-0005pO-3r for bug-grep@HIDDEN; Tue, 25 Sep 2018 04:16:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <knst.kolinko@HIDDEN>) id 1g4iVp-00008J-IT for bug-grep@HIDDEN; Tue, 25 Sep 2018 04:16:11 -0400 Received: from mail-lj1-x22a.google.com ([2a00:1450:4864:20::22a]:34561) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <knst.kolinko@HIDDEN>) id 1g4iVp-00006w-5U for bug-grep@HIDDEN; Tue, 25 Sep 2018 04:16:05 -0400 Received: by mail-lj1-x22a.google.com with SMTP id f8-v6so20832241ljk.1 for <bug-grep@HIDDEN>; Tue, 25 Sep 2018 01:16:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=kgYzUPR4UygDMH+lWz4NJwSxrk6d7UxpXL84ljEhTKw=; b=SolF+oxrf9d8K0T2uFY0lMU5MeY7MBVYvuHK/r/HpeoQmH2mOIasYXLcer6s5Ujolf JDTjS4UdCSOHw+C2rhVXhqt0qD7hNor6MaI62FrfkZYxh86Vw4daW0ru/iGEivycmAsK YymQgHVaTw7TGvbpqecxxhQLvr1r3h/zIbzbWtNw+S3jWGoqmfSdOlFP5Yo22VyfTE0H 9j9K601tfwzMq/dO5ZQICWDcPrrjy8OUcI5tBsxySnNAMC1ue32J6/KUeI1t3K60468p 6D0e+ntm70gbhaH/LxlqsBrF+6kKIY+WQJF7ZgLthiN8Lms57pV8NICSMbyGzit7gecc /9zQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=kgYzUPR4UygDMH+lWz4NJwSxrk6d7UxpXL84ljEhTKw=; b=T70wNVdYYJuG/Uplj3Y333Ck9d59ETlG9UFQZ6Lz2q+ZFf3WNhSBM8JU3aHzRiXaNn yjGw4XnnDPToUIbpMs6TC/KhB9tFak7MHlm9agZjoKGQibO9QjA+bJYgdrdmMVktV/Na GeB/kip0G5Ka+85slHqRkdUbI11ubD/Hg0nXcASL6tNoLe6q8O54NWyPVN8qXVN7K/Be nsJGQ9xj64UIjlyuNKUtigAEqIYovvyac33WnCO7hIDAYtGMlY86yeQ0vQK62CxcrgNr yrDniWUN+l3aHbUAye0h8Vqfi394E+LiFgJFLWPbTb6ACTV9MxE1VHk/5KhH9Ct0OwR6 14hg== X-Gm-Message-State: ABuFfoib7vJt0y5P7Nf8WgIC+flQCt4q7OZO78MRPGNjcEqWorkMr2bJ cvJEwtRZaDXuuOA64HJ8m0xQlPIZbcOH5eX8g/Qoj8mF X-Google-Smtp-Source: ACcGV62Am69TliZJm/c9aoiKDx3VPxu2rxPyjKKvVG5cLwxyh5RnKxHBztOUwIjECiaFVitccglaA7ngeubQF27H01E= X-Received: by 2002:a2e:6598:: with SMTP id e24-v6mr1520856ljf.99.1537863361124; Tue, 25 Sep 2018 01:16:01 -0700 (PDT) MIME-Version: 1.0 From: Konstantin Kolinko <knst.kolinko@HIDDEN> Date: Tue, 25 Sep 2018 11:15:51 +0300 Message-ID: <CABzHfVnYOYDd9v3ENJr63z+qDxfkazXMJ1Sz6tthzaV4+h9DXQ@HIDDEN> Subject: Regression in grep 3.1: Grep '$' matcher no longer works on CRLF files on Windows To: bug-grep@HIDDEN Content-Type: text/plain; charset="UTF-8" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 25 Sep 2018 11:15:13 -0400 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -5.0 (-----) Hi! This issue has been reported downstream at Git for Windows project, here: https://github.com/git-for-windows/git/issues/1841 Git for Windows includes a set of GNU utilities. IIRC those come from MinGW project. Summarizing from the downstream report: Actual output, with grep 3.1 (in Git for Windows 2.19.0): [[[ $ grep --version grep (GNU grep) 3.1 ... $ cat > foo.txt foo: bar baz: $ unix2dos foo.txt unix2dos: converting file foo.txt to DOS format... $ grep ':$' < foo.txt $ grep --line-regexp '.*:' foo.txt $ grep --line-regexp '.*:' < foo.txt ]]] Expected output, observable with grep 3.0 (in Git for Windows 2.18.0), or if I run dos2unix on the file: [[[ $ cp foo.txt foo2.txt $ dos2unix foo2.txt dos2unix: converting file foo2.txt to Unix format... $ grep ':$' < foo2.txt foo: baz: $ grep --line-regexp '.*:' foo2.txt foo: baz: $ grep --line-regexp '.*:' < foo2.txt foo: baz: ]]] I guess that this regression is related to the following changes listed in the NEWS file, apparently implemented via #25707: [[[ The following changes affect only MS-Windows platforms. First, the --binary (-U) option now governs whether binary I/O is used, instead of a heuristic that was sometimes incorrect. Second, the --unix-byte-offsets (-u) option now has no effect on MS-Windows too. ]]] Best regards, Konstantin Kolinko
Konstantin Kolinko <knst.kolinko@HIDDEN>
:bug-grep@HIDDEN
.
Full text available.bug-grep@HIDDEN
:bug#32838
; Package grep
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.