class YUI::Compressor

def command #:nodoc:

:nodoc:
def command #:nodoc:
  if RbConfig::CONFIG['host_os'] =~ /mswin|mingw/
    # Shellwords is only for bourne shells, so windows shells get this
    # extremely remedial escaping
    escaped_cmd = @command.map do |word|
      if word =~ / /
        word = "\"%s\"" % word
      end
      word
    end
  else
    escaped_cmd = @command.map { |word| Shellwords.escape(word) }
  end
  escaped_cmd.join(" ")
end