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

Re: [PATCH] Fix bang flag in ${(!)ref::=var} substitutions



On Fri, Jul 10, 2026 at 2:11 PM Philippe Altherr
<philippe.altherr@xxxxxxxxx> 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




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