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

Re: [PATCH] jp: fix segfaults during parameter expansion



On 14 Jan 2018, at 06:06, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>What's the expected output of that substitution?

This was my segfault. I didn't expect anything from it exactly, i was just
messing about without giving much thought to what i was doing. But i guess what
i'd originally wanted was a way to indirectly assign a value to an association
element. Seems you have to do something like this?

  local -A assoc
  name='assoc[foo]'
  : ${(P)name::=bar}

dana




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