Skip to content

Commit

Permalink
Fix shell-escaping of Ruby expressions.
Browse files Browse the repository at this point in the history
  • Loading branch information
sethk committed Aug 29, 2015
1 parent ff96fcf commit a905edc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/bundler.vim
Original file line number Diff line number Diff line change
Expand Up @@ -334,10 +334,10 @@ function! s:project_paths(...) dict abort
exe chdir s:fnameescape(self.path())

if len(gem_paths) == 0
let gem_paths = split(system(prefix.'ruby -rubygems -e "print Gem.path.join(%(;))"'), ';')
let gem_paths = split(system(prefix.'ruby -rubygems -e '.s:shellesc('print Gem.path.join(%(;))')), ';')
endif

let abi_version = system('ruby -rrbconfig -e "print RbConfig::CONFIG[\"ruby_version\"]"')
let abi_version = system('ruby -rrbconfig -e '.s:shellesc('print RbConfig::CONFIG["ruby_version"]'))
exe chdir s:fnameescape(cwd)
finally
exe chdir s:fnameescape(cwd)
Expand Down

0 comments on commit a905edc

Please sign in to comment.