From: Gunnar Beutner Date: Fri, 10 Oct 2014 09:38:37 +0000 (+0200) Subject: Fix incorrect index in the bash autocompletion script X-Git-Tag: v2.2.0~423 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8fa7bde4da2a0040cd0367203069b461725a2347;p=icinga2 Fix incorrect index in the bash autocompletion script refs #7246 --- diff --git a/etc/bash_completion.d/icinga2 b/etc/bash_completion.d/icinga2 index 425939210..75044b328 100644 --- a/etc/bash_completion.d/icinga2 +++ b/etc/bash_completion.d/icinga2 @@ -3,7 +3,7 @@ _icinga2() local cur opts opts="${COMP_WORDS[*]}" cur="${COMP_WORDS[COMP_CWORD]}" - COMPREPLY=($(icinga2 --autocomplete $COMP_CWORD ${COMP_WORDS[*]:1} < /dev/null)) + COMPREPLY=($(icinga2 --autocomplete $COMP_CWORD ${COMP_WORDS[*]} < /dev/null)) return 0 }