]> granicus.if.org Git - icinga2/commitdiff
Fix incorrect index in the bash autocompletion script
authorGunnar Beutner <gunnar.beutner@netways.de>
Fri, 10 Oct 2014 09:38:37 +0000 (11:38 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Fri, 10 Oct 2014 09:38:37 +0000 (11:38 +0200)
refs #7246

etc/bash_completion.d/icinga2

index 425939210d4c426371f44128e0c6731a5c4c828b..75044b328dad99e50d80781df919e154f93ab658 100644 (file)
@@ -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
 }