Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PROMPT_SP bug with local in precmd



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