Projects
Home     Blog     Install     New Ticket     View Tickets     Browse Source

Ticket #59 (closed task: fixed)

Opened 8 months ago

Last modified 8 months ago

.irb_history support

Reported by: z@… Owned by: lsansonetti@…
Priority: minor Milestone: MacRuby 0.2
Component: MacRuby Keywords:
Cc:

Description

Add .irb_history support to macirb

Initial discussion: http://lists.macosforge.org/pipermail/macruby-devel/2008-May/000206.html

Change History

Changed 8 months ago by lsansonetti@…

  • milestone set to MacRuby 0.2
$ cat ~/.irbrc
IRB.conf[:SAVE_HISTORY] = true

$ macirb
/Library/Frameworks/MacRuby.framework/Versions/0.2/usr/lib/ruby/1.9.0/irb/ext/save-history.rb:68:in `define_finalizer': define_finalizer() function is unimplemented on this machine (NotImplementedError)

Need to re-implement ObjectSpace.define_finalizer.

Changed 8 months ago by lsansonetti@…

  • status changed from new to closed
  • resolution set to fixed

Fixed in r217. Note that IRB.conf[:SAVE_HISTORY] must be set to a number (the max. number of expressions that will be kept in the history). For example, 200.

Also, note that the very first expression is never saved, because of a bug in the readline extension (which uses libedit). This problem is also reproducible with the Ruby 1.8 version that ships with Leopard.

Note: See TracTickets for help on using tickets.