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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 17481 in the body.
You can then email your comments to 17481 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-grep <at> gnu.org:
bug#17481; Package grep. (Mon, 12 May 2014 20:48:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Paul Eggert <eggert <at> cs.ucla.edu>:
New bug report received and forwarded. Copy sent to bug-grep <at> gnu.org. (Mon, 12 May 2014 20:48:02 GMT) Full text and rfc822 format available.

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

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.





Reply sent to Paul Eggert <eggert <at> cs.ucla.edu>:
You have taken responsibility. (Sat, 24 May 2014 21:12:01 GMT) Full text and rfc822 format available.

Notification sent to Paul Eggert <eggert <at> cs.ucla.edu>:
bug acknowledged by developer. (Sat, 24 May 2014 21:12:02 GMT) Full text and rfc822 format available.

Message #10 received at 17481-done <at> debbugs.gnu.org (full text, mbox):

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 1 (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)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 22 Jun 2014 11:24:05 GMT) Full text and rfc822 format available.

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

Previous Next


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