In /usr/bin/spack line 29:
if sys.version_info[:2] < (2, 6):
   ^-- SC1009: The mentioned syntax error was in this simple command.
                        ^-- SC1073: Couldn't parse this redirection. Fix to allow more checks.
                          ^-- SC1036: '(' is invalid here. Did you forget to escape it?
                          ^-- SC1072:  Fix any mentioned problems and try again.

For more information:
  https://www.shellcheck.net/wiki/SC1036 -- '(' is invalid here. Did you forg...
  https://www.shellcheck.net/wiki/SC1072 --  Fix any mentioned problems and t...
  https://www.shellcheck.net/wiki/SC1073 -- Couldn't parse this redirection. ...