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 p.fedin
Recipients p.fedin
Date 2012-06-15.05:53:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1339739600.87.0.936564016625.issue15073@psf.upfronthosting.co.za>
In-reply-to
Content
commands.getoutput() is broken on Windows. The issue has been detected in v2.7.2, but still persists in v2.7.3:
--- cut ---
Python 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import commands;
>>> print commands.getoutput("dir");
'{' is not recognized as an internal or external command,
operable program or batch file.
>>>
--- cut ---
 The error message comes from cmd.exe. Looks like Python tries to feed native Windows shell with UNIX-style commands sequence in {...}.
 I believe this is very simple to fix, please take a look at it. Some our internal software croaks because of this.
History
Date User Action Args
2012-06-15 05:53:20p.fedinsetrecipients: + p.fedin
2012-06-15 05:53:20p.fedinsetmessageid: <1339739600.87.0.936564016625.issue15073@psf.upfronthosting.co.za>
2012-06-15 05:53:20p.fedinlinkissue15073 messages
2012-06-15 05:53:19p.fedincreate