zsh-workers
 help / color / mirror / code / Atom feed
* PROMPT_SP bug with local in precmd
@ 2010-11-26 11:51 Vincent Lefevre
  2010-11-26 17:38 ` Bart Schaefer
  0 siblings, 1 reply; 7+ messages in thread
From: Vincent Lefevre @ 2010-11-26 11:51 UTC (permalink / raw)
  To: zsh-workers

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@vinc17.net> - 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)


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-11-28 10:35 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-26 11:51 PROMPT_SP bug with local in precmd Vincent Lefevre
2010-11-26 17:38 ` Bart Schaefer
2010-11-26 22:53   ` Peter Stephenson
2010-11-27  2:03     ` Wayne Davison
2010-11-27  2:27     ` Bart Schaefer
2010-11-27 17:15       ` Peter Stephenson
2010-11-28 10:35   ` Vincent Lefevre

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).