Mercurial > vim-gutentags
diff autoload/gutentags/ctags.vim @ 115:bc6ef3d0b84f
ctags: fix output redirection on tcsh
Fixes #48.
author | Ilya Tumaykin <itumaykin@gmail.com> |
---|---|
date | Thu, 25 Feb 2016 01:59:47 +0300 |
parents | 979fab641f29 |
children | be8d47e88ab1 |
line wrap: on
line diff
--- a/autoload/gutentags/ctags.vim Thu Feb 25 01:28:08 2016 +0300 +++ b/autoload/gutentags/ctags.vim Thu Feb 25 01:59:47 2016 +0300 @@ -27,6 +27,7 @@ " Gutentags Module Interface {{{ let s:runner_exe = gutentags#get_plat_file('update_tags') +let s:unix_redir = (&shellredir =~# '%s') ? &shellredir : &shellredir . ' %s' function! gutentags#ctags#init(project_root) abort " Figure out the path to the tags file. @@ -113,11 +114,11 @@ if has('win32') let l:cmd .= ' -l "' . l:actual_tags_file . '.log"' else - let l:cmd .= ' > "' . l:actual_tags_file . '.log" 2>&1' + let l:cmd .= ' ' . printf(s:unix_redir, '"' . l:actual_tags_file . '.log"') endif else if !has('win32') - let l:cmd .= ' > /dev/null 2>&1' + let l:cmd .= ' ' . printf(s:unix_redir, '/dev/null') endif endif let l:cmd .= gutentags#get_execute_cmd_suffix()