Message676
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
|
|
Date |
User |
Action |
Args |
2008-02-20 17:17:06 | admin | link | issue573791 messages |
2008-02-20 17:17:06 | admin | create | |
|