Date: Tue, 27 Jul 2010 03:59:36 +0000 From: "b. f." <bf1783@googlemail.com> To: freebsd-current@FreeBSD.org Cc: gabor@FreeBSD.org Subject: Re: BSD grep fixes Message-ID: <AANLkTimJiV1s3KNsCKsqT_dNiqMyRuOFpK47AD4QyMUO@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Other important differences between bsdgrep and GNU grep: The --include option in bsdgrep does not have the same effect as the corresponding option in GNU grep -- in GNU grep, that option causes _only_ those files matching the file inclusion pattern to be searched. To obtain the same behavior in bsdgrep, one must issue something like --exclude '*' --include pattern. The effect of multiple overlapping --include and --exclude options is different in the two greps. It would be wise to add comments about precedence of such options in the bsdgrep manpage, as is done, for example, in bsdtar(1). b.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTimJiV1s3KNsCKsqT_dNiqMyRuOFpK47AD4QyMUO>