Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
buggy WARN_CREATE_GLOBAL warning
- X-seq: zsh-workers 37301
- From: Vincent Lefevre <vincent@xxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: buggy WARN_CREATE_GLOBAL warning
- Date: Fri, 4 Dec 2015 03:51:55 +0100
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mail-followup-to: zsh-workers@xxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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@xxxxxxxxxx> - 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)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author