[issue37659] subprocess.list2cmdline() should not escape wrapping single/double quotes

Steve Dower report at bugs.python.org
Wed Jul 24 14:47:58 EDT 2019


Steve Dower <steve.dower at python.org> added the comment:

Maybe we need to finally make shlex.split() at least be consistent with list2cmdline() on Windows so it can round-trip, perhaps with a "windows=True" parameter.

I don't think it's unreasonable to aim for round-tripability. That isn't near as hard as "correctly quoting arguments in the absence of a specification for how to quote arguments".

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37659>
_______________________________________


More information about the Python-bugs-list mailing list