[Bug 254110] grep/bsdgrep(1) -C/--context doesn't behave as advertised

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Mar 7 18:53:20 UTC 2021


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

            Bug ID: 254110
           Summary: grep/bsdgrep(1) -C/--context doesn't behave as
                    advertised
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: bin
          Assignee: bugs at FreeBSD.org
          Reporter: rb at gid.co.uk

-C or --context with no count following is supposed to behave as -C2 but
instead it is treated as an error. This affects all versions back as far as
7.0-RELEASE.

The 1-character fix is that C: in the option string should be C::, ie two
colons not one.

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


More information about the freebsd-bugs mailing list