diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2016-03-19 15:51:29 -0700 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2016-03-19 15:51:29 -0700 |
commit | d02d72e06d4e67745ff8a0866c758e64f74828a3 (patch) | |
tree | 823bb2e87d4b81106354b25414f6fb167abc68d3 | |
parent | c50d6ac9024fc74e5c8e784f9caf9d8950677991 (diff) | |
parent | f5f7d47be1a5fd8488ed4cdc692173fe136d9791 (diff) | |
download | spack-d02d72e06d4e67745ff8a0866c758e64f74828a3.tar.gz spack-d02d72e06d4e67745ff8a0866c758e64f74828a3.tar.bz2 spack-d02d72e06d4e67745ff8a0866c758e64f74828a3.tar.xz spack-d02d72e06d4e67745ff8a0866c758e64f74828a3.zip |
Merge pull request #581 from eschnett/eschnett/bash-u
Support Bash "-u" mode
-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 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 |