Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PROMPT_SP bug with local in precmd
- X-seq: zsh-workers 28465
- From: Vincent Lefevre <vincent@xxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: PROMPT_SP bug with local in precmd
- Date: Sun, 28 Nov 2010 11:35:20 +0100
- In-reply-to: <101126093810.ZM25915@xxxxxxxxxxxxxxxxxxxxxx>
- 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
- References: <20101126115148.GT1254@xxxxxxxxxxxxxxxxxxx> <101126093810.ZM25915@xxxxxxxxxxxxxxxxxxxxxx>
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