From: Michael Schubert Date: Sun, 08 May 2011 16:15:25 GMT Subject: Re: git alias fails if non-accessible directory is in PATH Message-ID: <4DC6C19D.4060704@elegosoft.com> In-Reply-To: > Is this by design, or a bug? I currently do not see a reason for git stop executing an alias just because it cannot access a directory in PATH. Strangely, I also haven't found any discussion about this on the mailing list yet. If you look at start_command(), `git br` ends up as execvp call returning EACCESS in the given case whereas only ENOENT was "expected". This happens before git tries to resolve the alias. Could it be a legit assumption that PATH holds only accessible paths? (POSIX?) Otherwise it's a bug.