#1013926 "bash: COMP_WORDS: bad array subscript" when completing in the middle of a command

#1013926#5
Date:
2022-06-27 16:17:26 UTC
From:
To:
Dear Maintainer,

Completing this command just after first "./do" causes the completion script to output an error.

LLVM_PROFILE_FILE="foo.profraw" ./do && llvm-profdata merge -sparse *.profraw -o foo.profdata && llvm-cov show ./dojo_ut -instr-profile=foo.profdata | less

I've tried it on my desktop, server, and and ARM board. It crashes in
every case, but exclusively in this particular place, just after "./do",
no matter if there is, or isn't a file starting with this prefix.