[issue20451] os.exec* mangles argv on windows (splits on spaces, etc)
Florian Bruhin
report at bugs.python.org
Fri Jan 31 08:20:39 CET 2014
New submission from Florian Bruhin:
The os.exec* functions seem to mangle arguments on Windows. So far I noticed the supplied argv gets split on spaces, and double-quotes get stripped when not escaped.
Example, on Windows 7:
>>> platform.platform()
'Windows-7-6.1.7601-SP1'
>>> os.execlp('python', 'python', '-c', "sys=__import__('sys');print(sys.argv)", 'Hello World')
['-c', 'Hello', 'World']
Same on Archlinux: ['-c', 'Hello World'] as expected.
Both running Python 3.3.3.
----------
components: Library (Lib), Windows
messages: 209748
nosy: The Compiler
priority: normal
severity: normal
status: open
title: os.exec* mangles argv on windows (splits on spaces, etc)
type: behavior
versions: Python 3.3
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20451>
_______________________________________
More information about the Python-bugs-list
mailing list