From: Bart Schaefer <schaefer@brasslantern.com>
To: Mikael Magnusson <mikachu@gmail.com>
Cc: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: PATCH: <<<: Document newline behavior and fix optimization
Date: Tue, 8 Mar 2022 11:38:58 -0800 [thread overview]
Message-ID: <CAH+w=7ZLMyWpvjCgFem+VmkVPqWVKaW6nKUkaDBSjepURnRNbA@mail.gmail.com> (raw)
In-Reply-To: <20220308185832.27204-1-mikachu@gmail.com>
On Tue, Mar 8, 2022 at 10:59 AM Mikael Magnusson <mikachu@gmail.com> 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.
next prev parent reply other threads:[~2022-03-08 19:39 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-08 18:58 Mikael Magnusson
2022-03-08 19:38 ` Bart Schaefer [this message]
2022-03-08 19:42 ` Bart Schaefer
2022-03-09 11:10 ` Stephane Chazelas
2022-03-13 18:50 ` Stephane Chazelas
2022-03-13 19:28 ` Mikael Magnusson
2022-03-13 19:35 ` Stephane Chazelas
2022-03-30 7:17 ` Jun T
2022-03-30 8:02 ` Mikael Magnusson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAH+w=7ZLMyWpvjCgFem+VmkVPqWVKaW6nKUkaDBSjepURnRNbA@mail.gmail.com' \
--to=schaefer@brasslantern.com \
--cc=mikachu@gmail.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).