summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorPeter Scheibel <scheibel1@llnl.gov>2016-03-31 12:56:34 -0700
committerPeter Scheibel <scheibel1@llnl.gov>2016-03-31 12:56:34 -0700
commit9eb314fcaaa9a19d59dee3269bd9ddaf738117a3 (patch)
treeb7f2b0cdeb648b37d92d39ebae26af318d68f3aa /share
parenta0c42a3fd1a8c5319ff8e02313b7f12e8c59349d (diff)
parentd0c8245a58bf184f7921c853ef31734ea2c83e0a (diff)
downloadspack-9eb314fcaaa9a19d59dee3269bd9ddaf738117a3.tar.gz
spack-9eb314fcaaa9a19d59dee3269bd9ddaf738117a3.tar.bz2
spack-9eb314fcaaa9a19d59dee3269bd9ddaf738117a3.tar.xz
spack-9eb314fcaaa9a19d59dee3269bd9ddaf738117a3.zip
merge from develop
Diffstat (limited to 'share')
-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 586a5b836b..764af68400 100755
--- a/share/spack/setup-env.sh
+++ b/share/spack/setup-env.sh
@@ -141,7 +141,7 @@ function _spack_pathadd {
fi
# Do the actual prepending here.
- eval "_pa_oldvalue=\$${_pa_varname}"
+ eval "_pa_oldvalue=\${${_pa_varname}:-}"
if [ -d "$_pa_new_path" ] && [[ ":$_pa_oldvalue:" != *":$_pa_new_path:"* ]]; then
if [ -n "$_pa_oldvalue" ]; then