summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHomu <homu@barosl.com>2016-01-28 13:41:21 +0900
committerHomu <homu@barosl.com>2016-01-28 13:41:21 +0900
commit01ff73dd4fe0fbc58715043bb0acde677caab897 (patch)
tree33367f4dd93a948592afb45b6001cb3c3caeb8fd
parent033fc4eda64916b02956fafa627faf68f2aa3a37 (diff)
parent4babaf1abc58056c8e02f4344bba675792e737ad (diff)
downloadbundler-01ff73dd4fe0fbc58715043bb0acde677caab897.tar.gz
Auto merge of #4231 - bundler:seg-exec-spaces, r=indirect
[Exec] Fix exec-ing with 0 args in a directory with spaces Closes #4230 by forcing `Kernel.exec` to never use a shell
-rw-r--r--lib/bundler/cli/exec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/cli/exec.rb b/lib/bundler/cli/exec.rb
index d1af0b8bb7..8b828edf87 100644
--- a/lib/bundler/cli/exec.rb
+++ b/lib/bundler/cli/exec.rb
@@ -25,7 +25,7 @@ module Bundler
bin_path = Bundler.which(@cmd)
if bin_path
Bundler.ui = nil
- Kernel.exec(bin_path, *args)
+ Kernel.exec([bin_path, @cmd], *args)
end
# If that didn't work, set up the whole bundle