* [PATCH] compress output of `cd' when installing templates
@ 2006-05-21 15:41 Gang Chen
2006-05-21 15:54 ` Timo Hirvonen
0 siblings, 1 reply; 3+ messages in thread
From: Gang Chen @ 2006-05-21 15:41 UTC (permalink / raw)
To: GIT
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.
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] compress output of `cd' when installing templates
2006-05-21 15:41 [PATCH] compress output of `cd' when installing templates Gang Chen
@ 2006-05-21 15:54 ` Timo Hirvonen
2006-05-21 18:23 ` Junio C Hamano
0 siblings, 1 reply; 3+ messages in thread
From: Timo Hirvonen @ 2006-05-21 15:54 UTC (permalink / raw)
To: Gang Chen; +Cc: git
Gang Chen <goncha.ml@gmail.com> wrote:
> When CDPATH is set in Bash, `cd' writes new working directory to
> stdout, which corrupts output of `tar cf - .'.
Fix bash instead, or just don't export CDPATH. It is used by bash only
so exporting it is unnecessary.
--
http://onion.dynserv.net/~timo/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] compress output of `cd' when installing templates
2006-05-21 15:54 ` Timo Hirvonen
@ 2006-05-21 18:23 ` Junio C Hamano
0 siblings, 0 replies; 3+ messages in thread
From: Junio C Hamano @ 2006-05-21 18:23 UTC (permalink / raw)
To: Timo Hirvonen; +Cc: git, Gang Chen
Timo Hirvonen <tihirvon@gmail.com> writes:
> Gang Chen <goncha.ml@gmail.com> wrote:
>
>> When CDPATH is set in Bash, `cd' writes new working directory to
>> stdout, which corrupts output of `tar cf - .'.
>
> Fix bash instead, or just don't export CDPATH. It is used by bash only
> so exporting it is unnecessary.
Thanks.
It is not just unnecessary, but "export CDPATH" anywhere in your
rc scripts is actively *WRONG*.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-05-21 18:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-21 15:41 [PATCH] compress output of `cd' when installing templates Gang Chen
2006-05-21 15:54 ` Timo Hirvonen
2006-05-21 18:23 ` Junio C Hamano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox