fix setup-env.sh on older linux zsh (#21721)
This commit is contained in:
parent
05dfd94ed7
commit
f0275e84ad
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user