Fedora uses a redefinition of the which command, which is pretty annoying as it breaks my openwrt build. The executable at /usr/bin/which looks fine, but when I run which which I get
Thanks, the last option is indeed the most convenient for me and works very well.
While I agree with you, I admit that there could be differing opinions.
Openwrt uses
$(eval $(call SetupHostCommand,which,Please install 'which', \
which which | grep which))
in some makefile(?). Not sure how that could be rewritten in a way to work reliably across distributions which all might have different declarations of which and without introducing new dependencies just to check for the build requirements.