Page MenuHomeFreeBSD

bsdgrep(1): Add GNU compatible version string indicator
ClosedPublic

Authored by kevans on Apr 21 2017, 11:43 PM.
Tags
None
Referenced Files
F153243351: D10451.id27917.diff
Mon, Apr 20, 12:46 AM
Unknown Object (File)
Mon, Apr 6, 1:11 PM
Unknown Object (File)
Wed, Mar 25, 9:27 AM
Unknown Object (File)
Wed, Mar 25, 6:16 AM
Unknown Object (File)
Mar 12 2026, 12:26 PM
Unknown Object (File)
Mar 12 2026, 5:44 AM
Unknown Object (File)
Mar 3 2026, 11:57 AM
Unknown Object (File)
Feb 7 2026, 4:15 PM
Subscribers
None

Details

Summary

mandree@ pointed out in r218614 that there's no indication
that a version of bsdgrep(1) is or is not compiled with GNU-isms. Adding
an indicator to the version string is sensible, so I've added a version
of it with "GNU compatible" in the name.

At the moment, it may or may not be 100% accurate, as it really only describes
regex compatibility. I think we're fairly close to flag/option parity as of recent
versions, so this should be a reasonable claim.

As an aside, I think I've amended the options somewhere that will likely require
an update to all of the nls/ bits, since I failed to do that.

Test Plan

Compile versions with and without GNU_GREP_COMPAT, observe grep -V

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Apr 22 2017, 1:01 AM
This revision was automatically updated to reflect the committed changes.