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

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



Mikael Magnusson wrote:
> On 3 March 2010 22:06, Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx> wrote:
[...]
>>  (
>>     (( ${+functions[chpwd]} )) && unfunction chpwd
>> +    (( ${#chpwd_functions} )) && chpwd_functions=()
>>     setopt chaselinks
>>     builtin cd $1 2>/dev/null && pwd
>>  )
>
> Why not just use cd -q?

Good point. `-q' wasn't there when I started vcs_info. :-)

It's the better solution though. I'll send a patch in a minute.

Regards, Frank

-- 
In protocol design, perfection has been reached not when there is
nothing left to add, but when there is nothing left to take away.
                                                  -- RFC 1925



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