``` #!pycon >>> import pexpect >>> pexpect.run('ls') 'bitbucket client exercise github\r\n' >>> s=pexpect.run('ls') >>> print s >>> s 'bitbucket client exercise github\r\n' >>> ``` --- - Bitbucket: https://bitbucket.org/bobf/bpython/issue/119 - Originally Reported By: Anonymous - Originally Created At: 2010-05-19T19:44:52.400