>: ${(PA)varname::="$array[@]"} > >to not lose empty elements. this (very useful) clarification has made me embark in a three hour long quest to correct (some of?) the many places where I indeed was loosing empty elements thanks but I really hate when I find out bugs that i never have thought of (a big one has been discovering the -r flag to read) one should indeed always rtfm, and I really enjoy doing it, but there are so many to read and so few hours in a day... Pier Paolo Grassi Il giorno gio 16 apr 2020 alle ore 18:29 Sebastian Gniazdowski < sgniazdowski@gmail.com> ha scritto: > On Thu, 16 Apr 2020 at 01:14, Mikael Magnusson wrote: > >> : ${(PA)varname::=$array} >> (leave out the A for scalar assignment, and use AA for assoc arrays). >> > > I would do: > > : ${(PA)varname::="$array[@]"} > > to not lose empty elements. > > -- > Sebastian Gniazdowski > News: https://twitter.com/ZdharmaI > IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zinit > Blog: http://zdharma.org >