bug-findutils
[Top][All Lists]
Advanced

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

[bug #20865] -delete interacts with -prune


From: James Youngman
Subject: [bug #20865] -delete interacts with -prune
Date: Sat, 08 Sep 2007 11:49:55 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20070310 Iceweasel/2.0.0.3 (Debian-2.0.0.3-2)

Follow-up Comment #5, bug #20865 (project findutils):

Following some discussion on the mailing list, I'm inclined to think that
Bruno's point is rational.  POSIX doesn't define -delete, so in theory we
could change it.    However, other implementations (notably *BSD) have -delete
imply -depth.   I am inclined to avoid a gratuitous incompatibility.

Options:
0. Make the documentation more explicit
1. Issue a warning message if -delete is specified without -depth
2. Add a -nodepth option (but this is a poor name I suppose)
3. Add a new action (say, -remove) which does not imply -depth

Looks like (0) is obvious, so I'll go ahead regardless with that. 

Doing (1) seems reasonable, but there was widespread complaining about the
addition of the "options should appear before actions" warning message...  

Option (2) is a more general solution but I haven't considered it much yet.  


Option (3) is superficially attractive but it's arbitrary, solves just this
specific problem, and it will be hard for everybody to remember which action
implies -depth and which does not.


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?20865>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

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