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

Re: [PATCH] Named reference typos & misc.



> On 14/02/2023 02:08 Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> More stuff helpfully noticed by Oliver; the last patch unintentionally
> regressed one valid assignment usage, typeset +m and $parameters
> returned (different) incorrect results for named references, and
> testing for typeset +m revealed a segfault with typeset -p.

I need the following to make the tests pass --- else no error message.
It's possible I'm missing something, I'm not following every detail
here but it looks like everything is committed up to date so probably
worth mentioning.  I won't commit this since Bart will know if this
reflects a more fundamental problem.

diff --git a/Test/K01nameref.ztst b/Test/K01nameref.ztst
index d240e49..38a5fbd 100644
--- a/Test/K01nameref.ztst
+++ b/Test/K01nameref.ztst
@@ -651,6 +651,7 @@ F:Same test, should part 5 output look like this?
 >typeset -n ref=two
 >typeset -n ref=var
 
+ unsetopt typeset_to_unset
  unset -n ref
  unset one
  typeset -n ref

pws




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