#!/usr/bin/env perl
+
+use 5.010;
use strict;
use warnings;
use File::Find;
/bin
/usr/bin
/usr/sbin
+ /usr/lib
/usr/libexec
/usr/local/bin
/usr/local/sbin
eval {
find(
sub {
- return unless $tool eq $_ and -x $_ and -f _;
+ return $File::Find::prune = 1 unless -r -x -r;
+ return unless $tool eq $_ and -x and -f _;
die { found => $File::Find::name };
},
@dirs