Re: [PATCH 2/2] git: continue alias lookup on EACCES errors
> That's what the patch I posted earlier does. But it means we _also_
> report "permission denied" for inaccessible directories, which is
> needlessly confusing (and much more common, I would think).
So the message could say
$ nosuch
nosuch: Permission denied
hint: A permissions problem was encountered searching for or
hint: executing that command on the $PATH.
hint: Check your PATH setting and permissions.
or even
$ nosuch
nosuch: No such file or directory or permission denied