Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: <<<: Document newline behavior and fix optimization
- X-seq: zsh-workers 49815
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Mikael Magnusson <mikachu@xxxxxxxxx>
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: PATCH: <<<: Document newline behavior and fix optimization
- Date: Tue, 8 Mar 2022 11:38:58 -0800
- Archived-at: <https://zsh.org/workers/49815>
- In-reply-to: <20220308185832.27204-1-mikachu@gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <20220308185832.27204-1-mikachu@gmail.com>
On Tue, Mar 8, 2022 at 10:59 AM Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
>
> The =(<<<foo) optimization forgot to add a newline, but =(cat<<<foo)
> always did, make the behavior consistent, and document it.
I regularly make use of the fact that <<<foo does not add a newline,
outside of substitution context. I have no opinion on whether the
file created by =(<<<foo) should end in a newline, that's a different
matter.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author