Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PROMPT_SP bug with local in precmd
- X-seq: zsh-workers 28462
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: PROMPT_SP bug with local in precmd
- Date: Sat, 27 Nov 2010 17:15:10 +0000
- In-reply-to: <101126182734.ZM27122@xxxxxxxxxxxxxxxxxxxxxx>
- 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> <101126182734.ZM27122@xxxxxxxxxxxxxxxxxxxxxx>
On Fri, 26 Nov 2010 18:27:34 -0800
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> However with a non-builtin command in the precmd, I'm still getting
> "zsh: exit 1" printed twice, so I think we're both correct -- that
> is, there's *another* place where a fflush() is needed. Looks like
> just after line 3188 in Src/exec.c.
>
> With fflush() added there as well, I consistently get this:
>
> torch% setopt printexitvalue
> torch% echo -n foo; false
> foozsh: exit 1
> torch% precmd() { /bin/echo -n Hi }
> torch% echo -n foo; false
> foozsh: exit 1
> torch%
>
> Note there's now only one "zsh: exit 1" and the prompt now consistently
> covers up the output from precmd.
>
> } I hope I'm not undoing any magic with this.
>
> Ditto.
I've committed mine, so if you commit yours we can spend ages on mutual
recrimination. (This is the Internet Age.)
--
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author