[Bug 253350] Grep regression with--after-context (-A) and --max-count (-m) switches

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Feb 8 16:13:58 UTC 2021


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253350

            Bug ID: 253350
           Summary: Grep regression with--after-context (-A) and
                    --max-count (-m) switches
           Product: Base System
           Version: 13.0-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs at FreeBSD.org
          Reporter: fbsd-bugzilla at schlachter.ca

Example file:

$ cat test-grep.txt 
foo
bar
foo
bar
foo
bar

grep behavior in 12.2-RELEASE:

$ grep -A1 -m1 foo test-grep.txt 
foo
bar

grep behavior in 13.0-BETA1:

$ grep -A1 -m1 foo test-grep.txt
foo

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list