[bug #54745] -mount needs to be slightly different from -xdev

2018-09-27 Thread Eric Blake
URL: Summary: -mount needs to be slightly different from -xdev Project: findutils Submitted by: ericb Submitted on: Thu 27 Sep 2018 09:31:35 AM MDT Category: None Seve

[bug #54730] Add additional valuable example of find -quit

2018-09-27 Thread INVALID.NOREPLY
Follow-up Comment #8, bug #54730 (project findutils): Compare with the current: "find /tmp/foo /tmp/bar -print -quit will print only /tmp/foo." ___ Reply to this item at: __

[bug #54730] Add additional valuable example of find -quit

2018-09-27 Thread INVALID.NOREPLY
Follow-up Comment #7, bug #54730 (project findutils): You guys are brilliant. Here's some more: When just one is enough: # find /proc -name 11 -print | wc -l 178 # find /proc -name 11 -print -quit | wc -l 1 Or better yet: Where did I put that file called "needle2"? No reason to keep looking for

[bug #54730] Add additional valuable example of find -quit

2018-09-27 Thread Bernhard Voelker
Follow-up Comment #6, bug #54730 (project findutils): wild idea: to affect the exit code of find, we could add -quit1 or even -quit= (e.g. -quit=1). But that's a different story. What do you think about the doc example? ___ Reply to this

[bug #54730] Add additional valuable example of find -quit

2018-09-27 Thread James Youngman
Follow-up Comment #5, bug #54730 (project findutils): Hmm, given that -exec ... ; does not affect the exit status, it is unfortunate that there is no other way for the user to (directly) affect it. Viz: jupiter:~$ find / -exec false \; -o -quit jupiter:~$ echo $? 0 The most obvious workaround

[bug #54730] Add additional valuable example of find -quit

2018-09-27 Thread Bernhard Voelker
Follow-up Comment #4, bug #54730 (project findutils): I agree. I'm trying to find a good example. What about the following? --- Find the name of a file in the current directory (and below) which contains the word "nee