Subject: Re: [PATCH 2/2] git: continue alias lookup on EACCES errors

From: Jonathan Nieder <[email-masked]>
Date: Wed, 28 Mar 2012 14:45:16 -0500

Jeff King wrote:

> 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