Error: SHELLCHECK_WARNING (CWE-398): [#def1] /etc/profile.d/lang.sh:1:1: error[SC1008]: This shebang was unrecognized. ShellCheck only supports sh/bash/dash/ksh/'busybox sh'. Add a 'shell' directive to specify. # 1|-> # /etc/profile.d/lang.sh - exports environment variables, and provides fallback # 2| # for CJK languages that can't be displayed in console. # 3| # Resets the locale if unavailable. Error: SHELLCHECK_WARNING (CWE-398): [#def2] /etc/profile.d/lang.sh:1:1: error[SC2096]: On most OS, shebangs can only specify a single parameter. # 1|-> # /etc/profile.d/lang.sh - exports environment variables, and provides fallback # 2| # for CJK languages that can't be displayed in console. # 3| # Resets the locale if unavailable. Error: SHELLCHECK_WARNING (CWE-398): [#def3] /etc/profile.d/lang.sh:1:2: error[SC1113]: Use #!, not just #, for the shebang. # 1|-> # /etc/profile.d/lang.sh - exports environment variables, and provides fallback # 2| # for CJK languages that can't be displayed in console. # 3| # Resets the locale if unavailable. Error: SHELLCHECK_WARNING (CWE-563): [#def4] /etc/profile.d/lang.sh:19:5: warning[SC2034]: LC_PAPER appears unused. Verify use (or export if used externally). # 17| LC_MONETARY="C.UTF-8" # 18| LC_MESSAGES="C.UTF-8" # 19|-> LC_PAPER="C.UTF-8" # 20| LC_NAME="C.UTF-8" # 21| LC_ADDRESS="C.UTF-8" Error: SHELLCHECK_WARNING (CWE-563): [#def5] /etc/profile.d/lang.sh:20:5: warning[SC2034]: LC_NAME appears unused. Verify use (or export if used externally). # 18| LC_MESSAGES="C.UTF-8" # 19| LC_PAPER="C.UTF-8" # 20|-> LC_NAME="C.UTF-8" # 21| LC_ADDRESS="C.UTF-8" # 22| LC_TELEPHONE="C.UTF-8" Error: SHELLCHECK_WARNING (CWE-563): [#def6] /etc/profile.d/lang.sh:21:5: warning[SC2034]: LC_ADDRESS appears unused. Verify use (or export if used externally). # 19| LC_PAPER="C.UTF-8" # 20| LC_NAME="C.UTF-8" # 21|-> LC_ADDRESS="C.UTF-8" # 22| LC_TELEPHONE="C.UTF-8" # 23| LC_MEASUREMENT="C.UTF-8" Error: SHELLCHECK_WARNING (CWE-563): [#def7] /etc/profile.d/lang.sh:22:5: warning[SC2034]: LC_TELEPHONE appears unused. Verify use (or export if used externally). # 20| LC_NAME="C.UTF-8" # 21| LC_ADDRESS="C.UTF-8" # 22|-> LC_TELEPHONE="C.UTF-8" # 23| LC_MEASUREMENT="C.UTF-8" # 24| LC_IDENTIFICATION="C.UTF-8" Error: SHELLCHECK_WARNING (CWE-563): [#def8] /etc/profile.d/lang.sh:23:5: warning[SC2034]: LC_MEASUREMENT appears unused. Verify use (or export if used externally). # 21| LC_ADDRESS="C.UTF-8" # 22| LC_TELEPHONE="C.UTF-8" # 23|-> LC_MEASUREMENT="C.UTF-8" # 24| LC_IDENTIFICATION="C.UTF-8" # 25| else Error: SHELLCHECK_WARNING (CWE-563): [#def9] /etc/profile.d/lang.sh:24:5: warning[SC2034]: LC_IDENTIFICATION appears unused. Verify use (or export if used externally). # 22| LC_TELEPHONE="C.UTF-8" # 23| LC_MEASUREMENT="C.UTF-8" # 24|-> LC_IDENTIFICATION="C.UTF-8" # 25| else # 26| LANG_backup="${LANG}" Error: SHELLCHECK_WARNING (CWE-156): [#def10] /etc/profile.d/lang.sh:33:18: warning[SC2046]: Quote this to prevent word splitting. # 31| # NOTE: We are using eval & sed here to avoid invoking of any commands & functions from those files. # 32| if [ -x /usr/bin/sed ]; then # 33|-> eval $(/usr/bin/sed -r -e 's/^[[:blank:]]*([[:upper:]_]+)=([[:print:][:digit:]\._-]+|"[[:print:][:digit:]\._-]+")/export \1=\2/;t;d' ${config}) # 34| else # 35| #but if we don't have sed, let's go old way and source it Error: SHELLCHECK_WARNING (CWE-477): [#def11] /etc/profile.d/lang.sh:53:35: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined. # 51| # See 'man 7 locale' for more info about LC_ALL. # 52| if [ -n "${LC_ALL}" ]; then # 53|-> if [ "${LC_ALL}" != "${LANG}" -a -n "${LANG}" ]; then # 54| export LC_ALL # 55| else
| analyzer-version-clippy | 1.92.0 |
| analyzer-version-cppcheck | 2.19.1 |
| analyzer-version-gcc | 16.0.0 |
| analyzer-version-gcc-analyzer | 16.0.0 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-139.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | setup-2.15.0-27.fc44 |
| store-results-to | /tmp/tmpfxlbrr6h/setup-2.15.0-27.fc44.tar.xz |
| time-created | 2026-01-08 21:41:16 |
| time-finished | 2026-01-08 21:42:28 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpfxlbrr6h/setup-2.15.0-27.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpfxlbrr6h/setup-2.15.0-27.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |