On 13/05/2022 09.11, Ulrich Mueller wrote:
So, should we join the "which hunt", with the goal of removing
sys-apps/which from the system set and from stage1?
Yes, please. If there is a equally powerful bash builtin, and even a
POSIX shell function, that performs the same task as the external
command, than the shell builtins should be used.
Since ebuilds are bash, it seems safe to use "type -p" in them.
Would it be possible to add a QA check to portage that detects invalid
usages of 'which' and flags them to be replaced with "type -p"? I think
that would be a good first step.
- Flow