From a51af4329434d04f5cf219fe0c1ba22b7a059dd4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?P=C3=A1draig=20Brady?=
Date: Mon, 25 Mar 2024 13:01:33 +0000 Subject: [PATCH] tests: avoid triggering obsolete tail option processing * tests/ls/dired.sh: With 2 options, the latter is taken as a file name on some systems. This avoids a false failure on Solaris and FreeBSD at least. --- tests/ls/dired.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ls/dired.sh b/tests/ls/dired.sh index 98bb168d9..7c6c03bd4 100755 --- a/tests/ls/dired.sh +++ b/tests/ls/dired.sh @@ -58,7 +58,7 @@ fi index=1 set -- $dired_values while test "$#" -gt 0; do - extracted_filename=$(head -c "$2" out | tail -c +"$(($1 + 1))") + extracted_filename=$(head -c "$2" out | tail -c+"$(($1 + 1))") expected_file=$(echo $expected_files | cut -d' ' -f$index) if test "$extracted_filename" != "$expected_file"; then echo "Mismatch! Expected: $expected_file, Found: $extracted_filename" -- 2.11.4.GIT