Paul Eggert <eggert@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at 39591) by debbugs.gnu.org; 22 Feb 2020 03:08:36 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Feb 21 22:08:36 2020 Received: from localhost ([127.0.0.1]:48495 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1j5L9f-0008LM-Tf for submit <at> debbugs.gnu.org; Fri, 21 Feb 2020 22:08:36 -0500 Received: from mail-wr1-f47.google.com ([209.85.221.47]:39587) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <meyering@HIDDEN>) id 1j5L9d-0008L8-UT for 39591 <at> debbugs.gnu.org; Fri, 21 Feb 2020 22:08:34 -0500 Received: by mail-wr1-f47.google.com with SMTP id y11so4141978wrt.6 for <39591 <at> debbugs.gnu.org>; Fri, 21 Feb 2020 19:08:33 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=FOa7HPo04jWNDkO7SgVclJ5sEW+x5QchBx0NViS7CQs=; b=XadvOKtRubI5Mubqvra11tSCsPuXtKJIngMKC7UOnqp4B40ZQglgPJ8jssnUa0pcez T3GCHTSEwNuWd7XbXR4VnCJVcQrb3DIGPz7joB2tb7ugQIjmNI1BBuGijTpM2fpZ2chW A0Qc6PvklzpXzthofBlgPn3kDhIrvIUlgU5fcoZnN43lp1YZzbS0HTLQTN0Q3mM/i2dH hgAlWF8XyeJH/l4eG/rGJSreCMSKdr877CnZDfCEJylpnxHX1M2Zj1vmwt+PRvWjrRxU ifBxziiicijB/mTp8fmLy+Nko/LmWHP+eyB485WK4GnscV54fljqwKKlK1UhxGJ7Aj6e 7cKA== X-Gm-Message-State: APjAAAU8YiXOkdgprET/lbxGycEeU81RTEucGKzcPkbJxuMd8Ucey9L0 wQ4Hm9atkVaawRDUznOSP1gPEp5unir6zGPwcSU= X-Google-Smtp-Source: APXvYqx8HQcYqS7zbuWjvEkNLASvwpD+VPCss5pb8P0umxBxrkvXHDtps+RjE052KKYhXCwhhoJkLMEhnuj9FEfSYAI= X-Received: by 2002:adf:cd91:: with SMTP id q17mr52645543wrj.306.1582340908190; Fri, 21 Feb 2020 19:08:28 -0800 (PST) MIME-Version: 1.0 References: <OSAPR01MB3265C7951E08E683EA8D389D841A0@HIDDEN> In-Reply-To: <OSAPR01MB3265C7951E08E683EA8D389D841A0@HIDDEN> From: Jim Meyering <jim@HIDDEN> Date: Fri, 21 Feb 2020 19:08:16 -0800 Message-ID: <CA+8g5KEz7hXGTF+Ddm8oRirF-HTOww4+p5oDmD4o_k-aNbdpiw@HIDDEN> Subject: Re: bug#39591: grep v3.4 after-context To: "Adams, John" <john.adams@HIDDEN> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 39591 Cc: 39591 <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: -0.5 (/) tags 39591 + moreinfo stop On Thu, Feb 13, 2020 at 8:58 AM Adams, John <john.adams@HIDDEN> wrote: > Recent greps do not behave as documented with respect to after-context. = In the past I've been accustomed to -AX meaning print X lines of after cont= ext. That is not how gnu grep is working now, but it is how it is document= ed. In fact -AX, which I tested with a v3.4 that I build on Ubuntu 18, wil= l print X+1 lines of after-context. If you want 1, you must say -A0. Thanks for the report. Can you provide a stand-alone example like the following to demonstrate the problem? I am unable to reproduce it so far, since this prints only one line of following context: $ printf '%s\n' a b c d e | grep -A1 c c d
bug-grep@HIDDEN
:bug#39591
; Package grep
.
Full text available.Received: (at submit) by debbugs.gnu.org; 13 Feb 2020 16:57:58 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Feb 13 11:57:58 2020 Received: from localhost ([127.0.0.1]:60392 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1j2HoL-0001v6-QZ for submit <at> debbugs.gnu.org; Thu, 13 Feb 2020 11:57:58 -0500 Received: from lists.gnu.org ([209.51.188.17]:55366) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <john.adams@HIDDEN>) id 1j2HgD-0001jV-3d for submit <at> debbugs.gnu.org; Thu, 13 Feb 2020 11:49:33 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:56159) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <john.adams@HIDDEN>) id 1j2HgB-0000C8-GZ for bug-grep@HIDDEN; Thu, 13 Feb 2020 11:49:32 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: *** X-Spam-Status: No, score=3.3 required=5.0 tests=BAYES_50,HTML_MESSAGE, RCVD_IN_DNSWL_NONE, RECEIVED_FROM_WINDOWS_HOST autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <john.adams@HIDDEN>) id 1j2HgA-0002Ln-2G for bug-grep@HIDDEN; Thu, 13 Feb 2020 11:49:31 -0500 Received: from mail-eopbgr1410085.outbound.protection.outlook.com ([40.107.141.85]:62176 helo=JPN01-OS2-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <john.adams@HIDDEN>) id 1j2Hg9-0002Hz-Kd for bug-grep@HIDDEN; Thu, 13 Feb 2020 11:49:30 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HmiZdmrEnxb5GCICdbiGfqYcXN8n04e8I5wnFQd+8eph3q3MNypOJ2Dg+QsocuxGeVVYDvpWzntM8UG8H2nnYfVnf2Jg4hpNZdIwTW0mk0gh4HAM7hEXcPpv9CN1SNw5ZJu1ExuodfS9KtPuVFvtYhxYZcsmPPJIAhUpCxh1DbZZL6ezmn8jY00ub9u3235vql1qP+cpGFdI0ItCkjRKszNmX+p96HnYbaSapneZWbiI58XnQsdgWw5n0HzJQPC7USaa/NdMdp4nv10Z0JRbedKWehbjc6VqdSDUQpJHuPlCfZgJZl6PYofn0GI5+Uy3DeXCxXeRiKjVTWn3/P1CiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KepsZUrNDu7+8Lt9p1QJ7o5O4LeuivFeaiAcuftDMWc=; b=N08zX2k9YxTj7XI84gBlpYyIDoHRKoMTvg0Bh8jNvCY9I9J789H1MErq24eJh8nXRbTZmqQfprzyKIPYFnvls5YqnM70TXAr2f/72z3VqLxU47oCsJAmguk65cZQAqjoZoY7xPysc+U28Zlv6Tmds9whFhsL+kWx60/5V799o1uxUee2eVnMiO8XLv04gSk2ZL0TcR4aaww4SvnK5OlioxIqQkg9K3cnGZsKCUJVqYfWqyKZsLh/7+MlgzoCYlrve0NOG9kWq3nldodAcoiO/4UllKfkz+Xaf/nE/F+F9mZE30QAR/rsviz6HBz/Yl5poFhob4HHhiGSLAiY9l8LuQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=anritsu.com; dmarc=pass action=none header.from=anritsu.com; dkim=pass header.d=anritsu.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=AnritsuGlobal.onmicrosoft.com; s=selector1-AnritsuGlobal-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KepsZUrNDu7+8Lt9p1QJ7o5O4LeuivFeaiAcuftDMWc=; b=ydM0Hx6uX+R1+9IpmFNeeysY9bgJSjpfI1MScffjFAKfEcAaGGDuyo3YD/QS8jxXQ4fO5SDVuoDwTK6lmQ29cIP/O6JuO5bDo9KrbOES4DhwdmAsVAxPUwcpJVtJz1aMN5eAmqy+dk1ntBhByJ3Vn30rI0yU53NhUe5SWqRupVk= Received: from OSAPR01MB3265.jpnprd01.prod.outlook.com (52.134.249.86) by OSAPR01MB4147.jpnprd01.prod.outlook.com (20.178.101.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2729.25; Thu, 13 Feb 2020 16:49:18 +0000 Received: from OSAPR01MB3265.jpnprd01.prod.outlook.com ([fe80::4828:ee76:5e91:5881]) by OSAPR01MB3265.jpnprd01.prod.outlook.com ([fe80::4828:ee76:5e91:5881%4]) with mapi id 15.20.2729.025; Thu, 13 Feb 2020 16:49:18 +0000 From: "Adams, John" <john.adams@HIDDEN> To: "bug-grep@HIDDEN" <bug-grep@HIDDEN> Subject: grep v3.4 after-context Thread-Topic: grep v3.4 after-context Thread-Index: AdXijYYYsr14kTn3RWa3hG+PDu0MJg== Date: Thu, 13 Feb 2020 16:49:17 +0000 Message-ID: <OSAPR01MB3265C7951E08E683EA8D389D841A0@HIDDEN> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=john.adams@HIDDEN; x-originating-ip: [71.174.221.234] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 43f8738b-32b0-4eb7-7e09-08d7b0a4aab3 x-ms-traffictypediagnostic: OSAPR01MB4147: x-microsoft-antispam-prvs: <OSAPR01MB4147A854E46EA33A00871284841A0@HIDDEN> x-ms-oob-tlc-oobclassifiers: OLM:6790; x-forefront-prvs: 031257FE13 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(39860400002)(376002)(366004)(136003)(396003)(346002)(189003)(199004)(316002)(2906002)(52536014)(5660300002)(8676002)(7696005)(8936002)(81156014)(81166006)(86362001)(33656002)(66446008)(478600001)(71200400001)(66476007)(66556008)(64756008)(55016002)(186003)(76116006)(9686003)(6506007)(4744005)(26005)(6916009)(66946007); DIR:OUT; SFP:1101; SCL:1; SRVR:OSAPR01MB4147; H:OSAPR01MB3265.jpnprd01.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: anritsu.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 6m0S8wDVonySFiEmYJiFbX13VP+ElG1wMV73xtYglgtIvR6QQelNTTeNJYvsrRB8/Xl9RAQCXRTMsJWbMkA26Q3xGkfz+n/aKUJThLbnnJlOcJ3ERkrM/NU1jEaE3p40cSIZRITqgysQ07l/FpsUKgYf/5CnpO8B/E99A2HKs+ksg0JBchpY4XC38MmAT/oAqTf6L4eQDAFD/9OLfqdmYNbOMcQXQQLXfik1esj/FmnBJXYFOg+LWJtKf/BNrJVPif7VmhzNMZCOCi9RqOqXpMD+RMc6mVVSC0Clo92ZF3HHy4iSYLSRXxpXRLUQQ7g4lynfooKwkCGEkR2KOez9nboO8ubIn3kNRPC2YZDu2RRUNZRE+JY6wkpi+IMFzyzDq6k1cn+k3EET1yBFvG6HHSyD/ejQ6KKhsIFetVY0ttIFAx/XErPsL7g6DFYPcfsq x-ms-exchange-antispam-messagedata: FvbzkbiLLJuOcbsQ63A9+57QOyKNL+cl0Jyd8S2VZ7+KgnoKvg07eqSMGEpnFrGkS/UmwzLlzCVVwuQ02F0ybEPQTb+iTVN+MCgL0NAp0LQ9NfFpqaQ7vEPMZbEyN9dLZ+ro/op4a3qDEoP0LHMsug== x-ms-exchange-transport-forked: True Content-Type: multipart/alternative; boundary="_000_OSAPR01MB3265C7951E08E683EA8D389D841A0OSAPR01MB3265jpnp_" MIME-Version: 1.0 X-OriginatorOrg: anritsu.com X-MS-Exchange-CrossTenant-Network-Message-Id: 43f8738b-32b0-4eb7-7e09-08d7b0a4aab3 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Feb 2020 16:49:18.0060 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 5655302f-85c9-44b7-bc12-807562d22c08 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: YyHbIMb+uyIjN+gUoK7hJRBespk1+srhPb3r3OFpcElbTbo1jFMDN+UBRnZmvl1yWEzR+pc3Cwt62OAH98+pTCjIfW/ww5Qrbsnxj8s6a9Q= X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSAPR01MB4147 X-detected-operating-system: by eggs.gnu.org: Windows NT kernel [generic] [fuzzy] X-Received-From: 40.107.141.85 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Thu, 13 Feb 2020 11:57:55 -0500 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: -1.7 (-) --_000_OSAPR01MB3265C7951E08E683EA8D389D841A0OSAPR01MB3265jpnp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Recent greps do not behave as documented with respect to after-context. In= the past I've been accustomed to -AX meaning print X lines of after contex= t. That is not how gnu grep is working now, but it is how it is documented= . In fact -AX, which I tested with a v3.4 that I build on Ubuntu 18, will = print X+1 lines of after-context. If you want 1, you must say -A0. --_000_OSAPR01MB3265C7951E08E683EA8D389D841A0OSAPR01MB3265jpnp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr= osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" = xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:= //www.w3.org/TR/REC-html40"> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"= > <meta name=3D"Generator" content=3D"Microsoft Word 15 (filtered medium)"> <style><!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:11.0pt; font-family:"Calibri",sans-serif;} a:link, span.MsoHyperlink {mso-style-priority:99; color:#0563C1; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {mso-style-priority:99; color:#954F72; text-decoration:underline;} span.EmailStyle17 {mso-style-type:personal-compose; font-family:"Calibri",sans-serif; color:windowtext;} .MsoChpDefault {mso-style-type:export-only; font-family:"Calibri",sans-serif;} @page WordSection1 {size:8.5in 11.0in; margin:1.0in 1.0in 1.0in 1.0in;} div.WordSection1 {page:WordSection1;} --></style><!--[if gte mso 9]><xml> <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext=3D"edit"> <o:idmap v:ext=3D"edit" data=3D"1" /> </o:shapelayout></xml><![endif]--> </head> <body lang=3D"EN-US" link=3D"#0563C1" vlink=3D"#954F72"> <div class=3D"WordSection1"> <p class=3D"MsoNormal">Recent greps do not behave as documented with respec= t to after-context. In the past I’ve been accustomed to –= AX meaning print X lines of after context. That is not how gnu grep i= s working now, but it is how it is documented. In fact –AX, which I tested with a v3.4 that I build on Ubuntu 18, will prin= t X+1 lines of after-context. If you want 1, you must say –= A0.<o:p></o:p></p> </div> </body> </html> --_000_OSAPR01MB3265C7951E08E683EA8D389D841A0OSAPR01MB3265jpnp_--
"Adams, John" <john.adams@HIDDEN>
:bug-grep@HIDDEN
.
Full text available.bug-grep@HIDDEN
:bug#39591
; Package grep
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.