Re: git send-email splits name with comma
- From
Geert Uytterhoeven <geert@linux-m68k.org>
- Date
- Oct 4, 2021, 19:56 UTC
- Message-ID
- <CAMuHMdVHuxzKv7z+oVnPXSBi8bLnGMZDcXdgtGR4N15UQttciQ@mail.gmail.com>
- In-Reply-To
- <xmqqczokwrt9.fsf@gitster.g>
Hi Junio,
On Mon, Oct 4, 2021 at 8:47 PM Junio C Hamano <gitster@pobox.com> wrote:
Show 23 quoted lines
> Geert Uytterhoeven <geert@linux-m68k.org> writes: > > On Mon, Oct 4, 2021 at 4:31 PM Andreas Schwab <schwab@linux-m68k.org> wrote: > >> On Okt 04 2021, Geert Uytterhoeven wrote: > >> > If the name of an email address contains a comma, it will be split > >> > incorrectly into multiple addresses. > >> > >> If you want to include a comma in the display-name part of an address, > >> you need to use the quoted-string form of the phrase. > > > > Adding more quoting like: > > > > git send-email --to "\"foo bar, geert\" <geert@linux-m68k.org>" > > > > indeed works. But I feel git send-email could do better, given it already > > receives the full email address in a single argv[] entry. > > Sorry, but I do not quite follow. > > If I were to send a message both to the list and to you, wouldn't > > git send-email --to "l-k@vger.k.org, geert <g@l-m68k.o>" > > a valid way to do so?
Oh wait, I never realized --to and --cc take multiple email addresses; I also use multiple --to/--cc options instead. So the behavior I see is actually the expected behavior. Thanks, and sorry for the noise.
Gr{oetje,eeting}s,Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds