문제

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