--include not working in 2.5.1a-1
Provides native Win32 open source ports and utilities
Brought to you by:
gnuwin32
Hi,
I have downloaded the 2.5.1a-1 of grep.exe and run this test:
grep -R --include=*.txt -P help *
It does not simply display/process the text file, it does not find the line in one of the text file in the sub-directory.
I have to use this:
grep -R -P help *
to pick up the line in the text file but of course the result is clouded with the binary files also containing the string.
I then downloaded the grep 2.5.1a and this one runs through the test flawlessly.
So obviously there is a bug in the binary between 2.5.1a and 2.5.1a-1.
Thanks.
Logged In: YES
user_id=821871
Originator: NO
For me with grep 2.5.1, --include="*.txt" seems to have no effect. It searches all files anyway.
c:> grep -R --include="no_such_file" -P Vec3f code
... finds tons of hits and none of them are in a file called 'no_such_file'
c:>which grep
C:/gnuwin32/bin/grep.EXE
c:>grep --help
Usage: grep [OPTION]... PATTERN [FILE] ...
Search for PATTERN in each FILE or standard input.
Example: grep -i 'hello world' menu.h main.c
. . .
Logged In: YES
user_id=821871
Originator: NO
Nevermind. I see the broken --include is a bug that was fixed by 2.5.1a.
Logged In: YES
user_id=217802
Originator: NO
This bug has been fixed. A new release is available through
http://gnuwin32.sourceforge.net/