Why do this?  If you just want to make it a bit shorter, why not add it as a method to String?

    class String
        alias_method esc shellescape
    end