Skip to content

Instantly share code, notes, and snippets.

@gorsuch
Created June 4, 2013 20:59
Show Gist options
  • Save gorsuch/5709557 to your computer and use it in GitHub Desktop.
Save gorsuch/5709557 to your computer and use it in GitHub Desktop.
irb(main):008:0> PTY.spawn ('ls') { |r, w, pid| puts r.read }
Errno::EIO: Input/output error - /dev/pts/6
  from (irb):8:in `read'
	from (irb):8:in `block in irb_binding'
	from (irb):8:in `spawn'
	from (irb):8
	from /usr/local/bin/irb:12:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment