Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PROMPT_SP bug with local in precmd
- X-seq: zsh-workers 28460
- From: Wayne Davison <wayned@xxxxxxxxxxxxxxxxxxxxx>
- To: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- Subject: Re: PROMPT_SP bug with local in precmd
- Date: Fri, 26 Nov 2010 18:03:53 -0800
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; bh=rJDVQI0bPi3mmDxNKK5tQ9UG0VIi37CgbHfSemG4iUw=; b=qDeq1eJD1kzXoaUL9Yrc9A4VmPdWWRnpw51dUX5hX1F4nB7+PGlqxPLdrOyMuHIATS 1Rtprpm/V/m+750voD8jwY+BJkDifVRl05pwZMlFBPdwVM9l6ewnuwSa3XElAbYvDu54 gXlItpN0W9+eRP1Bnuqz8RYEajEm3ABbxPKF8=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=CLJtN0ui1S6oj467wNLt3/lqZFC2oCrfPxs/sU2Q50UZ9e38opcrH4Xh+VmfL3XSBg mb0h4LfnFtUHrApcDsBW/RN7OdcGeFy9HlK7vGTeIbihztwATtH4tV9SnU3/tRWtmU/I DDe83JXzSEYQTiGjlSPr3ObvWZhhXeWzToLls=
- In-reply-to: <20101126225316.325fa5ca@xxxxxxxxxxxxxxxxxxx>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20101126115148.GT1254@xxxxxxxxxxxxxxxxxxx> <101126093810.ZM25915@xxxxxxxxxxxxxxxxxxxxxx> <20101126225316.325fa5ca@xxxxxxxxxxxxxxxxxxx>
- Sender: 4wayned@xxxxxxxxx
On Fri, Nov 26, 2010 at 2:53 PM, Peter Stephenson <
p.w.stephenson@xxxxxxxxxxxx> 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..
Messages sorted by:
Reverse Date,
Date,
Thread,
Author