How to disable Ruby “Insecure world writable dir” warnings

In your ruby script, start with this line:

#! /usr/bin/ruby -W0

Don’t even think of lecturing me on the wisdom of this. Sometimes I just want to write one-off scripts and have them read files from globally writable directories.

One Response to “How to disable Ruby “Insecure world writable dir” warnings”

  1. Me Says:

    I won’t lecture you, because ruby doesn’t check if +t is set and warns you even in secure cases.