Skip to content

Commit

Permalink
xkbcli: Fix bash completion
Browse files Browse the repository at this point in the history
`compgen` expect command options list formatted as a newline-separated
list. Add a missing newline when concatenating two lists.
  • Loading branch information
wismill committed Nov 9, 2023
1 parent a4b03ec commit 4b46eda
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/xkbcli-bash-completion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ ___xkbcli_subcommand()
# • https://github.com/scop/bash-completion/blob/fdf4456186eb4548ef628e65fb1be73d8e4695e9/bash_completion.d/000_bash_completion_compat.bash#L311
# We need both as the current help messages adopt both GNU and BSD styles.
opts=$(_parse_usage xkbcli "$1 --help")
opts+="
"
opts+=$(_parse_help xkbcli "$1 --help")
local cur="${COMP_WORDS[COMP_CWORD]}"
COMPREPLY=($(compgen -W "$opts" -- "$cur"))
Expand Down

0 comments on commit 4b46eda

Please sign in to comment.