I have a script that starts with: #!/bin/dash
I want to "shellcheck" it. I do:
$ shellcheck myScript
and get err msg "
^-- SC1008: This shebang was unrecognized. Note that ShellCheck only
handles Bourne based shells.
OK, says I. There has to be a way to tell it which shell syntax to use.
So, I do: man shellcheck
and learn about the "-s" option.
I redo the comand as:
$ shellcheck -s sh myScript
but, surprisingly, get the same err msg. Is there a fix for this?
--
Life's big questions are big in the sense that they are momentous. However, contrary to
appearances, they are not big in the sense of being unanswerable. It is only that the answers
are generally unpalatable. There is no great mystery, but there is plenty of horror.
(
https://en.wikiquote.org/wiki/David_Benatar)