I'm coming from places like Why not use "which"? What to use then? and https://stackoverflow.com/questions/592620/how-to-check-if-a-program-exists-from-a-bash-script and am myself a long-time proponent of advising against the use of
which for all the well-known reasons. But this is looking like an uphill battle.
Why is it so hard to get people to abandon the
Many other POSIX innovations which were originally met with opposition and skepticism have over time become part of the normal U*x canon, but this seems to be one where adoption in the field is extremely spotty.
I'd like to understand why this specific POSIX recommendation is so hard for people to take to heart. Is it just that the POSIX stance has not been stable (first
command)? Or is it because the POSIX name
command is somehow hard to remember or internalize? (I am wondering if Bash had
command before POSIX did, perhaps with slightly different semantics?) Or is it still just the inundating mass of all the sites and forum posts which still recommend
which, along with its undoubtedly slightly catchy name?