On Sat, Feb 13, 2010 at 01:43:34PM -0500, Larry Hall (Cygwin) wrote: > On 02/13/2010 05:08 AM, Gary wrote: > >Weird question maybe, but what permissions should the ".." directory > >entry have that sits in /home/<user>? > > > >I'm getting some weird behaviour from grep -r (in my home directory it > >appears to be traversing up the .. entry and trying to access other > >users' files) and wondering if the permissions are the cause. > > You sure you don't have a symlink or mount that grep can traverse in > that directory?
Hmm. There are some symlinks, but not to the other user's home directory. I know what it is. User error, I suppose. I did: $ grep -Irl foo .* I should have done $ grep -Irl foo .[^\.]* which correctly searches just the dotfiles without traversing "..". -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple