]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Use command -v instead of which in res_search.vgtest prereq.
authorMark Wielaard <mark@klomp.org>
Wed, 20 Jan 2016 23:15:04 +0000 (23:15 +0000)
committerMark Wielaard <mark@klomp.org>
Wed, 20 Jan 2016 23:15:04 +0000 (23:15 +0000)
"command -v" is a (POSIX) shell builtin that should work everywhere.
"which" might be an external command that might not be installed in
which case the shell might just error out.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15765

none/tests/res_search.vgtest

index 24a35fc0d90534c4f3c8fd6f7f1918a95148d6dc..3a03261264db463c53b090ad7d380bde944a89ba 100644 (file)
@@ -1,4 +1,4 @@
-prereq: which host >/dev/null 2>/dev/null && host www.yahoo.com > /dev/null && ! ../../tests/os_test darwin
+prereq: command -v host >/dev/null 2>/dev/null && host www.yahoo.com > /dev/null && ! ../../tests/os_test darwin
 prog: res_search
 args: www.yahoo.com
 vgopts: -q