In /usr/bin/dvihp line 7:
: ${DVILJ=dvilj4}       # the dvilj variant to run
  ^-------------^ SC2223: This default assignment may cause DoS due to globbing. Quote it.


In /usr/bin/dvihp line 8:
: ${SPOOL=lpr}          # used to print an LJ file
  ^----------^ SC2223: This default assignment may cause DoS due to globbing. Quote it.


In /usr/bin/dvihp line 10:
tmpdir=`mktemp -d` \
       ^---------^ SC2006: Use $(...) notation instead of legacy backticked `...`.

Did you mean: 
tmpdir=$(mktemp -d) \


In /usr/bin/dvihp line 16:
' 0 1 2 3 6 7 13 15
            ^-- SC2172: Trapping signals by number is not well defined. Prefer signal names.
              ^-- SC2172: Trapping signals by number is not well defined. Prefer signal names.


In /usr/bin/dvihp line 18:
rcs_revision='$Revision: 1.3 $'
             ^----------------^ SC2016: Expressions don't expand in single quotes, use double quotes for that.


In /usr/bin/dvihp line 19:
version=`set - $rcs_revision; echo $2`
        ^----------------------------^ SC2006: Use $(...) notation instead of legacy backticked `...`.
               ^-----------^ SC2086: Double quote to prevent globbing and word splitting.
                                   ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
version=$(set - "$rcs_revision"; echo "$2")


In /usr/bin/dvihp line 21:
usage="Usage: `basename $0` [OPTIONS] [DVIFILE[.dvi]].
              ^-----------^ SC2006: Use $(...) notation instead of legacy backticked `...`.
                        ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
usage="Usage: $(basename "$0") [OPTIONS] [DVIFILE[.dvi]].


In /usr/bin/dvihp line 48:
  echo "`basename $0`: Missing argument(s)." >&2
        ^-----------^ SC2006: Use $(...) notation instead of legacy backticked `...`.
                  ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
  echo "$(basename "$0"): Missing argument(s)." >&2


In /usr/bin/dvihp line 49:
  echo "Try \``basename $0` --help' for more information." >&2
              ^-----------^ SC2006: Use $(...) notation instead of legacy backticked `...`.
                        ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
  echo "Try \`$(basename "$0") --help' for more information." >&2


In /usr/bin/dvihp line 61:
      echo "`basename $0` (Dviljk 2.6) $version"
            ^-----------^ SC2006: Use $(...) notation instead of legacy backticked `...`.
                      ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
      echo "$(basename "$0") (Dviljk 2.6) $version"


In /usr/bin/dvihp line 67:
    -d*) opt="$opt `echo $1 | sed s/d/-D/`";;
                   ^---------------------^ SC2006: Use $(...) notation instead of legacy backticked `...`.
                         ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
    -d*) opt="$opt $(echo "$1" | sed s/d/-D/)";;


In /usr/bin/dvihp line 71:
    -l*) opt="$opt `echo $1 | sed s/l/t/`";;
                   ^--------------------^ SC2006: Use $(...) notation instead of legacy backticked `...`.
                         ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
    -l*) opt="$opt $(echo "$1" | sed s/l/t/)";;


In /usr/bin/dvihp line 74:
    -n*) opt="$opt `echo $1 | sed s/^-n/-p/`";;
                   ^-----------------------^ SC2006: Use $(...) notation instead of legacy backticked `...`.
                         ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
    -n*) opt="$opt $(echo "$1" | sed s/^-n/-p/)";;


In /usr/bin/dvihp line 77:
           output=`basename $infile .dvi`.lj
                  ^---------------------^ SC2006: Use $(...) notation instead of legacy backticked `...`.
                            ^-----^ SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
           output=$(basename "$infile" .dvi).lj


In /usr/bin/dvihp line 79:
    -o*) output="`echo $1 | sed 's/^-o//'`";;
                 ^-----------------------^ SC2006: Use $(...) notation instead of legacy backticked `...`.
                       ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
    -o*) output="$(echo "$1" | sed 's/^-o//')";;


In /usr/bin/dvihp line 80:
    -O)  shift; x=`echo $1 | sed 's/,.*//'`     # -O => -x, -y (page offsets)
                  ^-----------------------^ SC2006: Use $(...) notation instead of legacy backticked `...`.
                        ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
    -O)  shift; x=$(echo "$1" | sed 's/,.*//')     # -O => -x, -y (page offsets)


In /usr/bin/dvihp line 81:
         y=`echo $1 | sed 's/.*,//'`;  opt="$opt -x$x -y$y";;
           ^-----------------------^ SC2006: Use $(...) notation instead of legacy backticked `...`.
                 ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
         y=$(echo "$1" | sed 's/.*,//');  opt="$opt -x$x -y$y";;


In /usr/bin/dvihp line 82:
    -O*) temp="`echo $1 | sed 's/^-O//'`"
               ^-----------------------^ SC2006: Use $(...) notation instead of legacy backticked `...`.
                     ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
    -O*) temp="$(echo "$1" | sed 's/^-O//')"


In /usr/bin/dvihp line 83:
         x=`echo $temp | sed 's/,.*//'`
           ^--------------------------^ SC2006: Use $(...) notation instead of legacy backticked `...`.
                 ^---^ SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
         x=$(echo "$temp" | sed 's/,.*//')


In /usr/bin/dvihp line 84:
         y=`echo $temp | sed 's/.*,//'`;
           ^--------------------------^ SC2006: Use $(...) notation instead of legacy backticked `...`.
                 ^---^ SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
         y=$(echo "$temp" | sed 's/.*,//');


In /usr/bin/dvihp line 87:
    -p*) opt="$opt `echo $1 | sed s/p/f/`";;
                   ^--------------------^ SC2006: Use $(...) notation instead of legacy backticked `...`.
                         ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
    -p*) opt="$opt $(echo "$1" | sed s/p/f/)";;


In /usr/bin/dvihp line 92:
    -x*) opt="$opt `echo $1 | sed s/x/m/`";;
                   ^--------------------^ SC2006: Use $(...) notation instead of legacy backticked `...`.
                         ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
    -x*) opt="$opt $(echo "$1" | sed s/x/m/)";;


In /usr/bin/dvihp line 107:
if dvicopy $infile >"$vfless_dvi"; then :; else
           ^-----^ SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
if dvicopy "$infile" >"$vfless_dvi"; then :; else


In /usr/bin/dvihp line 125:
if eval $cmd; then :; else
        ^--^ SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
if eval "$cmd"; then :; else

For more information:
  https://www.shellcheck.net/wiki/SC2172 -- Trapping signals by number is not...
  https://www.shellcheck.net/wiki/SC2016 -- Expressions don't expand in singl...
  https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ...