bug-gnulib
[Top][All Lists]
Advanced

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

Re: bug #17457: "grep -r foo . > somefile" goes into an infinite loop


From: Paolo Bonzini
Subject: Re: bug #17457: "grep -r foo . > somefile" goes into an infinite loop
Date: Sun, 24 Jul 2011 20:50:09 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20110707 Thunderbird/5.0

On 07/23/2011 11:12 PM, Jim Meyering wrote:

In my experience, dev/ino is sufficient, as long as you're not using one of
a few POSIX-violating fringe file systems (clearcase's MVS comes to mind).

What about a few POSIX-violating fringe operating systems (Windows and DJGPP come to mind)? :) For Windows we can write our own stat function in cygwin, but for DJGPP I think we're in a bad situation...

The attribute tests fix it in practice, but since this is not an optimization, perhaps gnulib's SAME_INODE module should provide an indicator of the reliability of the macro.

Paolo



reply via email to

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