Merge pull request #1170 from blueyed/dont-call-expand-on-shellvar

Do not `expand()` shell vars
This commit is contained in:
LCD 047 2014-08-26 21:45:05 +03:00
commit d69858cc02

View File

@ -57,7 +57,7 @@ function! s:GetShell()
endif endif
" try to use env variable in case no shebang could be found " try to use env variable in case no shebang could be found
if b:shell == '' if b:shell == ''
let b:shell = fnamemodify(expand('$SHELL'), ':t') let b:shell = fnamemodify($SHELL, ':t')
endif endif
endif endif
return b:shell return b:shell