In /usr/bin/yelp-build line 26: yelp_icon_dir='/usr/share/yelp-xsl/icons/hicolor/24x24/status' ^-----------^ SC2034: yelp_icon_dir appears unused. Verify use (or export if used externally). In /usr/bin/yelp-build line 35: mkdir_p `dirname "$1"` ^------------^ SC2046: Quote this to prevent word splitting. ^------------^ SC2006: Use $(...) notation instead of legacy backticked `...`. Did you mean: mkdir_p $(dirname "$1") In /usr/bin/yelp-build line 158: fdir=$( (cd $(dirname "$1") && pwd) ) ^-------------^ SC2046: Quote this to prevent word splitting. In /usr/bin/yelp-build line 174: if [ $(basename "$dir") != "__pintail__" ]; then ^----------------^ SC2046: Quote this to prevent word splitting. In /usr/bin/yelp-build line 229: if [ "$#" = "0" -o "x$1" = "x--help" -o "x$1" = "x-h" ]; then ^-- SC2166: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined. ^-- SC2166: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined. In /usr/bin/yelp-build line 241: echo '<xsl:param name="html.css.root" select="$yelp.internal.datadir"/>' ^-- SC2016: Expressions don't expand in single quotes, use double quotes for that. In /usr/bin/yelp-build line 242: echo '<xsl:param name="html.js.root" select="$yelp.internal.datadir"/>' ^-- SC2016: Expressions don't expand in single quotes, use double quotes for that. In /usr/bin/yelp-build line 247: echo '<xsl:include href="file://'`echo "$html_internal_xsl" | urlencode`'"/>' ^-- SC2046: Quote this to prevent word splitting. ^-- SC2006: Use $(...) notation instead of legacy backticked `...`. Did you mean: echo '<xsl:include href="file://'$(echo "$html_internal_xsl" | urlencode)'"/>' In /usr/bin/yelp-build line 250: echo '<xsl:include href="file://'`echo "$html_custom" | urlencode`'"/>' ^-- SC2046: Quote this to prevent word splitting. ^-- SC2006: Use $(...) notation instead of legacy backticked `...`. Did you mean: echo '<xsl:include href="file://'$(echo "$html_custom" | urlencode)'"/>' In /usr/bin/yelp-build line 256: echo ' <xsl:when test="$node/@xml:lang != '"''"'">' ^-- SC2016: Expressions don't expand in single quotes, use double quotes for that. In /usr/bin/yelp-build line 257: echo ' <xsl:value-of select="$node/@xml:lang"/>' ^-- SC2016: Expressions don't expand in single quotes, use double quotes for that. In /usr/bin/yelp-build line 259: echo ' <xsl:when test="$node/@lang != '"''"'">' ^-- SC2016: Expressions don't expand in single quotes, use double quotes for that. In /usr/bin/yelp-build line 260: echo ' <xsl:value-of select="$node/@lang"/>' ^-- SC2016: Expressions don't expand in single quotes, use double quotes for that. In /usr/bin/yelp-build line 267: echo ' <exsl:document href="{$yelp.internal.datadir}{$yelp.locale}.css" method="text">' ^-- SC2016: Expressions don't expand in single quotes, use double quotes for that. In /usr/bin/yelp-build line 269: echo ' <xsl:with-param name="node" select="$node"/>' ^-- SC2016: Expressions don't expand in single quotes, use double quotes for that. In /usr/bin/yelp-build line 272: echo ' <xsl:with-param name="lang" select="$yelp.locale"/>' ^-- SC2016: Expressions don't expand in single quotes, use double quotes for that. In /usr/bin/yelp-build line 277: echo ' <link rel="stylesheet" type="text/css" href="{$html.css.root}{$yelp.locale}.css"/>' ^-- SC2016: Expressions don't expand in single quotes, use double quotes for that. In /usr/bin/yelp-build line 281: echo ' <exsl:document href="{$yelp.internal.datadir}yelp.js" method="text">' ^-- SC2016: Expressions don't expand in single quotes, use double quotes for that. In /usr/bin/yelp-build line 283: echo ' <xsl:with-param name="node" select="$node"/>' ^-- SC2016: Expressions don't expand in single quotes, use double quotes for that. In /usr/bin/yelp-build line 286: echo ' <script type="text/javascript" src="{$html.js.root}yelp.js"/>' ^-- SC2016: Expressions don't expand in single quotes, use double quotes for that. In /usr/bin/yelp-build line 291: xmldir=`dirname "$xml"` ^--------------^ SC2006: Use $(...) notation instead of legacy backticked `...`. Did you mean: xmldir=$(dirname "$xml") In /usr/bin/yelp-build line 292: xmldir=`(cd "$xmldir" && pwd)` ^---------------------^ SC2006: Use $(...) notation instead of legacy backticked `...`. Did you mean: xmldir=$((cd "$xmldir" && pwd)) In /usr/bin/yelp-build line 302: xsl='file://'`echo "$xsl_db2xhtml" | urlencode` ^-- SC2006: Use $(...) notation instead of legacy backticked `...`. Did you mean: xsl='file://'$(echo "$xsl_db2xhtml" | urlencode) In /usr/bin/yelp-build line 304: xsl='file://'`echo "$xsl_db2html" | urlencode` ^-- SC2006: Use $(...) notation instead of legacy backticked `...`. Did you mean: xsl='file://'$(echo "$xsl_db2html" | urlencode) In /usr/bin/yelp-build line 327: ) | xsltproc --path "$html_paths" --xinclude - "$xml" | while read media; do ^--^ SC2162: read without -r will mangle backslashes. In /usr/bin/yelp-build line 328: mfile=`echo "$media" | urldecode` ^-------------------------^ SC2006: Use $(...) notation instead of legacy backticked `...`. Did you mean: mfile=$(echo "$media" | urldecode) In /usr/bin/yelp-build line 331: mkdir_p `dirname "$moutput"` ^------------------^ SC2046: Quote this to prevent word splitting. ^------------------^ SC2006: Use $(...) notation instead of legacy backticked `...`. Did you mean: mkdir_p $(dirname "$moutput") In /usr/bin/yelp-build line 332: if [ ! -f "$minput" -a "x$html_paths" != "x" ]; then ^-- SC2166: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined. In /usr/bin/yelp-build line 334: if [ "x$minput_rel" != "x$minput_src" ]; then ^---------^ SC2154: minput_src is referenced but not assigned. In /usr/bin/yelp-build line 343: if [ -f "$minput" -o "x$html_ignore_media" != "x1" ]; then ^-- SC2166: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined. In /usr/bin/yelp-build line 355: html_cache_file=`(cd $(dirname "$html_cache_file") && pwd)`/`basename "$html_cache_file"` ^-- SC2006: Use $(...) notation instead of legacy backticked `...`. ^---------------------------^ SC2046: Quote this to prevent word splitting. ^---------------------------^ SC2006: Use $(...) notation instead of legacy backticked `...`. Did you mean: html_cache_file=$((cd $(dirname "$html_cache_file") && pwd))/$(basename "$html_cache_file") In /usr/bin/yelp-build line 358: html_cache_file=`mktemp "${TMPDIR:-/tmp}"/yelp-XXXXXXXX` ^-- SC2006: Use $(...) notation instead of legacy backticked `...`. Did you mean: html_cache_file=$(mktemp "${TMPDIR:-/tmp}"/yelp-XXXXXXXX) In /usr/bin/yelp-build line 361: html_tmp_infile=`mktemp "${TMPDIR:-/tmp}"/yelp-XXXXXXXX` ^-- SC2006: Use $(...) notation instead of legacy backticked `...`. Did you mean: html_tmp_infile=$(mktemp "${TMPDIR:-/tmp}"/yelp-XXXXXXXX) In /usr/bin/yelp-build line 375: xsl='file://'`echo "$xsl_mal2xhtml" | urlencode` ^-- SC2006: Use $(...) notation instead of legacy backticked `...`. Did you mean: xsl='file://'$(echo "$xsl_mal2xhtml" | urlencode) In /usr/bin/yelp-build line 377: xsl='file://'`echo "$xsl_mal2html" | urlencode` ^-- SC2006: Use $(...) notation instead of legacy backticked `...`. Did you mean: xsl='file://'$(echo "$xsl_mal2html" | urlencode) In /usr/bin/yelp-build line 383: html_cache_url='file://'`echo "$html_cache_file" | urlencode` ^-- SC2006: Use $(...) notation instead of legacy backticked `...`. Did you mean: html_cache_url='file://'$(echo "$html_cache_file" | urlencode) In /usr/bin/yelp-build line 392: echo ' <xsl:with-param name="href" select="substring-after($href, '\''file://'\'')"/>' ^-- SC2016: Expressions don't expand in single quotes, use double quotes for that. In /usr/bin/yelp-build line 399: ) | (cd "$html_out" && xsltproc $html_profile \ ^-----------^ SC2086: Double quote to prevent globbing and word splitting. Did you mean: ) | (cd "$html_out" && xsltproc "$html_profile" \ In /usr/bin/yelp-build line 402: while read line; do ^--^ SC2162: read without -r will mangle backslashes. In /usr/bin/yelp-build line 406: if [ ! -f "$line_src" -a "x$html_paths" != "x" ]; then ^-- SC2166: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined. In /usr/bin/yelp-build line 417: line_dest=`echo "$line_dest" | urldecode` ^-----------------------------^ SC2006: Use $(...) notation instead of legacy backticked `...`. Did you mean: line_dest=$(echo "$line_dest" | urldecode) In /usr/bin/yelp-build line 419: line_dir=`dirname "$line_dest"` ^--------------------^ SC2006: Use $(...) notation instead of legacy backticked `...`. Did you mean: line_dir=$(dirname "$line_dest") In /usr/bin/yelp-build line 421: if [ -f "$line_src" -o "x$html_ignore_media" != "x1" ]; then ^-- SC2166: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined. In /usr/bin/yelp-build line 477: html_out=`(cd "$html_out" && pwd)` ^-----------------------^ SC2006: Use $(...) notation instead of legacy backticked `...`. Did you mean: html_out=$((cd "$html_out" && pwd)) In /usr/bin/yelp-build line 479: html_custom_dir=`dirname "$html_custom"` ^----------------------^ SC2006: Use $(...) notation instead of legacy backticked `...`. Did you mean: html_custom_dir=$(dirname "$html_custom") In /usr/bin/yelp-build line 480: html_custom_dir=`(cd "$html_custom_dir" && pwd)` ^-- SC2006: Use $(...) notation instead of legacy backticked `...`. Did you mean: html_custom_dir=$((cd "$html_custom_dir" && pwd)) In /usr/bin/yelp-build line 481: html_custom="$html_custom_dir"/`basename "$html_custom"` ^-----------------------^ SC2006: Use $(...) notation instead of legacy backticked `...`. Did you mean: html_custom="$html_custom_dir"/$(basename "$html_custom") In /usr/bin/yelp-build line 483: if [ "$#" = "0" -o "x$1" = "x--help" -o "x$1" = "x-h" ]; then ^-- SC2166: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined. ^-- SC2166: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined. In /usr/bin/yelp-build line 487: ext=`echo "$1" | sed -e 's/.*\.//'` ^-----------------------------^ SC2006: Use $(...) notation instead of legacy backticked `...`. Did you mean: ext=$(echo "$1" | sed -e 's/.*\.//') In /usr/bin/yelp-build line 488: if [ "x$ext" = "xxml" -o "x$ext" = "xdocbook" ]; then ^-- SC2166: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined. In /usr/bin/yelp-build line 527: if [ "$#" = "0" -o "x$1" = "x--help" -o "x$1" = "x-h" ]; then ^-- SC2166: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined. ^-- SC2166: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined. In /usr/bin/yelp-build line 532: epub_cache_file=`(cd $(dirname "$epub_cache_file") && pwd)`/`basename "$epub_cache_file"` ^-- SC2006: Use $(...) notation instead of legacy backticked `...`. ^---------------------------^ SC2046: Quote this to prevent word splitting. ^---------------------------^ SC2006: Use $(...) notation instead of legacy backticked `...`. Did you mean: epub_cache_file=$((cd $(dirname "$epub_cache_file") && pwd))/$(basename "$epub_cache_file") In /usr/bin/yelp-build line 535: epub_cache_file=`mktemp "${TMPDIR:-/tmp}"/yelp-XXXXXXXX` ^-- SC2006: Use $(...) notation instead of legacy backticked `...`. Did you mean: epub_cache_file=$(mktemp "${TMPDIR:-/tmp}"/yelp-XXXXXXXX) In /usr/bin/yelp-build line 539: epub_data_out=`mktemp -d "${TMPDIR:-/tmp}"/yelp-XXXXXXXX` ^-- SC2006: Use $(...) notation instead of legacy backticked `...`. Did you mean: epub_data_out=$(mktemp -d "${TMPDIR:-/tmp}"/yelp-XXXXXXXX) In /usr/bin/yelp-build line 547: epub_id=`uuidgen` ^-------^ SC2006: Use $(...) notation instead of legacy backticked `...`. Did you mean: epub_id=$(uuidgen) In /usr/bin/yelp-build line 548: epub_data=`(cd "$html_out" && ls yelp/*.*)` ^-- SC2006: Use $(...) notation instead of legacy backticked `...`. Did you mean: epub_data=$((cd "$html_out" && ls yelp/*.*)) In /usr/bin/yelp-build line 574: epub_out=`pwd`/index.epub ^---^ SC2006: Use $(...) notation instead of legacy backticked `...`. Did you mean: epub_out=$(pwd)/index.epub In /usr/bin/yelp-build line 576: epub_out=`(cd $(dirname "$epub_out") && pwd)`/`basename "$epub_out"` ^-- SC2006: Use $(...) notation instead of legacy backticked `...`. ^--------------------^ SC2046: Quote this to prevent word splitting. ^--------------------^ SC2006: Use $(...) notation instead of legacy backticked `...`. Did you mean: epub_out=$((cd $(dirname "$epub_out") && pwd))/$(basename "$epub_out") For more information: https://www.shellcheck.net/wiki/SC2034 -- yelp_icon_dir appears unused. Ver... https://www.shellcheck.net/wiki/SC2046 -- Quote this to prevent word splitt... https://www.shellcheck.net/wiki/SC2154 -- minput_src is referenced but not ...