GNU bug report logs - #24024
grep: Mixing "max-count" and "after-context" outputs too few lines

Previous Next

Package: grep;

Reported by: Santiago Ruano Rincón <santiagorr <at> riseup.net>

Date: Tue, 19 Jul 2016 11:55:01 UTC

Severity: normal

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

Bug is archived. No further changes may be made.

Full log


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

From: Norihiro Tanaka <noritnk <at> kcn.ne.jp>
To: Santiago Ruano Rincon <santiagorr <at> riseup.net>
Cc: 24024 <at> debbugs.gnu.org, 831673 <at> bugs.debian.org, ygrex <at> ygrex.ru
Subject: Re: bug#24024: grep: Mixing "max-count" and "after-context" outputs
 too few lines
Date: Wed, 27 Jul 2016 00:38:02 +0900
> Igor Bogomazov <ygrex <at> ygrex.ru> filed the following bug against grep in
> Debian.
> 
> > $ printf '%s\n' a b a c | grep -m1 -A3 a
> > 
> > What I see:
> > 
> > a
> > b
> > 
> > What I expect:
> > 
> > a
> > b
> > a
> > c

As long as looking at prepending(), I see that it is designed but not
documented.





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

Previous Next


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