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

Re: [PATCH] Redirect cd output to /dev/null, was: git-clone seems dead

From
Junio C Hamano <junkio@cox.net>
Date
Sep 12, 2005, 01:47 UTC
Message-ID
<7vwtlnm4zx.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20050911230136.GA15224@athame.dynamicro.on.ca>

I recall somebody else had trouble when we say 'cd blah' in our script and the CDPATH in the user's environment interfere and took us elsewhere.

I do not have any problem with people who have CDPATH defined as a plain shell variable (not exported) in their interactive shells, but I really do not see a point of having CDPATH as an environment variable, exported to be honored by any unsuspecting shell scripts.

Until somebody convinces me that CDPATH in the environment is a good idea, I do not have much sympathy to people with such an environment.

Previous: Greg LouisNext: Peter Eriksen
Message 5 of 11 in “git-clone seems dead”
  1. Peter EriksenSep 11, 2005
  2. Junio C HamanoSep 11, 2005
  3. Greg LouisSep 11, 2005
  4. Redirect cd output to /dev/null, was: git-clone seems deadGreg Louis, Sep 11, 2005
  5. Junio C HamanoSep 12, 2005
  6. Peter EriksenSep 12, 2005
  7. Greg LouisSep 12, 2005
  8. Junio C HamanoSep 12, 2005
  9. Greg LouisSep 12, 2005
  10. Junio C HamanoSep 12, 2005
  11. Greg LouisSep 13, 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.