From: Wayne Davison <wayned@users.sourceforge.net>
To: Peter Stephenson <p.w.stephenson@ntlworld.com>
Cc: zsh-workers@zsh.org
Subject: Re: PROMPT_SP bug with local in precmd
Date: Fri, 26 Nov 2010 18:03:53 -0800 [thread overview]
Message-ID: <AANLkTikCvm+68U+xq73=f4VAc2OD-xwvAUT9ejxM9v0S@mail.gmail.com> (raw)
In-Reply-To: <20101126225316.325fa5ca@pws-pc.ntlworld.com>
[-- Attachment #1: Type: text/plain, Size: 555 bytes --]
On Fri, Nov 26, 2010 at 2:53 PM, Peter Stephenson <
p.w.stephenson@ntlworld.com> wrote:
> I hope I'm not undoing any magic with this.
>
That added fflush() seems like a good idea to me. I had assumed that shout
wasn't buffered, but that appears to not be the case. Since the exit-output
cited above is going to stderr (I'm assuming that is coming from exec.c
around line 3188), your added flush should ensure that the PROMPT_SP "magic"
always gets output prior to the following use of stderr, and that should
make it work more consistently.
..wayne..
next prev parent reply other threads:[~2010-11-27 2:04 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-26 11:51 Vincent Lefevre
2010-11-26 17:38 ` Bart Schaefer
2010-11-26 22:53 ` Peter Stephenson
2010-11-27 2:03 ` Wayne Davison [this message]
2010-11-27 2:27 ` Bart Schaefer
2010-11-27 17:15 ` Peter Stephenson
2010-11-28 10:35 ` Vincent Lefevre
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='AANLkTikCvm+68U+xq73=f4VAc2OD-xwvAUT9ejxM9v0S@mail.gmail.com' \
--to=wayned@users.sourceforge.net \
--cc=p.w.stephenson@ntlworld.com \
--cc=zsh-workers@zsh.org \
/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).