This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author The Compiler
Recipients The Compiler
Date 2014-01-31.07:20:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1391152839.26.0.437112268275.issue20451@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-01-31 07:20:39The Compilersetrecipients: + The Compiler
2014-01-31 07:20:39The Compilersetmessageid: <1391152839.26.0.437112268275.issue20451@psf.upfronthosting.co.za>
2014-01-31 07:20:39The Compilerlinkissue20451 messages
2014-01-31 07:20:38The Compilercreate