org.sonar.l10n.shellcheck.rules.shellcheck.SC2172.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sonar-shellcheck-plugin Show documentation
Show all versions of sonar-shellcheck-plugin Show documentation
ShellCheck plugin for SonarQube
Trapping signals by number is not well defined. Prefer signal names.
Problematic code
trap myfunc 28
Correct code
trap myfunc WINCH
Rationale
Signal numbers can vary between platforms. Prefer signal names, which are fixed.
Signal numbers 1, 2, 3, 6, 9, 14 and 15 are specified as parts of the optional POSIX XSI and ShellCheck will not warn about these.
Exceptions
None.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy