From 6cc9b3174720057b9814c64259b6dc033623d048 Mon Sep 17 00:00:00 2001 From: "Adam J. Stewart" Date: Tue, 29 Nov 2016 19:04:29 -0600 Subject: Allow shell support to work when set -u is set (#2418) --- share/spack/setup-env.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'share') 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 -- cgit v1.2.3-70-g09d2