From: Junio C Hamano Date: Tue, 02 Oct 2012 19:00:40 GMT Subject: Re: t4055 failure: see error Message-ID: <7vy5jo7l7r.fsf@alter.siamese.dyndns.org> In-Reply-To: <7667682A-3BDB-484F-A3E4-0E5826FD2076@cs.rochester.edu> Brian Charles Gernhardt writes: > Another problem caused by BSD v GNU sed, I think. > > git cat-file blob HEAD:x | > sed "/preline/a\ > ADDED" >x && Actually, I think what is happening is that inside "", the backslash at the end of line is eaten by the shell together with that end of line, so it is not BSD vs GNU, but it simply is that my quoting was wrong. This (disregarding the previous "TARGET" patch) may be a smaller fix. t/t4055-diff-context.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git c/t/t4055-diff-context.sh w/t/t4055-diff-context.sh index 3527686..0f2dd40 100755 --- c/t/t4055-diff-context.sh +++ w/t/t4055-diff-context.sh @@ -28,7 +28,7 @@ test_expect_success 'setup' ' git commit -m initial && git cat-file blob HEAD:x | - sed "/preline/a\ + sed "/preline/a\\ ADDED" >x && git update-index --add x && git commit -m next &&