bug-findutils
[Top][All Lists]
Advanced

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

Re: find -delete .. Do What I Mean?


From: Leslie P. Polzer
Subject: Re: find -delete .. Do What I Mean?
Date: Wed, 5 Sep 2007 14:44:16 +0200 (CEST)
User-agent: SquirrelMail/1.4.9a

> With all other tools I use, I'm used to indifference of the order of the
> arguments. In find's case, placing -delete before -iname happily deletes
> every file and folder below the current directory. Without warning or
> confirmation. Even if this is not a bug, this clearly does not follow the
> "Do What I Mean" principle.

Yes. Perhaps an action as first argument should be treated specially.


> I would like to know if this can be submitted as a bug. And if not, why this
> behavior was chosen.

Well, find *is* indifferent to the order -- of "expressions".
An expression, however, may consist of more than one command-line
argument, the order of which does matter. There's not really
a way to change this globally, more so if the traditional behaviour
is not to be broken. It just has to happen that way.

  Leslie





reply via email to

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