summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2016-11-29 19:04:29 -0600
committerbecker33 <becker33@llnl.gov>2016-11-29 17:04:29 -0800
commit6cc9b3174720057b9814c64259b6dc033623d048 (patch)
tree109d08f2df1b7d1f313c8757397cea921867e148 /share
parent5eb7026dd1902967baa5af3e78b3fae1e343e062 (diff)
downloadspack-6cc9b3174720057b9814c64259b6dc033623d048.tar.gz
spack-6cc9b3174720057b9814c64259b6dc033623d048.tar.bz2
spack-6cc9b3174720057b9814c64259b6dc033623d048.tar.xz
spack-6cc9b3174720057b9814c64259b6dc033623d048.zip
Allow shell support to work when set -u is set (#2418)
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 f602ea627e..943db72612 100755
--- a/share/spack/setup-env.sh
+++ b/share/spack/setup-env.sh
@@ -58,7 +58,7 @@
function spack {
# Zsh does not do word splitting by default, this enables it for this function only
- if [ -n "$ZSH_VERSION" ]; then
+ if [ -n "${ZSH_VERSION:-}" ]; then
emulate -L sh
fi