zsh-workers
 help / color / mirror / code / Atom feed
* buggy WARN_CREATE_GLOBAL warning
@ 2015-12-04  2:51 Vincent Lefevre
  2015-12-04 10:30 ` Peter Stephenson
  0 siblings, 1 reply; 3+ messages in thread
From: Vincent Lefevre @ 2015-12-04  2:51 UTC (permalink / raw)
  To: zsh-workers

Consider the following script:

----------------------------------------
#!/usr/bin/env zsh

setopt WARN_CREATE_GLOBAL

foo()
{
  local blah=$(TZ=UTC date)
}

foo
----------------------------------------

I get:

foo:2: scalar parameter TZ created globally in function foo

-- 
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)


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

end of thread, other threads:[~2015-12-04 11:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-04  2:51 buggy WARN_CREATE_GLOBAL warning Vincent Lefevre
2015-12-04 10:30 ` Peter Stephenson
2015-12-04 11:20   ` Peter Stephenson

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