Skip to content

Commit

Permalink
test: stop using which (xiph#709)
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 authored Jun 19, 2024
1 parent 1c58039 commit ef1e185
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 ef1e185

Please sign in to comment.