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

[PATCH] Fix test case for some sed

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Mar 2, 2006, 11:43 UTC
Message-ID
<Pine.LNX.4.63.0603021243280.17912@wbgn013.biozentrum.uni-wuerzburg.de>
Some versions of sed lack the "-i" option.
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
---
 t/t8001-annotate.sh |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
7f024821ec45dc6eaf36c24f94931d58deb75201
diff --git a/t/t8001-annotate.sh b/t/t8001-annotate.sh
index cae1794..172908a 100755
--- a/t/t8001-annotate.sh
+++ b/t/t8001-annotate.sh
@@ -50,7 +50,8 @@ test_expect_success \
 test_expect_success \
     'merge-setup part 2' \
     'git checkout -b branch2 master &&
-     sed -i -e "s/2A quick brown/4A quick brown lazy dog/" file &&
+     sed -e "s/2A quick brown/4A quick brown lazy dog/" < file > file.new &&
+     mv file.new file &&
      GIT_AUTHOR_NAME="B2" git commit -a -m "Branch2-1"'
 
 test_expect_success \
-- 
1.2.4.g9520
Message 1 of 1 in “Fix test case for some sed”
  1. Fix test case for some sedJohannes Schindelin, Mar 2, 2006

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.