repair_command (Rake::AltSystem)

        # File lib/rake/alt_system.rb, line 50
    50:     def repair_command(cmd)
    51:       "call " + (
    52:         if cmd =~ %r!\A\s*\".*?\"!
    53:           # already quoted
    54:           cmd
    55:         elsif match = cmd.match(%r!\A\s*(\S+)!)
    56:           if match[1] =~ %r!/!
    57:             # avoid x/y.bat interpretation as x with option /y
    58:             %Q!"#{match[1]}"! + match.post_match
    59:           else
    60:             # a shell command will fail if quoted
    61:             cmd
    62:           end
    63:         else
    64:           # empty or whitespace
    65:           cmd
    66:         end
    67:       )
    68:     end