You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GNU readline does ad hoc tokenization of the shell command. Does not use its parser.
builtins: complete, compopt, compgen
global variables: COMP_WORDS, COMPREPLY (out)
yash
lineedit/compparse.{c,h} (~1300 lines) is a "simple parser for command line completion" that duplicates knowledge of the shell language. It doesn't use its own parser much, if at all.
help complete shows help for the extensive completion builtin. Doesn't seem to understand the flags of its own builtins.