Skip to content

Commit

Permalink
test: stop using which
Browse files Browse the repository at this point in the history
`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/.
  • Loading branch information
thesamesam committed Jun 17, 2024
1 parent a0f6661 commit 83110b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_compression.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 83110b2

Please sign in to comment.