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

Re: PATCH: vcs_info: Ignore chpwd_functions[] in VCS_INFO_realpath()



On 3 March 2010 22:06, Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx> wrote:
> 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
>  )

Why not just use cd -q?

-- 
Mikael Magnusson



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