def file_with_exec_ext?(filename)
      extension = ::File.extname(filename)
      return false if extension.empty?
      extensions.any? { |ext| extension.casecmp(ext).zero? }
    end
def file_with_exec_ext?(filename)
      extension = ::File.extname(filename)
      return false if extension.empty?
      extensions.any? { |ext| extension.casecmp(ext).zero? }
    end
Check if command itself has executable extension

 @param [String] filename
   the path to executable file

 @example
   file_with_exec_ext?("file.bat")
   # => true

 @return [Boolean]

 @api private