Sample Header Ad - 728x90

What is which command output ordering?

0 votes
1 answer
248 views
In bash I see which returns the paths in order, but in zsh it has different ordering. I now primarily use zsh, how can I get proper output ordering of which in zsh? Why is it different? I expected the ordering to match my path. My path is: /usr/local/bin:/usr/bin
bash$ which -a git
/usr/local/bin/git
/usr/bin/git
zsh$ which -a git
/usr/bin/git
/usr/local/bin/git -> ../Cellar/git/2.32.0/bin/git
Asked by Michael Ozeryansky (143 rep)
Oct 23, 2021, 08:19 AM
Last activity: Oct 23, 2021, 11:47 AM