zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@sunsite.dk
Cc: 444583-forwarded@bugs.debian.org, Bas Zoetekouw <bas@debian.org>
Subject: Re: Bug#444583: zsh: precmd not executed before a new prompt is displayed when a job exists
Date: Sat, 29 Sep 2007 14:31:13 -0700	[thread overview]
Message-ID: <070929143113.ZM9092@torch.brasslantern.com> (raw)
In-Reply-To: <20070929152845.GA23884@scowler.net>

On Sep 29, 11:28am, Clint Adams wrote:
} Subject: Re: Bug#444583: zsh: precmd not executed before a new prompt is d
}
} On Sat, Sep 29, 2007 at 05:10:35PM +0200, Bas Zoetekouw wrote:
} > - 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.
} 
} Could someone clarify the documentation here?

Do you mean clarify it for you, here on the list, or clarify it in the
yodl files for commit to CVS?

I'm not really sure how to do the latter.  To explain that "before each
prompt" does not mean "before each time the prompt is printed" but
rather "before each time zsh computes the prompt it will be re-printing
over and over between finishing the previous command and the next time
the accept-line widget is executed" is probably *more* confusing rather
than less.

Bas, how would you phrase it?

The thing is, that when zsh is interrupted by the child-exited signal
handler and displays the "[1]  + done  xeyes" message, the prompt that
it prints next is the SAME prompt that it printed before; it's merely
re-printing the "old" prompt to make the display look nice.  The precmd
function is run only when zsh regenerates a NEW prompt.  But it's simply
not possible to document every possible special case; in fact, you won't
even get the "[1]  + done  xeyes" if you "unsetopt NOTIFY", and NOTIFY
is not set by default, so the circumstance you describe doesn't happen
in the shell's base configuration.


  reply	other threads:[~2007-09-29 21:32 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 [this message]
2007-09-29 21:49     ` Clint Adams
2007-10-01  9:52   ` Peter Stephenson

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=070929143113.ZM9092@torch.brasslantern.com \
    --to=schaefer@brasslantern.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).