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

Re: When array append without parens doesn't work?



On Wed, 19 Feb 2020 at 00:39, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
wrote:

> On Tue, Feb 18, 2020 at 1:33 PM Sebastian Gniazdowski
> <sgniazdowski@xxxxxxxxx> wrote:
> >
> > Can anyone provide an example of the "almost-works" property of the +=...
> > syntax?
>
> % Src/zsh -f
> % a1=(1 2 3)
> % a2=(a b c)
> % a1+=$a2
> % print -rl $a1
> 1
> 2
> 3
> a b c
> %
>

This has to be it – the problem that I've occurred back then, thanks!

-- 
Sebastian Gniazdowski
News: https://twitter.com/ZdharmaI
IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zinit
Blog: http://zdharma.org


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