zsh-workers
 help / color / mirror / code / Atom feed
* More warn_create_global warnings
@ 2015-12-30 14:20 Frank Terbeck
  2015-12-30 18:17 ` Peter Stephenson
  2015-12-31  0:49 ` Daniel Shahaf
  0 siblings, 2 replies; 5+ messages in thread
From: Frank Terbeck @ 2015-12-30 14:20 UTC (permalink / raw)
  To: zsh-workers

Hey workers!

With the new warn_create_global behaviour, here is another warning that
seems bogus:

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


Do I have to mark those local before using back tracking? Or could those
maybe be created in local scope unless they already exist?


Regards, Frank

-- 
In protocol design, perfection has been reached not when there is
nothing left to add, but when there is nothing left to take away.
                                                  -- RFC 1925


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-12-31  1:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-30 14:20 More warn_create_global warnings Frank Terbeck
2015-12-30 18:17 ` Peter Stephenson
2015-12-31  1:06   ` Bart Schaefer
2015-12-31  0:49 ` Daniel Shahaf
2015-12-31  1:27   ` Bart Schaefer

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).