Skip to content
This repository has been archived by the owner. It is now read-only.

Use ruby from $PATH #4

Open
wants to merge 1 commit into
base: master
from
Open

Use ruby from $PATH #4

wants to merge 1 commit into from

Conversation

@nilbus
Copy link

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/

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

1 participant
You can’t perform that action at this time.