GNU bug report logs -
#22144
--exclude no longer works against arguments with a directory name
Previous Next
Full log
Message #17 received at 22144 <at> debbugs.gnu.org (full text, mbox):
On 2015-12-11 19:31:46 -0800, Paul Eggert wrote:
> 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.
My quote was from the grep 2.22 description (grep 2.22-1 Debian
package). It seems that this has changed later:
http://www.gnu.org/software/grep/manual/grep.html
which is different:
Skip files whose name matches the pattern glob, using wildcard
matching. When searching recursively, skip any subfile whose base
name matches glob; the base name is the part after the last ‘/’.
A pattern can use ‘*’, ‘?’, and ‘[’...‘]’ as wildcards, and \ to
quote a wildcard or backslash character literally.
The documentation is still ambiguous. For the "main case", is this
the canonical name as returned by realpath?
> As you say, the 2.22 behavior does not seem ideal.
By doing a difference for subfiles of a recursive search, this is
even worse!
--
Vincent Lefèvre <vincent <at> vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
This bug report was last modified 9 years and 141 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.