On Sat, 01 Apr 2023 14:10:07 +0000, Kenny McCormack wrote:
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?
What version of shellcheck are you running? The current version seems
to be 0.9.0, released on Dec 13, 2022 [1].
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?
What version of shellcheck are you running? The current version seems
to be 0.9.0, released on Dec 13, 2022 [1].
FWIW, It appears that dash support was added to shellcheck in v0.4.2
(Jan 9, 2016) and maintenance applied in various releases after.
$ shellcheck -s sh myScript
but, surprisingly, get the same err msg. Is there a fix for this?
In article <u09f7k$1t8qm$[email protected]>,VVYVVVVVYYVVYCCC
Lew Pitcher <[email protected]> wrote:
...
What version of shellcheck are you running? The current version seems
to be 0.9.0, released on Dec 13, 2022 [1].
FWIW, It appears that dash support was added to shellcheck in v0.4.2My version seems to be: 0.3.4-3
(Jan 9, 2016) and maintenance applied in various releases after.
So, yeah, I'll see about getting a newer version.
Thanks for checking.
--
Elect a clown, expect a circus.
In article <u09f7k$1t8qm$[email protected]>,NHGVFFFFFFRFRRFRFRFRFVGGVGVGVGGVGVGGVGGVGVGVG
Lew Pitcher <[email protected]> wrote:
...
What version of shellcheck are you running? The current version seems
to be 0.9.0, released on Dec 13, 2022 [1].
FWIW, It appears that dash support was added to shellcheck in v0.4.2My version seems to be: 0.3.4-3
(Jan 9, 2016) and maintenance applied in various releases after.
So, yeah, I'll see about getting a newer version.
Thanks for checking.
--
Elect a clown, expect a circus.
| Sysop: | Keyop |
|---|---|
| Location: | Huddersfield, West Yorkshire, UK |
| Users: | 715 |
| Nodes: | 16 (3 / 13) |
| Uptime: | 142:56:35 |
| Calls: | 12,089 |
| Calls today: | 2 |
| Files: | 14,998 |
| Messages: | 6,517,455 |