News for hackers. Stuff that matters.
Re:Which is not Posix by asveikau on Monday November 01, 2021 @03:38PM (#29071903)
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.

There are no comments on this comment yet.