Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
BUG: failure in "vcs_info prompt" aborts precmd function
- X-seq: zsh-workers 33754
- From: Daniel Hahler <dhahler@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: BUG: failure in "vcs_info prompt" aborts precmd function
- Date: Sat, 22 Nov 2014 18:13:11 +0100
- 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==
- 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
-----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-----
Messages sorted by:
Reverse Date,
Date,
Thread,
Author