]> git.ipfire.org Git - thirdparty/curl.git/commit
scripts: fix shellcheck SC2046 warnings
authorViktor Szakats <commit@vsz.me>
Sun, 9 Nov 2025 23:32:02 +0000 (00:32 +0100)
committerViktor Szakats <commit@vsz.me>
Mon, 10 Nov 2025 13:21:35 +0000 (14:21 +0100)
commitb39c158e4a2ca463bb2a2a8db8e21ed818fa185e
tree2b2e81a87dda183c4d158190c6727648d7603f0f
parentf477f3efc3ec58f7effc2aa01e7f4565b12be976
scripts: fix shellcheck SC2046 warnings

Fix SC2046: "Quote this to prevent word splitting."
Ref: https://www.shellcheck.net/wiki/SC2046

Also:
- shellcheck.sh: add `set -eu`.
- shellcheck.sh, yamlcheck.sh: always run from repo root.
- pass `--` before passing the list of files, where missing.
- badwords.pl, cleancmd.pl: rework to accept `git ls-files` arguments.
  Requires Perl 5.22+ (2015-Jun-01) on Windows.
  Ref: https://perldoc.perl.org/functions/open
- INTERNALS.md: require Perl 5.22 on Windows.
- spacecheck.pl: formatting.
- GHA/http3-linux: rework command to avoid SC2046.
- stop suppressing SC2046 warnings.

The yamlcheck.sh issue reported-by: Stanislav Fort (Aisle Research)
Ref: 20251109163515_6eb31da3-deb2-4f4d-8327-935904f27da5

Closes #19432
.github/scripts/badwords.pl
.github/scripts/cleancmd.pl
.github/scripts/codespell.sh
.github/scripts/shellcheck.sh
.github/scripts/spacecheck.pl
.github/scripts/yamlcheck.sh
.github/workflows/checkdocs.yml
.github/workflows/checksrc.yml
.github/workflows/http3-linux.yml
docs/INTERNALS.md