On Thu, Aug 14, 2025 at 12:15:25 +0200, Rocky Hotas wrote:

> It seems to work, but it's somewhat cumbersome.  In GNU find, there
> is a single dedicated option, `-executable'.

-executable is, like test -x, an access(2) test.  The simple bitmask
test, as has already been mentioned upthread, is -perm /0111

I stumble into this from time to time, when I need it and by habit
type the deprecated old syntax -perm +mode which, apparently, hasn't
been supported for 20 years now.

Adding /mode to netbsd find(1) would be nice, I think. (And I just
auto-typed that as +mode first, and had to go back and correct
it... *sigh*).

-uwe

Reply via email to