git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: t4055 failure: see error

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 2, 2012, 19:00 UTC
Message-ID
<7vy5jo7l7r.fsf@alter.siamese.dyndns.org>
In-Reply-To
<7667682A-3BDB-484F-A3E4-0E5826FD2076@cs.rochester.edu>
Brian Charles Gernhardt <gernhard@cs.rochester.edu> writes:
Show 5 quoted lines
> 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 &&
Previous: Junio C HamanoNext: Junio C Hamano
Message 4 of 7 in “t4055 failure: see error”
  1. Brian Charles GernhardtOct 2, 2012
  2. Junio C HamanoOct 2, 2012
  3. Junio C HamanoOct 2, 2012
  4. Junio C HamanoOct 2, 2012
  5. Junio C HamanoOct 2, 2012
  6. Brian Charles GernhardtOct 7, 2012
  7. Junio C HamanoOct 7, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.