From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7504 invoked by alias); 22 Nov 2014 17:51:23 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 33756 Received: (qmail 27366 invoked from network); 22 Nov 2014 17:51:10 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 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== MIME-Version: 1.0 X-Received: by 10.107.130.197 with SMTP id m66mr10639915ioi.10.1416678664635; Sat, 22 Nov 2014 09:51:04 -0800 (PST) In-Reply-To: <5470C427.4050805@thequod.de> References: <5470C427.4050805@thequod.de> Date: Sat, 22 Nov 2014 18:51:04 +0100 Message-ID: Subject: Re: BUG: failure in "vcs_info prompt" aborts precmd function From: Mikael Magnusson To: Daniel Hahler Cc: zsh workers Content-Type: text/plain; charset=UTF-8 On Sat, Nov 22, 2014 at 6:13 PM, Daniel Hahler 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