Bug? Bad permissions in $PATH breaks Git aliases
- From
- James Pickens <jepicken@gmail.com>
- Date
- Mar 26, 2012, 23:48 UTC
- Message-ID
- <CAJMEqRBmuBJuUmeoAU-_xf=s10ybD9pXhUJT+fn8aHNE2WJz6A@mail.gmail.com>
Hi,
I'm not sure if this should be considered a bug or not, but I've noticed that when my $PATH contains an inaccessible directory, Git fails to execute aliases. For example:
git config alias.l log git l # works fine PATH=boguspath:$PATH mkdir boguspath chmod 000 boguspath git l # fatal: cannot exec 'git-l': Permission denied
I lean towards calling it a bug, since my shell doesn't seem to care if there are inaccessible directories in my $PATH. It just ignores them, and I think Git ought to do the same.
James