Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 07 Mar 2021 18:53:20 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 254110] grep/bsdgrep(1) -C/--context doesn't behave as advertised
Message-ID:  <bug-254110-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D254110

            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@FreeBSD.org
          Reporter: rb@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.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-254110-227>