New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ruby from $PATH #4

Open
wants to merge 1 commit into
base: master
from

Conversation

Projects
None yet
1 participant
@nilbus

nilbus commented Jul 17, 2017

Assuming /usr/bin/ruby for the installation location works on many
systems, but not all. For example, Linux users who install ruby only via
ruby version managers such as rvm, rbenv, and chruby will not
necessarily have a ruby executable located at /usr/bin/ruby.

A shebang using /usr/bin/env ruby will be more portable.
See also http://www.brianstorti.com/rethinking-your-shebang/

Use ruby from $PATH
Assuming /usr/bin/ruby for the installation location works on many
systems, but not all. For example, Linux users who install ruby only via
ruby version managers such as rvm, rbenv, and chruby will not
necessarily have a ruby executable located at /usr/bin/ruby.

A shebang using `/usr/bin/env ruby` will be more portable.
See also http://www.brianstorti.com/rethinking-your-shebang/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment