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

[PATCH 3/3] t3032: limit sed branch labels to 8 characters

From
Brandon Casey <casey@nrlssc.navy.mil>
Date
Jan 6, 2011, 00:30 UTC
Message-ID
<gmeXEearzUOUEst4-B2b8mMW8OqKObIqeN20uJhfiKbKa9JUYsiz4cHx7ViGaJpP8z4W9bjGjNI@cipher.nrlssc.navy.mil>
In-Reply-To
<gmeXEearzUOUEst4-B2b8sVUo0XhywYUDm7rCJikom1xi9tIroh9GnJRv-bJTzbCbvqI-4DOU3A@cipher.nrlssc.navy.mil>
From: Brandon Casey <drafnel@gmail.com>

POSIX leaves as unspecified the handling of labels greater than 8 characters. Apparently, Sun decided to treat them as errors. Make sed on Solaris happy by trimming the length of labels to 8 characters.

Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
---
 t/t3032-merge-recursive-options.sh |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/t/t3032-merge-recursive-options.sh b/t/t3032-merge-recursive-options.sh
index 2293797..de9ff89 100755
--- a/t/t3032-merge-recursive-options.sh
+++ b/t/t3032-merge-recursive-options.sh
@@ -16,13 +16,13 @@ test_description='merge-recursive options
 test_expect_success 'setup' '
 	conflict_hunks () {
 		sed -n -e "
-			/^<<<</ b inconflict
+			/^<<<</ b conflict
 			b
-			: inconflict
+			: conflict
 			p
 			/^>>>>/ b
 			n
-			b inconflict
+			b conflict
 		" "$@"
 	} &&
 
-- 
1.7.3.1
Previous: Brandon Casey
Message 5 of 5 in “trace.c: ensure NULL is not passed to printf”
  1. 1/3 trace.c: ensure NULL is not passed to printfBrandon Casey, Jan 6, 2011
  2. 2/3 t0001,t1510,t3301: use sane_unset which always returns with status 0Brandon Casey, Jan 6, 2011
  3. Junio C HamanoJan 6, 2011
  4. Brandon CaseyJan 6, 2011
  5. 3/3 t3032: limit sed branch labels to 8 charactersBrandon Casey, Jan 6, 2011

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.