Debian's which hunt
Debian's which hunt
Posted Oct 28, 2021 16:06 UTC (Thu) by Taywee (guest, #154131)In reply to: Debian's which hunt by ncm
Parent article: Debian's which hunt
For the purposes of most scripting use, which could easily just be aliased to command -v, or replaced with a small wrapper script around it, given that the exit status is what the average scripter would depend upon anyway.
POSIX is specified by the IEEE Computer Society, so that's who decided it. I don't think it much matters, though, as much of Linux use isn't constrained by POSIX anyway. I wonder how many build scripts would break if POSIX command line argument parsing was strictly followed (which mandates all option arguments before all positional arguments). I don't think having which as some universally-available alias for command -v would do any harm.
