Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: BUG: failure in "vcs_info prompt" aborts precmd function
- X-seq: zsh-workers 33756
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Daniel Hahler <dhahler@xxxxxxxxx>
- Subject: Re: BUG: failure in "vcs_info prompt" aborts precmd function
- Date: Sat, 22 Nov 2014 18:51:04 +0100
- Cc: zsh workers <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=dlG7hFDi1GZ6T8qdyCFoEO4f4t6cjx3OE+uauFAW+as=; b=jMas24k/2J4kAHZhrIVV8Y7FBripoG2ebcy/lQCWRguVmvoh3w2qYopInIC0/hEOnO kODlSPhu18RF3k8JJgkrLj7vD+7qikbSIeqjVIt7qEc5RWG+3+5RVRoDlnpZKCNRb/la FzY+5VebinZU3ghdjMLbbbc6zxlZhI9SrWEFiZQ36wa4Tdsq0iLEt61WLc9foZf8b9p+ Jp5tBpIfaTI6wtT8g3Qct1meH5mMwRAyWBnkHdvheIkDYENMjSGm1kp0GAUP0KQWH+Is lIoZiY7qKmMQhC/v+6u+PeVXnTwDwXaDsU2x6DmPXHES7IGIt001L97paKuwKKNS587M dcIQ==
- In-reply-to: <5470C427.4050805@thequod.de>
- 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: <5470C427.4050805@thequod.de>
On Sat, Nov 22, 2014 at 6:13 PM, Daniel Hahler <dhahler@xxxxxxxxx> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I am using a precmd hook to setup my prompt and call "vcs_info 'prompt'" from there.
>
> When starting an interactive Git rebase, while the editor is still open, it will fail as follows:
>
> VCS_INFO_get_data_git:208: no such file or directory: .git/rebase-merge/done
>
> While this bug can be fixed (I'll post a patch), I think it's still a bug that vcs_info aborts the precmd.
>
> Why is that?
>
> I have tried adding "set +e" and "|| true" before the call to vcs_info, but without success.
http://www.zsh.org/cgi-bin/mla/redirect?WORKERNUMBER=33671 should fix
this already.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author