Thread (1 message) 1 message, 1 author, 2024-03-11

Re: Git bug report CDPATH completion

From: Junio C Hamano <hidden>
Date: 2024-03-11 18:13:50

Philemon GIRAUD [off-list ref] writes:
What did you do before the bug happened? (Steps to reproduce your issue)
This bug is about the "git bash" that comes with git for windows
I added "export CDPATH=.:/c/some/path" to my .bashrc
FYI, https://news.ycombinator.com/item?id=19886334 is the first hit
when I asked "exporting CDPATH" to my search engine.  It makes an
interesting and educational read.  In short, setting CDPATH in your
interactive environment, i.e.  your .bashrc having CDPATH=..., is a
fine convenience measure, exporting it to environment is not.

In addition to what people wrote there, it would break many
third-party shell scripts that expect their "cd" to work without
getting affected.  We even explicitly unset CDPATH in our
(remaining) shell scripted Porcelain commands to avoid the insanity
of it the first thing.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help