grep(1) documents bsdgrep, but GNU grep is installed as 'grep'

Kyle Evans kevans at freebsd.org
Wed Jan 9 01:45:12 UTC 2019


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


More information about the freebsd-stable mailing list