Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Scripts in script dir only run with "ruby" command in path

#2105

All the scripts in the script dir have a shebang line of #!/usr/bin/env ruby which prevents running them directly when the "ruby" command on a system is not "ruby". For example, JRuby's command is "jruby" and I also have ruby1.9 installed as "ruby1.9".

If these scripts were generated, based on the actual name of the Ruby command being run, then they could be directly executed no matter what implementation or executable name the user was using.

I do not have a patch for this because I'm not yet familiar enough with the generators.

Reported by Charles Oliver Nutter · March 1st, 2009 @ 12:08 AM

State: wontfix
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. Jeremy Kemper
    Jeremy Kemper
    • State changed from new to wontfix

    /usr/bin/env ruby means the app is portable to other environments. You can still invoke the scripts using the ruby of your choice.

    March 1st, 2009 @ 12:46 AM