variable
COMP_WORDBREAKS
Character set Readline uses when dividing input into words for completion. It is not IFS and does not change ordinary shell argument splitting. This fixture tests variable assignment and independence from shell word splitting, not live Tab completion. Run in a fresh private directory with HOME set to that directory and LC_ALL=C. Expected output (one item per line): breaks=:= count=2 first=a:b.
Formal Syntax & Structure
bash syntaxbash
COMP_WORDBREAKSReturn Value
shell variable
Expansion yields the current value; it has no independent command exit status.
Working Example
Example Snippetbash
COMP_WORDBREAKS=':='value='a:b c=d'set -- $valueprintf 'breaks=%s count=%s first=%s\n' "$COMP_WORDBREAKS" "$#" "$1"