From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20834 invoked by alias); 22 Nov 2014 17:13:32 -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: 33754 Received: (qmail 25723 invoked from network); 22 Nov 2014 17:13:19 -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=from:message-id:date:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=pUEgFa14vXPnxBWk0ZCuIknjh9HpDE3j2tpLSoCM9pM=; b=WgxM9cOcT0T2W/+itQVJQ14g3wgyyeIaxZ3PV3XWuwQW3ITq8ICsE6M5IaSv7ODzfN RhT0J6hgRZWEumhAe9YrOIqanzq7Yy6oRlp3+xkxLZkYfbOyhFVXY9ahcENU7JFZ/L6F fkFFje1mj0gNkJ42JS9lUhbk2K8d1O/YGl/bUKP4VB0Dibwhes44kAcTiBSpIRaJajro z5JhVkaLfBl9v6ibJFw/y/3v9k7ttzw2NEscY936kAgrC+ex+Kvy7OCl71+ro9ILhmLk PIgH7x78ONMFEnbcallmVHa4Uo5lQ0mBDt6FFQS+T8LHSYC236DUe/7fubepUI0DnpZV XA7g== X-Received: by 10.194.238.3 with SMTP id vg3mr18148599wjc.69.1416676393293; Sat, 22 Nov 2014 09:13:13 -0800 (PST) From: Daniel Hahler X-Google-Original-From: Daniel Hahler Message-ID: <5470C427.4050805@thequod.de> Date: Sat, 22 Nov 2014 18:13:11 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: zsh-workers@zsh.org Subject: BUG: failure in "vcs_info prompt" aborts precmd function Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit -----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. Regards, Daniel. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iD8DBQFUcMQnfAK/hT/mPgARAg43AJ9e2H/SW5RlRu0HkN2xfrdJITLG7QCgtTIo uWKxYeqH7EheJ0wMB30xsrg= =BdkI -----END PGP SIGNATURE-----