diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2015-06-10 00:31:59 -0700 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2015-06-10 00:31:59 -0700 |
commit | e2cb3b97fda1aa037975b8b4224a07b512a96cfe (patch) | |
tree | 42ce0f99c19f6c50bf3f5c6471749307d0347850 | |
parent | e64c0f4e4e269ed204614d276e83f5ef3f128b2e (diff) | |
parent | b98454b8b254e5bc4932cee65be1455977335ef9 (diff) | |
download | spack-e2cb3b97fda1aa037975b8b4224a07b512a96cfe.tar.gz spack-e2cb3b97fda1aa037975b8b4224a07b512a96cfe.tar.bz2 spack-e2cb3b97fda1aa037975b8b4224a07b512a96cfe.tar.xz spack-e2cb3b97fda1aa037975b8b4224a07b512a96cfe.zip |
Merge pull request #57 from trws/zsh-use-fix
Zsh use fix
-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 b2bcbaf6c7..b90846d28f 100755 --- a/share/spack/setup-env.sh +++ b/share/spack/setup-env.sh @@ -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 |