Patchwork D7541: mail: use procutil.shellsplit instead of bytes.split to parse command

login
register
mail settings
Submitter phabricator
Date Dec. 2, 2019, 1:51 p.m.
Message ID <differential-rev-PHID-DREV-4bg2vynp2ehupndtotzp-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/43562/
State Superseded
Headers show

Comments

phabricator - Dec. 2, 2019, 1:51 p.m.
jcristau created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D7541

AFFECTED FILES
  mercurial/mail.py

CHANGE DETAILS




To: jcristau, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/mail.py b/mercurial/mail.py
--- a/mercurial/mail.py
+++ b/mercurial/mail.py
@@ -197,7 +197,7 @@ 
         raise error.Abort(
             b'%s %s'
             % (
-                os.path.basename(program.split(None, 1)[0]),
+                os.path.basename(procutil.shellsplit(program)[0]),
                 procutil.explainexit(ret),
             )
         )