zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.stephenson@samsung.com>
To: zsh-workers@zsh.org
Subject: Re: buggy WARN_CREATE_GLOBAL warning
Date: Fri, 04 Dec 2015 11:20:18 +0000	[thread overview]
Message-ID: <20151204112018.24861b18@pwslap01u.europe.root.pri> (raw)
In-Reply-To: <20151204103001.164bb61e@pwslap01u.europe.root.pri>

These tests could probably do with some more cases.

pws

diff --git a/Test/E01options.ztst b/Test/E01options.ztst
index c9427c7..f270767 100644
--- a/Test/E01options.ztst
+++ b/Test/E01options.ztst
@@ -1120,6 +1120,15 @@
 ?fn:5: scalar parameter foo1 created globally in function fn
 ?fn:15: numeric parameter foo5 created globally in function fn
 
+  fn() {
+    emulate -L zsh
+    setopt warncreateglobal
+    TZ=UTC date >&/dev/null
+    local um=$(TZ=UTC date 2>/dev/null)
+  }
+  fn
+0:WARN_CREATE_GLOBAL negative cases
+
 # This really just tests if XTRACE is egregiously broken.
 # To test it properly would need a full set of its own.
   fn() { print message; }


      reply	other threads:[~2015-12-04 11:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-04  2:51 Vincent Lefevre
2015-12-04 10:30 ` Peter Stephenson
2015-12-04 11:20   ` Peter Stephenson [this message]

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=20151204112018.24861b18@pwslap01u.europe.root.pri \
    --to=p.stephenson@samsung.com \
    --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).