From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11681 invoked by alias); 28 Nov 2010 10:35:30 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 28465 Received: (qmail 1598 invoked from network); 28 Nov 2010 10:35:27 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at vinc17.net does not designate permitted sender hosts) Date: Sun, 28 Nov 2010 11:35:20 +0100 From: Vincent Lefevre To: zsh-workers@zsh.org Subject: Re: PROMPT_SP bug with local in precmd Message-ID: <20101128103520.GI1727@prunille.vinc17.org> Mail-Followup-To: zsh-workers@zsh.org References: <20101126115148.GT1254@prunille.vinc17.org> <101126093810.ZM25915@torch.brasslantern.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <101126093810.ZM25915@torch.brasslantern.com> X-Mailer-Info: http://www.vinc17.net/mutt/ User-Agent: Mutt/1.5.21-6164-vl-r38670 (2010-10-13) 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 - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)