From ea46f36d6965267dd40428c9b1305b526a1d06d5 Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Wed, 22 Jun 2005 13:59:39 +0000 Subject: [PATCH] Replace "whence" with "command" as that is more widely available. [SVN r29733] --- src/engine/build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/build.sh b/src/engine/build.sh index b2c1292b6..17c70d4ca 100755 --- a/src/engine/build.sh +++ b/src/engine/build.sh @@ -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