Error: SHELLCHECK_WARNING: [#def1] /usr/bin/lesspipe.sh:405:2: warning[SC3010]: In POSIX sh, [[ ]] is undefined. # 403| done <<< "$cmdtree" # 404| # return if we want to watch growing files # 405|-> [[ $lessarg == *less\ *\ +F\ * || $lessarg == *less\ *\ : ]] && exit 0 # 406| # color is set when calling less with -r or -R or LESS contains that option # 407| COLOR="--color=auto" Error: SHELLCHECK_WARNING: [#def2] /usr/bin/lesspipe.sh:405:14: warning[SC3014]: In POSIX sh, == in place of = is undefined. # 403| done <<< "$cmdtree" # 404| # return if we want to watch growing files # 405|-> [[ $lessarg == *less\ *\ +F\ * || $lessarg == *less\ *\ : ]] && exit 0 # 406| # color is set when calling less with -r or -R or LESS contains that option # 407| COLOR="--color=auto" Error: SHELLCHECK_WARNING: [#def3] /usr/bin/lesspipe.sh:405:45: warning[SC3014]: In POSIX sh, == in place of = is undefined. # 403| done <<< "$cmdtree" # 404| # return if we want to watch growing files # 405|-> [[ $lessarg == *less\ *\ +F\ * || $lessarg == *less\ *\ : ]] && exit 0 # 406| # color is set when calling less with -r or -R or LESS contains that option # 407| COLOR="--color=auto" Error: SHELLCHECK_WARNING: [#def4] /usr/bin/lesspipe.sh:408:2: warning[SC3010]: In POSIX sh, [[ ]] is undefined. # 406| # color is set when calling less with -r or -R or LESS contains that option # 407| COLOR="--color=auto" # 408|-> [[ $TERM == *256* ]] && colors=256 || colors=0 # 409| has_cmd tput && colors=$(tput colors) # 410| if [[ $colors -ge 8 ]]; then Error: SHELLCHECK_WARNING: [#def5] /usr/bin/lesspipe.sh:408:11: warning[SC3014]: In POSIX sh, == in place of = is undefined. # 406| # color is set when calling less with -r or -R or LESS contains that option # 407| COLOR="--color=auto" # 408|-> [[ $TERM == *256* ]] && colors=256 || colors=0 # 409| has_cmd tput && colors=$(tput colors) # 410| if [[ $colors -ge 8 ]]; then Error: SHELLCHECK_WARNING: [#def6] /usr/bin/lesspipe.sh:430:2: warning[SC3010]: In POSIX sh, [[ ]] is undefined. # 428| [[ $2 == plain || -z $2 ]] && return # 429| prog=${LESSCOLORIZER%% *} # 430|-> [[ $prog == vimcolor ]] && ! has_cmd vim && ! has_cmd nvim && prog= # 431| # 432| for i in nvimpager bat batcat pygmentize source-highlight vim nvim code2color ; do Error: SHELLCHECK_WARNING: [#def7] /usr/bin/lesspipe.sh:430:11: warning[SC3014]: In POSIX sh, == in place of = is undefined. # 428| [[ $2 == plain || -z $2 ]] && return # 429| prog=${LESSCOLORIZER%% *} # 430|-> [[ $prog == vimcolor ]] && ! has_cmd vim && ! has_cmd nvim && prog= # 431| # 432| for i in nvimpager bat batcat pygmentize source-highlight vim nvim code2color ; do Error: SHELLCHECK_WARNING: [#def8] /usr/bin/lesspipe.sh:433:3: warning[SC3010]: In POSIX sh, [[ ]] is undefined. # 431| # 432| for i in nvimpager bat batcat pygmentize source-highlight vim nvim code2color ; do # 433|-> [[ -z $prog || $prog == "$i" ]] && has_cmd "$i" && prog=$i # 434| done # 435| [[ $prog == "*vim" ]] && prog=vimcolor Error: SHELLCHECK_WARNING: [#def9] /usr/bin/lesspipe.sh:433:24: warning[SC3014]: In POSIX sh, == in place of = is undefined. # 431| # 432| for i in nvimpager bat batcat pygmentize source-highlight vim nvim code2color ; do # 433|-> [[ -z $prog || $prog == "$i" ]] && has_cmd "$i" && prog=$i # 434| done # 435| [[ $prog == "*vim" ]] && prog=vimcolor Error: SHELLCHECK_WARNING: [#def10] /usr/bin/lesspipe.sh:435:2: warning[SC3010]: In POSIX sh, [[ ]] is undefined. # 433| [[ -z $prog || $prog == "$i" ]] && has_cmd "$i" && prog=$i # 434| done # 435|-> [[ $prog == "*vim" ]] && prog=vimcolor # 436| [[ "$2" =~ ^[0-9]*$ || -z "$2" ]] || lang=$2 # 437| # prefer an explicitly requested language Error: SHELLCHECK_WARNING: [#def11] /usr/bin/lesspipe.sh:435:11: warning[SC3014]: In POSIX sh, == in place of = is undefined. # 433| [[ -z $prog || $prog == "$i" ]] && has_cmd "$i" && prog=$i # 434| done # 435|-> [[ $prog == "*vim" ]] && prog=vimcolor # 436| [[ "$2" =~ ^[0-9]*$ || -z "$2" ]] || lang=$2 # 437| # prefer an explicitly requested language Error: SHELLCHECK_WARNING: [#def12] /usr/bin/lesspipe.sh:438:2: warning[SC3010]: In POSIX sh, [[ ]] is undefined. # 436| [[ "$2" =~ ^[0-9]*$ || -z "$2" ]] || lang=$2 # 437| # prefer an explicitly requested language # 438|-> [[ -n $3 ]] && lang=$3 || lang=$2 # 439| case $prog in # 440| bat|batcat) Error: SHELLCHECK_WARNING: [#def13] /usr/bin/lesspipe.sh:442:4: warning[SC3010]: In POSIX sh, [[ ]] is undefined. # 440| bat|batcat) # 441| batconfig=$($prog --config-file) # 442|-> [[ -n $lang ]] && $prog --list-languages|sed 's/.*:/,/;s/$/,/'|grep -i ",$lang," > /dev/null && opt=(-l "$lang") # 443| opt2=${LESSCOLORIZER##*--} # 444| [[ $opt2 == style=* ]] && style=${opt2##*=} Error: SHELLCHECK_WARNING: [#def14] /usr/bin/lesspipe.sh:442:104: warning[SC3030]: In POSIX sh, arrays are undefined. # 440| bat|batcat) # 441| batconfig=$($prog --config-file) # 442|-> [[ -n $lang ]] && $prog --list-languages|sed 's/.*:/,/;s/$/,/'|grep -i ",$lang," > /dev/null && opt=(-l "$lang") # 443| opt2=${LESSCOLORIZER##*--} # 444| [[ $opt2 == style=* ]] && style=${opt2##*=} Error: SHELLCHECK_WARNING: [#def15] /usr/bin/lesspipe.sh:469:36: warning[SC3020]: In POSIX sh, &> is undefined. # 467| opt+=("$COLOR" --paging=never "$1") ;; # 468| pygmentize) # 469|-> pygmentize -l "$lang" /dev/null &>/dev/null && opt=(-l "$lang") || opt=(-g) # 470| [[ -n $LESSCOLORIZER && $LESSCOLORIZER = *-[OP]\ *style=* ]] && style="${LESSCOLORIZER/*style=/}" # 471| [[ -n $style ]] && opt+=(-O style="${style%% *}") Error: SHELLCHECK_WARNING: [#def16] /usr/bin/lesspipe.sh:469:55: warning[SC3030]: In POSIX sh, arrays are undefined. # 467| opt+=("$COLOR" --paging=never "$1") ;; # 468| pygmentize) # 469|-> pygmentize -l "$lang" /dev/null &>/dev/null && opt=(-l "$lang") || opt=(-g) # 470| [[ -n $LESSCOLORIZER && $LESSCOLORIZER = *-[OP]\ *style=* ]] && style="${LESSCOLORIZER/*style=/}" # 471| [[ -n $style ]] && opt+=(-O style="${style%% *}") Error: SHELLCHECK_WARNING: [#def17] /usr/bin/lesspipe.sh:469:75: warning[SC3030]: In POSIX sh, arrays are undefined. # 467| opt+=("$COLOR" --paging=never "$1") ;; # 468| pygmentize) # 469|-> pygmentize -l "$lang" /dev/null &>/dev/null && opt=(-l "$lang") || opt=(-g) # 470| [[ -n $LESSCOLORIZER && $LESSCOLORIZER = *-[OP]\ *style=* ]] && style="${LESSCOLORIZER/*style=/}" # 471| [[ -n $style ]] && opt+=(-O style="${style%% *}") Error: SHELLCHECK_WARNING: [#def18] /usr/bin/lesspipe.sh:476:4: warning[SC3010]: In POSIX sh, [[ ]] is undefined. # 474| source-highlight) # 475| [[ -n $1 && "$1" != - ]] && opt=(-i "$1") || opt=() # 476|-> [[ -n $lang ]] && opt+=(-s "$lang") # 477| style=esc # 478| [[ $colors -ge 256 ]] && style=esc256 Error: SHELLCHECK_WARNING: [#def19] /usr/bin/lesspipe.sh:476:22: warning[SC3024]: In POSIX sh, += is undefined. # 474| source-highlight) # 475| [[ -n $1 && "$1" != - ]] && opt=(-i "$1") || opt=() # 476|-> [[ -n $lang ]] && opt+=(-s "$lang") # 477| style=esc # 478| [[ $colors -ge 256 ]] && style=esc256 Error: SHELLCHECK_WARNING: [#def20] /usr/bin/lesspipe.sh:476:27: warning[SC3030]: In POSIX sh, arrays are undefined. # 474| source-highlight) # 475| [[ -n $1 && "$1" != - ]] && opt=(-i "$1") || opt=() # 476|-> [[ -n $lang ]] && opt+=(-s "$lang") # 477| style=esc # 478| [[ $colors -ge 256 ]] && style=esc256 Error: SHELLCHECK_WARNING: [#def21] /usr/bin/lesspipe.sh:482:4: warning[SC3010]: In POSIX sh, [[ ]] is undefined. # 480| code2color|vimcolor) # 481| opt=("$1") # 482|-> [[ -n "$3" ]] && opt=(-l "$3" "$1") ;; # 483| nvimpager) # 484| opt=(-c "$1") Error: SHELLCHECK_WARNING: [#def22] /usr/bin/lesspipe.sh:482:25: warning[SC3030]: In POSIX sh, arrays are undefined. # 480| code2color|vimcolor) # 481| opt=("$1") # 482|-> [[ -n "$3" ]] && opt=(-l "$3" "$1") ;; # 483| nvimpager) # 484| opt=(-c "$1") Error: SHELLCHECK_WARNING: [#def23] /usr/bin/lesspipe.sh:484:8: warning[SC3030]: In POSIX sh, arrays are undefined. # 482| [[ -n "$3" ]] && opt=(-l "$3" "$1") ;; # 483| nvimpager) # 484|-> opt=(-c "$1") # 485| [[ -n "$3" ]] && ft=${3##*/} && ft=${ft##*.} && # 486| opt=(-c "$1" --cmd "set filetype=$ft") ;; Error: SHELLCHECK_WARNING: [#def24] /usr/bin/lesspipe.sh:485:4: warning[SC3010]: In POSIX sh, [[ ]] is undefined. # 483| nvimpager) # 484| opt=(-c "$1") # 485|-> [[ -n "$3" ]] && ft=${3##*/} && ft=${ft##*.} && # 486| opt=(-c "$1" --cmd "set filetype=$ft") ;; # 487| *) Error: SHELLCHECK_WARNING: [#def25] /usr/bin/lesspipe.sh:486:9: warning[SC3030]: In POSIX sh, arrays are undefined. # 484| opt=(-c "$1") # 485| [[ -n "$3" ]] && ft=${3##*/} && ft=${ft##*.} && # 486|-> opt=(-c "$1" --cmd "set filetype=$ft") ;; # 487| *) # 488| return ;; Error: SHELLCHECK_WARNING: [#def26] /usr/bin/lesspipe.sh:517:27: warning[SC3030]: In POSIX sh, arrays are undefined. # 515| xml) # 516| [[ -z $file2 ]] && # 517|-> { { has_cmd xmq && cmd=(isxmq "$1" xml); } || # 518| { has_htmlprog && cmd=(ishtml "$1"); }; } ;; # 519| html) Error: SHELLCHECK_WARNING: [#def27] /usr/bin/lesspipe.sh:518:26: warning[SC3030]: In POSIX sh, arrays are undefined. # 516| [[ -z $file2 ]] && # 517| { { has_cmd xmq && cmd=(isxmq "$1" xml); } || # 518|-> { has_htmlprog && cmd=(ishtml "$1"); }; } ;; # 519| html) # 520| [[ -z $file2 ]] && has_htmlprog && cmd=(ishtml "$1") ;;
| analyzer-version-clippy | 1.95.0 |
| analyzer-version-cppcheck | 2.20.0 |
| analyzer-version-gcc | 16.0.1 |
| analyzer-version-gcc-analyzer | 16.0.1 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| diffbase-analyzer-version-clippy | 1.95.0 |
| diffbase-analyzer-version-cppcheck | 2.20.0 |
| diffbase-analyzer-version-gcc | 16.0.1 |
| diffbase-analyzer-version-gcc-analyzer | 16.0.1 |
| diffbase-analyzer-version-shellcheck | 0.11.0 |
| diffbase-analyzer-version-unicontrol | 0.0.2 |
| diffbase-enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| diffbase-exit-code | 0 |
| diffbase-host | ip-172-16-1-39.us-west-2.compute.internal |
| diffbase-known-false-positives | /usr/share/csmock/known-false-positives.js |
| diffbase-known-false-positives-rpm | known-false-positives-0.0.0.20260420.180315.gd39a405.main-1.el9.noarch |
| diffbase-mock-config | fedora-rawhide-x86_64 |
| diffbase-project-name | less-692-6.fc45 |
| diffbase-store-results-to | /tmp/tmp8zxpnivb/less-692-6.fc45.tar.xz |
| diffbase-time-created | 2026-04-28 17:18:53 |
| diffbase-time-finished | 2026-04-28 17:20:11 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,shellcheck,clippy,unicontrol,gcc' '-o' '/tmp/tmp8zxpnivb/less-692-6.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp8zxpnivb/less-692-6.fc45.src.rpm' |
| diffbase-tool-version | csmock-3.8.5-1.el9 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-39.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.20260420.180315.gd39a405.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | less-691-2.fc44 |
| store-results-to | /tmp/tmpjro8tbti/less-691-2.fc44.tar.xz |
| time-created | 2026-04-28 17:16:51 |
| time-finished | 2026-04-28 17:18:36 |
| title | Fixed findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,shellcheck,clippy,unicontrol,gcc' '-o' '/tmp/tmpjro8tbti/less-691-2.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpjro8tbti/less-691-2.fc44.src.rpm' |
| tool-version | csmock-3.8.5-1.el9 |