find with -print0 returns incorrect results

Razvan RACASANU razvanracasanu at gmail.com
Tue Dec 11 08:02:47 UTC 2007


On Dec 10, 2007 11:52 PM, Rick Stevens <rstevens at internap.com> wrote:
>
> No.  Remember, -print0 prints immediately, so the only test that was
> applied before the print was "-type f" in the first one.  In the second
> one, you did the "-iname" tests.  Since they fail on the "a.css" file,
> the -print0 wasn't invoked for that file.

Thanks a lot. As I originally understood it, -print0 was just another
test, so the evaluation order should not have mattered in that case,
but now it makes perfect sense.

Thanks,
Razvan RACASANU




More information about the users mailing list