[Buildroot] [PATCH 1/1] Prefer 'command -v' over 'which' (for portability)

Arnout Vandecappelle arnout at mind.be
Tue Jan 28 06:54:53 UTC 2014

On 27/01/14 10:19, Samuel Martin wrote:
> "command -v" seems not playing very well with aliases:
> $ command -v make
> alias make='~/.config/ctafconf/bin/colorwarper make'
> $ which make
> /usr/bin/make

  I don't think your .profile gets executed when running a shell script, 
so the alias will not be set. Bash does use BASH_ENV to specify a startup 
script, so perhaps we should unexport that.


Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F

More information about the buildroot mailing list