We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbc5c65 commit 3f2dad7Copy full SHA for 3f2dad7
bash_completionsV2.go
@@ -233,7 +233,8 @@ __%[1]s_handle_standard_completion_case() {
233
234
# Short circuit to optimize if we don't have descriptions
235
if [[ "${completions[*]}" != *$tab* ]]; then
236
- IFS=$'\n' read -ra COMPREPLY -d '' < <(compgen -W "${completions[*]}" -- "$cur")
+ local compgen_words=$(printf "%%s\n" "${completions[@]}")
237
+ IFS=$'\n' read -ra COMPREPLY -d '' < <(IFS=$'\n' compgen -W "${compgen_words}" -- "$cur")
238
239
# If there is a single completion left, escape the completion
240
if ((${#COMPREPLY[*]} == 1)); then
0 commit comments