fix setup-env.sh on older linux zsh (#21721)

This commit is contained in:
Danny McClanahan 2021-03-10 17:44:50 +00:00 committed by GitHub
parent 05dfd94ed7
commit f0275e84ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ _bash_completion_spack() {
# For our purposes, flags should not affect tab completion. For instance, # For our purposes, flags should not affect tab completion. For instance,
# `spack install []` and `spack -d install --jobs 8 []` should both give the same # `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. # 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 local index=0
while [[ "$index" -lt "$COMP_CWORD" ]] while [[ "$index" -lt "$COMP_CWORD" ]]
do do

View File

@ -55,7 +55,7 @@ _bash_completion_spack() {
# For our purposes, flags should not affect tab completion. For instance, # For our purposes, flags should not affect tab completion. For instance,
# `spack install []` and `spack -d install --jobs 8 []` should both give the same # `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. # 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 local index=0
while [[ "$index" -lt "$COMP_CWORD" ]] while [[ "$index" -lt "$COMP_CWORD" ]]
do do