I show the exit status in the prompt, and I have the following reproducible problem when I do: 1. I type "false". 2. I type "sleep 1 &". 3. I increase the window width. 4. I type [Enter]. Until step 3, no problem (attached snapshot zshprompt1.png). But after 4 (attached snapshot zshprompt2.png), the prompt has been redisplayed with exit status 0. But the new prompt is OK. My precmd function starts with: psvar[1]=$? if [[ $psvar[1] -gt 128 ]] then local sig=$signals[$(($psvar[1]-127))] [[ -n $sig ]] && psvar[1]=$sig fi and I have: TRAPCLD() { [[ -o interactive && -n $TTY ]] && precmd } and PS1="%m:%20<...<%~%<<%(?..${prefail}[%1v]${postfail})%2v%(#.#.>) " Is this a zsh bug? -- Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)
Attachment:
zshprompt1.png
Description: PNG image
Attachment:
zshprompt2.png
Description: PNG image