Issue #6455 has been updated by mame (Yusuke Endoh).

Status changed from Open to Assigned


----------------------------------------
Bug #6455: IRB.conf[:RC_NAME_GENERATOR] ??? IRB.conf[:SAVE_HISTORY] ???????????荐絎?????????? irb ???莎桁????с??????????篆罩??????
https://bugs.ruby-lang.org/issues/6455#change-26737

Author: sho-h (Sho Hashimoto)
Status: Assigned
Priority: Normal
Assignee: keiju (Keiju Ishitsuka)
Category: lib
Target version: 2.0.0
ruby -v: ruby 1.8.7 (2010-08-16 patchlevel 302) [i486-linux]


????????障????吾????????????筝?????ャ????????с????????IRB.conf[:RC_NAME_GENERATOR] ??? IRB.conf[:SAVE_HISTORY] ???????????荐絎?????????? irb ??莎????????????鴻????????<?ゃ??茯??粋昭??帥?т??紊??????榊???????? irb ???莎桁????с????障????????

  $ irb
  /usr/lib/ruby/1.8/irb/ext/save-history.rb:77:in `exist?': can't convert nil into String (TypeError)
          from /usr/lib/ruby/1.8/irb/ext/save-history.rb:77:in `load_history'
          ...
  $

IRB.rc_file("_history") ??? nil ???菴???????????????????????с????????????????障?????

  $ irb -f
  irb(main):001:0> IRB.conf[:RC_NAME_GENERATOR] = Proc.new { |rc|
  irb(main):002:1*   ["/tmp/myirb.#{rc}"].detect { |path| File.exists?(path) }
  irb(main):003:1> }
  irb(main):004:0> IRB.rc_file("_history")
  => nil

1.8.7 ??ц?????障???????????trunk ??с?????罕???с????????????????障?????

lib/irb/ext/save-history.rb ??? IRB.rc_file("_history") ??? nil ??с???????違????????????ゃ??篏帥???????????????鴻??????????????????????障????????


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