Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

buggy WARN_CREATE_GLOBAL warning



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