Allow shell support to work when set -u is set (#2418)

This commit is contained in:
Adam J. Stewart 2016-11-29 19:04:29 -06:00 committed by becker33
parent 5eb7026dd1
commit 6cc9b31747

View File

@ -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