Skip to content
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

ruby based scripts under scripts dir don't work on linux (ubuntu) #129

Closed
portenez opened this issue Jan 2, 2016 · 3 comments
Closed

ruby based scripts under scripts dir don't work on linux (ubuntu) #129

portenez opened this issue Jan 2, 2016 · 3 comments
Milestone

Comments

@portenez
Copy link

portenez commented Jan 2, 2016

The current shebang is

#!/usr/bin/ruby

which is not quite "compliant"

after changing it to

#!/usr/bin/env ruby

it works.

I'm using rvm.

@njaremko
Copy link
Contributor

njaremko commented Jan 6, 2016

there's nothing non-"compliant" about it. By specifying which ruby
executable to use, we prevent inevitable errors that would arise from using
non-standard ruby implementations. The env ruby setup just tells the script
to use the first occurrence of ruby in your path, there's no standard
requiring its use. It's more of a preference than anything.

On Sat, Jan 2, 2016 at 1:03 PM Victor Garcia notifications@github.com
wrote:

The current shebang is

#!/usr/bin/ruby

which is not quite "compliant"

after changing it to

#!/usr/bin/env ruby

it works

I'm using rvm


Reply to this email directly or view it on GitHub
#129.

@portenez
Copy link
Author

portenez commented Jan 6, 2016

Yeah, I couldn't find the right word, so forget about the word "compliant".

The issue still remains: that the scripts do not work when using rvm in ubuntu, and that they're solved when using /usr/bin/env ruby. I can see the point of pointing directly to the ruby distribution under /usr/bin, but there's going to be the risk of the executable not being there. Like when using rvm.

@njaremko
Copy link
Contributor

njaremko commented Jan 6, 2016

Well, it's up to Panos in the end, but I think that the subset of ruby
users with rvm will know what to change in the scripts, or you can symlink
ruby if you want scripts such as these to always work.
On Wed, Jan 6, 2016 at 3:59 PM Victor Garcia notifications@github.com
wrote:

Yeah, I couldn't find the right word, so forget about the word
"compliant".

The issue still remains: that the scripts do not work when using rvm in
ubuntu, and that they're solved when using /usr/bin/env ruby. I can see the
point of pointing directly to the ruby distribution under /usr/bin, but
there's going to be the risk of it not being there. Like when using rvm.


Reply to this email directly or view it on GitHub
#129 (comment)
.

@le4ker le4ker closed this as completed in c83ea8f Jan 9, 2016
@le4ker le4ker added this to the 4.0.0 milestone Mar 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants