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$2...@dont-email.me>,VVYVVVVVYYVVYCCC
Lew Pitcher <lew.p...@digitalfreehold.ca> 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$2...@dont-email.me>,NHGVFFFFFFRFRRFRFRFRFVGGVGVGVGGVGVGGVGGVGVGVG
Lew Pitcher <lew.p...@digitalfreehold.ca> 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: | 498 |
Nodes: | 16 (2 / 14) |
Uptime: | 49:31:07 |
Calls: | 9,808 |
Calls today: | 10 |
Files: | 13,754 |
Messages: | 6,190,259 |