GNU bug report logs - #22144
--exclude no longer works against arguments with a directory name

Previous Next

Package: grep;

Reported by: Vincent Lefevre <vincent <at> vinc17.net>

Date: Fri, 11 Dec 2015 18:38:02 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Vincent Lefevre <vincent <at> vinc17.net>
Cc: 22144 <at> debbugs.gnu.org
Subject: bug#22144: --exclude no longer works against arguments with a directory name
Date: Mon, 28 Dec 2015 01:09:40 -0800
[Message part 1 (text/plain, inline)]
Vincent Lefevre wrote:
> 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!

Please try the attached patch, which I've installed into the savannah 
repository. It attempts to fix the behavior, and to clarify the documentation. 
It is a tricky area. Hope this helps.
[0001-grep-exclude-matches-trailing-parts-of-args.patch (text/x-diff, attachment)]

This bug report was last modified 9 years and 140 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.