In /usr/bin/x86_64-linux-gnu-python2.7-config line 6: exit $1 ^-- SC2086: Double quote to prevent globbing and word splitting. Did you mean: exit "$1" In /usr/bin/x86_64-linux-gnu-python2.7-config line 16: local RESULT=$(dirname $(cd $(dirname "$1") && pwd -P)) ^----------^ SC2039: In POSIX sh, 'local' is undefined. ^----^ SC2155: Declare and assign separately to avoid masking return values. ^-----------------------------^ SC2046: Quote this to prevent word splitting. ^-------------^ SC2046: Quote this to prevent word splitting. In /usr/bin/x86_64-linux-gnu-python2.7-config line 17: if [ $(which readlink) ] ; then ^---------------^ SC2046: Quote this to prevent word splitting. In /usr/bin/x86_64-linux-gnu-python2.7-config line 20: echo $RESULT ^-----^ SC2086: Double quote to prevent globbing and word splitting. Did you mean: echo "$RESULT" In /usr/bin/x86_64-linux-gnu-python2.7-config line 41: LDLIBRARY="libpython${VERSION}${DEBUG_EXT}.a" ^-------^ SC2034: LDLIBRARY appears unused. Verify use (or export if used externally). In /usr/bin/x86_64-linux-gnu-python2.7-config line 53: for ARG in $* ^-- SC2048: Use "$@" (with quotes) to prevent whitespace problems. In /usr/bin/x86_64-linux-gnu-python2.7-config line 67: for ARG in $* ^-- SC2048: Use "$@" (with quotes) to prevent whitespace problems. For more information: https://www.shellcheck.net/wiki/SC2034 -- LDLIBRARY appears unused. Verify ... https://www.shellcheck.net/wiki/SC2039 -- In POSIX sh, 'local' is undefined. https://www.shellcheck.net/wiki/SC2046 -- Quote this to prevent word splitt...