Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
More warn_create_global warnings
- X-seq: zsh-workers 37452
- From: Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: More warn_create_global warnings
- Date: Wed, 30 Dec 2015 15:20:37 +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>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author