COMP_TYPE
Set to an integer value corresponding to the type of completion attempted that caused a completion function to be called: TAB, for normal completion, ‘?’, for listing completions after successive tabs, ‘!’, for listing alternatives on partial word completion, ‘@’, to list completions if the word is not unmodified, or ‘%’, for menu completion. This variable is available only in shell functions and external commands invoked by the programmable completion facilities (see Section 8.6
[Programmable Completion], page 124).
COMP_KEY
The key (or final key of a key sequence) used to invoke the current completion function.
COMP_WORDBREAKS
The set of characters that the Readline library treats as word separators when performing word completion. If COMP_WORDBREAKS is unset, it loses its special properties, even if it is subsequently reset.
COMP_WORDS
An array variable consisting of the individual words in the current command line.
The line is split into words as Readline would split it, using COMP_
WORDBREAKS as described above. This variable is available only in shell func- tions invoked by the programmable completion facilities (see Section 8.6 [Pro- grammable Completion], page 124).
COMPREPLY
An array variable from which Bash reads the possible completions generated by a shell function invoked by the programmable completion facility (see
Section 8.6 [Programmable Completion], page 124).
Each array element contains one possible completion.
COPROC
An array variable created to hold the file descriptors for output from and input to an unnamed coprocess (see Section 3.2.5 [Coprocesses], page 15).
DIRSTACK
An array variable containing the current contents of the directory stack. Direc- tories appear in the stack in the order they are displayed by the dirs builtin.
Assigning to members of this array variable may be used to modify directories already in the stack, but the pushd and popd builtins must be used to add and remove directories. Assignment to this variable will not change the cur- rent directory. If DIRSTACK is unset, it loses its special properties, even if it is subsequently reset.
EMACS
If Bash finds this variable in the environment when the shell starts with value
‘t’, it assumes that the shell is running in an Emacs shell buffer and disables line editing.
ENV
Similar to BASH_ENV; used when the shell is invoked in posix Mode (see
Section 6.11 [Bash POSIX Mode], page 94).
EUID
The numeric effective user id of the current user. This variable is readonly.
FCEDIT
The editor used as a default by the -e option to the fc builtin command.