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?
flycheck
is happy with it. What does the complete file look like? Is there a shebang on line 1? And what issh-posix-dash
? – NickD Dec 06 '22 at 22:32sh-posix-dash
is one of the shell checkers inflycheck
– nega Dec 06 '22 at 23:00#!/bin/bash
line (updated on my question).flycheck-sh-posix-dash-executable
is set tonil
– alper Dec 07 '22 at 09:51bash checker
from the init.el file? – alper Dec 07 '22 at 09:52sh-posix-dash
come from,(with-eval-after-load 'flycheck (setq-default flycheck-disabled-checkers '(sh-posix-dash)))
solved the problem – alper Dec 07 '22 at 14:45