Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: More warn_create_global warnings
- X-seq: zsh-workers 37458
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: More warn_create_global warnings
- Date: Thu, 31 Dec 2015 00:49:23 +0000
- Cc: Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx>
- 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=
- In-reply-to: <87mvss6mru.fsf@ft.bewatermyfriend.org>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <87mvss6mru.fsf@ft.bewatermyfriend.org>
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author