In /usr/bin/lhapdf-config line 5:
exec_prefix=${prefix}
^---------^ SC2034: exec_prefix appears unused. Verify use (or export if used externally).


In /usr/bin/lhapdf-config line 8:
if [[ $# -eq 0 || -n $( echo $* | egrep -- "--help|-h" ) ]]; then
                  ^-- SC2143: Use egrep -q instead of comparing output with [ -n .. ].
                             ^-- SC2048: Use "$@" (with quotes) to prevent whitespace problems.
                             ^-- SC2086: Double quote to prevent globbing and word splitting.
                                  ^---^ SC2196: egrep is non-standard and deprecated. Use grep -E instead.

Did you mean: 
if [[ $# -eq 0 || -n $( echo "$*" | egrep -- "--help|-h" ) ]]; then


In /usr/bin/lhapdf-config line 30:
tmp=$( echo "$*" | egrep -- '--\<prefix\>')
                   ^---^ SC2196: egrep is non-standard and deprecated. Use grep -E instead.


In /usr/bin/lhapdf-config line 33:
tmp=$( echo "$*" | egrep -- '--\<incdir\>')
                   ^---^ SC2196: egrep is non-standard and deprecated. Use grep -E instead.


In /usr/bin/lhapdf-config line 36:
tmp=$( echo "$*" | egrep -- '--\<cppflags\>')
                   ^---^ SC2196: egrep is non-standard and deprecated. Use grep -E instead.


In /usr/bin/lhapdf-config line 39:
tmp=$( echo "$*" | egrep -- '--\<libdir\>')
                   ^---^ SC2196: egrep is non-standard and deprecated. Use grep -E instead.


In /usr/bin/lhapdf-config line 42:
tmp=$( echo "$*" | egrep -- '--\<ldflags\>')
                   ^---^ SC2196: egrep is non-standard and deprecated. Use grep -E instead.


In /usr/bin/lhapdf-config line 45:
tmp=$( echo "$*" | egrep -- '--\<datadir\>|--\<datarootdir\>')
                   ^---^ SC2196: egrep is non-standard and deprecated. Use grep -E instead.


In /usr/bin/lhapdf-config line 48:
tmp=$( echo "$*" | egrep -- '--\<pdfsets-path\>')
                   ^---^ SC2196: egrep is non-standard and deprecated. Use grep -E instead.


In /usr/bin/lhapdf-config line 52:
tmp=$( echo "$*" | egrep -- '--\<version\>')
                   ^---^ SC2196: egrep is non-standard and deprecated. Use grep -E instead.


In /usr/bin/lhapdf-config line 55:
echo $OUT
     ^--^ SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
echo "$OUT"

For more information:
  https://www.shellcheck.net/wiki/SC2034 -- exec_prefix appears unused. Verif...
  https://www.shellcheck.net/wiki/SC2048 -- Use "$@" (with quotes) to prevent...
  https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ...