Issue #7679 has been updated by keiju (Keiju Ishitsuka).


injekt (Lee Jarvis) wrote:
> Nobuhiro,
> 
> I think the point is, shouldn't we be setting SAVE_HISTORY by default? If version managers are doing this then it should tell us it should probably be done by default. Are there any reasons why this shouldn't be done?

This behavior of Irb is modeled on csh or tcsh.
I admit that the Irb's document is not sufficient. 
----------------------------------------
Bug #7679: IRB history is broken
https://bugs.ruby-lang.org/issues/7679#change-35382

Author: zzak (Zachary Scott)
Status: Assigned
Priority: Normal
Assignee: keiju (Keiju Ishitsuka)
Category: lib
Target version: 2.0.0
ruby -v: 2.0.0


steps to reproduce:
$ irb
irb(main):001:> 1 + 2
=> 3
irb(main):002:0> exit
$ irb
irb(main):001:0> *up arrow* nothing

I should see at least "1 + 2" when I hit the up arrow.

Using: ruby 2.0.0dev (2012-12-30 trunk 38663) [x86_64-linux]

Also confirmed on: ruby 2.0.0dev (2013-01-07 trunk 38734) [x86_64-darwin12.2.0]


-- 
http://bugs.ruby-lang.org/