GNU bug report logs - #26254
grep's -m breaks -A

Previous Next

Package: grep;

Reported by: Jim Meyering <jim <at> meyering.net>

Date: Sat, 25 Mar 2017 16:25:01 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #23 received at 26254 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Jim Meyering <jim <at> meyering.net>,
 Nicholas Sushkin <nsushkin <at> openfinance.com>
Cc: 26254 <at> debbugs.gnu.org, Stuart MacDonald <stuartm.coding <at> gmail.com>
Subject: Re: bug#26254: grep's -m breaks -A
Date: Wed, 21 Jun 2017 14:10:29 -0700
[Message part 1 (text/plain, inline)]
On 06/17/2017 08:24 PM, Paul Eggert wrote:
>
> This would also change the meaning of grep -v --max-count=NUM

After looking into this, my proposal was too drastic. So I am attaching 
a more modest patch that would simply change grep's behavior along the 
lines requested. Athough this is an incompatible change, I think almost 
all users who care about it will prefer the new behavior. If there is a 
problem with it I suppose we could have an option to select the old 
behavior, but I hope it doesn't come to that.

[0001-grep-m-no-longer-cuts-off-trailing-context.patch (text/x-patch, attachment)]

This bug report was last modified 8 years and 54 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.