[Buildroot] [RFC PATCH 0/2] use `command -v' instead of `which'
Peter Korsgaard
peter at korsgaard.com
Sat Oct 9 10:01:22 UTC 2021
>>>>> "Arnout" == Arnout Vandecappelle <arnout at mind.be> writes:
Hi,
> From this, I actually conclude that it is indeed safer to go to
> command -v, with a wrapper script that we add to $PATH to handle the
> case where make tries to bypass the shell.
If command is always a shell builtin and we already do the dance to find
bash, how about just doing something like:
$(shell $(SHELL) -c "command -v ...")?
--
Bye, Peter Korsgaard
More information about the buildroot
mailing list