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 jldm
Recipients jldm
Date 2010-10-26.12:18:49
SpamBayes Score 0.00027159147
Marked as misclassified No
Message-id <1288095541.88.0.426506052882.issue10197@psf.upfronthosting.co.za>
In-reply-to
Content
Hi, first of all sorry for my English.

On windows XP SP3, the following code:

import subprocess
subprocess.getoutput("dir")

returns
    '"{" is not recognized as an internal or external command,\noperable program or batch file.'

I made a workaround by changing in the file Lib/subprocess.py the line 574 (I thin in 3.2a3 is 584) (in the getstatusoutput(cmd) function definition) from:
pipe = os.popen('{ ' + cmd + '; } 2>&1', 'r')

to:
pipe = os.popen('( ' + cmd + '; ) 2>&1', 'r')

I have tested it with:

ActivePython 3.1.2.3 (ActiveState Software Inc.) based on
Python 3.1.2 (r312:79147, Mar 22 2010, 12:20:29) [MSC v.1500 32 bit (Intel)] on win32

and

Python 3.2a3 (r32a3:85355, Oct 10 2010, 17:11:45) [MSC v.1500 32 bit (Intel)] on win32


Regards from Spain.
José Luis Domenech
History
Date User Action Args
2010-10-26 12:19:02jldmsetrecipients: + jldm
2010-10-26 12:19:01jldmsetmessageid: <1288095541.88.0.426506052882.issue10197@psf.upfronthosting.co.za>
2010-10-26 12:18:50jldmlinkissue10197 messages
2010-10-26 12:18:49jldmcreate