mirror of
https://github.com/coreutils/coreutils.git
synced 2024-11-23 09:56:42 +08:00
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.
This commit is contained in:
parent
ecb2fecdf9
commit
a51af43294
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user