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

Re: PROMPT_SP bug with local in precmd



On 2010-11-26 09:38:10 -0800, Bart Schaefer wrote:
> On Nov 26, 12:51pm, Vincent Lefevre wrote:
> }
> } ypig% precmd() { local v=bar }  
> } ypig% echo -n foo; false      
> } foozsh: exit 1
> 
> It's not "local" that triggers this, it's any command:

Actually, variable assignment (without "local") doesn't trigger
the problem. That's why I thought it was due to "local".

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