Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PROMPT_SP bug with local in precmd
- X-seq: zsh-workers 28455
- From: Vincent Lefevre <vincent@xxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: PROMPT_SP bug with local in precmd
- Date: Fri, 26 Nov 2010 12:51:48 +0100
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mail-followup-to: zsh-workers@xxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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