GNU bug report logs - #27730
--exclude-dir does ignore subdirectory

Previous Next

Package: grep;

Reported by: Jiří Kozlovský <mail <at> jkozlovsky.cz>

Date: Mon, 17 Jul 2017 06:05:01 UTC

Severity: normal

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

Bug is archived. No further changes may be made.

Full log


Message #14 received at 27730 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Michael Thielker <mthielker <at> whttiger.net>
Cc: 27730 <at> debbugs.gnu.org
Subject: Re: bug#27730: --exclude-dir ignoring subdirectory
Date: Fri, 24 May 2019 16:02:38 -0700
On 5/24/19 1:13 PM, Michael Thielker wrote:
>     Can grep 2.6.3-3 be used with RHEL 6.10 to resolve our issue in the
>     meantime?

That sounds like a Red Hat issue more than an issue that needs to be 
answered upstream, so I suggest sending a bug report to Red Hat.

As I recall, it is a tricky area since the older grep documentation was 
ambiguous in this area and the implementation was inconstent, and 
nailing things down was bound to make one set of users or another unhappy.

Also see this change in grep 2.23:

  --exclude and related options are now matched against trailing
  parts of command-line arguments, not against the entire arguments.
  This partly reverts the --exclude-related change in 2.22.
  [bug introduced in grep-2.22]





This bug report was last modified 5 years and 202 days ago.

Previous Next


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