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

[PATCH] t0003: properly quote $HOME

From
Thomas Rast <trast@student.ethz.ch>
Date
Oct 17, 2010, 19:13 UTC
Message-ID
<decc39532e1706c50964bad14c51d0bcd9ab09a6.1287342744.git.trast@student.ethz.ch>

6df42ab (Add global and system-wide gitattributes, 2010-09-01) forgot to quote one instance of $HOME in the tests. This broke the test for me with the shell complaining about an ambiguous redirect (but only when run with --root for some reason).

Signed-off-by: Thomas Rast <trast@student.ethz.ch>
---
 t/t0003-attributes.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/t/t0003-attributes.sh b/t/t0003-attributes.sh
index 25205ac..e75153b 100755
--- a/t/t0003-attributes.sh
+++ b/t/t0003-attributes.sh
@@ -38,7 +38,7 @@ test_expect_success 'setup' '
 	) >a/b/.gitattributes
 	(
 		echo "global test=global"
-	) >$HOME/global-gitattributes
+	) >"$HOME"/global-gitattributes
 
 '
 
-- 
1.7.3.1.266.g3c065
Next: Jonathan Nieder
Message 1 of 8 in “t0003: properly quote $HOME”
  1. t0003: properly quote $HOMEThomas Rast, Oct 17, 2010
  2. Jonathan NiederOct 17, 2010
  3. Thomas RastOct 17, 2010
  4. t0003: properly quote $HOMEThomas Rast, Oct 18, 2010
  5. Jonathan NiederOct 18, 2010
  6. Matthieu MoyOct 17, 2010
  7. Johannes SixtOct 17, 2010
  8. Junio C HamanoOct 18, 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.