[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bugs in GNU grep for DOS/Win
From: |
Eli Zaretskii |
Subject: |
Re: bugs in GNU grep for DOS/Win |
Date: |
Thu, 21 Jun 2001 10:54:30 +0300 (IDT) |
On Thu, 21 Jun 2001, Eric Pement wrote:
> I'm using GNU grep v2.4 and v2.4.2, compiled for MS-DOS/Windows. My
> platform is Win95 OSR2 (FAT32 file system). I've tried both the DJGPP
> compilation and the CYGWIN compilation. Neither one of these gives me
> directory recursion. I.e., they will not search down the directory
> tree for files in subdirectories. I'm typing:
>
> grep -r "anything" *.*
> grep --recursive "anything" *.*
>
> Can anyone else confirm this behavior or explain what may be wrong?
The problem is that you used "*.*", instead of just "*". The former will
search only in subdirectories whose names have extensions, and I'm
guessing that this is not what you wanted. "*" will catch all files and
directories, with or without extensions.
In other words, the wildcards used by Grep are Unix style, not DOS style.