From: shugo@... (=?ISO-2022-JP?B?GyRCQTBFRBsoQiAbJEI9JDhjGyhC?= / maeda shugo) Date: 1997-08-27T01:56:47+09:00 Subject: [ruby-list:3834] [Bug] Readline::HISTORY 前田です。 ごめんなさい、Readline::HISTORYでバグがありました。 パッチです。 -- 前田 修吾 diff -u /home/shugo/src/ruby-1.1a2/ext/readline/readline.c.orig /home/shugo/src/ruby-1.1a2/ext/readline/readline.c --- /home/shugo/src/ruby-1.1a2/ext/readline/readline.c.orig Wed Aug 27 01:09:52 1997 +++ /home/shugo/src/ruby-1.1a2/ext/readline/readline.c Wed Aug 27 01:09:52 1997 @@ -3,7 +3,7 @@ * module for GNU Readline Library * * Author: maeda shugo - * Version: $Id: readline.c,v 1.2 1997/08/21 10:41:33 shugo Exp $ + * Version: $Id: readline.c,v 1.3 1997/08/26 16:09:29 shugo Exp $ * * Usage: * @@ -231,7 +231,7 @@ state = history_get_history_state(); for (i = 0; i < state->length; i++) { - rb_yield(state->entries[i]); + rb_yield(str_new2(state->entries[i]->line)); } return Qnil; }