Skip to content

Instantly share code, notes, and snippets.

@nrk
Created January 9, 2009 20:55
Show Gist options
  • Save nrk/45276 to your computer and use it in GitHub Desktop.
Save nrk/45276 to your computer and use it in GitHub Desktop.
Wrong behaviour of $_ in IronRuby SVN r182
Ruby 1.8.6 (expected behaviour)
irb(main):001:0> gets
hello
=> "hello\n"
irb(main):002:0> $_
=> "hello\n"
IronRuby SVN r182
>>> gets
hello!
=> "hello!\n"
>>> $_
=> nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment