Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

BUG: failure in "vcs_info prompt" aborts precmd function



-----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