In /usr/bin/ps2pdfwr line 7: gs="`dirname \"$0\"`/$GS_EXECUTABLE" ^--------------^ SC2006: Use $(...) notation instead of legacy backticked `...`. Did you mean: gs="$(dirname \"$0\")/$GS_EXECUTABLE" In /usr/bin/ps2pdfwr line 23: if [ $# -lt 1 -o $# -gt 2 ]; then ^-- SC2166: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined. In /usr/bin/ps2pdfwr line 24: echo "Usage: `basename \"$0\"` [options...] (input.[e]ps|-) [output.pdf|-]" 1>&2 ^---------------^ SC2006: Use $(...) notation instead of legacy backticked `...`. Did you mean: echo "Usage: $(basename \"$0\") [options...] (input.[e]ps|-) [output.pdf|-]" 1>&2 In /usr/bin/ps2pdfwr line 34: *.eps) base=`basename "${infile}" .eps`; outfile="${base}.pdf" ;; ^-------------------------^ SC2006: Use $(...) notation instead of legacy backticked `...`. Did you mean: *.eps) base=$(basename "${infile}" .eps); outfile="${base}.pdf" ;; In /usr/bin/ps2pdfwr line 35: *.ps) base=`basename "${infile}" .ps`; outfile="${base}.pdf" ;; ^------------------------^ SC2006: Use $(...) notation instead of legacy backticked `...`. Did you mean: *.ps) base=$(basename "${infile}" .ps); outfile="${base}.pdf" ;; In /usr/bin/ps2pdfwr line 36: *) base=`basename "${infile}"`; outfile="${base}.pdf" ;; ^--------------------^ SC2006: Use $(...) notation instead of legacy backticked `...`. Did you mean: *) base=$(basename "${infile}"); outfile="${base}.pdf" ;; In /usr/bin/ps2pdfwr line 44: exec "$GS_EXECUTABLE" $OPTIONS -q -P- -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sstdout=%stderr "-sOutputFile=$outfile" $OPTIONS "$infile" ^------^ SC2086: Double quote to prevent globbing and word splitting. ^------^ SC2086: Double quote to prevent globbing and word splitting. Did you mean: exec "$GS_EXECUTABLE" "$OPTIONS" -q -P- -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sstdout=%stderr "-sOutputFile=$outfile" "$OPTIONS" "$infile" For more information: https://www.shellcheck.net/wiki/SC2166 -- Prefer [ p ] || [ q ] as [ p -o q... https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ... https://www.shellcheck.net/wiki/SC2006 -- Use $(...) notation instead of le...