From: Greg Louis <glouis@dynamicro.on.ca>
To: git@vger.kernel.org
Subject: Re: [PATCH] Redirect cd output to /dev/null, was: git-clone seems dead
Date: Tue, 13 Sep 2005 07:07:20 -0400 [thread overview]
Message-ID: <20050913110720.GA4826@athame.dynamicro.on.ca> (raw)
In-Reply-To: <7v3boaawra.fsf@assigned-by-dhcp.cox.net>
On 20050912 (Mon) at 1253:13 -0700, Junio C Hamano wrote:
> Greg Louis <glouis@dynamicro.on.ca> writes:
>
> > Or (2+1==3) detect CDPATH in the same places as (1), complain with a
> > brief explanation ("don't export CDPATH; it's really only useful in
> > interactive shells") and unset it.
>
> I like your wording above, so probably that is what is going to
> happen. Thanks for the suggestion.
You're very welcome.
> CDPATH has two problems. 1. It takes scripts to unexpected
> places (somebody had CDPATH=..:../..:$HOME and the "cd" in
> git-clone.sh:get_repo_base took him to $HOME/.git when he said
> "clone foo bar" to clone a repository in "foo" which had
> "foo/.git"). CDPATH mechanism does not implicitly give "." at
> the beginning of CDPATH, which is the most irritating part.
> 2. the extra echo when it does its thing.
>
> I was under the impression that the patch fixed 2. without doing
> anything about 1., but I may be mistaken.
Oh, I agree entirely that unsetting CDPATH altogether is cleaner and
more complete (and much less ugly) than putting &>/dev/null all over
the place. I should have said something like, "My patch is
_philosophically_ about equivalent to (1)" to make it clear I was
referring to the context, ie the alternative approaches you had
proposed.
--
| G r e g L o u i s | gpg public key: 0x400B1AA86D9E3E64 |
| http://www.bgl.nu/~glouis | (on my website or any keyserver) |
| http://wecanstopspam.org in signatures helps fight junk email. |
prev parent reply other threads:[~2005-09-13 11:07 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-11 18:13 git-clone seems dead Peter Eriksen
2005-09-11 19:04 ` Junio C Hamano
2005-09-11 22:04 ` Greg Louis
2005-09-11 23:01 ` [PATCH] Redirect cd output to /dev/null, was: " Greg Louis
2005-09-12 1:47 ` Junio C Hamano
2005-09-12 9:22 ` Peter Eriksen
2005-09-12 10:56 ` Greg Louis
2005-09-12 12:29 ` Junio C Hamano
2005-09-12 16:36 ` Greg Louis
2005-09-12 19:53 ` Junio C Hamano
2005-09-13 11:07 ` Greg Louis [this message]
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=20050913110720.GA4826@athame.dynamicro.on.ca \
--to=glouis@dynamicro.on.ca \
--cc=git@vger.kernel.org \
/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).