Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • "it's not an effect, it's a consequence" I take this for a "yes". And: exactly because of this "equivalence" I want to know if they share a common source. I was not asking how find works, but what makes -prune a bit special, besides the boolean expression-action language per se, and if not both GNU and POSIX could use a few extra lines to clarify. (Even if it can never be as clear as you explain all this.) Commented Oct 29, 2019 at 11:32
  • You’re missing the objects of the effect and consequence. Asking “Are not both totally ignoring -prune's main effect?”, with your definition of “-prune’s main effect”, is similar to asking “Are not both totally ignoring that cows have wings?” You should take my answer for a “no”, because there is nothing to ignore: cows don’t have wings, and -prune’s main effect isn’t what you’re describing. Commented Oct 29, 2019 at 12:09
  • @rastafile, you can do something similar with -o even without touching -prune. Say something like running different commands for files and for directories: find . -type f -exec echo file: {} \; -o -type d -exec echo dir: {} \; Commented Nov 1, 2019 at 8:57