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 shypike
Recipients brian.curtin, eric.smith, exarkun, ezio.melotti, shypike
Date 2010-06-13.21:09:31
SpamBayes Score 0.0018438792
Marked as misclassified No
Message-id <1276463373.84.0.911437206495.issue8972@psf.upfronthosting.co.za>
In-reply-to
Content
The discussion is going the wrong way. Let me state what is the actual problem.
When the Popen() function is called with "shell=True", you cannot pass command line elements in which the characters '&' and '|' are embedded (example r'Q&A'). list2cmdline should embed such elements in double quotes '"' in the same way as when a space is detected (so r'"Q&A"').
When '&' and '|' require their special meaning, they should be passed as separate elements (r'&') and in that case list2cmdline should not double-quote them.

The whole C++ discussion was only invoked because I said a potential work-around doesn't work because the way list2cmdline is designed. That remark is not relevant, because the actual problem is different.
History
Date User Action Args
2010-06-13 21:09:34shypikesetrecipients: + shypike, exarkun, eric.smith, ezio.melotti, brian.curtin
2010-06-13 21:09:33shypikesetmessageid: <1276463373.84.0.911437206495.issue8972@psf.upfronthosting.co.za>
2010-06-13 21:09:32shypikelinkissue8972 messages
2010-06-13 21:09:31shypikecreate