URL:
<http://savannah.gnu.org/bugs/?30792>
Summary: --ignore-dir should not override files passed on
the command line
Project: grep
Submitted by: None
Submitted on: Tue 17 Aug 2010 05:03:47 AM UTC
Category: None
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
The following command is bafflingly a no-op:
grep -r --ignore-dir='.*' foo .
It took me a while to realize what was going on, partially because the man
page is confusing about whether --ignore-dir accepts a glob, or a regex, or
neither.
The problem is that the --ignore-dir option is overriding the fact that I
explicitly told grep to search ".". I think any files/dirs explicitly passed
on the command line should override any ignore options.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?30792>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/