get_maintainer.pl sends bogus addresses to git send-email

From: Olaf Hering
Date: Tue Apr 07 2020 - 11:52:59 EST


For me sending patches via git send-email fails because email address
conversion is failing. Something appends a ')' to x86/lkml@xxxxxxxxxxx
I suspect the double '))' in MAINTAINERS is confusing the command.
I tried to send the trivial patch from v5.0 and v5.6 tag.

Is this a failure in ./scripts/get_maintainer.pl,
or is this something git does internally?
I'm sure others use such command on a daily basis, so likely something on
my end became broken at some point in the past.

Olaf

linux.git $ git send-email --reroll-count 1 --confirm=always --annotate --to-cmd ./scripts/get_maintainer.pl HEAD^

(mbox) Adding cc: Olaf Hering <olaf@xxxxxxxxx> from line 'From: Olaf Hering <olaf@xxxxxxxxx>'
(body) Adding cc: Olaf Hering <olaf@xxxxxxxxx> from line 'Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>'
(to-cmd) Adding to: "K. Y. Srinivasan" <kys@xxxxxxxxxxxxx> from: './scripts/get_maintainer.pl'
(to-cmd) Adding to: Haiyang Zhang <haiyangz@xxxxxxxxxxxxx> from: './scripts/get_maintainer.pl'
(to-cmd) Adding to: Stephen Hemminger <sthemmin@xxxxxxxxxxxxx> from: './scripts/get_maintainer.pl'
(to-cmd) Adding to: Sasha Levin <sashal@xxxxxxxxxx> from: './scripts/get_maintainer.pl'
(to-cmd) Adding to: Thomas Gleixner <tglx@xxxxxxxxxxxxx> from: './scripts/get_maintainer.pl'
(to-cmd) Adding to: Ingo Molnar <mingo@xxxxxxxxxx> from: './scripts/get_maintainer.pl'
(to-cmd) Adding to: Borislav Petkov <bp@xxxxxxxxx> from: './scripts/get_maintainer.pl'
(to-cmd) Adding to: "H. Peter Anvin" <hpa@xxxxxxxxx> from: './scripts/get_maintainer.pl'
(to-cmd) Adding to: x86@xxxxxxxxxx (maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)) from: './scripts/get_maintainer.pl'
(to-cmd) Adding to: devel@xxxxxxxxxxxxxxxxxxxxxx (open list:Hyper-V CORE AND DRIVERS) from: './scripts/get_maintainer.pl'
(to-cmd) Adding to: linux-kernel@xxxxxxxxxxxxxxx (open list:X86 ARCHITECTURE (32-BIT AND 64-BIT)) from: './scripts/get_maintainer.pl'

From: Olaf Hering <olaf@xxxxxxxxx>
To: "K. Y. Srinivasan" <kys@xxxxxxxxxxxxx>,
Haiyang Zhang <haiyangz@xxxxxxxxxxxxx>,
Stephen Hemminger <sthemmin@xxxxxxxxxxxxx>,
Sasha Levin <sashal@xxxxxxxxxx>,
Thomas Gleixner <tglx@xxxxxxxxxxxxx>,
Ingo Molnar <mingo@xxxxxxxxxx>,
Borislav Petkov <bp@xxxxxxxxx>,
"H. Peter Anvin" <hpa@xxxxxxxxx>,
x86@xxxxxxxxxx) (maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT),
devel@xxxxxxxxxxxxxxxxxxxxxx (open list:Hyper-V CORE AND DRIVERS),
linux-kernel@xxxxxxxxxxxxxxx) (open list:X86 ARCHITECTURE (32-BIT AND 64-BIT)
Cc: Olaf Hering <olaf@xxxxxxxxx>
X-Mailer: git-send-email 2.16.4
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit

Send this email? ([y]es|[n]o|[q]uit|[a]ll): y
5.1.3 Invalid character in domain: <x86@xxxxxxxxxx)>

Attachment: signature.asc
Description: PGP signature