From: David Levine Date: Fri, 13 Dec 2013 00:08:01 +0000 (-0600) Subject: It looks like the sed "a" in test-anno didn't emit a trailing X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/78eba7b3d617b04b0123db07d714b9d3b41c053e?hp=1a1a1a3175c9dc282cfd76831e4a0e635e41af86 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. --- 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"