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

Re: More warn_create_global warnings



On Dec 30,  6:17pm, Peter Stephenson wrote:
}
} So if you don't want a warning here, it could be a sign you don't really
} need the warnings at all.

The problem has become one where user A wants the warning, user B does
not, but user A wants to run scripts/functions written by user B.

Sometimes "user B" is the zsh distribution, which hasn't been (and is
rather difficult to be) rigorously checked for undeclared locals.

Hopefully the change in commit 7611e78ad1a8edbfcb486b19d4cfbc969ce1e771
to cause "emulate" to reset WARN_CREATE_GLOBAL will make this less of
an issue, come 5.3 ... but it still means user B has to remember to
properly "emulate"-ify his functions.



Messages sorted by: Reverse Date, Date, Thread, Author