From: Junio C Hamano Date: Sun, 21 May 2006 18:23:44 GMT Subject: Re: [PATCH] compress output of `cd' when installing templates Message-ID: <7vy7wvi6dr.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <20060521185421.a91bf118.tihirvon@gmail.com> Timo Hirvonen writes: > Gang Chen 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*.