In /usr/bin/ncurses6-config line 50:
RPATH_LIST="${libdir}"
            ^-------^ SC2154: libdir is referenced but not assigned.


In /usr/bin/ncurses6-config line 81:
if [ xyes = xno ]; then
          ^-- SC2050: This expression is constant. Did you forget the $ on a variable?


In /usr/bin/ncurses6-config line 83:
	$prefix/include/ncurses)
        ^---------------------^ SC2254: Quote expansions in case patterns to match literally rather than as a glob.


In /usr/bin/ncurses6-config line 84:
		includedir=`echo "$includedir" | sed -e 's,/[^/]*$,,'`
                           ^-- SC2006: Use $(...) notation instead of legacy backticked `...`.

Did you mean: 
		includedir=$(echo "$includedir" | sed -e 's,/[^/]*$,,')


In /usr/bin/ncurses6-config line 90:
if [ "tinfo" = "ncurses" ]; then
             ^-- SC2050: This expression is constant. Did you forget the $ on a variable?


In /usr/bin/ncurses6-config line 113:
		[ -d ${opt##-L} ] || continue
                     ^--------^ SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
		[ -d "${opt##-L}" ] || continue


In /usr/bin/ncurses6-config line 115:
		*) # skip standard libdir
                ^-- SC2221: This pattern always overrides a later one on line 118.


In /usr/bin/ncurses6-config line 118:
		*)
                ^-- SC2222: This pattern never matches because of a previous pattern on line 115.


In /usr/bin/ncurses6-config line 136:
[ $# = 0 ] && exec /bin/sh $0 --error
                           ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
[ $# = 0 ] && exec /bin/sh "$0" --error


In /usr/bin/ncurses6-config line 150:
		if [ "xyes" = xno ]; then
                            ^-- SC2050: This expression is constant. Did you forget the $ on a variable?


In /usr/bin/ncurses6-config line 229:
		if [ "xyes" = xno ]; then
                            ^-- SC2050: This expression is constant. Did you forget the $ on a variable?


In /usr/bin/ncurses6-config line 234:
		echo $INCS
                     ^---^ SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
		echo "$INCS"


In /usr/bin/ncurses6-config line 253:
Usage: `basename $0` [options]
       ^-----------^ SC2006: Use $(...) notation instead of legacy backticked `...`.
                 ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
Usage: $(basename "$0") [options]


In /usr/bin/ncurses6-config line 283:
		/bin/sh $0 --help 1>&2
                        ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
		/bin/sh "$0" --help 1>&2

For more information:
  https://www.shellcheck.net/wiki/SC2050 -- This expression is constant. Did ...
  https://www.shellcheck.net/wiki/SC2154 -- libdir is referenced but not assi...
  https://www.shellcheck.net/wiki/SC2221 -- This pattern always overrides a l...