From: Johannes Schindelin Date: Fri, 23 Mar 2007 01:05:28 +0000 (-0400) Subject: t4118: be nice to non-GNU sed X-Git-Tag: v1.5.0.6~2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=75c962c99a9115d489549ad9b8419d3e37e85f02;p=git.git t4118: be nice to non-GNU sed Elias Pipping: > I'm on a mac, hence /usr/bin/sed is not gnu sed, which makes > t4118 fail. Signed-off-by: Johannes Schindelin Ack'd-by: Elias Pipping Signed-off-by: Junio C Hamano --- diff --git a/t/t4118-apply-empty-context.sh b/t/t4118-apply-empty-context.sh index 7309422fe..e78b1a1a7 100755 --- a/t/t4118-apply-empty-context.sh +++ b/t/t4118-apply-empty-context.sh @@ -23,7 +23,8 @@ test_expect_success setup ' cat file2 >file2.orig git add file1 file2 && sed -e "/^B/d" file1 && - sed -e "/^B/d" file2 && + sed -e "/^[BQ]/d" file2 && + echo Q | tr -d "\\012" >>file2 && cat file1 >file1.mods && cat file2 >file2.mods && git diff |