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...
[a...@perry] ~/test
$ grep -Rl test *
subdir/test.cpp
test.cpp
# test.cpp in the current directory isn't returned
[a...@perry] ~/test
$ grep -Rl --include=\*.cpp test *
subdir/test.cpp
# I only asked for .h files, why is a .cpp file being returned?
[a...@perry] ~/test
$ grep -Rl --include=\*.h test *
test.cpp
# Non-recursive, nothing gets returned.
[a...@perry] ~/test
$ grep -l --include=\*.cpp test *
# Non-recursive, wrong file type returned.
[a...@perry] ~/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/