zsh-workers
 help / color / mirror / code / Atom feed
From: Daniel Shahaf <d.s@daniel.shahaf.name>
To: zsh-workers@zsh.org
Cc: Frank Terbeck <ft@bewatermyfriend.org>
Subject: Re: More warn_create_global warnings
Date: Thu, 31 Dec 2015 00:49:23 +0000	[thread overview]
Message-ID: <20151231004923.GB2455@tarsus.local2> (raw)
In-Reply-To: <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


  parent reply	other threads:[~2015-12-31  0:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-30 14:20 Frank Terbeck
2015-12-30 18:17 ` Peter Stephenson
2015-12-31  1:06   ` Bart Schaefer
2015-12-31  0:49 ` Daniel Shahaf [this message]
2015-12-31  1:27   ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20151231004923.GB2455@tarsus.local2 \
    --to=d.s@daniel.shahaf.name \
    --cc=ft@bewatermyfriend.org \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).