Talk:Which (command)
This article is rated Stub-class on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | ||||||||||||||
|
Most Unix-like computers
[edit]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
[edit]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).