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
Unknown Object (File)
Mon, Sep 29, 10:24 PM
Unknown Object (File)
Sat, Sep 27, 12:58 PM
Unknown Object (File)
Tue, Sep 23, 2:44 AM
Unknown Object (File)
Mon, Sep 22, 7:38 PM
Unknown Object (File)
Sun, Sep 21, 11:26 AM
Unknown Object (File)
Aug 23 2025, 12:19 AM
Unknown Object (File)
Jul 28 2025, 11:07 AM
Unknown Object (File)
Jul 26 2025, 8:49 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.