Rebecca Cran
2019-Jan-09 01:36 UTC
grep(1) documents bsdgrep, but GNU grep is installed as 'grep'
grep(1) documents the "--exclude-dir" option, but running "grep" complains it's unknown. Also, 'rgrep' doesn't exist. It turns out that the grep binary is GNU grep 2.5.1, while bsdgrep supports the option. Is WITH_BSD_GREP supposed to be defaulted to on for 12.0 and newer, or was the man page switched over too soon? -- Rebecca Cran bcran at freebsd.org
Kyle Evans
2019-Jan-09 01:44 UTC
grep(1) documents bsdgrep, but GNU grep is installed as 'grep'
On Tue, Jan 8, 2019 at 7:36 PM Rebecca Cran via freebsd-stable <freebsd-stable at freebsd.org> wrote:> > grep(1) documents the "--exclude-dir" option, but running "grep" complains > it's unknown. Also, 'rgrep' doesn't exist. > It turns out that the grep binary is GNU grep 2.5.1, while bsdgrep supports > the option. > > Is WITH_BSD_GREP supposed to be defaulted to on for 12.0 and newer, or was the > man page switched over too soon? >Yeah, I think we botched that -- maybe we'll call it optimism. =( https://svnweb.freebsd.org/base/head/usr.bin/grep/Makefile?view=markup#l13 should read "MAN1= bsdgrep.1 zgrep.1" rather than grep.1 zgrep.1, I believe. (CC bapt@ for a second eye, since this was during zgrep stuff) Thanks, Kyle Evans