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

Re: prefix and join an array



On Tue, Apr 28, 2020 at 7:15 PM sergio <sergio@xxxxxxxxxxxxx> wrote:
>
> Is it possible to prefix and join an array:
>
> % list=(a.tld b.tld c.tld)
> % print ${(j., .)(DNS:${^list})}

You almost had it:

% print ${(j., .)${:-DNS:${^list}}}



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