bug-gnu-utils
[Top][All Lists]
Advanced

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

GREP 2.4.2 - 2.5.1a Recursion Problem


From: Alan C
Subject: GREP 2.4.2 - 2.5.1a Recursion Problem
Date: Sat, 4 Aug 2007 11:20:25 -0500

The program will not recurse when target files matching the file spec do not
exist in the top folder.

Under Win32 Versions:

grep (GNU grep) 2.4.2
Copyright 1988, 1992-1999, 2000 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

grep (GNU grep) 2.5.1
Copyright 1988, 1992-1999, 2000, 2001 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.



***** THIS WORKS
D:\greptest>tree /f
Folder PATH listing for volume New Volume
Volume serial number is 0006FE80 1C4B:1212
D:.
?   test.txt
?
????level2
        test.txt

D:\greptest>grep -ri "testtext" *.txt
testtext


******* THIS FAILS
******* CAN'T FIND MATCHES IN SUBFOLDERS
******* WITHOUT TOP LEVEL .txt FILE PRESENT
D:\greptest>tree /f
Folder PATH listing for volume New Volume
Volume serial number is 0006FE80 1C4B:1212
D:.
+---level2
        test.txt

D:\greptest>grep -ri "testtext" *.txt
grep: *.txt: No such file or directory




Also, for command line utilities (e.g. 2.5.1a, grep.exe, in GNUWin32) I
recommend that the compiled version be statically built without dependency
on DLL's. This makes it more easily transportable between systems (e.g. on a
USBKey).


Sincerely,

Alan Capesius
Tech World Support
address@hidden
http://www.twstore.com
TWISP










reply via email to

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