]> diplodocus.org Git - nmh/blobdiff - test/post/test-post-fcc
1) With SETGID_MAIL enabled (only with dot locking), if the chgrp of
[nmh] / test / post / test-post-fcc
index b8a9419..946969c 100755 (executable)
@@ -52,10 +52,11 @@ Date:
 This is a fcc test
 EOF
 
-msgname=$(mhpath +inbox 11)
+msgname=`mhpath +inbox 11`
 
-sed -i "" -e 's/^Date:.*/Date:/' ${msgname}
+sed -e 's/^Date:.*/Date:/' "${msgname}" > "${msgname}".nodate
+mv "${msgname}".nodate "${msgname}"
 
-check "${testname}.msg.expected" ${msgname}
+check "${testname}.msg.expected" "${msgname}"
 
 exit ${failed:-0}