From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3722 invoked by alias); 26 Nov 2010 11:51:55 -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: 28455 Received: (qmail 3756 invoked from network); 26 Nov 2010 11:51:52 -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: Fri, 26 Nov 2010 12:51:48 +0100 From: Vincent Lefevre To: zsh-workers@zsh.org Subject: PROMPT_SP bug with local in precmd Message-ID: <20101126115148.GT1254@prunille.vinc17.org> Mail-Followup-To: zsh-workers@zsh.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Mailer-Info: http://www.vinc17.net/mutt/ User-Agent: Mutt/1.5.21-6164-vl-r38670 (2010-10-13) 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 - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)