Reputation: 2730
So for the files in the /bin directory of a normal rails installation (bin/rails, bin/rake, bin/bundle), the shebang at the top of the file is:
#!/usr/bin/env ruby.exe
But when I run bin/rails, for example, I get the error:
env: ruby.exe: No such file or directory
When I remove the .exe
from the end of the shebang, everything works fine. But I was just curious:
Upvotes: 1
Views: 291
Reputation: 33732
There are no .exe files on Mac OS X or on Linux. On those platforms the Ruby executable is just called ruby
.
For compatibility to those operating systems, your first line should look like this:
#!/usr/bin/env ruby
Upvotes: 2