tests/test-record.t
branchstable
changeset 19080 5e4491c114b2
parent 18954 b1639e98e8a1
child 20171 a765611e06dc
--- a/tests/test-record.t	Mon Apr 22 12:27:56 2013 +0400
+++ b/tests/test-record.t	Mon Apr 22 16:33:28 2013 -0500
@@ -1039,7 +1039,8 @@
 Editing patch (and ignoring trailing text)
 
   $ cat > editor.sh << '__EOF__'
-  > sed -e 7d -e '5s/^-/ /' -e '/^# ---/itrailing\nditto' "$1" > tmp
+  > sed -e 7d -e '5s/^-/ /' -e '/^# ---/i\
+  > trailing\nditto' "$1" > tmp
   > mv tmp "$1"
   > __EOF__
   $ cat > editedfile << '__EOF__'
@@ -1204,7 +1205,8 @@
 random text in random positions is still an error
 
   $ cat > editor.sh << '__EOF__'
-  > sed -e '/^@/iother' "$1" > tmp
+  > sed -e '/^@/i\
+  > other' "$1" > tmp
   > mv tmp "$1"
   > __EOF__
   $ HGEDITOR="\"sh\" \"`pwd`/editor.sh\"" hg record <<EOF