Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: coloring substitution seems to eat next line.
- X-seq: zsh-users 28360
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Cc: Ray Andrews <rayandrews@xxxxxxxxxxx>
- Subject: Re: coloring substitution seems to eat next line.
- Date: Thu, 10 Nov 2022 10:54:26 -0800
- Archived-at: <https://zsh.org/users/28360>
- In-reply-to: <CAN=4vMoDkfG=SgpLjreoWZhwrhfEucGgeiKoRXB+ZQgi=nHohA@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- References: <c87afbb9-d8d1-1d9f-09a3-0e4172fe080f@eastlink.ca> <CAN=4vMp6wFY5MG5dOgWRTqc3W1OvhKsU=bbWZyR=yZgNKt3rRw@mail.gmail.com> <549715c2-8b36-8b7e-e3ac-cac02f43dd0f@eastlink.ca> <CAN=4vMoDkfG=SgpLjreoWZhwrhfEucGgeiKoRXB+ZQgi=nHohA@mail.gmail.com>
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