Permalink
Browse files

Debugging statements for execution of external commands

  • Loading branch information...
1 parent 7eb0d85 commit 37dbfc3aa25cd30a68d3677deee44522fcd82116 @xolox committed Oct 18, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 autoload/xolox/shell.vim
View
@@ -3,7 +3,7 @@
" Last Change: October 18, 2011
" URL: http://peterodding.com/code/vim/shell/
-let g:xolox#shell#version = '0.9.16'
+let g:xolox#shell#version = '0.9.17'
if !exists('s:fullscreen_enabled')
let s:enoimpl = "%s() hasn't been implemented on your platform! %s"
@@ -122,6 +122,7 @@ function! xolox#shell#execute(command, synchronous, ...) " -- execute external c
if xolox#misc#os#is_win() && s:has_dll()
let fn = 'execute_' . (a:synchronous ? '' : 'a') . 'synchronous'
let cmd = &shell . ' ' . &shellcmdflag . ' ' . cmd
+ call xolox#misc#msg#debug("shell.vim %s: Executing %s using compiled DLL.", g:xolox#shell#version, cmd)
let error = s:library_call(fn, cmd)
if error != ''
let msg = '%s(%s) failed! (error: %s)'
@@ -131,6 +132,7 @@ function! xolox#shell#execute(command, synchronous, ...) " -- execute external c
if has('unix') && !a:synchronous
let cmd = '(' . cmd . ') &'
endif
+ call xolox#misc#msg#debug("shell.vim %s: Executing %s using system().", g:xolox#shell#version, cmd)
call s:handle_error(cmd, system(cmd))
endif
if a:synchronous

0 comments on commit 37dbfc3

Please sign in to comment.