From: Frank Terbeck <ft@bewatermyfriend.org>
To: zsh workers <zsh-workers@sunsite.dk>
Subject: PATCH: VCS_INFO_realpath should use builtin cd
Date: Tue, 30 Sep 2008 18:47:58 +0200 [thread overview]
Message-ID: <20080930164758.GE2087@fsst.voodoo.lan> (raw)
VCS_INFO_bydir_detect went berzerk on martin f. krafft; turns out he
was using a function 'cd' for some black magic. :-)
Anyway, the use of 'builtin cd' fixed it for him.
Index: Functions/VCS_Info/VCS_INFO_realpath
===================================================================
RCS file: /cvsroot/zsh/zsh/Functions/VCS_Info/VCS_INFO_realpath,v
retrieving revision 1.1
diff -u -r1.1 VCS_INFO_realpath
--- Functions/VCS_Info/VCS_INFO_realpath 19 Sep 2008 12:58:51 -0000 1.1
+++ Functions/VCS_Info/VCS_INFO_realpath 30 Sep 2008 16:38:24 -0000
@@ -12,5 +12,5 @@
(
(( ${+functions[chpwd]} )) && unfunction chpwd
setopt chaselinks
- cd $1 2>/dev/null && pwd
+ builtin cd $1 2>/dev/null && pwd
)
reply other threads:[~2008-09-30 16:49 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20080930164758.GE2087@fsst.voodoo.lan \
--to=ft@bewatermyfriend.org \
--cc=zsh-workers@sunsite.dk \
/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.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
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).