This project is archived and is in readonly mode.

#4008 ✓committed
Xavier Noria

let rails use load to interpret script/rails

Reported by Xavier Noria | February 20th, 2010 @ 01:23 PM | in 3.0.2

The current rails command uses exec to run script/rails. This works as long as we are on Unix and script/rails is executable. This patch switches to load, which is portable.

If script/rails is executable and has a shebang pointing to a different vm than the one the rails command runs under, that shebang will have no effect with this approach.

I think that this patch allows us to send the uniform message that the rails command is the way to go nonetheless, and in that edge case people could still run script/rails manually.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Attachments

Tags

Referenced by

Pages