Mail Archives: djgpp-workers/2002/11/27/03:53:33
On Wed, 2002-11-27 at 08:02, Andrew Cottrell wrote:
> This is an FYI at the moment, unless someone else wants to investigate it.
>
> I was sent a grep problem by someone, but I cannot read the email address so
>
> DJGPP_204 C:\dj204\tmp>grep -r "ddd" C:\dj204\tmp\*
> grep: C:\dj204\tmp\RHaaaaaa: Permission denied (EACCES)
> grep: C:\dj204\tmp\RHbaaaaa: Permission denied (EACCES)
> grep: C:\dj204\tmp\cvs: Permission denied (EACCES)
Sounds like directories (especially the 'cvs' one), which suggests that
grep is reading directories (which is the default, though perhaps it
shouldn't be on DOSish systems).
Try adding '-d skip' to ignore dirs; that should shut up the errors.
Also, try using '-d recurse' instead of '-r'; the two are supposed to be
equivalent, but if that also gives the errors, there's clearly a bug in
grep.
> DJGPP_204 C:\dj204\tmp>grep "ddd" ...\*
Is .../blah* supposed to ever match directories? Or just all the files?
Of course, all this assumes the failing names above refer to
directories.
> I will look at this over the next week or two and send another email with my
> results or request for help.
--
Tim Van Holder <tim DOT van DOT holder AT pandora DOT be>
- Raw text -