{"thread":{"id":"6694","subject":"[PATCH] Avoid ActiveState Perl IO in t800[12]","startedAt":"2007-02-05T13:15:14Z","lastAt":"2007-02-05T13:15:14Z","messageCount":1,"participants":["Alex Riesen"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"33632","messageId":"81b0412b0702050515s7e0efe3fm76220a6c647dbee@mail.gmail.com","threadId":"6694","inReplyTo":null,"subject":"[PATCH] Avoid ActiveState Perl IO in t800[12]","fromName":"Alex Riesen","fromEmail":"raa.lkml@gmail.com","sentAt":"2007-02-05T13:15:14Z","receivedAt":"2007-02-05T13:15:14Z","isPatch":true,"sender":{"key":"raa.lkml@gmail.com","avatar":"https://avatars.githubusercontent.com/u/324101?v=4"},"body":"Use sed instead, it comes with cygwin and there is almost no chance of\nsomeone installing a sed with default CRLF lineendings by accident.\n\nSigned-off-by: Alex Riesen <raa.lkml@gmail.com>\n---\n\nI have been seeing failures in the t800x tests from the beginning on, I\nbelieve. Today they annoyed me enough to get them fixed.\nThe reason of the failures is the usual one: for reasons unexplainable\nactivestate perl defaults to CRLF lineendings in all output, which in the\ntestcase changes the whole file.\n\n t/annotate-tests.sh |    3 ++-\n 1 files changed, 2 insertions(+), 1 deletions(-)\n\n\nFrom c242c7ea07d98ddfb45961b52f5975d0297f9781 Mon Sep 17 00:00:00 2001\nFrom: Alex Riesen <raa.lkml@gmail.com>\nDate: Mon, 5 Feb 2007 14:04:09 +0100\nSubject: [PATCH] Avoid ActiveState Perl IO in t800[12]\n\nUse sed instead, it comes with cygwin and there is almost no chance of\nsomeone installing a sed with default CRLF lineendings by accident.\n\nSigned-off-by: Alex Riesen <raa.lkml@gmail.com>\n---\n\nI have been seeing failures in the t800x tests from the beginning on, I\nbelieve. Today they annoyed me enough to get them fixed.\nThe reason of the failures is the usual one: for reasons unexplainable\nactivestate perl defaults to CRLF lineendings in all output, which in the\ntestcase changes the whole file.\n\n t/annotate-tests.sh |    3 ++-\n 1 files changed, 2 insertions(+), 1 deletions(-)\n\ndiff --git a/t/annotate-tests.sh b/t/annotate-tests.sh\nindex b5ceba4..87403da 100644\n--- a/t/annotate-tests.sh\n+++ b/t/annotate-tests.sh\n@@ -113,7 +113,8 @@ test_expect_success \\\n \n test_expect_success \\\n     'some edit' \\\n-    'perl -p -i.orig -e \"s/^1A.*\\n$//; s/^3A/99/\" file &&\n+    'mv file file.orig &&\n+    sed -e \"s/^3A/99/\" -e \"/^1A/d\" < file.orig > file &&\n     GIT_AUTHOR_NAME=\"D\" git commit -a -m \"edit\"'\n \n test_expect_success \\\n-- \n1.5.0.rc3.72.g4005\n\n"}]}