Skip to content
This repository has been archived by the owner before Nov 9, 2022. It is now read-only.

Use ruby from $PATH #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Use ruby from $PATH #4

wants to merge 1 commit into from

Conversation

nilbus
Copy link

@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/

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.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant