Talk:Which (command)

Most Unix-like computers
Is it really part of “most Unix-like computers”, or just GNU? I read that it isn’t on Mac OS X or Solaris. Vadmium (talk, contribs) 00:12, 12 November 2012 (UTC).

Answering myself: According to the Posix command page, which is part of the C Shell, so maybe that’s where it originally came from. Vadmium (talk, contribs) 11:37, 12 November 2012 (UTC).

Mention phasing out
E.g., on Debian one already sees …`which' is deprecated; use `command -v' in scripts instead. Jidanni (talk) 12:51, 27 August 2021 (UTC)

That isn't "phasing out." Not across the board, anyway. That's one distribution's maintainer deciding to get rid of it in debian-utils, specifically. It is not going anywhere on many other GNU/Linux distros, nor is it going anywhere on the BSD's (which have had `which' for quite some time now - it was originally introduced in the BSD's by Bill Joy before Sun). Additionally, those commercial Unix systems that do have it are probably not phasing it out either. `command -v' also doesn't do everything exactly the same as `which' does (there is no `which -a' equivalent functionality, and shell functions/aliases are handled differently).

Wyatt8740 (talk) 04:13, 24 February 2022 (UTC)