bug-grep
[Top][All Lists]
Advanced

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

[bug #30792] --ignore-dir should not override files passed on the comman


From: anonymous
Subject: [bug #30792] --ignore-dir should not override files passed on the command line
Date: Tue, 17 Aug 2010 05:03:47 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.474.0 Safari/534.3

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/




reply via email to

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