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

Re: associative array questions



On Mon, Dec 12, 2022 at 7:31 PM Ray Andrews <rayandrews@xxxxxxxxxxx> wrote:
>
> ${(P)list::="tea for two"}
>
> ... and I get the 'command not found: 'tea for  two' ' message.

Well, yes, its a ${...} substitution so it does return a value, which
you then have to do something with.  The usual idiom is the ":"
builtin:

% : ${(P)list::="tea for two"}
%




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