In /usr/bin/h5redeploy line 29: echo "usage: $prog_name [OPTIONS]" ^--------^ SC2154: prog_name is referenced but not assigned. In /usr/bin/h5redeploy line 52: echo prefix=$prefix ^-----^ SC2086: Double quote to prevent globbing and word splitting. Did you mean: echo prefix="$prefix" In /usr/bin/h5redeploy line 53: echo h5tools=$h5tools ^------^ SC2086: Double quote to prevent globbing and word splitting. Did you mean: echo h5tools="$h5tools" In /usr/bin/h5redeploy line 63: echo " current setting=`sed -e '/^prefix=/s/prefix=//p' -e d $t`" ^-- SC2006: Use $(...) notation instead of legacy backticked `...`. ^-- SC2086: Double quote to prevent globbing and word splitting. Did you mean: echo " current setting=$(sed -e '/^prefix=/s/prefix=//p' -e d "$t")" In /usr/bin/h5redeploy line 64: echo " new setting="\""$prefix"\" ^-- SC2140: Word is of the form "A"B"C" (B indicated). Did you mean "ABC" or "A\"B\"C"? In /usr/bin/h5redeploy line 97: for arg in $@ ; do ^-- SC2068: Double quote array expansions to avoid re-splitting elements. In /usr/bin/h5redeploy line 100: prefix="`echo $arg | cut -f2 -d=`" ^-----------------------^ SC2006: Use $(...) notation instead of legacy backticked `...`. ^--^ SC2086: Double quote to prevent globbing and word splitting. Did you mean: prefix="$(echo "$arg" | cut -f2 -d=)" In /usr/bin/h5redeploy line 103: exec_prefix="`echo $arg | cut -f2 -d=`" ^-----------------------^ SC2006: Use $(...) notation instead of legacy backticked `...`. ^--^ SC2086: Double quote to prevent globbing and word splitting. Did you mean: exec_prefix="$(echo "$arg" | cut -f2 -d=)" In /usr/bin/h5redeploy line 106: libdir="`echo $arg | cut -f2 -d=`" ^-----------------------^ SC2006: Use $(...) notation instead of legacy backticked `...`. ^--^ SC2086: Double quote to prevent globbing and word splitting. Did you mean: libdir="$(echo "$arg" | cut -f2 -d=)" In /usr/bin/h5redeploy line 109: includedir="`echo $arg | cut -f2 -d=`" ^-----------------------^ SC2006: Use $(...) notation instead of legacy backticked `...`. ^--^ SC2086: Double quote to prevent globbing and word splitting. Did you mean: includedir="$(echo "$arg" | cut -f2 -d=)" In /usr/bin/h5redeploy line 118: h5tools="`echo $arg | cut -f2 -d=`" ^-----------------------^ SC2006: Use $(...) notation instead of legacy backticked `...`. ^--^ SC2086: Double quote to prevent globbing and word splitting. Did you mean: h5tools="$(echo "$arg" | cut -f2 -d=)" In /usr/bin/h5redeploy line 136: prefix=`(cd ..;pwd)` ^-----------^ SC2006: Use $(...) notation instead of legacy backticked `...`. Did you mean: prefix=$((cd ..;pwd)) In /usr/bin/h5redeploy line 139: exec_prefix='${prefix}' # use single quotes to prevent expansion of $ ^---------^ SC2016: Expressions don't expand in single quotes, use double quotes for that. In /usr/bin/h5redeploy line 142: libdir='${exec_prefix}'/lib # use single quotes to prevent expansion of $ ^--------------^ SC2016: Expressions don't expand in single quotes, use double quotes for that. In /usr/bin/h5redeploy line 145: includedir='${prefix}'/include # use single quotes to prevent expansion of $ ^---------^ SC2016: Expressions don't expand in single quotes, use double quotes for that. In /usr/bin/h5redeploy line 149: if [ -f $x ]; then ^-- SC2086: Double quote to prevent globbing and word splitting. Did you mean: if [ -f "$x" ]; then In /usr/bin/h5redeploy line 151: if [ ! -w $x ]; then ^-- SC2086: Double quote to prevent globbing and word splitting. Did you mean: if [ ! -w "$x" ]; then In /usr/bin/h5redeploy line 168: read ansx ^--^ SC2162: read without -r will mangle backslashes. In /usr/bin/h5redeploy line 169: ans=`echo $ansx | tr "[A-Z]" "[a-z]"` ^-- SC2006: Use $(...) notation instead of legacy backticked `...`. ^---^ SC2086: Double quote to prevent globbing and word splitting. ^-----^ SC2021: Don't use [] around classes in tr, it replaces literal square brackets. ^-----^ SC2021: Don't use [] around classes in tr, it replaces literal square brackets. Did you mean: ans=$(echo "$ansx" | tr "[A-Z]" "[a-z]") In /usr/bin/h5redeploy line 170: if [ x-$ans != x-yes ]; then ^--^ SC2086: Double quote to prevent globbing and word splitting. Did you mean: if [ x-"$ans" != x-yes ]; then In /usr/bin/h5redeploy line 181: echo "/^prefix=/c" >> $CMDFILE ^-- SC2129: Consider using { cmd1; cmd2; } >> file instead of individual redirects. In /usr/bin/h5redeploy line 204: echo Update $t ... ^-- SC2086: Double quote to prevent globbing and word splitting. Did you mean: echo Update "$t" ... In /usr/bin/h5redeploy line 207: echo $COMMAND ^------^ SC2086: Double quote to prevent globbing and word splitting. Did you mean: echo "$COMMAND" For more information: https://www.shellcheck.net/wiki/SC2068 -- Double quote array expansions to ... https://www.shellcheck.net/wiki/SC2140 -- Word is of the form "A"B"C" (B in... https://www.shellcheck.net/wiki/SC2154 -- prog_name is referenced but not a...