git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] git-send-email: handle email address with quoted comma

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 20, 2008, 20:09 UTC
Message-ID
<7v3agiwquv.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<loom.20081219T162504-25@post.gmane.org>
Matt Kraai <kraai@ftbfs.org> writes:
Show 11 quoted lines
> Howdy,
>
> Wu Fengguang <fengguang.wu <at> intel.com> writes:
>> +sub split_addrs {
>> +	return parse_line('\s*,\s*', 1, @_);
>> +}
>> +
>
> I'm not sure it's still a good idea to use parse_line.  It should work OK for
> now, since split_addrs is only passed one string.  If anyone ever tries to pass
> it a list of strings, however, parse_line will ignore all but the first.

Yikes, I should have caught this. As you point out, this is a breakage waiting to happen until somebody restructures the callers. We should futureproof it by using quotewords() instead.

Previous: Matt KraaiNext: Junio C Hamano
Message 5 of 6 in “git-send-email: handle email address with quoted comma”
  1. git-send-email: handle email address with quoted commaWu Fengguang, Dec 19, 2008
  2. Junio C HamanoDec 19, 2008
  3. Wu FengguangDec 19, 2008
  4. Matt KraaiDec 19, 2008
  5. Junio C HamanoDec 20, 2008
  6. Junio C HamanoDec 20, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.