Merge pull request #57 from trws/zsh-use-fix

Zsh use fix
This commit is contained in:
Todd Gamblin 2015-06-10 00:31:59 -07:00
commit e2cb3b97fd

View File

@ -64,7 +64,7 @@ function spack {
done
# h and V flags don't require further output parsing.
if [[ "$_sp_flags" =~ *h* || "$_sp_flags" =~ *V* ]]; then
if [[ (! -z "$_sp_flags") && ("$_sp_flags" =~ '.*h.*' || "$_sp_flags" =~ '.*V.*') ]]; then
command spack $_sp_flags "$@"
return
fi