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 exarkun
Recipients chops@demiurgestudios.com, exarkun, gregory.p.smith
Date 2010-06-19.18:16:33
SpamBayes Score 0.0021603738
Marked as misclassified No
Message-id <1276971395.46.0.999747214136.issue1300@psf.upfronthosting.co.za>
In-reply-to
Content
It will return the former.

To clarify, it's true that there appears to be a problem with Popen(['echo', 'foo|bar'], shell=True).  That is being tracked in issue7839.

What's invalid is the report that list2cmdline() should be quoting strings with | in them.  list2cmdline() is documented as being an implementation of the quoting convention implemented by the MS C runtime.  That quoting convention does not require | to be quoted.

It's cmd.exe which requires | to be quoted (if it is to be part of an argument value, rather than to indicate a command pipeline of some sort).  cmd.exe quoting rules need to be addressed separately from the MS C quoting rules used even if cmd.exe isn't involved.
History
Date User Action Args
2010-06-19 18:16:35exarkunsetrecipients: + exarkun, gregory.p.smith, chops@demiurgestudios.com
2010-06-19 18:16:35exarkunsetmessageid: <1276971395.46.0.999747214136.issue1300@psf.upfronthosting.co.za>
2010-06-19 18:16:34exarkunlinkissue1300 messages
2010-06-19 18:16:33exarkuncreate