From: Junio C Hamano <gitster@pobox.com>
To: Philemon GIRAUD <philemon.giraud@metrologic.group>
Cc: "git@vger.kernel.org" <git@vger.kernel.org>
Subject: Re: Git bug report CDPATH completion
Date: Mon, 11 Mar 2024 11:13:47 -0700 [thread overview]
Message-ID: <xmqq8r2or604.fsf@gitster.g> (raw)
In-Reply-To: <AM6PR10MB28087CFD43779194563F558492242@AM6PR10MB2808.EURPRD10.PROD.OUTLOOK.COM> (Philemon GIRAUD's message of "Mon, 11 Mar 2024 14:24:24 +0000")
Philemon GIRAUD <philemon.giraud@metrologic.group> 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.
next prev parent reply other threads:[~2024-03-11 18:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-11 14:24 Git bug report CDPATH completion Philemon GIRAUD
2024-03-11 18:13 ` Junio C Hamano [this message]
2024-03-11 21:35 ` brian m. carlson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xmqq8r2or604.fsf@gitster.g \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=philemon.giraud@metrologic.group \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).