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

Re: coloring substitution seems to eat next line.



On Thu, Nov 10, 2022 at 10:36 AM Roman Perepelitsa
<roman.perepelitsa@xxxxxxxxx> wrote:
>
> These two aren't the same:
>
>   cc[42]="foo bar"
>   cc[42]=(foo bar)

The first one resets cc[42].  The second one both updates cc[42] and
inserts a new cc[43] after it.  There is also the form

cc[42,44]=(foo bar)

which removes three elements (42,43,44) and replaces them with two new
ones (42 and 43).  Hence a "slice".




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