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 r.david.murray
Recipients Saimadhav.Heblikar, The Compiler, r.david.murray
Date 2014-02-04.14:01:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1391522509.4.0.762839744497.issue20451@psf.upfronthosting.co.za>
In-reply-to
Content
I believe the problem lies with the way that Windows implements the 'exec' functions.  Windows isn't posix, and sometimes its attempts to fake it go rather badly.  So, I'm not sure what the actual rules are, but whatever they are there should at least be a mention/pointer in the documentation about it.

Really, if you want to be cross platform you should use subprocess.  exec doesn't really even exec (replace the current process) on windows, if I understand correctly.

By the way, -c accepts strings with embedded newlines, something I didn't know for a long time :)
History
Date User Action Args
2014-02-04 14:01:49r.david.murraysetrecipients: + r.david.murray, Saimadhav.Heblikar, The Compiler
2014-02-04 14:01:49r.david.murraysetmessageid: <1391522509.4.0.762839744497.issue20451@psf.upfronthosting.co.za>
2014-02-04 14:01:49r.david.murraylinkissue20451 messages
2014-02-04 14:01:49r.david.murraycreate