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

[PATCH] git-send-email: allow whitespace in addressee list

From
PBPieter de Bie <pdebie@ai.rug.nl>
Date
Jun 7, 2008, 13:34 UTC
Message-ID
<1212845676-80100-1-git-send-email-pdebie@ai.rug.nl>

When interactively supplying addresses to send an email to with send-email, whitespace after the separation comma (as in 'list, jc') wasn't ignored. This meant that resolving of the alias ' jc' would fail, sending an email only to list. With this patch, the optional trailing whitespace is ignored.

Signed-off-by: Pieter de Bie <pdebie@ai.rug.nl>
---
This has been bothering me for a while now :)
 git-send-email.perl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/git-send-email.perl b/git-send-email.perl
index a598fdc..e53350a 100755
--- a/git-send-email.perl
+++ b/git-send-email.perl
@@ -441,7 +441,7 @@ if (!@to) {
 	}
 
 	my $to = $_;
-	push @to, split /,/, $to;
+	push @to, split /,\s*/, $to;
 	$prompting++;
 }
 
-- 
1.5.6.rc0.165.ge08d6b.dirty
Message 1 of 1 in “git-send-email: allow whitespace in addressee list”
  1. git-send-email: allow whitespace in addressee listPieter de Bie, Jun 7, 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.