{"action":"closed","issue":{"url":"https://api.github.com/repos/pexpect/pexpect/issues/204","labels_url":"https://api.github.com/repos/pexpect/pexpect/issues/204/labels{/name}","comments_url":"https://api.github.com/repos/pexpect/pexpect/issues/204/comments","events_url":"https://api.github.com/repos/pexpect/pexpect/issues/204/events","html_url":"https://github.com/pexpect/pexpect/issues/204","id":67225499,"number":204,"title":"Remaining text is dropped when EOF received","user":{"login":"detly","id":311239,"avatar_url":"https://avatars.githubusercontent.com/u/311239?v=3","gravatar_id":"","url":"https://api.github.com/users/detly","html_url":"https://github.com/detly","followers_url":"https://api.github.com/users/detly/followers","following_url":"https://api.github.com/users/detly/following{/other_user}","gists_url":"https://api.github.com/users/detly/gists{/gist_id}","starred_url":"https://api.github.com/users/detly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/detly/subscriptions","organizations_url":"https://api.github.com/users/detly/orgs","repos_url":"https://api.github.com/users/detly/repos","events_url":"https://api.github.com/users/detly/events{/privacy}","received_events_url":"https://api.github.com/users/detly/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pexpect/pexpect/labels/bug","name":"bug","color":"e11d21"},{"url":"https://api.github.com/repos/pexpect/pexpect/labels/needs-tests","name":"needs-tests","color":"eb6420"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-04-08T21:37:00Z","updated_at":"2015-04-26T05:52:03Z","closed_at":"2015-04-26T05:52:03Z","body":"If an EOF is received between finding a match and the caller actually reading it, any remaining text seems to be dropped. (Or perhaps I'm looking for it in the wrong place.)\r\n\r\n[This script](https://gist.github.com/detly/d30e7382e6de18d17615) illustrates the problem: I'd expect to see `before: b'Blorp\\r'` (depending on the system line endings); instead I see `before: b''`. I'm running that on Ubuntu 14.04.1, in a Python 3.4.0 virtualenv, with pexpect installed from git."}}