Don't use the -i option with sed
authorWill Maier <willmaier@ml1.net>
Wed, 09 Jan 2008 10:00:18 -0600
changeset 5839 59fba5caa94b
parent 5838 1cf99a3e269e
child 5840 c67dfc4ecba6
Don't use the -i option with sed This patch fixes test-keyword on platforms without GNU sed (like OpenBSD).
tests/test-keyword
--- a/tests/test-keyword	Wed Jan 09 00:27:33 2008 +0100
+++ b/tests/test-keyword	Wed Jan 09 10:00:18 2008 -0600
@@ -173,8 +173,8 @@
 # remove path to temp dir
 hg incoming | sed -e 's/^\(comparing with \).*\(test-keyword.*\)/\1\2/'
 
-sed -i.bak -e 's/Id.*/& rejecttest/' a
-rm a.bak
+sed -e 's/Id.*/& rejecttest/' a > a.new
+mv a.new a
 echo % commit rejecttest
 hg --debug commit -m'rejects?' -d '3 0' -u 'User Name <user@example.com>'
 echo % export