Skip to content
This repository was archived by the owner on Oct 7, 2018. It is now read-only.

Use ruby from $PATH#4

Open
nilbus wants to merge 1 commit into
xlucas:masterfrom
nilbus:patch-2
Open

Use ruby from $PATH#4
nilbus wants to merge 1 commit into
xlucas:masterfrom
nilbus:patch-2

Conversation

@nilbus
Copy link
Copy Markdown

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

1 participant