{"thread":{"id":"7359","subject":"[SOLVED] Testsuite fails (t4118) with sed != gnu sed (was: [PATCH] t4118: be nice to non-GNU sed)","startedAt":"2007-03-23T00:42:06Z","lastAt":"2007-03-23T00:42:06Z","messageCount":1,"participants":["Elias Pipping"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"37772","messageId":"AC2E511A-04FB-4F18-93E3-8D81C6E379FF@macports.org","threadId":"7359","inReplyTo":"Pine.LNX.4.63.0703230117200.4045@wbgn013.biozentrum.uni-wuerzburg.de","subject":"[SOLVED] Testsuite fails (t4118) with sed != gnu sed (was: [PATCH] t4118: be nice to non-GNU sed)","fromName":"Elias Pipping","fromEmail":"pipping@macports.org","sentAt":"2007-03-23T00:42:06Z","receivedAt":"2007-03-23T00:42:06Z","isPatch":true,"sender":{"key":"pipping@macports.org","avatar":null},"body":"Hi,\n\nI'm on a mac, hence /usr/bin/sed is not gnu sed, which makes t4118 fail.\n\nThis patch by Johannes Schindelin (Johannes.Schindelin@gmx.de) solves  \nthe issue for me, though.\n\n\nRegards,\n\nElias Pipping\n\n\nBegin forwarded message:\n\n> From: Johannes Schindelin <Johannes.Schindelin@gmx.de>\n> Date: March 23, 2007 1:17:35 AM GMT+01:00\n> To: pipping@macports.org\n> Subject: [PATCH] t4118: be nice to non-GNU sed\n>\n>\n> Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>\n>\n> ---\n>\n>  t/t4118-apply-empty-context.sh |    3 ++-\n>  1 files changed, 2 insertions(+), 1 deletions(-)\n>\n> diff --git a/t/t4118-apply-empty-context.sh b/t/t4118-apply-empty- \n> context.sh\n> index 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"}]}