From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20352 invoked by alias); 6 Feb 2013 15:50:53 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 17633 Received: (qmail 18800 invoked from network); 6 Feb 2013 15:50:48 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) 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.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at iki.fi designates 213.243.153.188 as permitted sender) X-Virus-Scanned: Debian amavisd-new at pp.htv.fi X-Amavis-Alert: BAD HEADER SECTION, Non-encoded 8-bit data (char C3 hex): From: "Atte Peltom\303\244ki" Date: Wed, 6 Feb 2013 17:41:08 +0200 To: zsh-users@zsh.org Subject: Local arrays Message-ID: <20130206154108.GE88322@ass.pp.htv.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.5.21 (2010-09-15) Hi, Can someone explain the following behaviour in declaring local arrays? % F () { local -a foo=(one two three); echo $foo ; } % F F: unknown file attribute % F () { local foo=(one two); echo $foo ; } % F F: missing end of string % F () { local foo=(moi hei); echo $foo ; } % F F: number expected % F () { local -a foo; foo=(one two three); echo $foo ; } % F one two three % echo $ZSH_VERSION 4.3.17 -- Atte Peltomäki atte.peltomaki@iki.fi <> http://kameli.org "Your effort to remain what you are is what limits you"