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

Re: [PATCH] unset CDPATH in git-clone

From
CBCarl Baldwin <cnb@fc.hp.com>
Date
Sep 6, 2005, 14:52 UTC
Message-ID
<20050906145201.GA4551@hpsvcnb.fc.hp.com>
In-Reply-To
<7v3boj486h.fsf@assigned-by-dhcp.cox.net>
On Mon, Sep 05, 2005 at 12:37:58PM -0700, Junio C Hamano wrote:
Show 11 quoted lines
> Carl Baldwin <cnb@fc.hp.com> writes:
> 
> > The function get_repo_base seems to break with this CDPATH.
> 
> Sorry, your message somehow slipped my filtering.  Thanks for
> the analysis.  Of course, CDPATH would break it.
> 
> Is there any good reason why somebody would want to have CDPATH
> in his environment, inherited to be used by any shell scripts,
> as opposed to have it as a plain shell variable that is set only
> in interactive shells?  I do not think of any.

Good point. There is no good reason at all. It happens when one does not know the difference between a plain shell variable and an environment variable.

Carl
-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 Carl Baldwin                        Systems VLSI Laboratory
 Hewlett Packard Company
 MS 88                               work: 970 898-1523
 3404 E. Harmony Rd.                 work: Carl.N.Baldwin@hp.com
 Fort Collins, CO 80525              home: Carl@ecBaldwin.net
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Previous: Junio C Hamano
Message 3 of 3 in “unset CDPATH in git-clone”
  1. unset CDPATH in git-cloneCarl Baldwin, Sep 1, 2005
  2. Junio C HamanoSep 5, 2005
  3. Carl BaldwinSep 6, 2005

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.