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 unquoted_executable_path(command).strip end end