diff --git a/share/spack/setup-env.sh b/share/spack/setup-env.sh index 4de530bebac..6ac38967ba3 100755 --- a/share/spack/setup-env.sh +++ b/share/spack/setup-env.sh @@ -210,7 +210,7 @@ export SPACK_SHELL=$(_spack_determine_shell) # Check whether a function of the given name is defined # function _spack_fn_exists() { - type $1 2>&1 | grep -q 'function' + LANG= type $1 2>&1 | grep -q 'function' } need_module="no"