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

Re: Bug#444583: zsh: precmd not executed before a new prompt is displayed when a job exists



On Sat, Sep 29, 2007 at 05:10:35PM +0200, Bas Zoetekouw wrote:
> Zsh's man page says: "precmd   Executed before each prompt."
> However, it doesn't seem to be executed in the following situation:
> 
> - start xeyes in the background (xeyes &)
> - kill the xeyes window
> - the zsh then displays something like "[1]  + done  xeyes" and a new
>   prompt.  Before this prompt, the precmd command doesn't seem to be
>   executed.
> 
> This situation is a bit annoying for be, because I use precmd to put
> the number of background jobs in the xterm title.  However, when I
> kill one of these backgorund applications, the xterm title isn't
> updated currently.

Could someone clarify the documentation here?



Messages sorted by: Reverse Date, Date, Thread, Author