From: Luis Lavena Date: 2011-07-17T05:22:32+09:00 Subject: [ruby-core:38108] Re: [Ruby 1.9 - Bug #4731] ruby -S irb fails with mingw/msys vanilla builds On Sat, Jul 16, 2011 at 7:46 AM, Nobuyoshi Nakada wrote: > > I see. �There is only irb.bat, not irb sans the suffix. �In > that sense, it's natural to fail, but maybe unexpected > behavior. �Now I'm thinking to make -S option search with .bat > (and .cmd too) suffix if it is not found. �How do you feel > about this? > Thank you Nakada-san, I see a few drawbacks with this approach: * For a missing script (e.g. foo), system will attempt to find two extra "foo.bat" and "foo.cmd" in all portions of PATH, which will be expensive. * It will introduce a platform-specific discrepancy that other implementations will either need to implement or indicate that are not compatible. I would like to understand why original script is merged with the batchfile stub in tools/rbinstall.rb Perhaps we can remove that? The only reason I see with this is PowerShell, which finds the extensionless script prior the .bat one and attempts to execute it (dunno why, but that is what it tries). For users with PowerShell I've always recommend them use "ruby -S script" instead. Thank you for your time. -- Luis Lavena AREA 17 - Perfection in design is achieved not when there is nothing more to add, but rather when there is nothing more to take away. Antoine de Saint-Exup�ry