[issue35154] subprocess.list2cmdline() does not allow running some commands.
Eryk Sun
report at bugs.python.org
Sun Nov 4 15:39:02 EST 2018
Eryk Sun <eryksun at gmail.com> added the comment:
> he himself puts double quotes or calls CommandLineToArgvW
CommandLineToArgvW has nothing to do with creating a command line for use with CreateProcess. It's used by a process to parse its own command line using the common VC++ rules.
> subprocess.list2cmdline() is always called
No, it's only called for an args sequence, not a command-line string. If you have your own function to convert a sequence to a command-line, then call it explicitly, e.g. subprocess.run(mylist2cmdline(args)).
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35154>
_______________________________________
More information about the Python-bugs-list
mailing list