Recently (https://github.com/vim-syntastic/syntastic/issues/2358) the sh errorformat was updated to match ksh93 messages. Unfortunately only messages refering to syntax errors are considered. ksh93 -n reports syntax errors AND warnings. This
broken.sh: warning: line 3: -eq within [[...]] obsolete, use ((...))
is one such warning. This nuance is not considered. At the moment
%f: line %l: %m
matches the above warning but broken.sh: warning is then interpreted as the filename (%f) which is wrong and makes the location list unusable. I think we need another errorformat element
%f: warning: line %l: %m
at the beginning of the list of errorformat elements
Recently (https://github.com/vim-syntastic/syntastic/issues/2358) the sh
errorformat
was updated to matchksh93
messages. Unfortunately only messages refering to syntax errors are considered.ksh93 -n
reports syntax errors AND warnings. Thisbroken.sh: warning: line 3: -eq within [[...]] obsolete, use ((...))
is one such warning. This nuance is not considered. At the moment
%f: line %l: %m
matches the above warning but
broken.sh: warning
is then interpreted as the filename (%f
) which is wrong and makes the location list unusable. I think we need anothererrorformat
element%f: warning: line %l: %m
at the beginning of the list of
errorformat
elements