GNU bug report logs -
#26254
grep's -m breaks -A
Previous Next
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
View this message in rfc822 format
On Thu, Jun 15, 2017 at 7:09 AM, Nicholas Sushkin
<nsushkin <at> openfinance.com> wrote:
> I agree with Stu,
>
> I wanted to see the first match of an Error in its context, so I used grep
> -E Error -m 1 -C 10.
> Grep didn't show the context after the match because there was another
> match for Error right after the first.
> I'd like to have an option to see the full context whether it has matches
> or not.
>
> ps. This is actually bug #28588 http://savannah.gnu.org/bugs/?28588
I am coming around... I think we may have been too hasty in making
this behavior the default. While I see how the current default can be
useful, that usage feels like it would be far less common than the
usage/expectation that provokes surprising (and likely to provoke
malfunction) behavior.
What do you think, Paul? Switch the default and add an option for the
current-default `--max-count=N`-trumps-`--context=N` behavior?
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.