class Byebug::EditCommand
def execute
def execute file, line = location(@match[1]) return edit_error("not_exist", file) unless File.exist?(file) return edit_error("not_readable", file) unless File.readable?(file) cmd = line ? "#{editor} +#{line} #{file}" : "#{editor} #{file}" Kernel.system(cmd) end