In grep 2.22, --exclude no longer works in some cases:
$ cd /usr/share/doc/grep
$ grep e --exclude README README
is OK, but not:
$ grep e --exclude README /usr/share/doc/grep/README
Copyright (C) 1992, 1997-2002, 2004-2015 Free Software Foundation, Inc.
[...]
This breaks at least one of my sc
The change in grep 2.22 is due to an earlier bug report:
http://bugs.gnu.org/21027
and was implemented by this patch:
http://git.savannah.gnu.org/cgit/grep.git/commit/?id=c5c70eae261133d71a9436557d998a48aaf0a5fe
Although I can see arguments either way, the grep 2.22 behavior is
consistent wit
On 2015-12-11 13:37:46 -0800, Paul Eggert wrote:
> The change in grep 2.22 is due to an earlier bug report:
>
> http://bugs.gnu.org/21027
This one was about --exclude-dir, whose description in grep 2.21 is
very unclear and it was already broken anyway:
zira:~> grep -rl e --exclude-dir='usr*' /us
On 12/11/2015 05:56 PM, Vincent Lefevre wrote:
or --exclude, the description is clear:
The description changed in grep 2.22, to match the 2.22 (also,
2.6-and-earlier) behavior.
As you say, the 2.22 behavior does not seem ideal. However, the 2.7
through 2.21 behavior wasn't ideal either. It'