[Slackbuilds-users] Easy typo
Lumin Etherlight
lumin+slackbuilds at etherlight.link
Wed Aug 12 23:15:12 UTC 2026
"B. Watson" <urchlay at slackware.uk> writes:
> However, a thought: if PKGNAM is never assigned
> to, *then* it's a typo if it's referenced... most
> likely if you never assigned anything to PKGNAM,
> then it's a typo for PRGNAM (same as PRGMAN would
> be).
I suggest using ShellCheck (ShellCheck-bin),
as it catches such errors, and more. I use it in
all my bash & POSIX shell scripting. The typical
SlackBuild template shows a lot of warnings about
quoting, which you can easily ignore by running it
like this:
shellcheck -e SC2086,SC2046 *.SlackBuild
This preserves its ability to detected other
errors, such as the use of a variable without any
assignment to it, while not flooding your terminal
with dozens of "Double quote to prevent globbing
and word splitting." warnings.
Best Wishes,
Lumin Etherlight
More information about the SlackBuilds-users
mailing list