From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17446 invoked by alias); 31 Dec 2015 00:49:27 -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: 37458 Received: (qmail 21614 invoked from network); 31 Dec 2015 00:49:27 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=bLrKa510I0nw1u6K 2OlBjzj56Vw=; b=VYL9z0ZgJj83kfqHEnc6/DYXO3teufJ/gT+GiSwU8tLC/5zP 6a7ctfh3rGEk9DGbMpeSbtj7mpLzkKizOMffg4SfM1/Z8ziamWwzWSy0ePeqztX8 2Sm7ifD3sAA22djBfzZ2gXdf/LF4sBPVu41sUwvR3Jh9d4M2LJBNpfhL7ZM= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=bLrKa510I0nw1u6 K2OlBjzj56Vw=; b=D/OvT16N3Bml9ux3pnyF6H/fBS8pFSe0OLgWzdfvRsHxi7H jx4tPKyUNb9i7mZ3OgytdFrDKL+9hde6Szm59mQjML9mbuAa/v5SJa0FflIYgMal 7uf/QVspyFnN6B5O7zhdOWVFUThDqTJhNY+5Z6WrB82mntiszkEHCzshDHMI= X-Sasl-enc: oo4WqK3/vubH8b+t8N7QeDGthpi5VMEjUHeFlCWIj2wW 1451522965 Date: Thu, 31 Dec 2015 00:49:23 +0000 From: Daniel Shahaf To: zsh-workers@zsh.org Cc: Frank Terbeck Subject: Re: More warn_create_global warnings Message-ID: <20151231004923.GB2455@tarsus.local2> References: <87mvss6mru.fsf@ft.bewatermyfriend.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87mvss6mru.fsf@ft.bewatermyfriend.org> User-Agent: Mutt/1.5.21 (2010-09-15) Frank Terbeck wrote on Wed, Dec 30, 2015 at 15:20:37 +0100: > zsh% foo() { setopt warncreateglobal extendedglob; local f=bar; : ${f:#(#b)b(*)}; } > zsh% foo > foo: array parameter match created globally in function foo > foo: array parameter mbegin created globally in function foo > foo: array parameter mend created globally in function foo You used to have to 'local' both mbegin,mend,match and MBEGIN,MEND,MATCH [1]. I'm not sure whether that's still the case in latest master (couldn't reproduce it, but maybe I wasn't trying right). Cheers, Daniel ¹ https://github.com/zsh-users/zsh-syntax-highlighting/commit/d3deffbf46a45250a399bea86a66cbdd14e12edc