class Bundler::CLI::Exec

def kernel_load(file, *args)

def kernel_load(file, *args)
  args.pop if args.last.is_a?(Hash)
  ARGV.replace(args)
  $0 = file
  Process.setproctitle(process_title(file, args)) if Process.respond_to?(:setproctitle)
  require_relative "../setup"
  TRAPPED_SIGNALS.each {|s| trap(s, "DEFAULT") }
  Kernel.load(file)
rescue SystemExit, SignalException
  raise
rescue Exception # rubocop:disable Lint/RescueException
  Bundler.ui.error "bundler: failed to load command: #{cmd} (#{file})"
  Bundler::FriendlyErrors.disable!
  raise
end