Open pstueck opened 10 months ago
Similar false positives with lower-cased variables in a trap statement despite being referenced. It doesn't happen with upper-cased variable names.
In files/base/installer/texlive line 9:
trap 'e=$?; trap - EXIT; rm -rf "$TEXLIVE_TMP_DIR"; exit $e' EXIT
^-- SC2154 (warning): e is referenced but not assigned.
For bugs
shellcheck --version
or "online"):0.9.0
, "online", VSCode Extension 0.35.0For new checks and feature suggestions
Here's a snippet or screenshot that shows the problem:
Here's what shellcheck currently says:
Here's what I wanted or expected to see:
no warning
On the other hand …
… is accepted, although I think,
_ug
should have caused an SC2154