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

RE: [OT] CDPATH

From
RPRon Parker <ron.parker@mobot.org>
Date
Apr 24, 2007, 13:34 UTC
Message-ID
<769697AE3E25EF4FBC0763CD91AB1B0201D496D1@MBGMail01.mobot.org>
In-Reply-To
<Pine.LNX.4.64.0704232351530.8430@beast.quantumfyre.co.uk>
Junio C Hamano <junkio@cox.net> wrote:
> Are you sure bash-completion is the culprit, not your CDPATH?

Sorry, I was half-asleep yesterday. Of course it was CDPATH and not bash-completion.

Julian Phillips <julian@quantumfyre.co.uk> wrote:
> CDPATH is Ok as long as it stays as an interactive shell
> variable.

Based on a shell I used years ago that had built-in functionality similar to CDPATH, I naïvely *assumed* CDPATH would only impact interactive shells.

In another message, Julian wrote:
> I guess part of the problem is that a lot of these people don't actually 
> understand the difference between shell variables and environment 
> variables, or why the distinction is useful.  Plenty of people seem to do 
> "export FOO=..." by rote.

Not quite my case, but assumptions are dangerous things. Based on my assumption, I intentionally exported CDPATH so it would propagate when I "xterm&". Grr, I guess I'll have to alias xterm instead.

Thanks for the enlightenment gentlemen.
Yet another reason I like "git reset --hard HEAD" for stupid patch removal.
Now if there was a "reset --hard HEAD" function for some people I've met...
Thanks,
Ron
Previous: Julian PhillipsNext: Junio C Hamano
Message 6 of 8 in “Fix tests when using bash_completion”
  1. Fix tests when using bash_completionRon Parker, Apr 23, 2007
  2. Junio C HamanoApr 23, 2007
  3. Julian PhillipsApr 23, 2007
  4. Junio C HamanoApr 23, 2007
  5. [OT] CDPATH (was: Re: [PATCH] Fix tests when using bash_completion)Julian Phillips, Apr 23, 2007
  6. Ron ParkerApr 24, 2007
  7. Junio C HamanoApr 24, 2007
  8. Unset CDPATH in the test libraryRon Parker, Apr 24, 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.