Message676

Author kevinbutler
Recipients
Date 2002-12-19.22:08:20
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=117665

Fixed the first half, by closing the sub-process's std input
stream.

However, I cannot duplicate the different behavior between
jython & python:

With a go.py containing:
---
import os
r = os.system( "cat /tmp/nocr" )
print "=-=-=-"
print r
r = os.system( "cat /tmp/cr" )
print "=-=-=-"
print r
---
And 'nocr' and 'cr' containing text without and with a final
carriage return, I get the following output:

butler@wind:/opt/jython/Lib$ python /tmp/go.py
no carriagereturn=-=-=-
0
carriagereturn
=-=-=-
0
butler@wind:/opt/jython/Lib$ jythoncvs /tmp/go.py
no carriagereturn=-=-=-
0
carriagereturn
=-=-=-
0
History
Date User Action Args
2008-02-20 17:17:06adminlinkissue573791 messages
2008-02-20 17:17:06admincreate