From 2942c312a77c866dcb78feb948666a5a5b242caf Mon Sep 17 00:00:00 2001 From: Andrew Wood Date: Wed, 13 Sep 2023 23:04:00 +0100 Subject: [PATCH] Removed "-" argument to "cksum" for FreeBSD compatibility. --- tests/Modifiers_-_--direct-io.test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Modifiers_-_--direct-io.test b/tests/Modifiers_-_--direct-io.test index 754d087..520abf1 100755 --- a/tests/Modifiers_-_--direct-io.test +++ b/tests/Modifiers_-_--direct-io.test @@ -12,7 +12,7 @@ testSubject="${testSubject:-false}"; workFile1="${workFile1:-.tmp1}"; workFile2= dd if=/dev/urandom of="${workFile1}" bs=1024 count=2560 2>/dev/null inputChecksum=$(cksum "${workFile1}" | awk '{print $1}') -doubleInputChecksum=$(cat "${workFile1}" "${workFile1}" | cksum - | awk '{print $1}') +doubleInputChecksum=$(cat "${workFile1}" "${workFile1}" | cksum | awk '{print $1}') # read through pv and test afterwards "${testSubject}" -q "${workFile1}" > "${workFile2}"