From f45916fad21b98656e67507303b189bd0c940205 Mon Sep 17 00:00:00 2001 From: Michael Kuhn Date: Tue, 26 Sep 2017 21:28:50 +0200 Subject: Set LANG= for _spack_fn_exists (#5475) type's output can be localized, causing the grep to fail. --- share/spack/setup-env.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/spack/setup-env.sh b/share/spack/setup-env.sh index 4de530beba..6ac38967ba 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" -- cgit v1.2.3-60-g2f50