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

Re: Installation failure caused by CDPATH environment variable

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jul 12, 2007, 11:37 UTC
Message-ID
<Pine.LNX.4.64.0707121234390.4516@racer.site>
In-Reply-To
<86sl7u12m3.fsf@lola.quinscape.zz>
Hi,
[please Cc' me if you already quote me and answer directly to my message]
On Thu, 12 Jul 2007, David Kastrup wrote:
Show 18 quoted lines
> Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> 
> > On Wed, 11 Jul 2007, Wincent Colaiuta wrote:
> >
> >> [describes the typical CDPATH problem]
> >
> > You exported CDPATH.  You're guaranteed to run into problems with 
> > that.  I doubt that your patch catches all problems in git, and even 
> > if we tried to avoid breakage, you can only do so much about that.
> >
> > It is _wrong_ to export CDPATH.
> 
> But it is not our job to educate people about that.  So I'd just add
> something like
> 
> [ "X" = "X$CDPATH" ] || unset CDPATH # ignore braindamaged exports
> 
> to the top of possibly affected scripts and be done.
We have that already, and we're not done.
> A one-liner that makes this somebody else's problem (if at all) is worth 
> its weight in gold.

That is right. And a one-liner that pretends to be a solve-all, but is not, is worth its weight in lead.

I bet that in ten years we find yet another instance where exporting CDPATH, which you should not have done in the first place, breaks Git.

Ciao, Dscho "who chants wrong, wrong, wrong"

Previous: Johannes SchindelinNext: Junio C Hamano
Message 7 of 12 in “Installation failure caused by CDPATH environment variable”
  1. Wincent ColaiutaJul 11, 2007
  2. Johannes SchindelinJul 11, 2007
  3. David KastrupJul 12, 2007
  4. Junio C HamanoJul 12, 2007
  5. Wincent ColaiutaJul 12, 2007
  6. Johannes SchindelinJul 12, 2007
  7. Johannes SchindelinJul 12, 2007
  8. Junio C HamanoJul 11, 2007
  9. Uwe Kleine-KönigJul 17, 2007
  10. Junio C HamanoJul 17, 2007
  11. Wincent ColaiutaJul 17, 2007
  12. Uwe Kleine-KönigJul 17, 2007

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.