Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug: bracketed-paste-magic + ztcp causes wrong pasted contents for CJK payloads
2015/10/29 23:51, Peter Stephenson <p.stephenson@xxxxxxxxxxx> wrote:
> @@ -3007,6 +3032,10 @@ setnparam(char *s, mnumber val)
>
> DPUTS(!v, "BUG: value not found for new parameter");
> + if (!was_unset && isset(WARNCREATEGLOBAL) && locallevel > 0 &&
> + v->pm->level == 0)
> + zwarn("numeric parameter %s created globally in function",
> + v->pm->node.nam);
E01options.ztst also need be updated; otherwise it fails as follows:
*** /tmp/zsh.ztst.err.65239 Fri Oct 30 00:54:52 2015
--- /tmp/zsh.ztst.terr.65239 Fri Oct 30 00:54:52 2015
***************
*** 1,3 ****
--- 1,4 ----
fn:3: scalar parameter foo1 created globally in function
fn:5: scalar parameter foo1 created globally in function
fn:15: math parameter foo5 created globally in function fn
+ fn:15: numeric parameter foo5 created globally in function
Test ./E01options.ztst failed: error output differs from expected as shown above for:
fn() {
emulate -L zsh
setopt warncreateglobal
(snip)
}
fn
Was testing: WARN_CREATE_GLOBAL option
Messages sorted by:
Reverse Date,
Date,
Thread,
Author