From 7ac9370576db60b9b539841bcc872b405acadd5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Yngve=20Lerv=C3=A5g?= Date: Tue, 7 Apr 2015 10:06:18 +0200 Subject: [PATCH] Use portable shell redirects (see #148) --- autoload/vimtex/latexmk.vim | 2 +- autoload/vimtex/util.vim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/vimtex/latexmk.vim b/autoload/vimtex/latexmk.vim index 5c38de3..7a09d8c 100644 --- a/autoload/vimtex/latexmk.vim +++ b/autoload/vimtex/latexmk.vim @@ -409,7 +409,7 @@ function! s:latexmk_build_cmd(data) " {{{1 let cmd .= ' >' . tmp let cmd = 'cmd /s /c "' . cmd . '"' else - let cmd .= ' &>' . tmp + let cmd .= ' >' . tmp . ' 2>&1' endif endif diff --git a/autoload/vimtex/util.vim b/autoload/vimtex/util.vim index 4a018da..e2ce67d 100644 --- a/autoload/vimtex/util.vim +++ b/autoload/vimtex/util.vim @@ -132,7 +132,7 @@ function! vimtex#util#execute(exe) " {{{1 endif else if null - let cmd .= ' &>/dev/null' + let cmd .= ' >/dev/null 2>&1' endif if bg let cmd .= ' &'