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 <rep...@bugs.python.org> <http://bugs.python.org/issue20451> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com