From: Tomi Ollila Date: Sun, 9 Oct 2016 18:48:29 +0000 (+0300) Subject: test/T000-basic: replaced use of which(1) with shell builtin command -v X-Git-Tag: 0.24_rc0~124 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=6a3ce94aaf637db0308e87354b013ad7fd54705d;hp=5d05523659912c6b4221fe5246261df601ea41c8 test/T000-basic: replaced use of which(1) with shell builtin command -v Some minimal chroot/container environments don't have which(1) installed. --- diff --git a/test/T000-basic.sh b/test/T000-basic.sh index d6811bd1..0a8d6cdf 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