summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--completions/bash/apt2
1 files changed, 1 insertions, 1 deletions
diff --git a/completions/bash/apt b/completions/bash/apt
index 35716e7a7..94ad974b1 100644
--- a/completions/bash/apt
+++ b/completions/bash/apt
@@ -52,7 +52,7 @@ _apt()
"policy")
local command i
- for (( i=0; i < ${#words[@]}-1; i++ )); do
+ for (( i=1; i < ${#words[@]}; i++ )); do
if [[ " ${COMMANDS[*]} " == *" ${words[i]} "* ]]; then
command=${words[i]}
break