On Tue, Jul 25, 2017 at 5:10 PM, Paul Eggert <egg...@cs.ucla.edu> wrote: > Kamil Dudka wrote: >> >> Any chance to make the (still documented) -noleaf option of find work >> again? > > > I'm inclined to agree with Pádraig, in thinking that fts should Just Work > without the complexity of an extra option to disable an optimization that is > supposed to work.
Historically the main advantage of -noleaf was allowing easy diagnosis of a file system bug. This is needed much less frequently now that leaf optimisation is automatically turned off for /proc on Linux. > As things stand, 'find' can disable leaf optimization by using a bigger > hammer, namely, turn off FTS_CURDIR. However, my suggestion is to deprecate > the -noleaf option while you're at it. I don't see FTS_CURDIR in fts_.h. Is that the right enum name? James.