In sh-mode I am getting following flycheck-error message:
File Line [v]ColLevel ID Message (Checker) config.sh 2 error Syntax error: "(" unexpected (sh-posix-dash) for the following line: strings=("hello" "world") . But this is actually a valid expression in bash.
complete file:
#!/bin/bash strings=("hello" "world") init.el file has following lines, reference:
(define-derived-mode my-cfg-mode sh-mode "My CFg Mode" "A mode for my CFg files." (sh-set-shell "bash"))
Is it possible to suppress this warning message?
flycheckis happy with it. What does the complete file look like? Is there a shebang on line 1? And what issh-posix-dash?sh-posix-dashis one of the shell checkers inflycheck#!/bin/bashline (updated on my question).flycheck-sh-posix-dash-executableis set tonilbash checkerfrom the init.el file?