Message108194
| 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. |
|