Error: SHELLCHECK_WARNING (CWE-569): [#def1] /etc/vpl/vars.sh:142:59: error[SC2296]: Parameter expansions can't start with (. Double check syntax. # 140| if [ -n "${ZSH_VERSION:-}" ] && [ -n "${ZSH_EVAL_CONTEXT:-}" ] ; then # zsh 5.x and later # 141| # shellcheck disable=2249 # 142|-> case $ZSH_EVAL_CONTEXT in (*:file*) vars_script_name="${(%):-%x}" ;; esac ; # 143| elif [ -n "${KSH_VERSION:-}" ] ; then # ksh, mksh or lksh # 144| if [ "$(set | grep -Fq "KSH_VERSION=.sh.version" ; echo $?)" -eq 0 ] ; then # ksh Error: SHELLCHECK_WARNING (CWE-569): [#def2] /etc/vpl/vars.sh:145:25: error[SC2296]: Parameter expansions can't start with .. Double check syntax. # 143| elif [ -n "${KSH_VERSION:-}" ] ; then # ksh, mksh or lksh # 144| if [ "$(set | grep -Fq "KSH_VERSION=.sh.version" ; echo $?)" -eq 0 ] ; then # ksh # 145|-> vars_script_name="${.sh.file}" ; # 146| else # mksh or lksh or [lm]ksh masquerading as ksh or sh # 147| # force [lm]ksh to issue error msg; which contains this script's path/filename, e.g.: Error: SHELLCHECK_WARNING (CWE-569): [#def3] /etc/vpl/vars.sh:149:35: error[SC2296]: Parameter expansions can't start with .. Double check syntax. # 147| # force [lm]ksh to issue error msg; which contains this script's path/filename, e.g.: # 148| # mksh: path/to/vars.sh[137]: ${.sh.file}: bad substitution # 149|-> vars_script_name="$( (echo "${.sh.file}") 2>&1 )" || : ; # 150| vars_script_name="$(expr "${vars_script_name:-}" : '^.*sh: \(.*\)\[[0-9]*\]:')" ; # 151| fi Error: SHELLCHECK_WARNING: [#def4] /etc/vpl/vars.sh:154:47: warning[SC3028]: In POSIX sh, BASH_SOURCE is undefined. # 152| elif [ -n "${BASH_VERSION:-}" ] ; then # bash # 153| # shellcheck disable=2128 # 154|-> (return 0 2>/dev/null) && vars_script_name="${BASH_SOURCE}" ; # 155| elif [ "dash" = "$vars_script_shell" ] ; then # dash # 156| # force dash to issue error msg; which contains this script's rel/path/filename, e.g.: Error: SHELLCHECK_WARNING (CWE-569): [#def5] /etc/vpl/vars.sh:158:33: error[SC2296]: Parameter expansions can't start with .. Double check syntax. # 156| # force dash to issue error msg; which contains this script's rel/path/filename, e.g.: # 157| # dash: 146: path/to/vars.sh: Bad substitution # 158|-> vars_script_name="$( (echo "${.sh.file}") 2>&1 )" || : ; # 159| vars_script_name="$(expr "${vars_script_name:-}" : '^.*dash: [0-9]*: \(.*\):')" ; # 160| elif [ "sh" = "$vars_script_shell" ] ; then # could be dash masquerading as /bin/sh Error: SHELLCHECK_WARNING (CWE-569): [#def6] /etc/vpl/vars.sh:163:33: error[SC2296]: Parameter expansions can't start with .. Double check syntax. # 161| # force a shell error msg; which should contain this script's path/filename # 162| # sample error msg shown; assume this file is named "vars.sh"; as required by setvars.sh # 163|-> vars_script_name="$( (echo "${.sh.file}") 2>&1 )" || : ; # 164| if [ "$(printf "%s" "$vars_script_name" | grep -Eq "sh: [0-9]+: .*vars\.sh: " ; echo $?)" -eq 0 ] ; then # dash as sh # 165| # sh: 155: path/to/vars.sh: Bad substitution Error: SHELLCHECK_WARNING (CWE-569): [#def7] /etc/vpl/vars.sh:171:33: error[SC2296]: Parameter expansions can't start with .. Double check syntax. # 169| # force a shell error msg; which should contain this script's path/filename # 170| # sample error msg shown; assume this file is named "vars.sh"; as required by setvars.sh # 171|-> vars_script_name="$( (echo "${.sh.file}") 2>&1 )" || : ; # 172| if [ "$(printf "%s" "$vars_script_name" | grep -Eq "^.+: [0-9]+: .*vars\.sh: " ; echo $?)" -eq 0 ] ; then # dash # 173| # .*: 164: path/to/vars.sh: Bad substitution
analyzer-version-clippy | 1.82.0 |
analyzer-version-cppcheck | 2.16.0 |
analyzer-version-gcc | 14.2.1 |
analyzer-version-gcc-analyzer | 15.0.0 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-105.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | libvpl-2.13.0-1.fc42 |
store-results-to | /tmp/tmpqgv4614y/libvpl-2.13.0-1.fc42.tar.xz |
time-created | 2024-11-13 01:50:01 |
time-finished | 2024-11-13 01:51:20 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpqgv4614y/libvpl-2.13.0-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpqgv4614y/libvpl-2.13.0-1.fc42.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |