[MacRuby-devel] [MacRuby] #518: macirb can't be set to use a default prompt mode

MacRuby ruby-noreply at macosforge.org
Wed Dec 23 13:38:38 PST 2009


#518: macirb can't be set to use a default prompt mode
-------------------------------------+--------------------------------------
 Reporter:  mattaimonetti@…          |       Owner:  lsansonetti@…        
     Type:  defect                   |      Status:  new                  
 Priority:  minor                    |   Milestone:  MacRuby 0.5          
Component:  MacRuby                  |    Keywords:  macirb, prompt       
-------------------------------------+--------------------------------------

Comment(by jordan.breeding@…):

 I don't necessarily think that this is a problem with MacRuby, but rather
 another case of Ruby 1.8 vs. Ruby 1.9.

 Ruby versions I have:

 {{{
 4 jordan at thetourist ~ > ruby -e 'p MACRUBY_VERSION if
 defined?(MACRUBY_VERSION); p RUBY_VERSION;'
 "1.8.7"

 5 jordan at thetourist ~ > /opt/homebrew/bin/ruby -e 'p MACRUBY_VERSION if
 defined?(MACRUBY_VERSION); p RUBY_VERSION;'
 "1.9.1"

 6 jordan at thetourist ~ > macruby -e 'p MACRUBY_VERSION if
 defined?(MACRUBY_VERSION); p RUBY_VERSION;'
 "0.5"
 "1.9.0"
 }}}

 Ruby 1.8.7:

 {{{
 7 jordan at thetourist ~ > irb --prompt-mode default
 >> quit
 8 jordan at thetourist ~ > irb --prompt-mode simple
 >> quit
 9 jordan at thetourist ~ > irb --prompt-mode inf-ruby
 irb(main):001:0> quit
 10 jordan at thetourist ~ > irb --prompt-mode default
 >> quit
 }}}

 Ruby 1.9.2:

 {{{
 11 jordan at thetourist ~ > /opt/homebrew/bin/irb --prompt-mode default
 irb(main):001:0> quit
 12 jordan at thetourist ~ > /opt/homebrew/bin/irb --prompt-mode simple
 >> quit
 13 jordan at thetourist ~ > /opt/homebrew/bin/irb --prompt-mode inf-ruby
 irb(main):001:0> quit
 14 jordan at thetourist ~ > /opt/homebrew/bin/irb --prompt-mode default
 irb(main):001:0> quit
 15 jordan at thetourist ~ > /opt/homebrew/bin/irb --prompt-mode simple
 >> quit
 16 jordan at thetourist ~ > /opt/homebrew/bin/irb --prompt-mode default
 irb(main):001:0> quit
 }}}

 MacRuby 0.5 (from trunk):

 {{{
 17 jordan at thetourist ~ > macirb --prompt-mode default
 irb(main):001:0> quit
 18 jordan at thetourist ~ > macirb --prompt-mode simple
 >> quit
 19 jordan at thetourist ~ > macirb --prompt-mode inf-ruby
 irb(main):001:0> quit
 20 jordan at thetourist ~ > macirb --prompt-mode default
 irb(main):001:0> quit
 21 jordan at thetourist ~ > macirb --prompt-mode simple
 >> quit
 22 jordan at thetourist ~ > macirb --prompt-mode default
 irb(main):001:0> quit
 }}}

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/518#comment:1>
MacRuby <http://macruby.org/>



More information about the MacRuby-devel mailing list