Re: Guaranteed order among starting points?

"Ronan Pigott" <[email protected]>
Newsgroups gmane.comp.gnu.findutils.bugs
Message-ID <[email protected]>
Hey Bernhard,

Thanks for the response.

> The man page of GNU find(1) is quite clear about the order (right at the top
> of the page):
> https://git.savannah.gnu.org/cgit/findutils.git/tree/find/find.1?id=9a6b5821#n13
> 
>  GNU find searches the directory tree rooted at each given starting-point by
>  evaluating the given expression from left to right, [...]

I had read this line, but originally interpreted it only to mean that the
"expression" argument, consisting of the filters and flags, has this guarantee —
a strict order of filters/expressions may be helpful for careful application of
any side-effects like -delete. Looking again I think the man page is a little
unclear here.

> P.S. The order of output for files found _below_ a starting point is not
> defined, though.

Thankfully I don't care about this!

Cheers,
Ronan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.