[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #29876] --include not working as expected
From: |
anonymous |
Subject: |
[bug #29876] --include not working as expected |
Date: |
Thu, 13 May 2010 14:28:21 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/533.2 (KHTML, like Gecko) Chrome/5.0.342.9 Safari/533.2 |
URL:
<http://savannah.gnu.org/bugs/?29876>
Summary: --include not working as expected
Project: grep
Submitted by: None
Submitted on: Thu May 13 14:28:20 2010
Category: None
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
The --include option seems completely broken to me. I am using v2.6.3 on
Arch Linux.
Example:
# Normal recursive grep works ok...
address@hidden ~/test
$ grep -Rl test *
subdir/test.cpp
test.cpp
# test.cpp in the current directory isn't returned
address@hidden ~/test
$ grep -Rl --include=\*.cpp test *
subdir/test.cpp
# I only asked for .h files, why is a .cpp file being returned?
address@hidden ~/test
$ grep -Rl --include=\*.h test *
test.cpp
# Non-recursive, nothing gets returned.
address@hidden ~/test
$ grep -l --include=\*.cpp test *
# Non-recursive, wrong file type returned.
address@hidden ~/test
$ grep -l --include=\*.h test *
test.cpp
I've tried using various combinations of backslashes, single and double
quotes on the --include parameter, but to no avail.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?29876>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug #29876] --include not working as expected,
anonymous <=