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).[reply]

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).[reply]

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)[reply]


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)[reply]

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.