bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Paul Eggert
Subject: bug#24024: grep: Mixing "max-count" and "after-context" outputs too few lines
Date: Wed, 7 Sep 2016 22:25:03 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

Given after-context=3 it is expected to output at least 4 lines
as documented, but adding max-count=1 makes it stop on the next
matching line.

Thanks for reporting this. Although grep's behavior is documented ("context does not include matching lines" in the node General Output Control) the documentation could be clearer and I installed the attached patch.

Attachment: 0001-doc-define-context-lines.txt
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]