summaryrefslogtreecommitdiff
path: root/share/spack/setup-env.sh
diff options
context:
space:
mode:
authorToyohisa Kameyama <kameyama@riken.jp>2019-04-24 11:53:25 +0900
committerPeter Scheibel <scheibel1@llnl.gov>2019-04-24 11:53:25 +0900
commitac7f9ef93d788120714859eb21e4c0d78f90643e (patch)
tree93830c48c3a1313954587e01aa3dfd258920bd09 /share/spack/setup-env.sh
parent3d46dcd6f015e79bd4b10c53d84da378f5db3da0 (diff)
downloadspack-ac7f9ef93d788120714859eb21e4c0d78f90643e.tar.gz
spack-ac7f9ef93d788120714859eb21e4c0d78f90643e.tar.bz2
spack-ac7f9ef93d788120714859eb21e4c0d78f90643e.tar.xz
spack-ac7f9ef93d788120714859eb21e4c0d78f90643e.zip
Fix handling of MODULEPATH in setup-env.sh (#11274)
Usage of double quotes was preventing word-splitting when parsing module roots in setup-env.sh, which lead to an error when multiple module roots are used (in particular when Spack is pointed to use an upstream module root in addition to its own).
Diffstat (limited to 'share/spack/setup-env.sh')
-rwxr-xr-xshare/spack/setup-env.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/spack/setup-env.sh b/share/spack/setup-env.sh
index 3c4342d852..8821751a05 100755
--- a/share/spack/setup-env.sh
+++ b/share/spack/setup-env.sh
@@ -295,7 +295,7 @@ _sp_multi_pathadd() {
if [[ -n "${ZSH_VERSION:-}" ]]; then
setopt sh_word_split
fi
- for pth in "$2"; do
+ for pth in $2; do
_spack_pathadd "$1" "${pth}/${_sp_sys_type}"
done
}