[MacRuby] #518: macirb can't be set to use a default prompt mode
#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 -------------------------------------+-------------------------------------- {{{ $ macirb --prompt-mode simple
[mattetti@matt-aimonettis-macbook MacRuby]$ macirb irb(main):001:0> [mattetti@matt-aimonettis-macbook MacRuby]$ irb --prompt-mode simple
[mattetti@matt-aimonettis-macbook MacRuby]$ irb
}}}
I would even suggest to make the simple prompt mode, the default irb mode in macirb. -- Ticket URL: <http://www.macruby.org/trac/ticket/518> MacRuby <http://macruby.org/>
#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@thetourist ~ > ruby -e 'p MACRUBY_VERSION if defined?(MACRUBY_VERSION); p RUBY_VERSION;' "1.8.7" 5 jordan@thetourist ~ > /opt/homebrew/bin/ruby -e 'p MACRUBY_VERSION if defined?(MACRUBY_VERSION); p RUBY_VERSION;' "1.9.1" 6 jordan@thetourist ~ > macruby -e 'p MACRUBY_VERSION if defined?(MACRUBY_VERSION); p RUBY_VERSION;' "0.5" "1.9.0" }}} Ruby 1.8.7: {{{ 7 jordan@thetourist ~ > irb --prompt-mode default
quit 8 jordan@thetourist ~ > irb --prompt-mode simple quit 9 jordan@thetourist ~ > irb --prompt-mode inf-ruby irb(main):001:0> quit 10 jordan@thetourist ~ > irb --prompt-mode default quit }}}
Ruby 1.9.2: {{{ 11 jordan@thetourist ~ > /opt/homebrew/bin/irb --prompt-mode default irb(main):001:0> quit 12 jordan@thetourist ~ > /opt/homebrew/bin/irb --prompt-mode simple
quit 13 jordan@thetourist ~ > /opt/homebrew/bin/irb --prompt-mode inf-ruby irb(main):001:0> quit 14 jordan@thetourist ~ > /opt/homebrew/bin/irb --prompt-mode default irb(main):001:0> quit 15 jordan@thetourist ~ > /opt/homebrew/bin/irb --prompt-mode simple quit 16 jordan@thetourist ~ > /opt/homebrew/bin/irb --prompt-mode default irb(main):001:0> quit }}}
MacRuby 0.5 (from trunk): {{{ 17 jordan@thetourist ~ > macirb --prompt-mode default irb(main):001:0> quit 18 jordan@thetourist ~ > macirb --prompt-mode simple
quit 19 jordan@thetourist ~ > macirb --prompt-mode inf-ruby irb(main):001:0> quit 20 jordan@thetourist ~ > macirb --prompt-mode default irb(main):001:0> quit 21 jordan@thetourist ~ > macirb --prompt-mode simple quit 22 jordan@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/>
#518: macirb can't be set to use a default prompt mode -------------------------------------+-------------------------------------- Reporter: mattaimonetti@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: minor | Milestone: Component: MacRuby | Resolution: invalid Keywords: macirb, prompt | -------------------------------------+-------------------------------------- Changes (by lsansonetti@…): * status: new => closed * resolution: => invalid * milestone: MacRuby 0.5 => Comment: --prompt-mode just sets the mode for the current session, not all sessions. This is not a bug. MRI's irb reads /etc/irbrc which sets the prompt as simple. macirb does not read /etc/irbrc yet. -- Ticket URL: <http://www.macruby.org/trac/ticket/518#comment:2> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby