古い libedit の add_history 関数がヒストリに入力した文字列を追加しない問題について
Mac OSX 10.4 の libedit の問題が Debian GNU/Linux etch の環境でも再現できることが分かりました。
この問題の詳細は、 ruby-dev:35551 からのスレッドを参照してくださいね。
havana$ cat /etc/debian_version 4.0 havana$ sudo apt-get install libedit-dev ... 取得:1 http://ftp.jp.debian.org etch/main libedit-dev 2.9.cvs.20050518-2.2 [71.1kB] ... havana$ ./configure --prefix=${HOME}/local --program-suffix=19trunk --enable-libedit && make havana$ make test-all TESTS="readline" ./miniruby -I./lib -I.ext/common -I./- -r./ext/purelib.rb ./runruby.rb --extout=.ext -- "./test/runner.rb" --basedir="./test" --runner=console readline Loaded suite readline Started ....F...F......... Finished in 0.053684678 seconds. 1) Failure: test_empty_p(Readline::TestHistory) [/home/kouji/work/ruby/trunk/test/readline/test_readline_history.rb:237:in `block in test_empty_p' /home/kouji/work/ruby/trunk/test/readline/test_readline_history.rb:236:in `times' /home/kouji/work/ruby/trunk/test/readline/test_readline_history.rb:236:in `test_empty_p']: <false> is not true. 2) Failure: test_length(Readline::TestHistory) [/home/kouji/work/ruby/trunk/test/readline/test_readline_history.rb:226]: <0> expected but was <5>. 18 tests, 96 assertions, 2 failures, 0 errors make: *** [test-all] エラー 1
対応するかどうかは別として、これで確認作業が少しは楽になります。
しかし、これは libedit の問題なので、放置しておくことにします。
Mac OSX 10.4 をご使用中のみなさん、 10.5 にアップグレードしてくださいね(w