diff --git a/syntax_checkers/sh/sh.vim b/syntax_checkers/sh/sh.vim index d736f296..65d84a97 100644 --- a/syntax_checkers/sh/sh.vim +++ b/syntax_checkers/sh/sh.vim @@ -57,7 +57,7 @@ function! s:GetShell() endif " try to use env variable in case no shebang could be found if b:shell == '' - let b:shell = fnamemodify(expand('$SHELL'), ':t') + let b:shell = fnamemodify($SHELL, ':t') endif endif return b:shell