Package: console-setup
Version: 1.225
Severity: grave
After the upgrade from 1.223, console-setup.service failed to start
due
to a syntax error in the setupcon script:
,----
| $ setupcon
| /usr/bin/setupcon: 1386: Syntax error: Missing '))'
`----
It looks like dash does not like the construct in line 907 where
there
is an opening '$((' but the closing parentheses are split.
,----
| $ dash << 'EOF'
| > echo $((true))
| > echo $((true) )
| > EOF
| 0
| dash: 3: Syntax error: Missing '))'
| $
`----
Thorsten Bonow <toto@not-in-kansas-anymore.org> writes:
But what's POSIX take on this? I couldn't find anything. Is this a
bug in dash or in setupcon?
09.02.2024 16:58, cacin@allfreemail.net
Package: console-setup
Followup-For: Bug #1063518
Consider making all scripts provided by console-setup
shellcheck-clean, there are lots of tiny issues that can turn into
big issues under the right conditions.
Please do not do this. Shellcheck is a huge problem and we had large amount of bugs due to people trying to apply its suggestions. It's very difficult in many cases to spot why shellcheck is wrong (classic is the suggestion to put $var into double quotes "$var" which breaks badly if $var is supposed to contain zero or more separate words - this way, even boot scripts has become buggy leading to system becoming unbootable).
Shellcheck is a very bad tool.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 297 |
Nodes: | 16 (2 / 14) |
Uptime: | 06:23:35 |
Calls: | 6,666 |
Files: | 12,213 |
Messages: | 5,336,026 |