From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24311 invoked from network); 20 Dec 2004 11:21:43 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 20 Dec 2004 11:21:43 -0000 Received: (qmail 43880 invoked from network); 20 Dec 2004 11:21:37 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 20 Dec 2004 11:21:37 -0000 Received: (qmail 26830 invoked by alias); 20 Dec 2004 11:21:27 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8303 Received: (qmail 26812 invoked from network); 20 Dec 2004 11:21:26 -0000 Received: from unknown (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 20 Dec 2004 11:21:26 -0000 Received: (qmail 42298 invoked from network); 20 Dec 2004 11:20:27 -0000 Received: from mxfep01.bredband.com (195.54.107.70) by a.mx.sunsite.dk with SMTP; 20 Dec 2004 11:20:26 -0000 Received: from puritan.pcp.ath.cx ([213.112.43.197] [213.112.43.197]) by mxfep01.bredband.com with ESMTP id <20041220112026.WIJA18879.mxfep01.bredband.com@puritan.pcp.ath.cx> for ; Mon, 20 Dec 2004 12:20:26 +0100 Received: by puritan.pcp.ath.cx (Postfix, from userid 1000) id 4A77EAE044; Mon, 20 Dec 2004 12:20:26 +0100 (CET) Date: Mon, 20 Dec 2004 12:20:26 +0100 From: Nikolai Weibull To: zsh-users@sunsite.dk Subject: local/typeset stupidity Message-ID: <20041220112025.GA9720@puritan.pcp.ath.cx> Mail-Followup-To: zsh-users@sunsite.dk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.6i X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: * X-Spam-Status: No, hits=1.5 required=6.0 tests=RCVD_IN_SORBS autolearn=no version=2.63 X-Spam-Hits: 1.5 Why the doesn't local work like one would expect? If i write func () { local s="..." } then I don't expect zsh to respond with func:local:1: not valid in this context: 100 right? Even with setopt typesetsilent # (how can't this be the default?) this bitches at me. local s; s="..." works fine, though, even with typesetsilent off. I'm nonplused by this... nikolai -- ::: name: Nikolai Weibull :: aliases: pcp / lone-star / aka ::: ::: born: Chicago, IL USA :: loc atm: Gothenburg, Sweden ::: ::: page: www.pcppopper.org :: fun atm: gf,lps,ruby,lisp,war3 ::: main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}