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

More warn_create_global warnings



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