>>>>> On Fri, 13 May 2022, Michael Orlitzky wrote:

>> So, should we join the "which hunt", with the goal of removing
>> sys-apps/which from the system set and from stage1?

> Yes, although I would suggest "command -v" as a POSIX replacement that
> can be sent upstream. The "type" utility is also standard, but the "-p"
> flag is not, so "type -p" creates some pointless bashisms.

This depends on context. I think with bash "type -p" is the better
choice, because it simply prints the path which is machine readable
without any postprocessing.

In other posixly-correct contexts "command -v" may be the best
alternative available, indeed.

> Both are built-in to bash so there's no performance penalty in ebuilds
> either way.

Attachment: signature.asc
Description: PGP signature

Reply via email to