From: Gang Chen <goncha.ml@gmail.com>
To: GIT <git@vger.kernel.org>
Subject: [PATCH] compress output of `cd' when installing templates
Date: Sun, 21 May 2006 23:41:02 +0800 [thread overview]
Message-ID: <83mzdbjshd.fsf@skypiea.yi.org> (raw)
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 reply other threads:[~2006-05-21 15:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-21 15:41 Gang Chen [this message]
2006-05-21 15:54 ` [PATCH] compress output of `cd' when installing templates Timo Hirvonen
2006-05-21 18:23 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83mzdbjshd.fsf@skypiea.yi.org \
--to=goncha.ml@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox