I cannot explain the following behavior:
[centos4x64 ~] /usr/local/bin/gmake --version GNU Make 3.82 Built for x86_64-unknown-linux-gnu Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. [centos4x64 ~] which gmake /usr/local/bin/gmake [centos4x64 ~] gmake --version GNU Make 3.80 Copyright (C) 2002 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Why doesn't the unqualified gmake match the one given by
which? Note that I have v3.80 in /usr/bin/gmake. This is in bash on a 64 bit version Centos 4.