From d8df89c29d2df55d5ffba45f56ffc4fee7dd0e28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A1draig=20Brady?= Date: Tue, 3 Nov 2026 13:19:18 +0000 Subject: [PATCH] tests: fix false failure with spaces in the path * tests/sort/sort-compress.sh: Quote the found sort exe. Reported by Bruno Haible. --- tests/sort/sort-compress.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/sort/sort-compress.sh b/tests/sort/sort-compress.sh index b7cd9012f..d82a0cd67 100755 --- a/tests/sort/sort-compress.sh +++ b/tests/sort/sort-compress.sh @@ -60,7 +60,7 @@ rm -f ok sort=$(cmd_exe sort) || framework_failure_ env -u PATH gzip /dev/null 2>&1 if test $? -eq 0 && ! test -f ok; then - env -u PATH $sort -S 1k --compress-program=gzip in >out || fail=1 + env -u PATH "$sort" -S 1k --compress-program=gzip in >out || fail=1 compare exp out || fail=1 test -f ok && fail=1 fi @@ -78,7 +78,7 @@ chmod +x abs-gzip || framework_failure_ env PATH= abs-gzip /dev/null 2>&1 if test $? -eq 0 && test -f ok; then rm -f ok || framework_failure_ - env PATH= $sort -S 1k --compress-program=abs-gzip in >out || fail=1 + env PATH= "$sort" -S 1k --compress-program=abs-gzip in >out || fail=1 compare exp out || fail=1 test -f ok || fail=1 fi