Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: VCS_INFO_realpath should use builtin cd



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
 )



Messages sorted by: Reverse Date, Date, Thread, Author