GNU bug report logs - #17481
Mini bug with option --exclude-dir

Previous Next

Package: grep;

Reported by: Paul Eggert <eggert <at> cs.ucla.edu>

Date: Mon, 12 May 2014 20:48:01 UTC

Severity: minor

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: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Paul Eggert <eggert <at> cs.ucla.edu>
Subject: bug#17481: closed (Re: Mini bug with option --exclude-dir)
Date: Sat, 24 May 2014 21:12:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#17481: Mini bug with option --exclude-dir

which was filed against the grep package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 17481 <at> debbugs.gnu.org.

-- 
17481: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=17481
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Khaled Ziyaeen <ksz <at> cs.toronto.edu>
Cc: 17481-done <at> debbugs.gnu.org
Subject: Re: Mini bug with option --exclude-dir
Date: Sat, 24 May 2014 14:11:22 -0700
[Message part 3 (text/plain, inline)]
I pushed the attached patch to fix this.  Thanks again for reporting the 
problem.
[0001-grep-exclude-dir-FOO-now-ignores-the-trailing-slash.patch (text/plain, attachment)]
[Message part 5 (message/rfc822, inline)]
From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Khaled Ziyaeen <ksz <at> cs.toronto.edu>, bug-grep <at> gnu.org
Subject: Re: Mini bug with option --exclude-dir
Date: Mon, 12 May 2014 13:46:31 -0700
Severity: minor

Thanks for the bug report.  Unfortunately we didn't have enough time to 
get to this before the next grep release, but is a reasonable thing to 
do so I'll resend this to bug-grep so that it gets a proper bug report 
number (we're using a new bug-reporting system).

On 06/06/2013 08:48 AM, Khaled Ziyaeen wrote:
> Hello,
>
> I would like to report a bug in the implementation of the --exclude-dir
> option in GNU grep 2.10 version.
>
> If running > grep --exclude-dir "/hdd1/lib/udev/devices/" -r eads /hdd1
>
> It will still examine /hdd1/lib/udev/devices.
>
> However, if running > grep --exclude-dir "/hdd1/lib/udev/devices" -r eads
> /hdd1
>
> Then, that folder I wanted to include is actually ignored. I think that the
> extra slash at the end, while unnecessary, must not break down the
> ---exclude-dir feature.
>
> Happy to help fix the bug!
>
> Best,
>
> Khaled.




This bug report was last modified 11 years and 58 days ago.

Previous Next


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