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

PROMPT_SP bug with local in precmd



I can reproduce this both under Linux and Mac OS X:

ypig% setopt PRINT_EXIT_VALUE
ypig% echo -n foo; false
foo%
zsh: exit 1
ypig% precmd() { local v=bar }  
ypig% echo -n foo; false      
foozsh: exit 1
ypig% precmd() { v=bar }      
ypig% echo -n foo; false
foo%
zsh: exit 1
ypig%

-- 
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)



Messages sorted by: Reverse Date, Date, Thread, Author