aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCollin Funk <collin.funk1@gmail.com>2025-07-26 11:29:02 -0700
committerCollin Funk <collin.funk1@gmail.com>2025-07-26 11:29:02 -0700
commit93304acc1063b760c3e3fe229bd972749d055533 (patch)
tree75473f730db52448ba522a184e522cfe154cb352
parentmaint: avoid syntax-check failure from previous commit (diff)
downloadcoreutils-93304acc1063b760c3e3fe229bd972749d055533.tar.gz
coreutils-93304acc1063b760c3e3fe229bd972749d055533.zip
tests: avoid a false failure on Cygwin
* tests/cksum/md5sum-bsd.sh: Use 'echo' instead of ':' to redirect to the file. Otherwise 'Exit $fail' is not called on Cygwin.
-rwxr-xr-xtests/cksum/md5sum-bsd.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/cksum/md5sum-bsd.sh b/tests/cksum/md5sum-bsd.sh
index aa2d24d89..1f80ccbe1 100755
--- a/tests/cksum/md5sum-bsd.sh
+++ b/tests/cksum/md5sum-bsd.sh
@@ -70,7 +70,7 @@ for i in 'a' ' b' '*c' 'dd' ' '; do
done
md5sum --strict -c check.md5 || fail=1
-if : > 'backslash\is\not\dir\sep'; then
+if echo '' > 'backslash\is\not\dir\sep'; then
# Ensure we can --check BSD traditional format we produce
# with the GNU extension of escaped newlines
nl='