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 squeegee
Recipients JosephArmbruster, georg.brandl, loewis, pjenvey, squeegee
Date 2009-07-04.04:14:46
SpamBayes Score 1.5769699e-09
Marked as misclassified No
Message-id <1246680888.8.0.815473524315.issue1559298@psf.upfronthosting.co.za>
In-reply-to
Content
What is needed is separate quoting for the command and the argument. 
Right now, test_popen only surrounds the entire command line with quotes:

"c:\Program Files\Python2.6\Python.exe -u c:\Documents and Settings\Russ
Gibson\cgi-bin\cgi.py"

It needs to the above as thus:

"c:\Program Files\Python2.6\Python.exe" -u "c:\Documents and
Settings\Russ Gibson\cgi-bin\cgi.py"

From the command line, the second case works, but the first doesn't. 
Neither work from os.popen in 2.6.2.

To make sure that popen works in all cases under windows, test_popen*
need to test with separate quotes around the command and argument.  That
will show the real problem with the current os.popen* implementation(s).

(yeah, I know, shut up and provide a patch...)
History
Date User Action Args
2009-07-04 04:14:48squeegeesetrecipients: + squeegee, loewis, georg.brandl, pjenvey, JosephArmbruster
2009-07-04 04:14:48squeegeesetmessageid: <1246680888.8.0.815473524315.issue1559298@psf.upfronthosting.co.za>
2009-07-04 04:14:47squeegeelinkissue1559298 messages
2009-07-04 04:14:46squeegeecreate