{"thread":{"id":"7360","subject":"[PATCH] t4118: be nice to non-GNU sed","startedAt":"2007-03-23T01:05:28Z","lastAt":"2007-03-23T01:05:28Z","messageCount":1,"participants":["Shawn O. Pearce"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"37773","messageId":"20070323010528.GB17773@spearce.org","threadId":"7360","inReplyTo":null,"subject":"[PATCH] t4118: be nice to non-GNU sed","fromName":"Shawn O. Pearce","fromEmail":"spearce@spearce.org","sentAt":"2007-03-23T01:05:28Z","receivedAt":"2007-03-23T01:05:28Z","isPatch":true,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"From: Johannes Schindelin <Johannes.Schindelin@gmx.de>\n\nElias Pipping:\n> I'm on a mac, hence /usr/bin/sed is not gnu sed, which makes\n> t4118 fail.\n\nSigned-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>\nAck'd-by: Elias Pipping <pipping@macports.org>\n\n---\n\n t/t4118-apply-empty-context.sh |    3 ++-\n 1 files changed, 2 insertions(+), 1 deletions(-)\n\ndiff --git a/t/t4118-apply-empty-context.sh b/t/t4118-apply-empty- \ncontext.sh\nindex 690a182..27cc6f2 100755\n--- a/t/t4118-apply-empty-context.sh\n+++ b/t/t4118-apply-empty-context.sh\n@@ -23,7 +23,8 @@ test_expect_success setup '\n \tcat file2 >file2.orig\n \tgit add file1 file2 &&\n \tsed -e \"/^B/d\" <file1.orig >file1 &&\n-\tsed -e \"/^B/d\" <file2.orig >file2 &&\n+\tsed -e \"/^[BQ]/d\" <file2.orig >file2 &&\n+\techo Q | tr -d \"\\\\012\" >>file2 &&\n \tcat file1 >file1.mods &&\n \tcat file2 >file2.mods &&\n \tgit diff |\n\n-- \nShawn.\n"}]}