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

[PATCH] t/t7003: replace \t with literal tab in sed expression

From
Brandon Casey <casey@nrlssc.navy.mil>
Date
Aug 12, 2010, 20:55 UTC
Message-ID
<vyRoPz25kSrQp37AweDD-cKcfXzNba2fTsjI2-L88U0Eop2pk838tUNy-_QDHaP7IDSTIQsoox8@cipher.nrlssc.navy.mil>
From: Brandon Casey <drafnel@gmail.com>

The sed utilities on IRIX and Solaris do not interpret the sequence '\t' to mean a tab character; they read a literal character 't'. So, use a literal tab instead.

Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
---
 t/t7003-filter-branch.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/t/t7003-filter-branch.sh b/t/t7003-filter-branch.sh
index fd7e3a1..2c55801 100755
--- a/t/t7003-filter-branch.sh
+++ b/t/t7003-filter-branch.sh
@@ -143,7 +143,7 @@ test_expect_success 'more setup' '
 test_expect_success 'use index-filter to move into a subdirectory' '
 	git branch directorymoved &&
 	git filter-branch -f --index-filter \
-		 "git ls-files -s | sed \"s-\\t-&newsubdir/-\" |
+		 "git ls-files -s | sed \"s-	-&newsubdir/-\" |
 	          GIT_INDEX_FILE=\$GIT_INDEX_FILE.new \
 			git update-index --index-info &&
 		  mv \"\$GIT_INDEX_FILE.new\" \"\$GIT_INDEX_FILE\"" directorymoved &&
-- 
1.7.2.1
Message 1 of 1 in “t/t7003: replace \t with literal tab in sed expression”
  1. t/t7003: replace \t with literal tab in sed expressionBrandon Casey, Aug 12, 2010

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.