Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Jul 2010 16:38:32 +0200
From:      Gabor Kovesdan <gabor@FreeBSD.org>
To:        bf1783@gmail.com
Cc:        freebsd-current@FreeBSD.org, "b. f." <bf1783@googlemail.com>
Subject:   Re: BSD grep fixes
Message-ID:  <4C5040E8.3050304@FreeBSD.org>
In-Reply-To: <AANLkTimJiV1s3KNsCKsqT_dNiqMyRuOFpK47AD4QyMUO@mail.gmail.com>
References:  <AANLkTimJiV1s3KNsCKsqT_dNiqMyRuOFpK47AD4QyMUO@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Em 2010.07.27. 5:59, b. f. escreveu:
> 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).
>    
Thanks for bringing this up, I'll take a look and try to implement the 
same behaviour. And I will also document the behaviour.

Gabor




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C5040E8.3050304>