Closed crawfxrd closed 1 year ago
Report issues by shell files with:
git ls-files '*.sh' | xargs shellcheck --exclude=SC2162
Address the following:
$
${}
sudo
EOF
"${var:?}"
/*
Addresses (at least partially) some POSIX/dash issues:
function
[[
]]
==
=
&>
source
.
Does not address:
read
-r
Report issues by shell files with:
Address the following:
$
/${}
is unnecessary on arithmetic variablessudo
doesn't affect redirectsEOF
"${var:?}"
to ensure this never expands to/*
Addresses (at least partially) some POSIX/dash issues:
function
keyword is non-standard[[
]]
is undefined==
in place of=
is undefined&>
is undefinedsource
in place of.
is undefinedDoes not address:
read
without-r
will mangle backslashes