On Sat, 4 Nov 2006, Maciej Pilichowski wrote:

> Hello,
>
>  I've just got very popular -- as I guess from google hits -- warning
> about insecure dir when I run something like this
>      puts %x{bzip2 -9 #{s}}
>
> where s is file to compress.
>
>  I found many 'solutions' by changing the access to directories to
> satisfy ruby, I don't want to do this but just turn *this* warning
> off. I found the answer -- setting $VERBOSE to nil works great,
> however I guess it shuts down all warnings.
>
>  So how can I turn off this one and only type of warning? And I don't
> want to mess with my system settings, so please do not discuss this
> subject.
>
>  Thanks in advance for help,
> have a nice day

$VERBOSE = nil

or

ruby -W0 a.rb

-a
-- 
my religion is very simple.  my religion is kindness. -- the dalai lama