I defined the basic completion script. For program d, it can take subcommand exempt, limit, show, and update.
complete -W "exempt limit show update" d
However, when I press tab after d exempt, bash displays the completion menu again.
$ d <tab>
exempt limit show update
$ d exempt <tab>
exempt limit show update
$ d exempt exempt <tab>
exempt limit show update
How do I prevent Bash from inserting the same word again and again?