Skip to content

Instantly share code, notes, and snippets.

@yarinb
Created September 27, 2011 18:09
Show Gist options
  • Save yarinb/1245789 to your computer and use it in GitHub Desktop.
Save yarinb/1245789 to your computer and use it in GitHub Desktop.
Jirb doesn't work properly without JRUBY_OPTS
➜ ~ rvm use jruby
Using /Users/yarinb/.rvm/gems/jruby-1.6.4
➜ ~ which jirb (jruby-1.6.4)
/Users/yarinb/.rvm/rubies/jruby-1.6.4/bin/jirb
➜ ~ jirb (jruby-1.6.4)
Object.new
Object.new
#<Object:0x62565cf8>
1+1
1+1
2
^C
➜ ~ export JRUBY_OPTS="" (jruby-1.6.4)
➜ ~ jirb (jruby-1.6.4)
jruby-1.6.4 :001 > Object.new
=> #<Object:0x420a6d35>
jruby-1.6.4 :002 > 1+1
=> 2
jruby-1.6.4 :003 > %
➜ ~ (jruby-1.6.4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment