Added test of whatnow with SHELL unset to test-ls, though it doesn't
[mmh] / test / post / test-post-fcc
index 5ade972..2fdd9de 100755 (executable)
@@ -52,12 +52,10 @@ Date:
 This is a fcc test
 EOF
 
-msgname=$(mhpath +inbox 11)
+msgname=`mhpath +inbox 11`
 
-sed -i.bak -e 's/^Date:.*/Date:/' "${msgname}"
+sed -e 's/^Date:.*/Date:/' "${msgname}" > "${msgname}".nodate
 
-rm -f "${msgname}.bak"
-
-check "${testname}.msg.expected" "${msgname}"
+check "${testname}.msg.expected" "${msgname}".nodate
 
 exit ${failed:-0}