tests: fix one more sed -i
authorMatt Mackall <mpm@selenic.com>
Sun, 01 Apr 2012 15:35:12 -0500
changeset 16338 118eb4575ea2
parent 16337 41b41adba08a
child 16340 4fe81ba56863
tests: fix one more sed -i
tests/test-record.t
--- a/tests/test-record.t	Sun Apr 01 15:34:22 2012 -0500
+++ b/tests/test-record.t	Sun Apr 01 15:35:12 2012 -0500
@@ -977,7 +977,8 @@
 
 Removing changes from patch
 
-  $ sed -i -e '3s/third/second/' -e '2s/will/will not/' -e 1d editedfile
+  $ sed -e '3s/third/second/' -e '2s/will/will not/' -e 1d editedfile > tmp
+  $ mv tmp editedfile
   $ echo "This line has been added" >> editedfile
   $ cat > editor << '__EOF__'
   > #!/bin/sh