[Rubygems-developers] [ rubygems-Bugs-29077 ] [PATCH] executable wrapper should set $0

noreply at rubyforge.org noreply at rubyforge.org
Fri Mar 11 15:07:16 EST 2011


Bugs item #29077, was opened at 2011-03-11 12:07
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=575&aid=29077&group_id=126

Category: `gem install` command
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Suraj Kurapati (snk)
Assigned to: Nobody (None)
Summary: [PATCH] executable wrapper should set $0

Initial Comment:
Hello,

The wrapper executable that RubyGems generates should set $0 to the actual executable file before loading it.  This allows us to use the "if __FILE__ == $0" idiom (which is an indispensable feature for essentially single-file executables that we just want to release as ruby gems) in our executables.

Thanks for your consideration.

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=575&aid=29077&group_id=126


More information about the Rubygems-developers mailing list