[vim-addon-manager] 02/03: AddonManager: Use multi-argument form of system to avoid shell

James McCoy jamessan at debian.org
Mon Jul 11 16:28:35 UTC 2016


This is an automated email from the git hooks/post-receive script.

jamessan pushed a commit to branch master
in repository vim-addon-manager.

commit d681c4d70bcca902ea6a9545016721148f566af4
Author: James McCoy <jamessan at jamessan.com>
Date:   Mon Jul 11 10:11:09 2016 -0400

    AddonManager: Use multi-argument form of system to avoid shell
    
    Signed-off-by: James McCoy <jamessan at jamessan.com>
---
 lib/vim/addon_manager.rb | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/vim/addon_manager.rb b/lib/vim/addon_manager.rb
index 60a61d6..d9c9efc 100644
--- a/lib/vim/addon_manager.rb
+++ b/lib/vim/addon_manager.rb
@@ -29,8 +29,8 @@ module Vim
     end
 
     def self.system(cmd)
-      logger.info "executing '#{cmd}'" if logger.verbose?
-      Kernel::system cmd
+      logger.info "executing '#{cmd.join(' ')}'" if logger.verbose?
+      Kernel::system *cmd
     end
 
     def self.logger
@@ -148,7 +148,7 @@ module Vim
       needs_rebuilding = files.any? {|file| file =~ /^doc\//}
       if needs_rebuilding
         logger.info 'Rebuilding tags since documentation has been modified ...'
-        Vim::AddonManager.system "#{HELPZTAGS} #{File.join(@target_dir, 'doc/')}"
+        Vim::AddonManager.system [HELPZTAGS, File.join(@target_dir, 'doc/')]
         logger.info 'done.'
       end
     end

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-vim/vim-addon-manager.git



More information about the pkg-vim-maintainers mailing list