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

prefix and join an array



Hello.

Is it possible to prefix and join an array:

% list=(a.tld b.tld c.tld)
% tmp=(DNS:${^list})
% print ${(j., .)tmp}
DNS:a.tld, DNS:b.tld, DNS:c.tld

but directly, without tmp, something like:

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


-- 
sergio.



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