emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#21026: closed (--exclude-dir matches search dir)


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#21026: closed (--exclude-dir matches search dir)
Date: Mon, 13 Jul 2015 23:36:03 +0000

Your message dated Mon, 13 Jul 2015 16:35:19 -0700
with message-id <address@hidden>
and subject line Re: bug#21027: --exclude-dir matches search dir
has caused the debbugs.gnu.org bug report #21027,
regarding --exclude-dir matches search dir
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
21027: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=21027
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: --exclude-dir matches search dir Date: Thu, 9 Jul 2015 22:47:37 -0400
This generates output:

$ grep -rl --exclude-dir=usr LINUX /usr/include

and this doesn't:

$ grep -rl --exclude-dir='usr*' LINUX /usr/include

This feels like a bug. My actual use-case is more like the following, but the above seems like a more universal test case.

$ grep -rl --exclude-dir='.*' /home/aron/.virtualenvs/pp/src PATT

This surprised me by not generating any results. I had expected the exclusion to only affect dirs within the given path, not match on the path itself, but it seems to be aborting because '.*' matches '.virtualenvs'.  Is this a bug or just a bad assumption on my part?

$ grep --version
/usr/bin/grep (GNU grep) 2.21

Thanks,
Aron

--- End Message ---
--- Begin Message --- Subject: Re: bug#21027: --exclude-dir matches search dir Date: Mon, 13 Jul 2015 16:35:19 -0700 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0
Aron Griffis wrote:
This generates output:

$ grep -rl --exclude-dir=usr LINUX /usr/include

and this doesn't:

$ grep -rl --exclude-dir='usr*' LINUX /usr/include

This feels like a bug.

Thanks for reporting that.  I installed the attached patch.

Attachment: 0001-grep-fix-bug-with-exclude-dir-and-command-line.patch
Description: Text Data


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]