diff options
author | Michael Kuhn <suraia@ikkoku.de> | 2017-09-26 21:28:50 +0200 |
---|---|---|
committer | scheibelp <scheibel1@llnl.gov> | 2017-09-26 12:28:50 -0700 |
commit | f45916fad21b98656e67507303b189bd0c940205 (patch) | |
tree | 5962e70f72a185d9e071a43c4f62a0bfe913425d /share | |
parent | e3e030cf7612b575c6d7d3c2b43f953ddfb71835 (diff) | |
download | spack-f45916fad21b98656e67507303b189bd0c940205.tar.gz spack-f45916fad21b98656e67507303b189bd0c940205.tar.bz2 spack-f45916fad21b98656e67507303b189bd0c940205.tar.xz spack-f45916fad21b98656e67507303b189bd0c940205.zip |
Set LANG= for _spack_fn_exists (#5475)
type's output can be localized, causing the grep to fail.
Diffstat (limited to 'share')
-rwxr-xr-x | share/spack/setup-env.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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" |