Fix #1051 - Support ash and dash for shellcheck and the sh linter

This commit is contained in:
w0rp 2017-10-26 21:17:47 +01:00
parent 3ac92ea529
commit 33c2c20e66
3 changed files with 29 additions and 4 deletions

View file

@ -9,7 +9,7 @@ function! ale#handlers#sh#GetShellType(buffer) abort
" Remove options like -e, etc.
let l:command = substitute(l:bang_line, ' --\?[a-zA-Z0-9]\+', '', 'g')
for l:possible_shell in ['bash', 'tcsh', 'csh', 'zsh', 'sh']
for l:possible_shell in ['bash', 'dash', 'ash', 'tcsh', 'csh', 'zsh', 'sh']
if l:command =~# l:possible_shell . '\s*$'
return l:possible_shell
endif