Re: [PATCH] Fix bang flag in ${(!)ref::=var} substitutions
Mikael Magnusson <[email protected]> Fri, 10 Jul 2026 18:44:27 +0200
| Newsgroups | gmane.comp.shells.zsh.devel |
|---|---|
| Message-ID | <CAHYJk3RVq_=Kp34a-2sy4=0U5qvTbWFks9FvVVMo8O-zoc=coA@mail.gmail.com> |
On Fri, Jul 10, 2026 at 2:11 PM Philippe Altherr <[email protected]> wrote: > > The documentation states that with the substitution flag (!) the reference itself is examined, not its referent, but this fails in ${(!)ref::=var} substitutions: > > % typeset var=foo > % typeset -n ref=var > % echo ${(!)ref::=bar} > bar > % typeset -p var ref > typeset var=bar > typeset -n ref=var > > The result of the last command should be the following: > > typeset var=foo > typeset -n ref=bar > > - Fix bang flag in ${(!)ref::=var} substitutions You forgot to attach the patch for this one. -- Mikael Magnusson