Skip to content

subprocess.list2cmdline doesn't quote the & character #53218

@shypike

Description

@shypike
mannequin
BPO 8972
Nosy @gpshead, @vstinner, @ericvsmith, @ezio-melotti, @bitdancer
Superseder
  • bpo-7839: Popen should raise ValueError if pass a string when shell=False or a list when shell=True
  • Files
  • list2cmdline_ampersand_fix.patch: patch file for subprocess.py and test_subprocess.py
  • list2cmdline_proper_fix.patch
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2014-07-15.17:33:05.220>
    created_at = <Date 2010-06-11.13:11:04.774>
    labels = ['invalid', 'type-bug', 'library', 'OS-windows']
    title = "subprocess.list2cmdline doesn't quote the & character"
    updated_at = <Date 2014-07-15.17:33:05.219>
    user = 'https://bugs.python.org/shypike'

    bugs.python.org fields:

    activity = <Date 2014-07-15.17:33:05.219>
    actor = 'r.david.murray'
    assignee = 'none'
    closed = True
    closed_date = <Date 2014-07-15.17:33:05.220>
    closer = 'r.david.murray'
    components = ['Library (Lib)', 'Windows']
    creation = <Date 2010-06-11.13:11:04.774>
    creator = 'shypike'
    dependencies = []
    files = ['17645', '17650']
    hgrepos = []
    issue_num = 8972
    keywords = ['patch']
    message_count = 16.0
    messages = ['107544', '107646', '107672', '107679', '107680', '107713', '107721', '107752', '107768', '107769', '108131', '108135', '108162', '128127', '222887', '223128']
    nosy_count = 9.0
    nosy_names = ['gregory.p.smith', 'exarkun', 'vstinner', 'eric.smith', 'ezio.melotti', 'r.david.murray', 'SilentGhost', 'shypike', 'BreamoreBoy']
    pr_nums = []
    priority = 'normal'
    resolution = 'not a bug'
    stage = 'resolved'
    status = 'closed'
    superseder = '7839'
    type = 'behavior'
    url = 'https://bugs.python.org/issue8972'
    versions = ['Python 2.7', 'Python 3.4', 'Python 3.5']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      OS-windowsstdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions