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

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

recurse directories option for grep


From: David Rennalls
Subject: recurse directories option for grep
Date: Wed, 01 Aug 2001 20:43:53 -0400

I seemed to have found a bug in
address@hidden --version
grep (GNU grep) 2.4.2

This is running from cygwin on Windows NT4.0 w/ Service Pack 6

the problem is with the recurse directories '-r' option. If no matching filetypes are found in the current directory grep does NOT proceed to recurse the subdirs.

for e.g. running "grep -r void *.cpp" on the following dir tree
returns "grep: No match" without checking the subdirs code1 and code2

.:
total 0
drwxr-xr-x   2 Administ None            0 Aug  1 20:41 code1
drwxr-xr-x   2 Administ None            0 Aug  1 20:41 code2

code1:
total 2
-rw-r--r--   1 Administ None            9 Aug  1 20:41 blah.cpp
-rw-r--r--   1 Administ None           20 Aug  1 20:41 blah2.cpp

code2:
total 2
-rw-r--r--   1 Administ None           10 Aug  1 20:41 blah3.cpp
-rw-r--r--   1 Administ None           21 Aug  1 20:41 blah4.cpp


- David Rennalls
address@hidden




reply via email to

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