module Mixlib::ShellOut::Windows
def candidate_executable_for_command(command)
def candidate_executable_for_command(command) if command =~ /^\s*"(.*?)"/ # If we have quotes, do an exact match $1 else # Otherwise check everything up to the first space command[0, command.index(/\s/) || command.length].strip end end