builtin
compopt
Change completion options for a named command or for an active completion when no name is supplied.
Formal Syntax & Structure
bash syntaxbash
compopt -o option nameReturn Value
exit status
Change completion options for a named command or for an active completion when no name is supplied.
Working Example
Example Snippetbash
complete -W 'start stop status' bmtoolcomplete -p bmtool >/dev/null || exit 1compopt -o nospace bmtool || exit 1complete -r bmtoolif complete -p bmtool >/dev/null 2>&1; then exit 1; fiprintf 'registered, updated, removed\n'