diff options
-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 |