Fix #1051 - Support ash and dash for shellcheck and the sh linter
This commit is contained in:
parent
3ac92ea529
commit
33c2c20e66
3 changed files with 29 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue