You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ems≈Spree edited this page Apr 21, 2026
·
11 revisions
Unexpected ..
Note: There is a known bug in the current version when directives appear within then clauses of if blocks that causes Shellcheck to report SC1072 on otherwise valid code. Avoid using directives within then clauses - instead place them at the top of the if block or another enclosing block. This is fixed on the online version and the next release.
This error can also occur with an incomplete shellcheck directive like # shellcheck disable instead of # shellcheck disable=all, or if the corresponding command has been commented out.
Problematic code
# shellcheck disableecho stuff that shellcheck up to at least v0.10.0 will not even see because of the incorrect directive above
#shellcheck disable=SC2162#read VAR
Correct code
# shellcheck disable=allecho stuff that shellcheck will correctly ignore entirely