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

Re: PATCH: <<<: Document newline behavior and fix optimization



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