diff options
| -rw-r--r-- | completions/bash/apt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/completions/bash/apt b/completions/bash/apt index 7cf54df1f..a0da8f6f7 100644 --- a/completions/bash/apt +++ b/completions/bash/apt @@ -53,7 +53,7 @@ _apt() local command i for (( i=0; i < ${#words[@]}-1; i++ )); do - if [[ ${COMMANDS[@]} =~ ${words[i]} ]]; then + if [[ " ${COMMANDS[*]} " == *" ${words[i]} "* ]]; then command=${words[i]} break fi |
