find with -print0 returns incorrect results

Michael Hennebry hennebry at web.cs.ndsu.NoDak.edu
Tue Dec 11 20:03:01 UTC 2007


On Tue, 11 Dec 2007, Rick Stevens wrote:

> Glad to hear it.  BTW, the evaluation order is significant with an
> optimized system.  In a chain of "ands" such as "a and b and c", if a is
> true and b is false, there's no reason to even evaluate c, since the
> proposition is already false.  Most systems take advantage of that to
> speed execution.  Yes, it technically violates Boole's laws, but what
> the heck?

Not really.
Boole's laws don't say anything about the amount
of work one is supposed to do to get an answer.
In any case, it's find's laws that matter and
the find documentation is clear on the subject.
-and is roughly the && of C and
-or is roughly the || of C.

-- 
Mike   hennebry at web.cs.ndsu.NoDak.edu
"Horse guts never lie."  -- Cherek Bear-Shoulders




More information about the fedora-list mailing list