2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-12 12:02:24 +00:00

Replace "whence" with "command" as that is more widely available.

[SVN r29733]
This commit is contained in:
Rene Rivera
2005-06-22 13:59:39 +00:00
parent 08091f76b0
commit ea46f36d69

View File

@@ -43,8 +43,8 @@ error_exit ()
# Check that a command is in the PATH.
test_path ()
{
if `whence 1>/dev/null 2>/dev/null`; then
whence $1 1>/dev/null 2>/dev/null
if `command 1>/dev/null 2>/dev/null`; then
command -v $1 1>/dev/null 2>/dev/null
else
hash $1 1>/dev/null 2>/dev/null
fi