Fix spack install --v[tab] spec (#28278)
This commit is contained in:
@@ -123,7 +123,7 @@ _bash_completion_spack() {
|
||||
# If the cursor is in the middle of the line, like:
|
||||
# `spack -d [] install`
|
||||
# COMP_WORDS will not contain the empty character, so we have to add it.
|
||||
if [[ "${COMP_LINE:$COMP_POINT:1}" == " " ]]
|
||||
if [[ "${COMP_LINE:$COMP_POINT-1:1}" == " " ]]
|
||||
then
|
||||
cur=""
|
||||
fi
|
||||
|
Reference in New Issue
Block a user