From 78eba7b3d617b04b0123db07d714b9d3b41c053e Mon Sep 17 00:00:00 2001 From: David Levine Date: Thu, 12 Dec 2013 18:08:01 -0600 Subject: [PATCH] It looks like the sed "a" in test-anno didn't emit a trailing newline on OpenBSD. It does on other platforms. Try using awk instead. --- test/anno/test-anno | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/anno/test-anno b/test/anno/test-anno index b329fa66..a655d2c3 100755 --- a/test/anno/test-anno +++ b/test/anno/test-anno @@ -122,8 +122,8 @@ check "$expected" "$actual" rm "${MH_TEST_DIR}/Mail/draft" # check -append -sed -e '5a\ -Nmh-test:' "${MH_TEST_DIR}/Mail/inbox/1" >"$expected" +awk --posix 'NR==6{print "Nmh-test:"}1' <"${MH_TEST_DIR}/Mail/inbox/1" \ + >"$expected" anno 1 -component Nmh-test -append sed -e 's/^Nmh-test:.*/Nmh-test:/' "${MH_TEST_DIR}/Mail/inbox/1" >"$actual" check "$expected" "$actual" -- 2.56.0