From ef1e185e2cff2635b81d5d6cc182c128e29b1bb8 Mon Sep 17 00:00:00 2001 From: Sam James Date: Wed, 19 Jun 2024 10:36:29 +0100 Subject: [PATCH] test: stop using which (#709) `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 60c23993..3ccfd247 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"