Subject: | _find_in_path failures |
_find_in_path currently fails if a directory in PATH does not exist. An example CPAN testers fail report:
http://www.cpantesters.org/cpan/report/23476ddc-af7f-11e3-8610-53fae0bfc7aa
I think the failure is unnecessary; normal shells ignore non-existent directories in PATH silently, and so should this function.
And actually doing opendir()/readdir() here is unnecessary. Just checking -x "$dir/$locate" is probably faster.
Regards,
Slaven