[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #26281] find -depth sometimes visits nodes in the wrong order
From: |
James Youngman |
Subject: |
[bug #26281] find -depth sometimes visits nodes in the wrong order |
Date: |
Tue, 21 Apr 2009 22:56:36 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.7) Gecko/2009032813 Iceweasel/3.0.6 (Debian-3.0.6-1) |
Follow-up Comment #2, bug #26281 (project findutils):
There is a second alternative interpretation of events, I think. The POSIX
description for -depth is:
-depth
The primary shall always evaluate as true; it shall cause descent of the
directory hierarchy to be done so that all entries in a directory are acted on
before the directory itself. If a -depth primary is not specified, all entries
in a directory shall be acted on after the directory itself. If any -depth
primary is specified, it shall apply to the entire expression even if the
-depth primary would not normally be evaluated.
One reading of this is that the paragraph above only requires that
"dir/m4/Makefile.am" and "dir/Makefile.am" are both processed before "dir"
itself, but that no guarantee need be made about the relative ordering of the
visits to the two files.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?26281>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/