This is a problem that was pointed out by Esteban Velazquez.
% cat gets2.rb
print "getting "; puts gets
Sending the app arguments returns an error:
% ruby gets2.rb fred
gets2.rb:3:in `gets’: No such file or directory - fred
But, with no arguments, it runs ok.
% ruby gets2.rb
The problem is eluding me now. Any help would be appreciated.