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

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

Re: grep -- recursion on Cygwin fix


From: Eli Zaretskii
Subject: Re: grep -- recursion on Cygwin fix
Date: Wed, 11 Apr 2001 19:21:24 +0300

> From: address@hidden (Charles Lane)
> Date: Wed, 11 Apr 2001 11:20:15 EDT
> 
> bash> grep -r * -e stuff
> 
> reports "permission" errors on directory files, and does not recurse, when
> used under Cygwin...this has been reported on the Cygwin message boards, but
> not fixed AFAIK.
> 
> Here's a patch to grep 2.4.2 that fixes the recursion...simply put, the
> "access" function doesn't work on Cygwin, but "stat" seems to be fine.
> Perhaps "stat" is the more portable solution?

Isn't it better to simply fix `access' in the Cygwin library?  `stat'
is more expensive than `access', particularly on non-Posix platforms;
why should they be punished?  And why shouldn't `access' work in
Cygwin?



reply via email to

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