Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: vcs_info: Ignore chpwd_functions[] in VCS_INFO_realpath()
- X-seq: zsh-workers 27765
- From: Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: PATCH: vcs_info: Ignore chpwd_functions[] in VCS_INFO_realpath()
- Date: Wed, 3 Mar 2010 22:06:06 +0100
- Cc: Bart Trojanowski <bart@xxxxxxxxx>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Spotted and fix suggested by Bart Trojanowski <bart@xxxxxxxxx>.
Regards, Frank
---
Functions/VCS_Info/VCS_INFO_realpath | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/Functions/VCS_Info/VCS_INFO_realpath b/Functions/VCS_Info/VCS_INFO_realpath
index c0f48a4..07a9749 100644
--- a/Functions/VCS_Info/VCS_INFO_realpath
+++ b/Functions/VCS_Info/VCS_INFO_realpath
@@ -11,6 +11,7 @@ setopt localoptions NO_shwordsplit
(
(( ${+functions[chpwd]} )) && unfunction chpwd
+ (( ${#chpwd_functions} )) && chpwd_functions=()
setopt chaselinks
builtin cd $1 2>/dev/null && pwd
)
--
1.7.0
Messages sorted by:
Reverse Date,
Date,
Thread,
Author