tests/atlocal.in - switched from which to command -v
authorFriedrich Beckmann <friedrich.beckmann@gmx.de>
Sun, 26 Jun 2022 07:07:18 +0000 (09:07 +0200)
committerFriedrich Beckmann <friedrich.beckmann@gmx.de>
Sun, 26 Jun 2022 07:07:18 +0000 (09:07 +0200)
Sam James reported a possible future build problem due to the
usage of the "which" command:

https://savannah.gnu.org/bugs/?62675

I replace "which" with "command -v" as proposed. Thanks for your
support.

Closes: 62675
tests/atlocal.in

index 42119f32494740d1d5c480ba41277b9b94dc3141..4170feda3337d2e76b4fa23cc380e6d443394c15 100644 (file)
@@ -71,7 +71,7 @@ alias pspp='pspp --no-statrc'
 # Avoids error messages during tests if $TERM is set to an unknown terminal.
 TERM=; unset TERM
 
-pspp_diff=`which diff`
+pspp_diff=`command -v diff`
 if test X"$RUNNER" = Xwine; then
     diff () {
         $pspp_diff -w  "$@"