pry/pry — Issue #295: On Windows, Pry exits on ANSI.rb error where Irb does not
Author: masassiez
Created: 2011-10-12 05:20:48+00:00
State: open

OS： Windows XP
Ruby： ruby 1.9.2p290 (2011-07-09) [i386-mingw32]
pry： Pry version 0.9.6.2 on Ruby 1.9.2

[ irb ]
irb-1.9.2 > File.open("/WINDOWS/system/setup.inf").lines.count.tap(&:display)
1497# => 1497

[ pry ]
pry(main)> File.open("/WINDOWS/system/setup.inf").lines.count.tap(&:display)
TypeError: can't dup Fixnum
from ... /lib/ruby/gems/1.9.1/gems/win32console-1.3.0-x86-mingw32/lib/Win32/Console/ANSI.rb:149:in `dup'