From d826d70b9bfd511e959f92238b638a8fd6531d5a Mon Sep 17 00:00:00 2001 From: Pierre Le Marre Date: Tue, 7 Nov 2023 12:58:36 +0100 Subject: [PATCH] xkbcli: Fix bash completion `compgen` expect command options list formatted as a newline-separated list. Add a missing newline when concatenating two lists. --- tools/xkbcli-bash-completion.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/xkbcli-bash-completion.sh b/tools/xkbcli-bash-completion.sh index c900e0f..738faa2 100755 --- a/tools/xkbcli-bash-completion.sh +++ b/tools/xkbcli-bash-completion.sh @@ -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"))