Вопрос

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.

Это было полезно?

Решение

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

RUBYOPT="-w $RUBYOPT"

Другие советы

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

#! /usr/bin/env ruby
$VERBOSE=true
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top