diff --git a/lib/bundler/cli/exec.rb b/lib/bundler/cli/exec.rb index f81cd5d2c4..9428e9db3b 100644 --- a/lib/bundler/cli/exec.rb +++ b/lib/bundler/cli/exec.rb @@ -22,6 +22,7 @@ module Bundler if !Bundler.settings[:disable_exec_load] && ruby_shebang?(bin_path) return kernel_load(bin_path, *args) end + bin_path = "./" + bin_path unless File.absolute_path?(bin_path) kernel_exec(bin_path, *args) else # exec using the given command