From: Charles Nutter Date: 2011-01-15T00:11:08+09:00 Subject: [ruby-core:34500] [Ruby 1.9-Feature#4265] Provide a core method Kernel#ruby for invoking a new Ruby instance Issue #4265 has been updated by Charles Nutter. Hongli/Michael: The linked code would probably work well enough as a default implementation. The problem is it's not default, so everyone has their own code for doing it. This could could probably be included, verbatim, as a standard Ruby library or used to implement a core class Ruby method. This bug isn't as much about how it would be implemented (it would be easy) as getting it built into Ruby core in the first place so everyone's using the same mechanism. The point about forward vs back slashes is well made, but probably pretty easy to remedy. Eric: That largely does work, but as you point out it doesn't give a clean environment. It also doesn't allow passing new/different command line arguments (like changing global encodings) nor loading different versions of libraries. And of course, it doesn't do anything at all on implementations that don't support fork :) ---------------------------------------- http://redmine.ruby-lang.org/issues/show/4265 ---------------------------------------- http://redmine.ruby-lang.org