2

I am using the following hashbang command with my RVM installation. How do I pass the -w argument to the ruby interpreter?

#!/usr/bin/env ruby

Thanks.

2 Answers 2

1

I recommend setting the RUBYOPT environment variable. In this manner, you don't have to edit your executables.

RUBYOPT="-w $RUBYOPT"
Sign up to request clarification or add additional context in comments.

Comments

0

According to this reference you can use a separate declaration outside of the shebang for that:

#! /usr/bin/env ruby
$VERBOSE=true

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.