4 ms·
I always though that "command -v" was more portable than "which": "command -v" is specified in posix and should always be present but "which" is not. But all m
by SuchAnonMuchWow 5y ago
I always though that "command -v" was more portable than "which": "command -v" is specified in posix and should always be present but "which" is not.
But all my knowledge about that comes from a small drama some times ago when a debian maintainer wanted to remove "which" from its current package (see https://lwn.net/SubscriberLink/874049/bf89a969ed3dde87/ https://lwn.net/SubscriberLink/874049/bf89a969ed3dde87/).
- macintux 5y agoDiscussed extensively here recently: https://news.ycombinator.com/item?id=29026623 https://news.ycombinator.com/item?id=29026623