Issue #4731 has been updated by Luis Lavena.


Nobuyoshi Nakada wrote:
> I can't reproduce it.
> Is irb only a batch file, or an exe file?

After `make install` the end result in the indicated prefix is a series of batch files like: irb.bat which contains a mix of windows commands and the Ruby script in it, which is then fired using `ruby -x`

On RubyInstaller we replaced that with plain stubs and the original scripts from Ruby's source code, see here:

https://github.com/oneclick/rubyinstaller/blob/master/recipes/interpreter/ruby19.rake#L146-149
https://github.com/oneclick/rubyinstaller/blob/master/recipes/interpreter/ruby19.rake#L156-161
https://github.com/oneclick/rubyinstaller/blob/master/recipes/interpreter/ruby19.rake#L182-191

This workaround was implemented so `ruby -S irb` works.

----------------------------------------
Bug #4731: ruby -S irb fails with mingw/msys vanilla builds
http://redmine.ruby-lang.org/issues/4731

Author: Roger Pack
Status: Feedback
Priority: Normal
Assignee: Nobuyoshi Nakada
Category: 
Target version: 
ruby -v: ruby 1.9.3dev (2011-05-18 trunk 31614) [i386-mingw32]


as reported originally with http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/36285
basically mingw builds fail with $ ruby -S irb and always have, at least for the 1.9 branches.

$ ruby -S irb
ruby: No such file or directory -- irb (LoadError)



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