In /usr/bin/net-snmp-config line 20:
      if test -f $build_dir/net-snmp-config.in ; then
                 ^--------^ SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
      if test -f "$build_dir"/net-snmp-config.in ; then


In /usr/bin/net-snmp-config line 24:
      if test ! -d $build_dir/snmplib/.libs ; then
                   ^--------^ SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
      if test ! -d "$build_dir"/snmplib/.libs ; then


In /usr/bin/net-snmp-config line 34:
    [ $# -gt $1 ] || return
             ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
    [ $# -gt "$1" ] || return


In /usr/bin/net-snmp-config line 35:
    shift $1
          ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
    shift "$1"


In /usr/bin/net-snmp-config line 36:
    echo $1
         ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
    echo "$1"


In /usr/bin/net-snmp-config line 89:
    -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
                 ^-- SC2006: Use $(...) notation instead of legacy backticked `...`.

Did you mean: 
    -*=*) optarg=$(echo "$1" | sed 's/[-_a-zA-Z0-9]*=//') ;;


In /usr/bin/net-snmp-config line 115:
      echo "indent -orig -nbc -bap -nut -nfca `(cd $NSC_INCDIR/net-snmp; perl -n -e 'print "-T $1 " if (/}\s*(netsnmp_\w+)\s*;/);' */*.h)`"
                                              ^-- SC2006: Use $(...) notation instead of legacy backticked `...`.
                                                ^---------------------^ SC2164: Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
                                                                                                                                   ^-- SC2035: Use ./*glob* or -- *glob* so names with dashes won't become options.

Did you mean: 
      echo "indent -orig -nbc -bap -nut -nfca $((cd $NSC_INCDIR/net-snmp || exit; perl -n -e 'print "-T $1 " if (/}\s*(netsnmp_\w+)\s*;/);' */*.h))"


In /usr/bin/net-snmp-config line 127:
      echo $HOME/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
           ^---^ SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
      echo "$HOME"/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf


In /usr/bin/net-snmp-config line 162:
      echo $NSC_LDFLAGS
           ^----------^ SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
      echo "$NSC_LDFLAGS"


In /usr/bin/net-snmp-config line 167:
      check_build_dir $build_dir
                      ^--------^ SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
      check_build_dir "$build_dir"


In /usr/bin/net-snmp-config line 171:
      echo $result
           ^-----^ SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
      echo "$result"


In /usr/bin/net-snmp-config line 176:
      check_build_dir $build_dir
                      ^--------^ SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
      check_build_dir "$build_dir"


In /usr/bin/net-snmp-config line 180:
      echo $result
           ^-----^ SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
      echo "$result"


In /usr/bin/net-snmp-config line 185:
      check_build_dir $build_dir
                      ^--------^ SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
      check_build_dir "$build_dir"


In /usr/bin/net-snmp-config line 191:
      echo $result
           ^-----^ SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
      echo "$result"


In /usr/bin/net-snmp-config line 199:
      echo $NSC_LDFLAGS $NSC_LIBDIR $NSC_SNMPLIBS $NSC_LIBS
           ^----------^ SC2086: Double quote to prevent globbing and word splitting.
                                    ^-----------^ SC2086: Double quote to prevent globbing and word splitting.
                                                  ^-------^ SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
      echo "$NSC_LDFLAGS" $NSC_LIBDIR "$NSC_SNMPLIBS" "$NSC_LIBS"


In /usr/bin/net-snmp-config line 205:
      echo $NSC_LDFLAGS $NSC_LNETSNMPLIBS $NSC_LIBS -Wl,-E
           ^----------^ SC2086: Double quote to prevent globbing and word splitting.
                        ^---------------^ SC2086: Double quote to prevent globbing and word splitting.
                                          ^-------^ SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
      echo "$NSC_LDFLAGS" "$NSC_LNETSNMPLIBS" "$NSC_LIBS" -Wl,-E


In /usr/bin/net-snmp-config line 209:
      echo $NSC_BASE_AGENT_LIBS
           ^------------------^ SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
      echo "$NSC_BASE_AGENT_LIBS"


In /usr/bin/net-snmp-config line 212:
      echo $NSC_BASE_SUBAGENT_LIBS
           ^---------------------^ SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
      echo "$NSC_BASE_SUBAGENT_LIBS"


In /usr/bin/net-snmp-config line 216:
      echo $NSC_LDFLAGS $NSC_LIBDIR $NSC_AGENTLIBS $NSC_LIBS
           ^----------^ SC2086: Double quote to prevent globbing and word splitting.
                                    ^------------^ SC2086: Double quote to prevent globbing and word splitting.
                                                   ^-------^ SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
      echo "$NSC_LDFLAGS" $NSC_LIBDIR "$NSC_AGENTLIBS" "$NSC_LIBS"


In /usr/bin/net-snmp-config line 219:
      echo $NSC_LIBDIR $NSC_BASE_AGENT_LIBS
                       ^------------------^ SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
      echo $NSC_LIBDIR "$NSC_BASE_AGENT_LIBS"


In /usr/bin/net-snmp-config line 222:
      echo $NSC_LDFLAGS $NSC_LMIBLIBS $NSC_LAGENTLIBS $NSC_LNETSNMPLIBS $NSC_LIBS
           ^----------^ SC2086: Double quote to prevent globbing and word splitting.
                        ^-----------^ SC2086: Double quote to prevent globbing and word splitting.
                                      ^-------------^ SC2086: Double quote to prevent globbing and word splitting.
                                                      ^---------------^ SC2086: Double quote to prevent globbing and word splitting.
                                                                        ^-------^ SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
      echo "$NSC_LDFLAGS" "$NSC_LMIBLIBS" "$NSC_LAGENTLIBS" "$NSC_LNETSNMPLIBS" "$NSC_LIBS"


In /usr/bin/net-snmp-config line 232:
      echo $NSC_PREFIX
           ^---------^ SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
      echo "$NSC_PREFIX"


In /usr/bin/net-snmp-config line 235:
      echo $NSC_EXEC_PREFIX
           ^--------------^ SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
      echo "$NSC_EXEC_PREFIX"


In /usr/bin/net-snmp-config line 241:
      net-snmp-create-v3-user $*
                              ^-- SC2048: Use "$@" (with quotes) to prevent whitespace problems.
                              ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
      net-snmp-create-v3-user "$*"


In /usr/bin/net-snmp-config line 324:
        outname=`basename $cfiles | sed 's/\.[co]$//'`
                ^-- SC2006: Use $(...) notation instead of legacy backticked `...`.
                          ^-----^ SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
        outname=$(basename "$cfiles" | sed 's/\.[co]$//')


In /usr/bin/net-snmp-config line 325:
        if test -f $outname.h; then
                   ^------^ SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
        if test -f "$outname".h; then


In /usr/bin/net-snmp-config line 326:
          if grep "init_$outname" $outname.h; then
                                  ^------^ SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
          if grep "init_$outname" "$outname".h; then


In /usr/bin/net-snmp-config line 336:
      name=`basename $1 | sed 's/\.[co]$//'`
           ^-- SC2006: Use $(...) notation instead of legacy backticked `...`.
                     ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
      name=$(basename "$1" | sed 's/\.[co]$//')


In /usr/bin/net-snmp-config line 337:
      if test -f $name.h; then
                 ^---^ SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
      if test -f "$name".h; then


In /usr/bin/net-snmp-config line 338:
        if grep "init_$name" $name.h; then
                             ^---^ SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
        if grep "init_$name" "$name".h; then


In /usr/bin/net-snmp-config line 588:
      name=`basename $i | sed 's/\.[co]$//'`
           ^-- SC2006: Use $(...) notation instead of legacy backticked `...`.
                     ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
      name=$(basename "$i" | sed 's/\.[co]$//')


In /usr/bin/net-snmp-config line 589:
      echo checking for init_$name in $i
                             ^---^ SC2086: Double quote to prevent globbing and word splitting.
                                      ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
      echo checking for init_"$name" in "$i"


In /usr/bin/net-snmp-config line 590:
      if grep "init_$name" $i ; then
                           ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
      if grep "init_$name" "$i" ; then


In /usr/bin/net-snmp-config line 637:
    i=`count $cfiles`
      ^-------------^ SC2006: Use $(...) notation instead of legacy backticked `...`.
             ^-----^ SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
    i=$(count "$cfiles")


In /usr/bin/net-snmp-config line 638:
    while [ $i -gt 0 ] ; do
            ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
    while [ "$i" -gt 0 ] ; do


In /usr/bin/net-snmp-config line 639:
      fullname=`index $i $cfiles`
               ^----------------^ 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: 
      fullname=$(index "$i" "$cfiles")


In /usr/bin/net-snmp-config line 640:
      name=`basename $fullname | sed 's/\.[co]$//'`
           ^-- SC2006: Use $(...) notation instead of legacy backticked `...`.
                     ^-------^ SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
      name=$(basename "$fullname" | sed 's/\.[co]$//')


In /usr/bin/net-snmp-config line 641:
      echo checking for shutdown_$name in $fullname
                                 ^---^ SC2086: Double quote to prevent globbing and word splitting.
                                          ^-------^ SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
      echo checking for shutdown_"$name" in "$fullname"


In /usr/bin/net-snmp-config line 642:
      if grep "shutdown_$name" $fullname ; then
                               ^-------^ SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
      if grep "shutdown_$name" "$fullname" ; then


In /usr/bin/net-snmp-config line 645:
      i=`expr $i - 1`
        ^-----------^ SC2006: Use $(...) notation instead of legacy backticked `...`.
         ^--^ SC2003: expr is antiquated. Consider rewriting this using $((..)), ${} or [[ ]].
              ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
      i=$(expr "$i" - 1)


In /usr/bin/net-snmp-config line 668:
      echo `$cmd`
           ^----^ SC2046: Quote this to prevent word splitting.
           ^----^ SC2005: Useless echo? Instead of 'echo $(cmd)', just use 'cmd'.
           ^----^ SC2006: Use $(...) notation instead of legacy backticked `...`.

Did you mean: 
      echo $($cmd)

For more information:
  https://www.shellcheck.net/wiki/SC2046 -- Quote this to prevent word splitt...
  https://www.shellcheck.net/wiki/SC2048 -- Use "$@" (with quotes) to prevent...
  https://www.shellcheck.net/wiki/SC2164 -- Use 'cd ... || exit' or 'cd ... |...