It was surprising when the following code froze:

require 'open3'
i, o, e = Open3::popen3('/bin/bash')
c = o.getc
puts c.chr # expecting the first character of my bash prompt


-- 
--------------------------------------------
Aleksandr Levchuk
University of California, Riverside
1-951-368-0004
--------------------------------------------