3 ms·
I wonder what version of POSIX "command -v" conforms to, and if which might have become widespread before it. [Edit: * Some googling suggests maybe this made i
by asveikau 5y ago
I wonder what version of POSIX "command -v" conforms to, and if which might have become widespread before it.
[Edit:
* Some googling suggests maybe this made it into posix circa 1995? Base specification issue 4.
* Wikipedia says which came about in 3BSD which was from the late 70s -- OpenBSD manpage also says this.
* My FreeBSD machine's manpage says FreeBSD 2.1 which is also 1995.]
I have an old Solaris box I don't power on, which I purchased for the novelty more than 20 years ago. It has which. Its semantics are slightly different from a typical Linux or *BSD implementation, but it's there.