Permalink
Browse files

Make sure we specify the shell to use since '&>' doesn't work in all …

…shells.
  • Loading branch information...
1 parent 49e80c3 commit e0d7338bdbecace43ca5027e3b55c2eab31f9727 @eventualbuddha committed Feb 17, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 plugin/syntastic.vim
View
@@ -226,12 +226,14 @@ function! SyntasticMake(options)
let old_loclist = getloclist(0)
let old_makeprg = &makeprg
let old_shellpipe = &shellpipe
+ let old_shell = &shell
let old_errorformat = &errorformat
if !s:running_windows
"this is a hack to stop the screen needing to be ':redraw'n when
"when :lmake is run. Otherwise the screen flickers annoyingly
let &shellpipe='&>'
+ let &shell = '/bin/bash'
endif
if has_key(a:options, 'makeprg')
@@ -250,6 +252,10 @@ function! SyntasticMake(options)
let &errorformat = old_errorformat
let &shellpipe=old_shellpipe
+ if !s:running_windows
+ let &shell=old_shell
+ endif
+
return errors
endfunction

0 comments on commit e0d7338

Please sign in to comment.