From e73b73e0b0d80db12761a04565c74a8dcfd23c51 Mon Sep 17 00:00:00 2001 From: "Barton E. Schaefer" Date: Mon, 23 Nov 2015 21:45:24 -0800 Subject: 37208: re-run the "typeset" tests with the private module loaded --- ChangeLog | 3 +++ Test/V10private.ztst | 7 ++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 3a0eab704..6c40a08e6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2015-11-23 Barton E. Schaefer + * 37208: Test/V10parameter.ztst: re-run the "typeset" tests with + the private module loaded + * 37208: Src/Modules/param_private.c: assignment in a nested scope should not change private parameters in the outer scope from unset to set; bug remains that the attempt does not generate a warning diff --git a/Test/V10private.ztst b/Test/V10private.ztst index c66f17587..f877455fd 100644 --- a/Test/V10private.ztst +++ b/Test/V10private.ztst @@ -11,6 +11,11 @@ (zmodload -u zsh/param/private && zmodload zsh/param/private) 0:unload and reload the module without crashing + $ZTST_exe +Z -f $ZTST_srcdir/ztst.zsh $ZTST_srcdir/B02typeset.ztst +0:typeset still works with zsh/param/private module loaded +*>* +*>* + typeset scalar_test=toplevel () { print $scalar_test @@ -237,7 +242,7 @@ F:note "typeset" rather than "private" in output from outer } print Y ${(kv)hash_test} Z $array_test } - print ${(kv)hash_test} + print ${(kv)hash_test} ${(t)array_test} 0:privates are not visible in anonymous functions, part 3 >X top level >Y in function Z in function -- cgit 1.4.1