I am having some strange behavoir with zsh ( 5.4.2_1 installed with homebrew ) on osx not using the first occurrence of an executable in the path.
Here is the scenario:
echo $PATH returns:
brew is in both
This is confirmed by running which -a brew which returns:
But when I run which brew it returns:
and brew does run
/usr/local/bin/brew rather than
How can this happen when brew is earlier in the path ?