bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Technical reason to use `-path "./foo" -prune` vs `-name "foo" -prun


From: James Youngman
Subject: Re: Technical reason to use `-path "./foo" -prune` vs `-name "foo" -prune`
Date: Tue, 5 Apr 2011 19:26:23 +0100

[re-adding the mailing list again]

On Tue, Apr 5, 2011 at 7:10 PM, Peggy Russell
<address@hidden> wrote:
> I find `-D search` the most helpful of debug options.

Good to know.   I didn't know anybody else used them.

> Most of the -D options seem
> geared towards optimization rather than diagnostic, although maybe
> I'll learn down the road that they are one in the same.

Well, I implemented -D as I was writing the cost-based optimiser, in
order to make it easier to visualise the effect of optimisations.

So if you have suggestions for things that need a -D option but do not
have one, please suggest away.

> Subtracting the directory, it seems more difficult to prevent
> `-name` from pruning './baz/umsp/foo'. It seems to make more
> sense and maybe safer in the long-run, to use `-path` when
> referring to a file that is a directory for pruning.

I totally agree.

Thanks,
James.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]