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

[PATCH] compress output of `cd' when installing templates

From
GCGang Chen <goncha.ml@gmail.com>
Date
May 21, 2006, 15:41 UTC
Message-ID
<83mzdbjshd.fsf@skypiea.yi.org>

When CDPATH is set in Bash, `cd' writes new working directory to stdout, which corrupts output of `tar cf - .'.

Signed-off-by: Gang Chen <goncha.ml@gmail.com>
---
 Makefile |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
diff --git a/templates/Makefile b/templates/Makefile
index 8f7f4fe..cb67489 100644
--- a/templates/Makefile
+++ b/templates/Makefile
@@ -44,5 +44,5 @@ clean:
 
 install: all
 	$(INSTALL) -d -m755 $(call shellquote,$(DESTDIR)$(template_dir))
-	(cd blt && $(TAR) cf - .) | \
+	(cd blt > /dev/null && $(TAR) cf - .) | \
 	(cd $(call shellquote,$(DESTDIR)$(template_dir)) && $(TAR) xf -)
-- 
If it makes you happy, it can't be that bad.
Next: Timo Hirvonen
Message 1 of 3 in “compress output of `cd' when installing templates”
  1. compress output of `cd' when installing templatesGang Chen, May 21, 2006
  2. Timo HirvonenMay 21, 2006
  3. Junio C HamanoMay 21, 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.