From 83110b29514658510526f67d08b199b5195e62a7 Mon Sep 17 00:00:00 2001 From: Sam James Date: Mon, 17 Jun 2024 05:27:30 +0100 Subject: [PATCH] test: stop using which `which` is an external command which isn't required by POSIX. Debian and other distributions (like Gentoo!) are looking to drop it from their base set of packages. Switch to `command -v` which is, however, POSIX. See https://lwn.net/Articles/874049/. --- test/test_compression.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_compression.sh b/test/test_compression.sh index 60c23993b5..3ccfd247fc 100755 --- a/test/test_compression.sh +++ b/test/test_compression.sh @@ -21,7 +21,7 @@ PATH="$(pwd)/../src/flac:$PATH" -printf "Using FLAC binary : %s\n" "$(which flac)" +printf "Using FLAC binary : %s\n" "$(command -v flac)" date="$(date "+%Y%m%dT%H%M%S")" fname="comp${date}.flac"