From: Pádraig Brady Date: Mon, 25 Mar 2024 13:01:33 +0000 (+0000) Subject: tests: avoid triggering obsolete tail option processing X-Git-Tag: v9.5~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a51af4329434d04f5cf219fe0c1ba22b7a059dd4;p=thirdparty%2Fcoreutils.git 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. --- diff --git a/tests/ls/dired.sh b/tests/ls/dired.sh index 98bb168d94..7c6c03bd46 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"