Date: Mon, 08 Feb 2021 16:56:43 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 253350] Grep regression with --after-context (-A) and --max-count (-m) switches Message-ID: <bug-253350-227-nrC34VEeeO@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-253350-227@https.bugs.freebsd.org/bugzilla/> References: <bug-253350-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D253350 Kyle Evans <kevans@freebsd.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|New |In Progress --- Comment #1 from Kyle Evans <kevans@freebsd.org> --- Thanks for the report! This diff will fix it: https://people.freebsd.org/~kevans/grep-m.diff We previously took the mcount hit to bail out immediately, this change ensu= res that we continue processing lines as non-matches until the -A tail runs out. i.e., changing your second line from bar to foo and re-running the same scenario should output the first foo as a match and the second as a non-mat= ch with appropriate delimiter with -n specified. I will clean this up and add a test to commit it a little later today. --=20 You are receiving this mail because: You are on the CC list for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-253350-227-nrC34VEeeO>