URL:
  <http://savannah.gnu.org/bugs/?36324>

                 Summary: grep version 2.12 --include --exclude STILL BROKEN
since 2.5.6 or so... 
                 Project: grep
            Submitted by: qarce
            Submitted on: Fri 27 Apr 2012 09:26:12 PM GMT
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

Given a directory containing some C files

foo.c
bar.c
dog.c

The following used to work to show the defines in bar.c and dog.c

grep --include="*.c" --exclude="foo.c" define *

Now... the --include="*.c" acts as if it is --exclude and you get NOTHING!!!!

Here is a quick test based on your test script to show what I am talking
about.


qarce@linux:~/grep-2.12/tests/gt-include-exclude.dQeg/x$ echo : >> a
qarce@linux:~/grep-2.12/tests/gt-include-exclude.dQeg/x$ echo : >> b
qarce@linux:~/grep-2.12/tests/gt-include-exclude.dQeg/x$ grep  :  *
a::
b::
qarce@linux:~/grep-2.12/tests/gt-include-exclude.dQeg/x$ grep  --include=a : 
*
b::
qarce@linux:~/grep-2.12/tests/gt-include-exclude.dQeg/x$ grep  --exclude=a : 
*
b::
qarce@linux:~/grep-2.12/tests/gt-include-exclude.dQeg/x$ grep  --exclude=*a : 
*
b::
qarce@linux:~/grep-2.12/tests/gt-include-exclude.dQeg/x$ grep  --include=*a : 
*
b::
qarce@linux:~/grep-2.12/tests/gt-include-exclude.dQeg/x$ grep  --include=*b : 
*
a::
qarce@linux:~/grep-2.12/tests/gt-include-exclude.dQeg/x$




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?36324>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/


Reply via email to