diff options
author | Danny McClanahan <1305167+cosmicexplorer@users.noreply.github.com> | 2021-03-10 17:44:50 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-10 09:44:50 -0800 |
commit | f0275e84adcca97c6801108a94979f765cba01d2 (patch) | |
tree | f5b6fdc86acaf76b3f87e95cb3eb1b90b965757c /share/spack/bash | |
parent | 05dfd94ed7e5888dbae793637919d37de8fc89dd (diff) | |
download | spack-f0275e84adcca97c6801108a94979f765cba01d2.tar.gz spack-f0275e84adcca97c6801108a94979f765cba01d2.tar.bz2 spack-f0275e84adcca97c6801108a94979f765cba01d2.tar.xz spack-f0275e84adcca97c6801108a94979f765cba01d2.zip |
fix setup-env.sh on older linux zsh (#21721)
Diffstat (limited to 'share/spack/bash')
-rwxr-xr-x | share/spack/bash/spack-completion.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/spack/bash/spack-completion.in b/share/spack/bash/spack-completion.in index bda2731ed5..ae9cbc555c 100755 --- a/share/spack/bash/spack-completion.in +++ b/share/spack/bash/spack-completion.in @@ -55,7 +55,7 @@ _bash_completion_spack() { # For our purposes, flags should not affect tab completion. For instance, # `spack install []` and `spack -d install --jobs 8 []` should both give the same # possible completions. Therefore, we need to ignore any flags in COMP_WORDS. - local COMP_WORDS_NO_FLAGS=() + local -a COMP_WORDS_NO_FLAGS local index=0 while [[ "$index" -lt "$COMP_CWORD" ]] do |