3 ms·
> that only told me the location of zsh the executable which is only correct because I added homebrew's /usr/local/bin location to my PATH Eh, why not remove i
by reportgunner 6y ago
> that only told me the location of zsh the executable which is only correct because I added homebrew's /usr/local/bin location to my PATH
Eh, why not remove it from PATH then ?
- contingencies 6y agoYou can temporarily alter environment variables like this: PATH= /path/to/command That will run /path/to/command with the PATH variable unset.
- saagarjha 6y ago/usr/local/bin is on PATH by default on macOS.
- em500 6y agoI think you're missing the point. The author wants to know the location of the binary of the shell he's currently running. Changing PATH doesn't help answering this question: it only changes what `which` displays, but the point of the author is that `which` is not the correct tool to help answering this question.