bug-grep
[Top][All Lists]
Advanced

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

[bug #36324] grep version 2.12 --include --exclude STILL BROKEN since 2.


From: Quentin Arce
Subject: [bug #36324] grep version 2.12 --include --exclude STILL BROKEN since 2.5.6 or so...
Date: Fri, 27 Apr 2012 21:26:12 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.162 Safari/535.19

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.


address@hidden:~/grep-2.12/tests/gt-include-exclude.dQeg/x$ echo : >> a
address@hidden:~/grep-2.12/tests/gt-include-exclude.dQeg/x$ echo : >> b
address@hidden:~/grep-2.12/tests/gt-include-exclude.dQeg/x$ grep  :  *
a::
b::
address@hidden:~/grep-2.12/tests/gt-include-exclude.dQeg/x$ grep  --include=a : 
*
b::
address@hidden:~/grep-2.12/tests/gt-include-exclude.dQeg/x$ grep  --exclude=a : 
*
b::
address@hidden:~/grep-2.12/tests/gt-include-exclude.dQeg/x$ grep  --exclude=*a 
: 
*
b::
address@hidden:~/grep-2.12/tests/gt-include-exclude.dQeg/x$ grep  --include=*a 
: 
*
b::
address@hidden:~/grep-2.12/tests/gt-include-exclude.dQeg/x$ grep  --include=*b 
: 
*
a::
address@hidden:~/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

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