google / goexpect

Expect for Go
BSD 3-Clause "New" or "Revised" License
759 stars 134 forks source link

Fix read() function err checking #29

Closed joshbarry92 closed 5 years ago

joshbarry92 commented 5 years ago

The read function is failing tests with the inability to spawn a process with the error process not running. Upon investigation, I determined that the fact the read function had an || instead of a && caused a "pty: bad file descriptor" error and would not allow for further functions to execute and read from the buffer.