|
|
Log in / Subscribe / Register

Debian's which hunt

Debian's which hunt

Posted Oct 28, 2021 15:50 UTC (Thu) by ncm (guest, #165)
In reply to: Debian's which hunt by dskoll
Parent article: Debian's which hunt

Yes, this is the first time I have encountered "command -v". How are we supposed to have heard of it? Who decided it should be the real Posixy thing, and "which" not?

It should be a pretty small effort to replace uses of "which" in packages that use it. After that, replacing "which" itself with a one-liner that says "use command -v" then "exit 1" is another small effort. Moving it out of the package it is in seems like pointless extra work.


The LWN site is currently under high scraper load, so comment display has been suppressed for anonymous users. If you are a human, you may read the comments by clicking the button below:

Note: you can avoid this step in the future by logging into your LWN account.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds