diff options
author | Homu <homu@barosl.com> | 2016-01-28 13:41:21 +0900 |
---|---|---|
committer | Homu <homu@barosl.com> | 2016-01-28 13:41:21 +0900 |
commit | 01ff73dd4fe0fbc58715043bb0acde677caab897 (patch) | |
tree | 33367f4dd93a948592afb45b6001cb3c3caeb8fd | |
parent | 033fc4eda64916b02956fafa627faf68f2aa3a37 (diff) | |
parent | 4babaf1abc58056c8e02f4344bba675792e737ad (diff) | |
download | bundler-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.rb | 2 |
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 |