In installed ruby on FC 16 using yum. When I type the command "ruby" in a terminal in FC 16, the terminal scrolls down a line, but no prompt appears for the Ruby interpreter. This happens in both a XFCE terminal and in the console from CTRL-ALT-F2. I can type ruby expressions like
but they don't execute. With random typing, I do get syntax error messages that don't make any sense to me.
When I run a *.rb file with ruby, it works.
Is my knowledge of ruby out of date? (I have the 2nd edition of the pickaxe book, but not the 3rd). I thought the command ruby was supposed to start an interactive session of the ruby interpreter.
Code:
]$ ruby --version
ruby 1.8.7 (2012-02-08 patchlevel 358) [x86_64-linux]