* PATCH: VCS_INFO_realpath should use builtin cd
@ 2008-09-30 16:47 Frank Terbeck
0 siblings, 0 replies; only message in thread
From: Frank Terbeck @ 2008-09-30 16:47 UTC (permalink / raw)
To: zsh workers
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
)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-09-30 16:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-30 16:47 PATCH: VCS_INFO_realpath should use builtin cd Frank Terbeck
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).