[PATCH] test/T000-basic: replaced use of which(1) with shell builtin command -v

Tomi Ollila tomi.ollila at iki.fi
Sun Oct 9 11:48:29 PDT 2016


Some minimal chroot/container environments don't have which(1) installed.
---
 test/T000-basic.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/T000-basic.sh b/test/T000-basic.sh
index d6811bd10756..0a8d6cdf40fc 100755
--- a/test/T000-basic.sh
+++ b/test/T000-basic.sh
@@ -92,7 +92,7 @@ test_expect_equal \
     "$(echo $PATH|cut -f1 -d: | sed -e 's,/test/valgrind/bin$,,')"
 
 test_begin_subtest 'notmuch is compiled with debugging symbols'
-readelf --sections $(which notmuch) | grep \.debug
+readelf --sections $(command -v notmuch) | grep \.debug
 test_expect_equal 0 $?
 
 test_done
-- 
2.8.2



More information about the notmuch mailing list