Error: SHELLCHECK_WARNING: [#def1] /usr/bin/archive_color:16:2: warning[SC3043]: In POSIX sh, 'local' is undefined. # 14| # 15| get_file_code() { # 16|-> local line=$1 # 17| local len=${#line} # 18| (( len < 20 )) && return 1 Error: SHELLCHECK_WARNING: [#def2] /usr/bin/archive_color:17:2: warning[SC3043]: In POSIX sh, 'local' is undefined. # 15| get_file_code() { # 16| local line=$1 # 17|-> local len=${#line} # 18| (( len < 20 )) && return 1 # 19| local c0=${line:0:1} Error: SHELLCHECK_WARNING: [#def3] /usr/bin/archive_color:18:2: warning[SC3006]: In POSIX sh, standalone ((..)) is undefined. # 16| local line=$1 # 17| local len=${#line} # 18|-> (( len < 20 )) && return 1 # 19| local c0=${line:0:1} # 20| local perm10=${line:0:10} Error: SHELLCHECK_WARNING: [#def4] /usr/bin/archive_color:19:2: warning[SC3043]: In POSIX sh, 'local' is undefined. # 17| local len=${#line} # 18| (( len < 20 )) && return 1 # 19|-> local c0=${line:0:1} # 20| local perm10=${line:0:10} # 21| local c3=${line:3:1} Error: SHELLCHECK_WARNING: [#def5] /usr/bin/archive_color:19:11: warning[SC3057]: In POSIX sh, string indexing is undefined. # 17| local len=${#line} # 18| (( len < 20 )) && return 1 # 19|-> local c0=${line:0:1} # 20| local perm10=${line:0:10} # 21| local c3=${line:3:1} Error: SHELLCHECK_WARNING: [#def6] /usr/bin/archive_color:20:2: warning[SC3043]: In POSIX sh, 'local' is undefined. # 18| (( len < 20 )) && return 1 # 19| local c0=${line:0:1} # 20|-> local perm10=${line:0:10} # 21| local c3=${line:3:1} # 22| local c6=${line:6:1} Error: SHELLCHECK_WARNING: [#def7] /usr/bin/archive_color:20:15: warning[SC3057]: In POSIX sh, string indexing is undefined. # 18| (( len < 20 )) && return 1 # 19| local c0=${line:0:1} # 20|-> local perm10=${line:0:10} # 21| local c3=${line:3:1} # 22| local c6=${line:6:1} Error: SHELLCHECK_WARNING: [#def8] /usr/bin/archive_color:21:2: warning[SC3043]: In POSIX sh, 'local' is undefined. # 19| local c0=${line:0:1} # 20| local perm10=${line:0:10} # 21|-> local c3=${line:3:1} # 22| local c6=${line:6:1} # 23| local last3=${line: -3} Error: SHELLCHECK_WARNING: [#def9] /usr/bin/archive_color:21:11: warning[SC3057]: In POSIX sh, string indexing is undefined. # 19| local c0=${line:0:1} # 20| local perm10=${line:0:10} # 21|-> local c3=${line:3:1} # 22| local c6=${line:6:1} # 23| local last3=${line: -3} Error: SHELLCHECK_WARNING: [#def10] /usr/bin/archive_color:22:2: warning[SC3043]: In POSIX sh, 'local' is undefined. # 20| local perm10=${line:0:10} # 21| local c3=${line:3:1} # 22|-> local c6=${line:6:1} # 23| local last3=${line: -3} # 24| local l2=${last3:0:2} Error: SHELLCHECK_WARNING: [#def11] /usr/bin/archive_color:22:11: warning[SC3057]: In POSIX sh, string indexing is undefined. # 20| local perm10=${line:0:10} # 21| local c3=${line:3:1} # 22|-> local c6=${line:6:1} # 23| local last3=${line: -3} # 24| local l2=${last3:0:2} Error: SHELLCHECK_WARNING: [#def12] /usr/bin/archive_color:23:2: warning[SC3043]: In POSIX sh, 'local' is undefined. # 21| local c3=${line:3:1} # 22| local c6=${line:6:1} # 23|-> local last3=${line: -3} # 24| local l2=${last3:0:2} # 25| Error: SHELLCHECK_WARNING: [#def13] /usr/bin/archive_color:23:14: warning[SC3057]: In POSIX sh, string indexing is undefined. # 21| local c3=${line:3:1} # 22| local c6=${line:6:1} # 23|-> local last3=${line: -3} # 24| local l2=${last3:0:2} # 25| Error: SHELLCHECK_WARNING: [#def14] /usr/bin/archive_color:24:2: warning[SC3043]: In POSIX sh, 'local' is undefined. # 22| local c6=${line:6:1} # 23| local last3=${line: -3} # 24|-> local l2=${last3:0:2} # 25| # 26| [[ $c0 == "l" ]] && echo "ln" && return Error: SHELLCHECK_WARNING: [#def15] /usr/bin/archive_color:24:11: warning[SC3057]: In POSIX sh, string indexing is undefined. # 22| local c6=${line:6:1} # 23| local last3=${line: -3} # 24|-> local l2=${last3:0:2} # 25| # 26| [[ $c0 == "l" ]] && echo "ln" && return Error: SHELLCHECK_WARNING: [#def16] /usr/bin/archive_color:26:2: warning[SC3010]: In POSIX sh, [[ ]] is undefined. # 24| local l2=${last3:0:2} # 25| # 26|-> [[ $c0 == "l" ]] && echo "ln" && return # 27| [[ $perm10 == "drwxrwxrwx" ]] && echo "ow" # 28| [[ $perm10 == "drwxrwxrwt" ]] && echo "tw" Error: SHELLCHECK_WARNING: [#def17] /usr/bin/archive_color:26:9: warning[SC3014]: In POSIX sh, == in place of = is undefined. # 24| local l2=${last3:0:2} # 25| # 26|-> [[ $c0 == "l" ]] && echo "ln" && return # 27| [[ $perm10 == "drwxrwxrwx" ]] && echo "ow" # 28| [[ $perm10 == "drwxrwxrwt" ]] && echo "tw" Error: SHELLCHECK_WARNING: [#def18] /usr/bin/archive_color:27:2: warning[SC3010]: In POSIX sh, [[ ]] is undefined. # 25| # 26| [[ $c0 == "l" ]] && echo "ln" && return # 27|-> [[ $perm10 == "drwxrwxrwx" ]] && echo "ow" # 28| [[ $perm10 == "drwxrwxrwt" ]] && echo "tw" # 29| [[ $c0 == "d" ]] && echo "di" && return Error: SHELLCHECK_WARNING: [#def19] /usr/bin/archive_color:27:13: warning[SC3014]: In POSIX sh, == in place of = is undefined. # 25| # 26| [[ $c0 == "l" ]] && echo "ln" && return # 27|-> [[ $perm10 == "drwxrwxrwx" ]] && echo "ow" # 28| [[ $perm10 == "drwxrwxrwt" ]] && echo "tw" # 29| [[ $c0 == "d" ]] && echo "di" && return Error: SHELLCHECK_WARNING: [#def20] /usr/bin/archive_color:28:2: warning[SC3010]: In POSIX sh, [[ ]] is undefined. # 26| [[ $c0 == "l" ]] && echo "ln" && return # 27| [[ $perm10 == "drwxrwxrwx" ]] && echo "ow" # 28|-> [[ $perm10 == "drwxrwxrwt" ]] && echo "tw" # 29| [[ $c0 == "d" ]] && echo "di" && return # 30| [[ $c0 == "s" ]] && echo "so" && return Error: SHELLCHECK_WARNING: [#def21] /usr/bin/archive_color:28:13: warning[SC3014]: In POSIX sh, == in place of = is undefined. # 26| [[ $c0 == "l" ]] && echo "ln" && return # 27| [[ $perm10 == "drwxrwxrwx" ]] && echo "ow" # 28|-> [[ $perm10 == "drwxrwxrwt" ]] && echo "tw" # 29| [[ $c0 == "d" ]] && echo "di" && return # 30| [[ $c0 == "s" ]] && echo "so" && return Error: SHELLCHECK_WARNING: [#def22] /usr/bin/archive_color:29:2: warning[SC3010]: In POSIX sh, [[ ]] is undefined. # 27| [[ $perm10 == "drwxrwxrwx" ]] && echo "ow" # 28| [[ $perm10 == "drwxrwxrwt" ]] && echo "tw" # 29|-> [[ $c0 == "d" ]] && echo "di" && return # 30| [[ $c0 == "s" ]] && echo "so" && return # 31| [[ $c3 == "S" ]] && echo "su" && return Error: SHELLCHECK_WARNING: [#def23] /usr/bin/archive_color:29:9: warning[SC3014]: In POSIX sh, == in place of = is undefined. # 27| [[ $perm10 == "drwxrwxrwx" ]] && echo "ow" # 28| [[ $perm10 == "drwxrwxrwt" ]] && echo "tw" # 29|-> [[ $c0 == "d" ]] && echo "di" && return # 30| [[ $c0 == "s" ]] && echo "so" && return # 31| [[ $c3 == "S" ]] && echo "su" && return Error: SHELLCHECK_WARNING: [#def24] /usr/bin/archive_color:30:2: warning[SC3010]: In POSIX sh, [[ ]] is undefined. # 28| [[ $perm10 == "drwxrwxrwt" ]] && echo "tw" # 29| [[ $c0 == "d" ]] && echo "di" && return # 30|-> [[ $c0 == "s" ]] && echo "so" && return # 31| [[ $c3 == "S" ]] && echo "su" && return # 32| [[ $c6 == "S" ]] && echo "sg" && return Error: SHELLCHECK_WARNING: [#def25] /usr/bin/archive_color:30:9: warning[SC3014]: In POSIX sh, == in place of = is undefined. # 28| [[ $perm10 == "drwxrwxrwt" ]] && echo "tw" # 29| [[ $c0 == "d" ]] && echo "di" && return # 30|-> [[ $c0 == "s" ]] && echo "so" && return # 31| [[ $c3 == "S" ]] && echo "su" && return # 32| [[ $c6 == "S" ]] && echo "sg" && return Error: SHELLCHECK_WARNING: [#def26] /usr/bin/archive_color:31:2: warning[SC3010]: In POSIX sh, [[ ]] is undefined. # 29| [[ $c0 == "d" ]] && echo "di" && return # 30| [[ $c0 == "s" ]] && echo "so" && return # 31|-> [[ $c3 == "S" ]] && echo "su" && return # 32| [[ $c6 == "S" ]] && echo "sg" && return # 33| [[ $c0 == "p" ]] && echo "pi" && return Error: SHELLCHECK_WARNING: [#def27] /usr/bin/archive_color:31:9: warning[SC3014]: In POSIX sh, == in place of = is undefined. # 29| [[ $c0 == "d" ]] && echo "di" && return # 30| [[ $c0 == "s" ]] && echo "so" && return # 31|-> [[ $c3 == "S" ]] && echo "su" && return # 32| [[ $c6 == "S" ]] && echo "sg" && return # 33| [[ $c0 == "p" ]] && echo "pi" && return Error: SHELLCHECK_WARNING: [#def28] /usr/bin/archive_color:32:2: warning[SC3010]: In POSIX sh, [[ ]] is undefined. # 30| [[ $c0 == "s" ]] && echo "so" && return # 31| [[ $c3 == "S" ]] && echo "su" && return # 32|-> [[ $c6 == "S" ]] && echo "sg" && return # 33| [[ $c0 == "p" ]] && echo "pi" && return # 34| [[ $c0 == "c" ]] && echo "cd" && return Error: SHELLCHECK_WARNING: [#def29] /usr/bin/archive_color:32:9: warning[SC3014]: In POSIX sh, == in place of = is undefined. # 30| [[ $c0 == "s" ]] && echo "so" && return # 31| [[ $c3 == "S" ]] && echo "su" && return # 32|-> [[ $c6 == "S" ]] && echo "sg" && return # 33| [[ $c0 == "p" ]] && echo "pi" && return # 34| [[ $c0 == "c" ]] && echo "cd" && return Error: SHELLCHECK_WARNING: [#def30] /usr/bin/archive_color:33:2: warning[SC3010]: In POSIX sh, [[ ]] is undefined. # 31| [[ $c3 == "S" ]] && echo "su" && return # 32| [[ $c6 == "S" ]] && echo "sg" && return # 33|-> [[ $c0 == "p" ]] && echo "pi" && return # 34| [[ $c0 == "c" ]] && echo "cd" && return # 35| [[ $c0 == "b" ]] && echo "bd" && return Error: SHELLCHECK_WARNING: [#def31] /usr/bin/archive_color:33:9: warning[SC3014]: In POSIX sh, == in place of = is undefined. # 31| [[ $c3 == "S" ]] && echo "su" && return # 32| [[ $c6 == "S" ]] && echo "sg" && return # 33|-> [[ $c0 == "p" ]] && echo "pi" && return # 34| [[ $c0 == "c" ]] && echo "cd" && return # 35| [[ $c0 == "b" ]] && echo "bd" && return Error: SHELLCHECK_WARNING: [#def32] /usr/bin/archive_color:34:2: warning[SC3010]: In POSIX sh, [[ ]] is undefined. # 32| [[ $c6 == "S" ]] && echo "sg" && return # 33| [[ $c0 == "p" ]] && echo "pi" && return # 34|-> [[ $c0 == "c" ]] && echo "cd" && return # 35| [[ $c0 == "b" ]] && echo "bd" && return # 36| [[ $c0 == "D" ]] && echo "do" && return Error: SHELLCHECK_WARNING: [#def33] /usr/bin/archive_color:34:9: warning[SC3014]: In POSIX sh, == in place of = is undefined. # 32| [[ $c6 == "S" ]] && echo "sg" && return # 33| [[ $c0 == "p" ]] && echo "pi" && return # 34|-> [[ $c0 == "c" ]] && echo "cd" && return # 35| [[ $c0 == "b" ]] && echo "bd" && return # 36| [[ $c0 == "D" ]] && echo "do" && return Error: SHELLCHECK_WARNING: [#def34] /usr/bin/archive_color:35:2: warning[SC3010]: In POSIX sh, [[ ]] is undefined. # 33| [[ $c0 == "p" ]] && echo "pi" && return # 34| [[ $c0 == "c" ]] && echo "cd" && return # 35|-> [[ $c0 == "b" ]] && echo "bd" && return # 36| [[ $c0 == "D" ]] && echo "do" && return # 37| [[ $c3 == "x" ]] && echo "ex" && return Error: SHELLCHECK_WARNING: [#def35] /usr/bin/archive_color:35:9: warning[SC3014]: In POSIX sh, == in place of = is undefined. # 33| [[ $c0 == "p" ]] && echo "pi" && return # 34| [[ $c0 == "c" ]] && echo "cd" && return # 35|-> [[ $c0 == "b" ]] && echo "bd" && return # 36| [[ $c0 == "D" ]] && echo "do" && return # 37| [[ $c3 == "x" ]] && echo "ex" && return Error: SHELLCHECK_WARNING: [#def36] /usr/bin/archive_color:36:2: warning[SC3010]: In POSIX sh, [[ ]] is undefined. # 34| [[ $c0 == "c" ]] && echo "cd" && return # 35| [[ $c0 == "b" ]] && echo "bd" && return # 36|-> [[ $c0 == "D" ]] && echo "do" && return # 37| [[ $c3 == "x" ]] && echo "ex" && return # 38| [[ $l2 == ./* ]] && echo "di" && return Error: SHELLCHECK_WARNING: [#def37] /usr/bin/archive_color:36:9: warning[SC3014]: In POSIX sh, == in place of = is undefined. # 34| [[ $c0 == "c" ]] && echo "cd" && return # 35| [[ $c0 == "b" ]] && echo "bd" && return # 36|-> [[ $c0 == "D" ]] && echo "do" && return # 37| [[ $c3 == "x" ]] && echo "ex" && return # 38| [[ $l2 == ./* ]] && echo "di" && return Error: SHELLCHECK_WARNING: [#def38] /usr/bin/archive_color:37:2: warning[SC3010]: In POSIX sh, [[ ]] is undefined. # 35| [[ $c0 == "b" ]] && echo "bd" && return # 36| [[ $c0 == "D" ]] && echo "do" && return # 37|-> [[ $c3 == "x" ]] && echo "ex" && return # 38| [[ $l2 == ./* ]] && echo "di" && return # 39| [[ $line != *.* ]] && return 1 Error: SHELLCHECK_WARNING: [#def39] /usr/bin/archive_color:37:9: warning[SC3014]: In POSIX sh, == in place of = is undefined. # 35| [[ $c0 == "b" ]] && echo "bd" && return # 36| [[ $c0 == "D" ]] && echo "do" && return # 37|-> [[ $c3 == "x" ]] && echo "ex" && return # 38| [[ $l2 == ./* ]] && echo "di" && return # 39| [[ $line != *.* ]] && return 1 Error: SHELLCHECK_WARNING: [#def40] /usr/bin/archive_color:38:2: warning[SC3010]: In POSIX sh, [[ ]] is undefined. # 36| [[ $c0 == "D" ]] && echo "do" && return # 37| [[ $c3 == "x" ]] && echo "ex" && return # 38|-> [[ $l2 == ./* ]] && echo "di" && return # 39| [[ $line != *.* ]] && return 1 # 40| echo "*.${line##*.}" Error: SHELLCHECK_WARNING: [#def41] /usr/bin/archive_color:38:9: warning[SC3014]: In POSIX sh, == in place of = is undefined. # 36| [[ $c0 == "D" ]] && echo "do" && return # 37| [[ $c3 == "x" ]] && echo "ex" && return # 38|-> [[ $l2 == ./* ]] && echo "di" && return # 39| [[ $line != *.* ]] && return 1 # 40| echo "*.${line##*.}" Error: SHELLCHECK_WARNING: [#def42] /usr/bin/archive_color:39:2: warning[SC3010]: In POSIX sh, [[ ]] is undefined. # 37| [[ $c3 == "x" ]] && echo "ex" && return # 38| [[ $l2 == ./* ]] && echo "di" && return # 39|-> [[ $line != *.* ]] && return 1 # 40| echo "*.${line##*.}" # 41| } Error: SHELLCHECK_WARNING: [#def43] /usr/bin/archive_color:43:4: warning[SC3010]: In POSIX sh, [[ ]] is undefined. # 41| } # 42| # 43|-> if [[ -t 0 ]]; then # 44| echo "Example: tar tvzf some_tarball.tar.gz | archive_color" # 45| exit 0 Error: SHELLCHECK_WARNING: [#def44] /usr/bin/archive_color:48:1: warning[SC3044]: In POSIX sh, 'declare' is undefined. # 46| fi # 47| # 48|-> declare -A FILE_TYPE_TO_COLOR # 49| default_colors='di=01;34:ln=01;36:ex=01;32:so=01;35:pi=40;33:bd=40;33;01:cd=40;33;01:su=37;41:sg=30;43:do=01;35:tw=30;42:ow=34;42' # 50| tar_colors=${TAR_COLORS:-${LS_COLORS:-}} Error: SHELLCHECK_WARNING: [#def45] /usr/bin/archive_color:52:13: warning[SC3030]: In POSIX sh, arrays are undefined. # 50| tar_colors=${TAR_COLORS:-${LS_COLORS:-}} # 51| # shellcheck disable=SC2207 # 52|-> color_specs=($(echo "$default_colors:$tar_colors"| tr ":" "\n")) # 53| # 54| for spec in "${color_specs[@]}"; do Error: SHELLCHECK_WARNING: [#def46] /usr/bin/archive_color:54:14: warning[SC3054]: In POSIX sh, array references are undefined. # 52| color_specs=($(echo "$default_colors:$tar_colors"| tr ":" "\n")) # 53| # 54|-> for spec in "${color_specs[@]}"; do # 55| [[ -z $spec ]] && continue # 56| type=${spec%=*} Error: SHELLCHECK_WARNING: [#def47] /usr/bin/archive_color:55:2: warning[SC3010]: In POSIX sh, [[ ]] is undefined. # 53| # 54| for spec in "${color_specs[@]}"; do # 55|-> [[ -z $spec ]] && continue # 56| type=${spec%=*} # 57| codes=${spec#*=} Error: SHELLCHECK_WARNING: [#def48] /usr/bin/archive_color:58:2: warning[SC3010]: In POSIX sh, [[ ]] is undefined. # 56| type=${spec%=*} # 57| codes=${spec#*=} # 58|-> [[ -z $type || -z $codes ]] && continue # 59| FILE_TYPE_TO_COLOR[$type]="\033[${codes}m" # 60| done Error: SHELLCHECK_WARNING: [#def49] /usr/bin/archive_color:64:5: warning[SC3010]: In POSIX sh, [[ ]] is undefined. # 62| while IFS= read -r line; do # 63| type=$(get_file_code "$line") || true # 64|-> if [[ -n $type && -n ${FILE_TYPE_TO_COLOR[$type]+set} ]]; then # 65| [[ $(echo "$line"|awk '{print $4}') == *-*-* ]] && fld=6 || fld=9 # 66| filename=$(echo "$line"|awk '{print $'"$fld"'}') Error: SHELLCHECK_WARNING: [#def50] /usr/bin/archive_color:65:3: warning[SC3010]: In POSIX sh, [[ ]] is undefined. # 63| type=$(get_file_code "$line") || true # 64| if [[ -n $type && -n ${FILE_TYPE_TO_COLOR[$type]+set} ]]; then # 65|-> [[ $(echo "$line"|awk '{print $4}') == *-*-* ]] && fld=6 || fld=9 # 66| filename=$(echo "$line"|awk '{print $'"$fld"'}') # 67| filename="$filename${line##*"$filename"}" Error: SHELLCHECK_WARNING: [#def51] /usr/bin/archive_color:65:39: warning[SC3014]: In POSIX sh, == in place of = is undefined. # 63| type=$(get_file_code "$line") || true # 64| if [[ -n $type && -n ${FILE_TYPE_TO_COLOR[$type]+set} ]]; then # 65|-> [[ $(echo "$line"|awk '{print $4}') == *-*-* ]] && fld=6 || fld=9 # 66| filename=$(echo "$line"|awk '{print $'"$fld"'}') # 67| filename="$filename${line##*"$filename"}" Error: SHELLCHECK_WARNING: [#def52] /usr/bin/archive_color:68:6: warning[SC3010]: In POSIX sh, [[ ]] is undefined. # 66| filename=$(echo "$line"|awk '{print $'"$fld"'}') # 67| filename="$filename${line##*"$filename"}" # 68|-> if [[ -n $filename ]]; then # 69| printf '%s%b%s%b\n' "${line%"$filename"}" "${FILE_TYPE_TO_COLOR[$type]}" "$filename" "\033[0m" # 70| else Error: SHELLCHECK_WARNING: [#def53] /usr/bin/archive_color:69:47: warning[SC3054]: In POSIX sh, array references are undefined. # 67| filename="$filename${line##*"$filename"}" # 68| if [[ -n $filename ]]; then # 69|-> printf '%s%b%s%b\n' "${line%"$filename"}" "${FILE_TYPE_TO_COLOR[$type]}" "$filename" "\033[0m" # 70| else # 71| printf '%s\n' "$line" Error: SHELLCHECK_WARNING: [#def54] /usr/bin/lesspipe.sh:10:2: warning[SC3010]: In POSIX sh, [[ ]] is undefined. # 8| [[ -n "$2" && "$2" > $($1 --version 2>/dev/null) ]] && return 1 # 9| cmdpath=$(command -v "$1") # 10|-> [[ -n $cmdpath && -x $cmdpath ]] && return 0 # 11| return 1 # 12| } Error: SHELLCHECK_WARNING: [#def55] /usr/bin/lesspipe.sh:410:2: warning[SC3010]: In POSIX sh, [[ ]] is undefined. # 408| [[ $lessarg == *\ [:=]* ]] && fext=${lessarg#*[:=]} # 409| # return if we want to watch growing files # 410|-> [[ $lessarg == *less\ *\ : ]] && exit 0 # 411| [[ $lessarg == *less\ *\+F\ * && $fext != log ]] && exit 0 # 412| # color is set when calling less with -r or -R or LESS contains that option Error: SHELLCHECK_WARNING: [#def56] /usr/bin/lesspipe.sh:410:14: warning[SC3014]: In POSIX sh, == in place of = is undefined. # 408| [[ $lessarg == *\ [:=]* ]] && fext=${lessarg#*[:=]} # 409| # return if we want to watch growing files # 410|-> [[ $lessarg == *less\ *\ : ]] && exit 0 # 411| [[ $lessarg == *less\ *\+F\ * && $fext != log ]] && exit 0 # 412| # color is set when calling less with -r or -R or LESS contains that option Error: SHELLCHECK_WARNING: [#def57] /usr/bin/lesspipe.sh:411:2: warning[SC3010]: In POSIX sh, [[ ]] is undefined. # 409| # return if we want to watch growing files # 410| [[ $lessarg == *less\ *\ : ]] && exit 0 # 411|-> [[ $lessarg == *less\ *\+F\ * && $fext != log ]] && exit 0 # 412| # color is set when calling less with -r or -R or LESS contains that option # 413| COLOR="--color=auto" Error: SHELLCHECK_WARNING: [#def58] /usr/bin/lesspipe.sh:411:14: warning[SC3014]: In POSIX sh, == in place of = is undefined. # 409| # return if we want to watch growing files # 410| [[ $lessarg == *less\ *\ : ]] && exit 0 # 411|-> [[ $lessarg == *less\ *\+F\ * && $fext != log ]] && exit 0 # 412| # color is set when calling less with -r or -R or LESS contains that option # 413| COLOR="--color=auto" Error: SHELLCHECK_WARNING: [#def59] /usr/bin/lesspipe.sh:415:2: warning[SC3010]: In POSIX sh, [[ ]] is undefined. # 413| COLOR="--color=auto" # 414| colors=0 # 415|-> [[ $TERM == *256* ]] && colors=256 # 416| has_cmd tput && colors=$(tput colors) # 417| if [[ $colors -ge 8 ]]; then Error: SHELLCHECK_WARNING: [#def60] /usr/bin/lesspipe.sh:415:11: warning[SC3014]: In POSIX sh, == in place of = is undefined. # 413| COLOR="--color=auto" # 414| colors=0 # 415|-> [[ $TERM == *256* ]] && colors=256 # 416| has_cmd tput && colors=$(tput colors) # 417| if [[ $colors -ge 8 ]]; then Error: SHELLCHECK_WARNING: [#def61] /usr/bin/lesspipe.sh:435:2: warning[SC3010]: In POSIX sh, [[ ]] is undefined. # 433| [[ $2 == plain || -z $2 ]] && return # 434| prog=${LESSCOLORIZER%% *} # 435|-> [[ $prog == *vimcolor ]] && ! has_cmd vim && ! has_cmd nvim && prog= # 436| # 437| for i in nvimpager batcat bat pygmentize source-highlight vim nvim code2color ; do Error: SHELLCHECK_WARNING: [#def62] /usr/bin/lesspipe.sh:435:11: warning[SC3014]: In POSIX sh, == in place of = is undefined. # 433| [[ $2 == plain || -z $2 ]] && return # 434| prog=${LESSCOLORIZER%% *} # 435|-> [[ $prog == *vimcolor ]] && ! has_cmd vim && ! has_cmd nvim && prog= # 436| # 437| for i in nvimpager batcat bat pygmentize source-highlight vim nvim code2color ; do Error: SHELLCHECK_WARNING: [#def63] /usr/bin/lesspipe.sh:438:3: warning[SC3010]: In POSIX sh, [[ ]] is undefined. # 436| # 437| for i in nvimpager batcat bat pygmentize source-highlight vim nvim code2color ; do # 438|-> [[ -z $prog ]] && has_cmd "$i" && prog=$i # 439| [[ $prog == "$i" ]] && ! has_cmd "$prog" && prog= # 440| done Error: SHELLCHECK_WARNING: [#def64] /usr/bin/lesspipe.sh:439:3: warning[SC3010]: In POSIX sh, [[ ]] is undefined. # 437| for i in nvimpager batcat bat pygmentize source-highlight vim nvim code2color ; do # 438| [[ -z $prog ]] && has_cmd "$i" && prog=$i # 439|-> [[ $prog == "$i" ]] && ! has_cmd "$prog" && prog= # 440| done # 441| [[ $prog == *vim ]] && prog=vimcolor Error: SHELLCHECK_WARNING: [#def65] /usr/bin/lesspipe.sh:439:12: warning[SC3014]: In POSIX sh, == in place of = is undefined. # 437| for i in nvimpager batcat bat pygmentize source-highlight vim nvim code2color ; do # 438| [[ -z $prog ]] && has_cmd "$i" && prog=$i # 439|-> [[ $prog == "$i" ]] && ! has_cmd "$prog" && prog= # 440| done # 441| [[ $prog == *vim ]] && prog=vimcolor Error: SHELLCHECK_WARNING: [#def66] /usr/bin/lesspipe.sh:441:2: warning[SC3010]: In POSIX sh, [[ ]] is undefined. # 439| [[ $prog == "$i" ]] && ! has_cmd "$prog" && prog= # 440| done # 441|-> [[ $prog == *vim ]] && prog=vimcolor # 442| [[ "$2" =~ ^[0-9]*$ || -z "$2" ]] || lang=$2 # 443| # prefer an explicitly requested language Error: SHELLCHECK_WARNING: [#def67] /usr/bin/lesspipe.sh:441:11: warning[SC3014]: In POSIX sh, == in place of = is undefined. # 439| [[ $prog == "$i" ]] && ! has_cmd "$prog" && prog= # 440| done # 441|-> [[ $prog == *vim ]] && prog=vimcolor # 442| [[ "$2" =~ ^[0-9]*$ || -z "$2" ]] || lang=$2 # 443| # prefer an explicitly requested language Error: SHELLCHECK_WARNING: [#def68] /usr/bin/lesspipe.sh:444:2: warning[SC3010]: In POSIX sh, [[ ]] is undefined. # 442| [[ "$2" =~ ^[0-9]*$ || -z "$2" ]] || lang=$2 # 443| # prefer an explicitly requested language # 444|-> [[ -n $3 ]] && reql=$3 # 445| [[ $reql == *.* ]] && reql=${reql##*.} # 446| pname=${prog##*/} Error: SHELLCHECK_WARNING: [#def69] /usr/bin/lesspipe.sh:445:2: warning[SC3010]: In POSIX sh, [[ ]] is undefined. # 443| # prefer an explicitly requested language # 444| [[ -n $3 ]] && reql=$3 # 445|-> [[ $reql == *.* ]] && reql=${reql##*.} # 446| pname=${prog##*/} # 447| ! has_cmd "$pname" && pname= && prog= Error: SHELLCHECK_WARNING: [#def70] /usr/bin/lesspipe.sh:445:11: warning[SC3014]: In POSIX sh, == in place of = is undefined. # 443| # prefer an explicitly requested language # 444| [[ -n $3 ]] && reql=$3 # 445|-> [[ $reql == *.* ]] && reql=${reql##*.} # 446| pname=${prog##*/} # 447| ! has_cmd "$pname" && pname= && prog= Error: SHELLCHECK_WARNING: [#def71] /usr/bin/lesspipe.sh:452:7: warning[SC3010]: In POSIX sh, [[ ]] is undefined. # 450| batconfig=$($prog --config-file) # 451| languages=$($prog --list-languages|sed "s/.*:/,/;s/$/,/;s/\n/,/") # 452|-> if [[ -n "$reql" ]]; then # 453| echo "$languages"|grep -q ",$reql," && opt=(-l "$reql") # 454| elif [[ -n "$lang" ]]; then Error: SHELLCHECK_WARNING: [#def72] /usr/bin/lesspipe.sh:453:48: warning[SC3030]: In POSIX sh, arrays are undefined. # 451| languages=$($prog --list-languages|sed "s/.*:/,/;s/$/,/;s/\n/,/") # 452| if [[ -n "$reql" ]]; then # 453|-> echo "$languages"|grep -q ",$reql," && opt=(-l "$reql") # 454| elif [[ -n "$lang" ]]; then # 455| echo "$languages"|grep -q ",$lang," && opt=(-l "$lang") Error: SHELLCHECK_WARNING: [#def73] /usr/bin/lesspipe.sh:454:9: warning[SC3010]: In POSIX sh, [[ ]] is undefined. # 452| if [[ -n "$reql" ]]; then # 453| echo "$languages"|grep -q ",$reql," && opt=(-l "$reql") # 454|-> elif [[ -n "$lang" ]]; then # 455| echo "$languages"|grep -q ",$lang," && opt=(-l "$lang") # 456| fi Error: SHELLCHECK_WARNING: [#def74] /usr/bin/lesspipe.sh:455:48: warning[SC3030]: In POSIX sh, arrays are undefined. # 453| echo "$languages"|grep -q ",$reql," && opt=(-l "$reql") # 454| elif [[ -n "$lang" ]]; then # 455|-> echo "$languages"|grep -q ",$lang," && opt=(-l "$lang") # 456| fi # 457| opt2=${LESSCOLORIZER##*--} Error: SHELLCHECK_WARNING: [#def75] /usr/bin/lesspipe.sh:483:7: warning[SC3010]: In POSIX sh, [[ ]] is undefined. # 481| opt+=("$COLOR" --paging=never "$1") ;; # 482| pygmentize) # 483|-> if [[ -n "$reql" ]]; then # 484| pygmentize -l "$reql" /dev/null &>/dev/null && opt=(-l "$lang") # 485| elif [[ -n "$lang" ]]; then Error: SHELLCHECK_WARNING: [#def76] /usr/bin/lesspipe.sh:484:37: warning[SC3020]: In POSIX sh, &> is undefined. # 482| pygmentize) # 483| if [[ -n "$reql" ]]; then # 484|-> pygmentize -l "$reql" /dev/null &>/dev/null && opt=(-l "$lang") # 485| elif [[ -n "$lang" ]]; then # 486| pygmentize -l "$lang" /dev/null &>/dev/null && opt=(-l "$lang") Error: SHELLCHECK_WARNING: [#def77] /usr/bin/lesspipe.sh:484:56: warning[SC3030]: In POSIX sh, arrays are undefined. # 482| pygmentize) # 483| if [[ -n "$reql" ]]; then # 484|-> pygmentize -l "$reql" /dev/null &>/dev/null && opt=(-l "$lang") # 485| elif [[ -n "$lang" ]]; then # 486| pygmentize -l "$lang" /dev/null &>/dev/null && opt=(-l "$lang") Error: SHELLCHECK_WARNING: [#def78] /usr/bin/lesspipe.sh:485:9: warning[SC3010]: In POSIX sh, [[ ]] is undefined. # 483| if [[ -n "$reql" ]]; then # 484| pygmentize -l "$reql" /dev/null &>/dev/null && opt=(-l "$lang") # 485|-> elif [[ -n "$lang" ]]; then # 486| pygmentize -l "$lang" /dev/null &>/dev/null && opt=(-l "$lang") # 487| fi Error: SHELLCHECK_WARNING: [#def79] /usr/bin/lesspipe.sh:486:37: warning[SC3020]: In POSIX sh, &> is undefined. # 484| pygmentize -l "$reql" /dev/null &>/dev/null && opt=(-l "$lang") # 485| elif [[ -n "$lang" ]]; then # 486|-> pygmentize -l "$lang" /dev/null &>/dev/null && opt=(-l "$lang") # 487| fi # 488| [[ -z "${opt[*]}" ]] && opt=(-g) Error: SHELLCHECK_WARNING: [#def80] /usr/bin/lesspipe.sh:486:56: warning[SC3030]: In POSIX sh, arrays are undefined. # 484| pygmentize -l "$reql" /dev/null &>/dev/null && opt=(-l "$lang") # 485| elif [[ -n "$lang" ]]; then # 486|-> pygmentize -l "$lang" /dev/null &>/dev/null && opt=(-l "$lang") # 487| fi # 488| [[ -z "${opt[*]}" ]] && opt=(-g) Error: SHELLCHECK_WARNING: [#def81] /usr/bin/lesspipe.sh:488:4: warning[SC3010]: In POSIX sh, [[ ]] is undefined. # 486| pygmentize -l "$lang" /dev/null &>/dev/null && opt=(-l "$lang") # 487| fi # 488|-> [[ -z "${opt[*]}" ]] && opt=(-g) # 489| [[ -n $LESSCOLORIZER && $LESSCOLORIZER = *-[OP]\ *style=* ]] && style="${LESSCOLORIZER/*style=/}" # 490| [[ -n $style ]] && opt+=(-O style="${style%% *}") Error: SHELLCHECK_WARNING: [#def82] /usr/bin/lesspipe.sh:488:11: warning[SC3054]: In POSIX sh, array references are undefined. # 486| pygmentize -l "$lang" /dev/null &>/dev/null && opt=(-l "$lang") # 487| fi # 488|-> [[ -z "${opt[*]}" ]] && opt=(-g) # 489| [[ -n $LESSCOLORIZER && $LESSCOLORIZER = *-[OP]\ *style=* ]] && style="${LESSCOLORIZER/*style=/}" # 490| [[ -n $style ]] && opt+=(-O style="${style%% *}") Error: SHELLCHECK_WARNING: [#def83] /usr/bin/lesspipe.sh:488:32: warning[SC3030]: In POSIX sh, arrays are undefined. # 486| pygmentize -l "$lang" /dev/null &>/dev/null && opt=(-l "$lang") # 487| fi # 488|-> [[ -z "${opt[*]}" ]] && opt=(-g) # 489| [[ -n $LESSCOLORIZER && $LESSCOLORIZER = *-[OP]\ *style=* ]] && style="${LESSCOLORIZER/*style=/}" # 490| [[ -n $style ]] && opt+=(-O style="${style%% *}") Error: SHELLCHECK_WARNING: [#def84] /usr/bin/lesspipe.sh:495:4: warning[SC3010]: In POSIX sh, [[ ]] is undefined. # 493| source-highlight) # 494| [[ -n $1 && "$1" != - ]] && opt=(-i "$1") || opt=() # 495|-> [[ -n $lang ]] && opt+=(-s "${lang##*.}") # 496| style=esc # 497| [[ $colors -ge 256 ]] && style=esc256 Error: SHELLCHECK_WARNING: [#def85] /usr/bin/lesspipe.sh:495:22: warning[SC3024]: In POSIX sh, += is undefined. # 493| source-highlight) # 494| [[ -n $1 && "$1" != - ]] && opt=(-i "$1") || opt=() # 495|-> [[ -n $lang ]] && opt+=(-s "${lang##*.}") # 496| style=esc # 497| [[ $colors -ge 256 ]] && style=esc256 Error: SHELLCHECK_WARNING: [#def86] /usr/bin/lesspipe.sh:495:27: warning[SC3030]: In POSIX sh, arrays are undefined. # 493| source-highlight) # 494| [[ -n $1 && "$1" != - ]] && opt=(-i "$1") || opt=() # 495|-> [[ -n $lang ]] && opt+=(-s "${lang##*.}") # 496| style=esc # 497| [[ $colors -ge 256 ]] && style=esc256 Error: SHELLCHECK_WARNING: [#def87] /usr/bin/lesspipe.sh:501:4: warning[SC3010]: In POSIX sh, [[ ]] is undefined. # 499| code2color) # 500| opt=("$1") # 501|-> [[ -n "$reql" ]] && opt=(-l "$reql" "$1") ;; # 502| vimcolor) # 503| # lowercase file extension and remove dot Error: SHELLCHECK_WARNING: [#def88] /usr/bin/lesspipe.sh:501:28: warning[SC3030]: In POSIX sh, arrays are undefined. # 499| code2color) # 500| opt=("$1") # 501|-> [[ -n "$reql" ]] && opt=(-l "$reql" "$1") ;; # 502| vimcolor) # 503| # lowercase file extension and remove dot Error: SHELLCHECK_WARNING: [#def89] /usr/bin/lesspipe.sh:504:7: warning[SC3010]: In POSIX sh, [[ ]] is undefined. # 502| vimcolor) # 503| # lowercase file extension and remove dot # 504|-> if [[ -n "$reql" ]]; then # 505| reql=${reql##*/} reql=${reql##*.} # 506| reql=$(echo "$reql"|tr '[:upper:]' '[:lower:]') Error: SHELLCHECK_WARNING: [#def90] /usr/bin/lesspipe.sh:509:10: warning[SC3030]: In POSIX sh, arrays are undefined. # 507| list=$(vimcolor -L "$reql") # 508| echo ",$list,"|sed 's/ /,/g'|grep -q ",$reql," && # 509|-> opt=(-l "$reql" "$1") # 510| fi # 511| if [[ -z ${opt[*]} && -n "$lang" ]]; then Error: SHELLCHECK_WARNING: [#def91] /usr/bin/lesspipe.sh:511:7: warning[SC3010]: In POSIX sh, [[ ]] is undefined. # 509| opt=(-l "$reql" "$1") # 510| fi # 511|-> if [[ -z ${opt[*]} && -n "$lang" ]]; then # 512| list=$(vimcolor -L "$lang") # 513| echo ",$list,"|sed 's/ /,/g'|grep -q ",$lang," && Error: SHELLCHECK_WARNING: [#def92] /usr/bin/lesspipe.sh:511:13: warning[SC3054]: In POSIX sh, array references are undefined. # 509| opt=(-l "$reql" "$1") # 510| fi # 511|-> if [[ -z ${opt[*]} && -n "$lang" ]]; then # 512| list=$(vimcolor -L "$lang") # 513| echo ",$list,"|sed 's/ /,/g'|grep -q ",$lang," && Error: SHELLCHECK_WARNING: [#def93] /usr/bin/lesspipe.sh:514:10: warning[SC3030]: In POSIX sh, arrays are undefined. # 512| list=$(vimcolor -L "$lang") # 513| echo ",$list,"|sed 's/ /,/g'|grep -q ",$lang," && # 514|-> opt=(-l "$lang" "$1") # 515| fi # 516| [[ -z ${opt[*]} ]] && opt=("$1") Error: SHELLCHECK_WARNING: [#def94] /usr/bin/lesspipe.sh:516:4: warning[SC3010]: In POSIX sh, [[ ]] is undefined. # 514| opt=(-l "$lang" "$1") # 515| fi # 516|-> [[ -z ${opt[*]} ]] && opt=("$1") # 517| ;; # 518| Error: SHELLCHECK_WARNING: [#def95] /usr/bin/lesspipe.sh:516:10: warning[SC3054]: In POSIX sh, array references are undefined. # 514| opt=(-l "$lang" "$1") # 515| fi # 516|-> [[ -z ${opt[*]} ]] && opt=("$1") # 517| ;; # 518| Error: SHELLCHECK_WARNING: [#def96] /usr/bin/lesspipe.sh:516:30: warning[SC3030]: In POSIX sh, arrays are undefined. # 514| opt=(-l "$lang" "$1") # 515| fi # 516|-> [[ -z ${opt[*]} ]] && opt=("$1") # 517| ;; # 518| Error: SHELLCHECK_WARNING: [#def97] /usr/bin/lesspipe.sh:520:7: warning[SC3010]: In POSIX sh, [[ ]] is undefined. # 518| # 519| nvimpager) # 520|-> if [[ -n "$reql" ]]; then # 521| reql=${reql##*/} reql=${reql##*.} # 522| reql=$(echo "$reql"|tr '[:upper:]' '[:lower:]') Error: SHELLCHECK_WARNING: [#def98] /usr/bin/lesspipe.sh:525:10: warning[SC3030]: In POSIX sh, arrays are undefined. # 523| has_cmd vimcolor && list=$(vimcolor -L "$reql") # 524| echo ",$list,"|sed 's/ /,/g'|grep -q ",$reql," && # 525|-> opt=(-c -- -c "set filetype=$reql" "$1") # 526| fi # 527| if [[ -z ${opt[*]} && -n "$lang" ]]; then Error: SHELLCHECK_WARNING: [#def99] /usr/bin/lesspipe.sh:527:7: warning[SC3010]: In POSIX sh, [[ ]] is undefined. # 525| opt=(-c -- -c "set filetype=$reql" "$1") # 526| fi # 527|-> if [[ -z ${opt[*]} && -n "$lang" ]]; then # 528| has_cmd vimcolor && list=$(vimcolor -L "$lang") # 529| echo ",$list,"|sed 's/ /,/g'|grep -q ",$lang," && Error: SHELLCHECK_WARNING: [#def100] /usr/bin/lesspipe.sh:527:13: warning[SC3054]: In POSIX sh, array references are undefined. # 525| opt=(-c -- -c "set filetype=$reql" "$1") # 526| fi # 527|-> if [[ -z ${opt[*]} && -n "$lang" ]]; then # 528| has_cmd vimcolor && list=$(vimcolor -L "$lang") # 529| echo ",$list,"|sed 's/ /,/g'|grep -q ",$lang," && Error: SHELLCHECK_WARNING: [#def101] /usr/bin/lesspipe.sh:530:10: warning[SC3030]: In POSIX sh, arrays are undefined. # 528| has_cmd vimcolor && list=$(vimcolor -L "$lang") # 529| echo ",$list,"|sed 's/ /,/g'|grep -q ",$lang," && # 530|-> opt=(-c -- -c "set filetype=$lang" "$1") # 531| fi # 532| if [[ -z "$lang" ]]; then Error: SHELLCHECK_WARNING: [#def102] /usr/bin/lesspipe.sh:532:7: warning[SC3010]: In POSIX sh, [[ ]] is undefined. # 530| opt=(-c -- -c "set filetype=$lang" "$1") # 531| fi # 532|-> if [[ -z "$lang" ]]; then # 533| [[ -n "$3" ]] && # 534| reql=${3##*/} reql=${reql##*.} Error: SHELLCHECK_WARNING: [#def103] /usr/bin/lesspipe.sh:533:5: warning[SC3010]: In POSIX sh, [[ ]] is undefined. # 531| fi # 532| if [[ -z "$lang" ]]; then # 533|-> [[ -n "$3" ]] && # 534| reql=${3##*/} reql=${reql##*.} # 535| opt=(-c -- -c "set filetype=$reql" "$1") Error: SHELLCHECK_WARNING: [#def104] /usr/bin/lesspipe.sh:535:10: warning[SC3030]: In POSIX sh, arrays are undefined. # 533| [[ -n "$3" ]] && # 534| reql=${3##*/} reql=${reql##*.} # 535|-> opt=(-c -- -c "set filetype=$reql" "$1") # 536| [[ -z "$3" && -n "$2" ]] && # 537| opt=(-c -- -c "set filetype=$2" "$1") Error: SHELLCHECK_WARNING: [#def105] /usr/bin/lesspipe.sh:536:5: warning[SC3010]: In POSIX sh, [[ ]] is undefined. # 534| reql=${3##*/} reql=${reql##*.} # 535| opt=(-c -- -c "set filetype=$reql" "$1") # 536|-> [[ -z "$3" && -n "$2" ]] && # 537| opt=(-c -- -c "set filetype=$2" "$1") # 538| fi Error: SHELLCHECK_WARNING: [#def106] /usr/bin/lesspipe.sh:537:10: warning[SC3030]: In POSIX sh, arrays are undefined. # 535| opt=(-c -- -c "set filetype=$reql" "$1") # 536| [[ -z "$3" && -n "$2" ]] && # 537|-> opt=(-c -- -c "set filetype=$2" "$1") # 538| fi # 539| [[ -z ${opt[*]} ]] && opt=(-c "$1") Error: SHELLCHECK_WARNING: [#def107] /usr/bin/lesspipe.sh:539:4: warning[SC3010]: In POSIX sh, [[ ]] is undefined. # 537| opt=(-c -- -c "set filetype=$2" "$1") # 538| fi # 539|-> [[ -z ${opt[*]} ]] && opt=(-c "$1") # 540| ;; # 541| *) Error: SHELLCHECK_WARNING: [#def108] /usr/bin/lesspipe.sh:539:10: warning[SC3054]: In POSIX sh, array references are undefined. # 537| opt=(-c -- -c "set filetype=$2" "$1") # 538| fi # 539|-> [[ -z ${opt[*]} ]] && opt=(-c "$1") # 540| ;; # 541| *) Error: SHELLCHECK_WARNING: [#def109] /usr/bin/lesspipe.sh:539:30: warning[SC3030]: In POSIX sh, arrays are undefined. # 537| opt=(-c -- -c "set filetype=$2" "$1") # 538| fi # 539|-> [[ -z ${opt[*]} ]] && opt=(-c "$1") # 540| ;; # 541| *) Error: SHELLCHECK_WARNING: [#def110] /usr/bin/lesspipe.sh:548:2: warning[SC3010]: In POSIX sh, [[ ]] is undefined. # 546| # 547| isfinal () { # 548|-> [[ $x == plain && -n $fext ]] && x="$fext" # 549| if [[ "$2" == *$sep ]]; then # 550| if [[ "$2" == "$sep" && "$x" == html ]]; then Error: SHELLCHECK_WARNING: [#def111] /usr/bin/lesspipe.sh:548:8: warning[SC3014]: In POSIX sh, == in place of = is undefined. # 546| # 547| isfinal () { # 548|-> [[ $x == plain && -n $fext ]] && x="$fext" # 549| if [[ "$2" == *$sep ]]; then # 550| if [[ "$2" == "$sep" && "$x" == html ]]; then Error: SHELLCHECK_WARNING: [#def112] /usr/bin/lesspipe.sh:572:23: warning[SC3030]: In POSIX sh, arrays are undefined. # 570| xml) # 571| [[ -z $file2 ]] && # 572|-> has_cmd xmr && cmd=(isxmq "$1" xml) ;; # 573| html) # 574| [[ -z $file2 ]] && has_htmlprog && cmd=(ishtml "$1") ;; Error: SHELLCHECK_WARNING: [#def113] /usr/bin/lesspipe.sh:658:4: warning[SC3010]: In POSIX sh, [[ ]] is undefined. # 656| log) # 657| #[[ $COLOR == *always* ]] && has_cmd tspin && cmd=(nodash tspin -f "$1") ;; # 658|-> [[ $COLOR == *always* ]] && has_cmd tspin && colorizer=(nodash tspin -f "$1") ;; # 659| csv) # 660| msg "type -S<ENTER> for better display of very wide tables" Error: SHELLCHECK_WARNING: [#def114] /usr/bin/lesspipe.sh:658:14: warning[SC3014]: In POSIX sh, == in place of = is undefined. # 656| log) # 657| #[[ $COLOR == *always* ]] && has_cmd tspin && cmd=(nodash tspin -f "$1") ;; # 658|-> [[ $COLOR == *always* ]] && has_cmd tspin && colorizer=(nodash tspin -f "$1") ;; # 659| csv) # 660| msg "type -S<ENTER> for better display of very wide tables" Error: SHELLCHECK_WARNING: [#def115] /usr/bin/lesspipe.sh:658:59: warning[SC3030]: In POSIX sh, arrays are undefined. # 656| log) # 657| #[[ $COLOR == *always* ]] && has_cmd tspin && cmd=(nodash tspin -f "$1") ;; # 658|-> [[ $COLOR == *always* ]] && has_cmd tspin && colorizer=(nodash tspin -f "$1") ;; # 659| csv) # 660| msg "type -S<ENTER> for better display of very wide tables" Error: SHELLCHECK_WARNING: [#def116] /usr/bin/lesspipe.sh:931:32: warning[SC3048]: In POSIX sh, prefixing signal names with 'SIG' is undefined. # 929| [[ -d "$tmpdir" ]] || mkdir "$tmpdir" # 930| [[ -d "$tmpdir" ]] || exit 1 # 931|-> trap 'rm -rf "$tmpdir";exit 1' SIGINT # 932| trap 'rm -rf "$tmpdir"' EXIT # 933| trap - PIPE Error: SHELLCHECK_WARNING: [#def117] /usr/bin/lesspipe.sh:940:5: warning[SC3010]: In POSIX sh, [[ ]] is undefined. # 938| [[ $LESSOPEN == *\|\|* ]] && retval=1 || retval=0 # 939| if [[ $LESSOPEN == *\|-* && $1 == - ]]; then # 940|-> if [[ "$fext" == log && $COLOR == *always* ]] && has_cmd tspin; then # 941| tspin # 942| else Error: SHELLCHECK_WARNING: [#def118] /usr/bin/lesspipe.sh:940:16: warning[SC3014]: In POSIX sh, == in place of = is undefined. # 938| [[ $LESSOPEN == *\|\|* ]] && retval=1 || retval=0 # 939| if [[ $LESSOPEN == *\|-* && $1 == - ]]; then # 940|-> if [[ "$fext" == log && $COLOR == *always* ]] && has_cmd tspin; then # 941| tspin # 942| else Error: SHELLCHECK_WARNING: [#def119] /usr/bin/lesspipe.sh:940:33: warning[SC3014]: In POSIX sh, == in place of = is undefined. # 938| [[ $LESSOPEN == *\|\|* ]] && retval=1 || retval=0 # 939| if [[ $LESSOPEN == *\|-* && $1 == - ]]; then # 940|-> if [[ "$fext" == log && $COLOR == *always* ]] && has_cmd tspin; then # 941| tspin # 942| else Error: SHELLCHECK_WARNING: [#def120] /usr/libexec/less/lesscomplete:378:32: warning[SC3048]: In POSIX sh, prefixing signal names with 'SIG' is undefined. # 376| [[ -d "$tmpdir" ]] || mkdir "$tmpdir" # 377| [[ -d "$tmpdir" ]] || exit 1 # 378|-> trap 'rm -rf "$tmpdir";exit 1' SIGINT # 379| trap 'rm -rf "$tmpdir"' EXIT # 380| trap - PIPE
| 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-691-2.fc44 |
| diffbase-store-results-to | /tmp/tmpjro8tbti/less-691-2.fc44.tar.xz |
| diffbase-time-created | 2026-04-28 17:16:51 |
| diffbase-time-finished | 2026-04-28 17:18:36 |
| diffbase-tool | csmock |
| diffbase-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' |
| 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-692-6.fc45 |
| store-results-to | /tmp/tmp8zxpnivb/less-692-6.fc45.tar.xz |
| time-created | 2026-04-28 17:18:53 |
| time-finished | 2026-04-28 17:20:11 |
| title | Newly introduced findings |
| tool | csmock |
| 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' |
| tool-version | csmock-3.8.5-1.el9 |