News for hackers. Stuff that matters.
Re:Which is not Posix by yakubin on Monday November 01, 2021 @01:22PM (#29069847)
It is a built-in in zsh. Thanks to that, it will recognize when something is a built-in, an alias, a function or a command and report accurately what will be executed when you type it in without the "which".
Re:Which is not Posix by pxc on Monday November 01, 2021 @04:30PM (#29072635)
That's what `type` (or in zsh, `whence`) is for. Aliasing `which` just makes the behavior of running `which` slightly less predictable, and if what you actually want is the behavior of the `which` program, you then need to (know to) run `command which` instead.