changeset 16338:118eb4575ea2

tests: fix one more sed -i
author Matt Mackall <mpm@selenic.com>
date Sun, 01 Apr 2012 15:35:12 -0500
parents 41b41adba08a
children 4fe81ba56863
files tests/test-record.t
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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