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

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

From
Junio C Hamano <junkio@cox.net>
Date
May 21, 2006, 18:23 UTC
Message-ID
<7vy7wvi6dr.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20060521185421.a91bf118.tihirvon@gmail.com>
Timo Hirvonen <tihirvon@gmail.com> writes:
Show 7 quoted lines
> 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*.

Previous: Timo Hirvonen
Message 3 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.