From: Peter Stephenson <pws@csr.com>
To: zsh-workers@sunsite.dk
Cc: Bas Zoetekouw <bas@debian.org>, 444583-forwarded@bugs.debian.org
Subject: Re: Bug#444583: zsh: precmd not executed before a new prompt is displayed when a job exists
Date: Mon, 1 Oct 2007 10:52:10 +0100 [thread overview]
Message-ID: <20071001105210.31a61064@news01> (raw)
In-Reply-To: <20070929152845.GA23884@scowler.net>
On Sat, 29 Sep 2007 11:28:45 -0400
Clint Adams <schizo@debian.org> wrote:
> 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?
How about this?
Index: Doc/Zsh/func.yo
===================================================================
RCS file: /cvsroot/zsh/zsh/Doc/Zsh/func.yo,v
retrieving revision 1.15
diff -u -r1.15 func.yo
--- Doc/Zsh/func.yo 10 Nov 2006 09:59:27 -0000 1.15
+++ Doc/Zsh/func.yo 1 Oct 2007 09:40:01 -0000
@@ -188,7 +188,9 @@
findex(precmd)
vindex(precmd_functions)
item(tt(precmd))(
-Executed before each prompt.
+Executed before each prompt. Note that precommand functions are not
+reexecuted simply because the command line is redrawn, as happens, for
+example, when a notification about an exiting job is displayed.
)
findex(preexec)
vindex(preexec_functions)
--
Peter Stephenson <pws@csr.com> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070
prev parent reply other threads:[~2007-10-01 9:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20070929151035.19446.15860.reportbug@cordelia.baz.lan>
2007-09-29 15:28 ` Clint Adams
2007-09-29 21:31 ` Bart Schaefer
2007-09-29 21:49 ` Clint Adams
2007-10-01 9:52 ` Peter Stephenson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20071001105210.31a61064@news01 \
--to=pws@csr.com \
--cc=444583-forwarded@bugs.debian.org \
--cc=bas@debian.org \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).