diff options
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | Test/E01options.ztst | 20 |
2 files changed, 22 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index c1d4243d3..cbb504f98 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2005-08-08 Peter Stephenson <pws@csr.com> + * 21576: Test/E01options.ztst: test for 21575. + * unposted: Src/exec.c: removed unnecessary augment variable from 21575 diff --git a/Test/E01options.ztst b/Test/E01options.ztst index 82b779850..da4020c15 100644 --- a/Test/E01options.ztst +++ b/Test/E01options.ztst @@ -975,6 +975,26 @@ > ?fn: foo: parameter not set + fn() { + emulate -L zsh + setopt warncreateglobal + foo1=bar1 + unset foo1 + foo1=bar2 + local foo2=bar3 + unset foo2 + foo2=bar4 + typeset -g foo3 + foo3=bar5 + fn2() { + foo3=bar6 + } + } + fn +0:WARN_CREATE_GLOBAL option +?fn:3: scalar parameter foo1 created globally in function +?fn:5: scalar parameter foo1 created globally in function + # This really just tests if XTRACE is egregiously broken. # To test it properly would need a full set of its own. fn() { print message; } |