emaste af85d5feea bsdgrep: disable GNU_GREP_COMPAT by default
The GNU extension bits in the base system are old, no longer faithful
to upstream, and surprising in some regards. Switch to documenting
WITH_GNU_GREP_COMPAT and default GNU_GREP_COMPAT to OFF in the name of
good behavior.

According to http://www.regular-expressions.info, GNU extensions:

-  Add missing quantifiers to BREs: \?, \+

-  Add branching to BREs: \|

-  Add backreferences (\1 through \9) to EREs

-  Add \w, \W, \s, and \S corresponding to :alnum:, [^[:alnum:]],
   :space:, and [^[:space:]] respectively

-  Add word boundaries and anchors:
   \b: word boundary
   \B: not word boundary
   \<: Strt of word
   \>: End of word
   \`: Start of subject string
    \': End of subject string

These extensions are still available in /usr/bin/grep by default today,
as it is still GNU grep.  As part of the bsdgrep migration plan these
extensions may be added to bsdgrep's regex support if necessary.

Submitted by:	Kyle Evans <kevans91 at ksu.edu>
Reviewed by:	cem
Differential Revision:	https://reviews.freebsd.org/D10114
2017-04-21 14:50:29 +00:00
..
2005-01-21 10:46:36 +00:00
2004-07-07 20:32:33 +00:00
2016-01-23 12:25:24 +00:00
2005-02-09 18:07:17 +00:00
2010-10-08 12:40:16 +00:00
2016-02-19 01:08:03 +00:00
2015-06-13 19:20:56 +00:00
2014-12-21 12:13:49 +00:00
2016-02-29 17:29:34 +00:00
2017-03-05 03:05:24 +00:00
2014-12-21 12:13:49 +00:00
2017-03-23 02:33:27 +00:00