Task #112467 - added.err
back to task #112467download
Error: SHELLCHECK_WARNING:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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:
/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