GNU bug report logs - #39591
grep v3.4 after-context

Previous Next

Package: grep;

Reported by: "Adams, John" <john.adams <at> anritsu.com>

Date: Thu, 13 Feb 2020 16:58:01 UTC

Severity: normal

Tags: moreinfo

Full log


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

From: "Adams, John" <john.adams <at> anritsu.com>
To: "bug-grep <at> gnu.org" <bug-grep <at> gnu.org>
Subject: grep v3.4 after-context
Date: Thu, 13 Feb 2020 16:49:17 +0000
[Message part 1 (text/plain, inline)]
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 context.  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.
[Message part 2 (text/html, inline)]

This bug report was last modified 4 years and 273 days ago.

Previous Next


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