Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: vcs_info: Ignore chpwd_functions[] in VCS_INFO_realpath()
- X-seq: zsh-workers 27766
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx>
- Subject: Re: PATCH: vcs_info: Ignore chpwd_functions[] in VCS_INFO_realpath()
- Date: Wed, 3 Mar 2010 22:17:17 +0100
- Cc: zsh-workers@xxxxxxx, Bart Trojanowski <bart@xxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=8ct7nAVtHJBuy5QFcJqV13oc8szsGqbegFMLMVOSQI0=; b=u1jdeF/1PnXHOGtoS4VhWQGLeHPEhAHrUAb0/qBjLsOwZRnVHxqby99fSm6D/JoN/7 627fUyAg9EG82ghc8HJpKSA2GejI25TgQQJCVKax/P1Tk9pRxq5Eocgb82TPjkrUnn1i AcOq8ObkrCjr9WJ33TLQuEi3RQmUPoa3O08Zk=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=A1PdCN77KSFG53RYzlk40ZTFebp6v+jVIi+K39vnfXMMtzM9tbrkTMQKxC387lAxMh jSAqdDQzySUZNOzksryZbpdtPuGxXBwZjveJmWfhVRSeegv4QcpnzfgZpX39Mwr6mP/T IU0W2UuZ8HgAgZyr0UGPAV3KYkkMsbXC2mJ2I=
- In-reply-to: <1267650366-11200-1-git-send-email-ft@xxxxxxxxxxxxxxxxxxx>
- 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
- References: <1267650366-11200-1-git-send-email-ft@xxxxxxxxxxxxxxxxxxx>
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