This program behaves differently when piped to ruby and when redirected
to ruby. Is this something I don’t understand about unix, something I
don’t understand about ruby, or a bug?
this is some data.
$ cat t.rb | ruby
$ ruby <t.rb