Makefile.in,doc/Makefile.in
- uninstall: make sure the bash-specific directories created by
`make install' are emptied and removed
+
+ 11/27
+ -----
+doc/bash.1,doc/bashref.texi
+lib/readline/doc/readline.3,lib/readline/doc/history.3
+lib/readline/doc/rluser.texi,lib/readline/doc/rltech.texi
+ - another set of updates for formatting consistency, language
+ consistency between man pages and info files
+
+ 12/1
+ ----
+lib/readline/misc.c
+ - rl_get_previous_history: call _rl_maybe_replace_line with arg of 1
+ so it clears rl_undo_list, since this may not immediately replace
+ rl_undo_list with something from history
+ Report from Grisha Levit <grishalevit@gmail.com>
+
+ 12/5
+ ----
+doc/bash.1,doc/bashref.texi
+lib/readline/doc/rluser.texi
+ - updates for active voice, future tense, formatting and fonts, edits
+ to Programmable Completion
+ Suggestions from G. Branden Robinson <g.branden.robinson@gmail.com>
Options:
-p use a default value for PATH that is guaranteed to find all of
the standard utilities
- -v print a single-word indicating the command or filename that
+ -v print a single word indicating the command or filename that
invokes COMMAND
-V print a more verbose description of each COMMAND
bashref.pdf: bashref.texi
bash.pdf: bash.1
+builtins.pdf: builtins.1 bash.1
+ $(RM) $@
+ -${GROFF} -I${srcdir} -man -T pdf builtins.1 > $@
+
article.pdf: article.ps
rose94.pdf: rose94.ps
from the file _\b~_\b/_\b._\bb_\ba_\bs_\bh_\b__\bl_\bo_\bg_\bo_\bu_\bt, if it exists.
When an interactive shell that is not a login shell is started, b\bba\bas\bsh\bh
- reads and executes commands from _\b~_\b/_\b._\bb_\ba_\bs_\bh_\br_\bc, if that file exists. This
- may be inhibited by using the -\b--\b-n\bno\bor\brc\bc option. The -\b--\b-r\brc\bcf\bfi\bil\ble\be _\bf_\bi_\bl_\be option
- causes b\bba\bas\bsh\bh to use _\bf_\bi_\bl_\be instead of _\b~_\b/_\b._\bb_\ba_\bs_\bh_\br_\bc.
+ reads and executes commands from _\b~_\b/_\b._\bb_\ba_\bs_\bh_\br_\bc, if that file exists. The
+ -\b--\b-n\bno\bor\brc\bc option inhibits this behavior. The -\b--\b-r\brc\bcf\bfi\bil\ble\be _\bf_\bi_\bl_\be option causes
+ b\bba\bas\bsh\bh to use _\bf_\bi_\bl_\be instead of _\b~_\b/_\b._\bb_\ba_\bs_\bh_\br_\bc.
When b\bba\bas\bsh\bh is started non-interactively, to run a shell script, for ex-
ample, it looks for the variable B\bBA\bAS\bSH\bH_\b_E\bEN\bNV\bV in the environment, expands
forming to the POSIX standard as well. When invoked as an interactive
login shell, or a non-interactive shell with the -\b--\b-l\blo\bog\bgi\bin\bn option, it
first attempts to read and execute commands from _\b/_\be_\bt_\bc_\b/_\bp_\br_\bo_\bf_\bi_\bl_\be and
- _\b~_\b/_\b._\bp_\br_\bo_\bf_\bi_\bl_\be, in that order. The -\b--\b-n\bno\bop\bpr\bro\bof\bfi\bil\ble\be option will inhibit this
- behavior. When invoked as an interactive shell with the name s\bsh\bh, b\bba\bas\bsh\bh
- looks for the variable E\bEN\bNV\bV, expands its value if it is defined, and
- uses the expanded value as the name of a file to read and execute.
- Since a shell invoked as s\bsh\bh does not attempt to read and execute com-
- mands from any other startup files, the -\b--\b-r\brc\bcf\bfi\bil\ble\be option has no effect.
- A non-interactive shell invoked with the name s\bsh\bh does not attempt to
- read any other startup files. When invoked as s\bsh\bh, b\bba\bas\bsh\bh enters posix
- mode after reading the startup files.
+ _\b~_\b/_\b._\bp_\br_\bo_\bf_\bi_\bl_\be, in that order. The -\b--\b-n\bno\bop\bpr\bro\bof\bfi\bil\ble\be option inhibits this behav-
+ ior. When invoked as an interactive shell with the name s\bsh\bh, b\bba\bas\bsh\bh looks
+ for the variable E\bEN\bNV\bV, expands its value if it is defined, and uses the
+ expanded value as the name of a file to read and execute. Since a
+ shell invoked as s\bsh\bh does not attempt to read and execute commands from
+ any other startup files, the -\b--\b-r\brc\bcf\bfi\bil\ble\be option has no effect. A non-in-
+ teractive shell invoked with the name s\bsh\bh does not attempt to read any
+ other startup files. When invoked as s\bsh\bh, b\bba\bas\bsh\bh enters posix mode after
+ reading the startup files.
When b\bba\bas\bsh\bh is started in posix mode, as with the -\b--\b-p\bpo\bos\bsi\bix\bx command line
option, it follows the POSIX standard for startup files. In this mode,
and rarely-seen remote shell daemon, usually _\br_\bs_\bh_\bd, or the secure shell
daemon _\bs_\bs_\bh_\bd. If b\bba\bas\bsh\bh determines it is being run non-interactively in
this fashion, it reads and executes commands from _\b~_\b/_\b._\bb_\ba_\bs_\bh_\br_\bc, if that
- file exists and is readable. It will not do this if invoked as s\bsh\bh.
- The -\b--\b-n\bno\bor\brc\bc option will inhibit this behavior, and the -\b--\b-r\brc\bcf\bfi\bil\ble\be option
- will make b\bba\bas\bsh\bh use a different file instead of _\b~_\b/_\b._\bb_\ba_\bs_\bh_\br_\bc, but neither
+ file exists and is readable. B\bBa\bas\bsh\bh does not read this file if invoked
+ as s\bsh\bh. The -\b--\b-n\bno\bor\brc\bc option inhibits this behavior, and the -\b--\b-r\brc\bcf\bfi\bil\ble\be op-
+ tion makes b\bba\bas\bsh\bh use a different file instead of _\b~_\b/_\b._\bb_\ba_\bs_\bh_\br_\bc, but neither
_\br_\bs_\bh_\bd nor _\bs_\bs_\bh_\bd generally invoke the shell with those options or allow
them to be specified.
regular expressions carefully, since normal quoting and pattern
characters lose their meanings between brackets.
- The pattern will match if it matches any part of the string.
- Anchor the pattern using the ^\b^ and $\b$ regular expression opera-
- tors to force it to match the entire string.
+ The match succeeds if the pattern matches any part of the
+ string. Anchor the pattern using the ^\b^ and $\b$ regular expression
+ operators to force it to match the entire string.
- The array variable B\bBA\bAS\bSH\bH_\b_R\bRE\bEM\bMA\bAT\bTC\bCH\bH records which parts of the
- string matched the pattern. The element of B\bBA\bAS\bSH\bH_\b_R\bRE\bEM\bMA\bAT\bTC\bCH\bH with
- index 0 contains the portion of the string matching the entire
- regular expression. Substrings matched by parenthesized subex-
+ The array variable B\bBA\bAS\bSH\bH_\b_R\bRE\bEM\bMA\bAT\bTC\bCH\bH records which parts of the
+ string matched the pattern. The element of B\bBA\bAS\bSH\bH_\b_R\bRE\bEM\bMA\bAT\bTC\bCH\bH with
+ index 0 contains the portion of the string matching the entire
+ regular expression. Substrings matched by parenthesized subex-
pressions within the regular expression are saved in the remain-
- ing B\bBA\bAS\bSH\bH_\b_R\bRE\bEM\bMA\bAT\bTC\bCH\bH indices. The element of B\bBA\bAS\bSH\bH_\b_R\bRE\bEM\bMA\bAT\bTC\bCH\bH with in-
- dex _\bn is the portion of the string matching the _\bnth parenthe-
- sized subexpression. B\bBa\bas\bsh\bh sets B\bBA\bAS\bSH\bH_\b_R\bRE\bEM\bMA\bAT\bTC\bCH\bH in the global
- scope; declaring it as a local variable will lead to unexpected
+ ing B\bBA\bAS\bSH\bH_\b_R\bRE\bEM\bMA\bAT\bTC\bCH\bH indices. The element of B\bBA\bAS\bSH\bH_\b_R\bRE\bEM\bMA\bAT\bTC\bCH\bH with in-
+ dex _\bn is the portion of the string matching the _\bnth parenthe-
+ sized subexpression. B\bBa\bas\bsh\bh sets B\bBA\bAS\bSH\bH_\b_R\bRE\bEM\bMA\bAT\bTC\bCH\bH in the global
+ scope; declaring it as a local variable will lead to unexpected
results.
- Expressions may be combined using the following operators,
+ Expressions may be combined using the following operators,
listed in decreasing order of precedence:
(\b( _\be_\bx_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn )\b)
- Returns the value of _\be_\bx_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn. This may be used to
+ Returns the value of _\be_\bx_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn. This may be used to
override the normal precedence of operators.
!\b! _\be_\bx_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn
True if _\be_\bx_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn is false.
True if either _\be_\bx_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\b1 or _\be_\bx_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\b2 is true.
The &\b&&\b& and |\b||\b| operators do not evaluate _\be_\bx_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\b2 if the value
- of _\be_\bx_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\b1 is sufficient to determine the return value of
+ of _\be_\bx_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\b1 is sufficient to determine the return value of
the entire conditional expression.
f\bfo\bor\br _\bn_\ba_\bm_\be [ [ i\bin\bn [ _\bw_\bo_\br_\bd _\b._\b._\b. ] ] ; ] d\bdo\bo _\bl_\bi_\bs_\bt ; d\bdo\bon\bne\be
- First, expand The list of words following i\bin\bn, generating a list
- of items. Then, the variable _\bn_\ba_\bm_\be is set to each element of
- this list in turn, and _\bl_\bi_\bs_\bt is executed each time. If the i\bin\bn
+ First, expand The list of words following i\bin\bn, generating a list
+ of items. Then, the variable _\bn_\ba_\bm_\be is set to each element of
+ this list in turn, and _\bl_\bi_\bs_\bt is executed each time. If the i\bin\bn
_\bw_\bo_\br_\bd is omitted, the f\bfo\bor\br command executes _\bl_\bi_\bs_\bt once for each po-
- sitional parameter that is set (see P\bPA\bAR\bRA\bAM\bME\bET\bTE\bER\bRS\bS below). The re-
- turn status is the exit status of the last command that exe-
+ sitional parameter that is set (see P\bPA\bAR\bRA\bAM\bME\bET\bTE\bER\bRS\bS below). The re-
+ turn status is the exit status of the last command that exe-
cutes. If the expansion of the items following i\bin\bn results in an
- empty list, no commands are executed, and the return status is
+ empty list, no commands are executed, and the return status is
0.
f\bfo\bor\br (( _\be_\bx_\bp_\br_\b1 ; _\be_\bx_\bp_\br_\b2 ; _\be_\bx_\bp_\br_\b3 )) ; d\bdo\bo _\bl_\bi_\bs_\bt ; d\bdo\bon\bne\be
First, evaluate the arithmetic expression _\be_\bx_\bp_\br_\b1 according to the
- rules described below under A\bAR\bRI\bIT\bTH\bHM\bME\bET\bTI\bIC\bC E\bEV\bVA\bAL\bLU\bUA\bAT\bTI\bIO\bON\bN. Then, re-
+ rules described below under A\bAR\bRI\bIT\bTH\bHM\bME\bET\bTI\bIC\bC E\bEV\bVA\bAL\bLU\bUA\bAT\bTI\bIO\bON\bN. Then, re-
peatedly evaluate the arithmetic expression _\be_\bx_\bp_\br_\b2 until it eval-
- uates to zero. Each time _\be_\bx_\bp_\br_\b2 evaluates to a non-zero value,
- execute _\bl_\bi_\bs_\bt and evaluate the arithmetic expression _\be_\bx_\bp_\br_\b3. If
- any expression is omitted, it behaves as if it evaluates to 1.
- The return value is the exit status of the last command in _\bl_\bi_\bs_\bt
- that is executed, or non-zero if any of the expressions is in-
+ uates to zero. Each time _\be_\bx_\bp_\br_\b2 evaluates to a non-zero value,
+ execute _\bl_\bi_\bs_\bt and evaluate the arithmetic expression _\be_\bx_\bp_\br_\b3. If
+ any expression is omitted, it behaves as if it evaluates to 1.
+ The return value is the exit status of the last command in _\bl_\bi_\bs_\bt
+ that is executed, or non-zero if any of the expressions is in-
valid.
- Use the b\bbr\bre\bea\bak\bk and c\bco\bon\bnt\bti\bin\bnu\bue\be builtins (see S\bSH\bHE\bEL\bLL\bL B\bBU\bUI\bIL\bLT\bTI\bIN\bN C\bCO\bOM\bMM\bMA\bAN\bND\bDS\bS
+ Use the b\bbr\bre\bea\bak\bk and c\bco\bon\bnt\bti\bin\bnu\bue\be builtins (see S\bSH\bHE\bEL\bLL\bL B\bBU\bUI\bIL\bLT\bTI\bIN\bN C\bCO\bOM\bMM\bMA\bAN\bND\bDS\bS
below) to control loop execution.
s\bse\bel\ble\bec\bct\bt _\bn_\ba_\bm_\be [ i\bin\bn _\bw_\bo_\br_\bd ] ; d\bdo\bo _\bl_\bi_\bs_\bt ; d\bdo\bon\bne\be
- First, expand the list of words following i\bin\bn, generating a list
- of items, and print the set of expanded words the standard er-
- ror, each preceded by a number. If the i\bin\bn _\bw_\bo_\br_\bd is omitted,
- print the positional parameters (see P\bPA\bAR\bRA\bAM\bME\bET\bTE\bER\bRS\bS below). s\bse\bel\ble\bec\bct\bt
- then displays the P\bPS\bS3\b3 prompt and reads a line from the standard
+ First, expand the list of words following i\bin\bn, generating a list
+ of items, and print the set of expanded words the standard er-
+ ror, each preceded by a number. If the i\bin\bn _\bw_\bo_\br_\bd is omitted,
+ print the positional parameters (see P\bPA\bAR\bRA\bAM\bME\bET\bTE\bER\bRS\bS below). s\bse\bel\ble\bec\bct\bt
+ then displays the P\bPS\bS3\b3 prompt and reads a line from the standard
input. If the line consists of a number corresponding to one of
- the displayed words, then s\bse\bel\ble\bec\bct\bt sets the value of _\bn_\ba_\bm_\be to that
- word. If the line is empty, s\bse\bel\ble\bec\bct\bt displays the words and
- prompt again. If EOF is read, s\bse\bel\ble\bec\bct\bt completes and returns 1.
- Any other value sets _\bn_\ba_\bm_\be to null. The line read is saved in
- the variable R\bRE\bEP\bPL\bLY\bY. The _\bl_\bi_\bs_\bt is executed after each selection
+ the displayed words, then s\bse\bel\ble\bec\bct\bt sets the value of _\bn_\ba_\bm_\be to that
+ word. If the line is empty, s\bse\bel\ble\bec\bct\bt displays the words and
+ prompt again. If EOF is read, s\bse\bel\ble\bec\bct\bt completes and returns 1.
+ Any other value sets _\bn_\ba_\bm_\be to null. The line read is saved in
+ the variable R\bRE\bEP\bPL\bLY\bY. The _\bl_\bi_\bs_\bt is executed after each selection
until a b\bbr\bre\bea\bak\bk command is executed. The exit status of s\bse\bel\ble\bec\bct\bt is
the exit status of the last command executed in _\bl_\bi_\bs_\bt, or zero if
no commands were executed.
c\bca\bas\bse\be _\bw_\bo_\br_\bd i\bin\bn [ [(] _\bp_\ba_\bt_\bt_\be_\br_\bn [ |\b| _\bp_\ba_\bt_\bt_\be_\br_\bn ] ... ) _\bl_\bi_\bs_\bt ;; ] ... e\bes\bsa\bac\bc
A c\bca\bas\bse\be command first expands _\bw_\bo_\br_\bd, and tries to match it against
- each _\bp_\ba_\bt_\bt_\be_\br_\bn in turn, proceeding from first to last, using the
- matching rules described under P\bPa\bat\btt\bte\ber\brn\bn M\bMa\bat\btc\bch\bhi\bin\bng\bg below. A pat-
- tern list is a set of one or more patterns separated by , and
- the ) operator terminates the pattern list. The _\bw_\bo_\br_\bd is ex-
- panded using tilde expansion, parameter and variable expansion,
+ each _\bp_\ba_\bt_\bt_\be_\br_\bn in turn, proceeding from first to last, using the
+ matching rules described under P\bPa\bat\btt\bte\ber\brn\bn M\bMa\bat\btc\bch\bhi\bin\bng\bg below. A pat-
+ tern list is a set of one or more patterns separated by , and
+ the ) operator terminates the pattern list. The _\bw_\bo_\br_\bd is ex-
+ panded using tilde expansion, parameter and variable expansion,
arithmetic expansion, command substitution, process substitution
- and quote removal. Each _\bp_\ba_\bt_\bt_\be_\br_\bn examined is expanded using
- tilde expansion, parameter and variable expansion, arithmetic
+ and quote removal. Each _\bp_\ba_\bt_\bt_\be_\br_\bn examined is expanded using
+ tilde expansion, parameter and variable expansion, arithmetic
expansion, command substitution, process substitution, and quote
- removal. If the n\bno\boc\bca\bas\bse\bem\bma\bat\btc\bch\bh shell option is enabled, the match
- is performed without regard to the case of alphabetic charac-
+ removal. If the n\bno\boc\bca\bas\bse\bem\bma\bat\btc\bch\bh shell option is enabled, the match
+ is performed without regard to the case of alphabetic charac-
ters. A _\bc_\bl_\ba_\bu_\bs_\be is a pattern list and an associated _\bl_\bi_\bs_\bt.
When a match is found, c\bca\bas\bse\be executes the corresponding _\bl_\bi_\bs_\bt. If
- the ;\b;;\b; operator terminates the case clause, the c\bca\bas\bse\be command
+ the ;\b;;\b; operator terminates the case clause, the c\bca\bas\bse\be command
completes after the first match. Using ;\b;&\b& in place of ;\b;;\b; causes
- execution to continue with the _\bl_\bi_\bs_\bt associated with the next
+ execution to continue with the _\bl_\bi_\bs_\bt associated with the next
pattern list. Using ;\b;;\b;&\b& in place of ;\b;;\b; causes the shell to test
- the next pattern list in the statement, if any, and execute any
- associated _\bl_\bi_\bs_\bt if the match succeeds. continuing the case
+ the next pattern list in the statement, if any, and execute any
+ associated _\bl_\bi_\bs_\bt if the match succeeds. continuing the case
statement execution as if the pattern list had not matched. The
exit status is zero if no pattern matches.
the last _\bl_\bi_\bs_\bt executed.
i\bif\bf _\bl_\bi_\bs_\bt; t\bth\bhe\ben\bn _\bl_\bi_\bs_\bt; [ e\bel\bli\bif\bf _\bl_\bi_\bs_\bt; t\bth\bhe\ben\bn _\bl_\bi_\bs_\bt; ] ... [ e\bel\bls\bse\be _\bl_\bi_\bs_\bt; ] f\bfi\bi
- The i\bif\bf _\bl_\bi_\bs_\bt is executed. If its exit status is zero, the t\bth\bhe\ben\bn
- _\bl_\bi_\bs_\bt is executed. Otherwise, each e\bel\bli\bif\bf _\bl_\bi_\bs_\bt is executed in
- turn, and if its exit status is zero, the corresponding t\bth\bhe\ben\bn
+ The i\bif\bf _\bl_\bi_\bs_\bt is executed. If its exit status is zero, the t\bth\bhe\ben\bn
+ _\bl_\bi_\bs_\bt is executed. Otherwise, each e\bel\bli\bif\bf _\bl_\bi_\bs_\bt is executed in
+ turn, and if its exit status is zero, the corresponding t\bth\bhe\ben\bn
_\bl_\bi_\bs_\bt is executed and the command completes. Otherwise, the e\bel\bls\bse\be
- _\bl_\bi_\bs_\bt is executed, if present. The exit status is the exit sta-
+ _\bl_\bi_\bs_\bt is executed, if present. The exit status is the exit sta-
tus of the last command executed, or zero if no condition tested
true.
w\bwh\bhi\bil\ble\be _\bl_\bi_\bs_\bt_\b-_\b1; d\bdo\bo _\bl_\bi_\bs_\bt_\b-_\b2; d\bdo\bon\bne\be
u\bun\bnt\bti\bil\bl _\bl_\bi_\bs_\bt_\b-_\b1; d\bdo\bo _\bl_\bi_\bs_\bt_\b-_\b2; d\bdo\bon\bne\be
- The w\bwh\bhi\bil\ble\be command continuously executes the list _\bl_\bi_\bs_\bt_\b-_\b2 as long
+ The w\bwh\bhi\bil\ble\be command continuously executes the list _\bl_\bi_\bs_\bt_\b-_\b2 as long
as the last command in the list _\bl_\bi_\bs_\bt_\b-_\b1 returns an exit status of
- zero. The u\bun\bnt\bti\bil\bl command is identical to the w\bwh\bhi\bil\ble\be command, ex-
+ zero. The u\bun\bnt\bti\bil\bl command is identical to the w\bwh\bhi\bil\ble\be command, ex-
cept that the test is negated: _\bl_\bi_\bs_\bt_\b-_\b2 is executed as long as the
last command in _\bl_\bi_\bs_\bt_\b-_\b1 returns a non-zero exit status. The exit
status of the w\bwh\bhi\bil\ble\be and u\bun\bnt\bti\bil\bl commands is the exit status of the
C\bCo\bop\bpr\bro\boc\bce\bes\bss\bse\bes\bs
A _\bc_\bo_\bp_\br_\bo_\bc_\be_\bs_\bs is a shell command preceded by the c\bco\bop\bpr\bro\boc\bc reserved word. A
- coprocess is executed asynchronously in a subshell, as if the command
- had been terminated with the &\b& control operator, with a two-way pipe
+ coprocess is executed asynchronously in a subshell, as if the command
+ had been terminated with the &\b& control operator, with a two-way pipe
established between the executing shell and the coprocess.
The syntax for a coprocess is:
c\bco\bop\bpr\bro\boc\bc [_\bN_\bA_\bM_\bE] _\bc_\bo_\bm_\bm_\ba_\bn_\bd [_\br_\be_\bd_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\bs]
- This creates a coprocess named _\bN_\bA_\bM_\bE. _\bc_\bo_\bm_\bm_\ba_\bn_\bd may be either a simple
- command or a compound command (see above). _\bN_\bA_\bM_\bE is a shell variable
+ This creates a coprocess named _\bN_\bA_\bM_\bE. _\bc_\bo_\bm_\bm_\ba_\bn_\bd may be either a simple
+ command or a compound command (see above). _\bN_\bA_\bM_\bE is a shell variable
name. If _\bN_\bA_\bM_\bE is not supplied, the default name is C\bCO\bOP\bPR\bRO\bOC\bC.
The recommended form to use for a coprocess is
c\bco\bop\bpr\bro\boc\bc _\bN_\bA_\bM_\bE { _\bc_\bo_\bm_\bm_\ba_\bn_\bd [_\br_\be_\bd_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\bs]; }
- This form is preferred because simple commands result in the coprocess
- always being named C\bCO\bOP\bPR\bRO\bOC\bC, and it is simpler to use and more complete
+ This form is preferred because simple commands result in the coprocess
+ always being named C\bCO\bOP\bPR\bRO\bOC\bC, and it is simpler to use and more complete
than the other compound commands.
- If _\bc_\bo_\bm_\bm_\ba_\bn_\bd is a compound command, _\bN_\bA_\bM_\bE is optional. The word following
- c\bco\bop\bpr\bro\boc\bc determines whether that word is interpreted as a variable name:
- it is interpreted as _\bN_\bA_\bM_\bE if it is not a reserved word that introduces
- a compound command. If _\bc_\bo_\bm_\bm_\ba_\bn_\bd is a simple command, _\bN_\bA_\bM_\bE is not al-
- lowed; this is to avoid confusion between _\bN_\bA_\bM_\bE and the first word of
+ If _\bc_\bo_\bm_\bm_\ba_\bn_\bd is a compound command, _\bN_\bA_\bM_\bE is optional. The word following
+ c\bco\bop\bpr\bro\boc\bc determines whether that word is interpreted as a variable name:
+ it is interpreted as _\bN_\bA_\bM_\bE if it is not a reserved word that introduces
+ a compound command. If _\bc_\bo_\bm_\bm_\ba_\bn_\bd is a simple command, _\bN_\bA_\bM_\bE is not al-
+ lowed; this is to avoid confusion between _\bN_\bA_\bM_\bE and the first word of
the simple command.
- When the coprocess is executed, the shell creates an array variable
- (see A\bAr\brr\bra\bay\bys\bs below) named _\bN_\bA_\bM_\bE in the context of the executing shell.
- The standard output of _\bc_\bo_\bm_\bm_\ba_\bn_\bd is connected via a pipe to a file de-
- scriptor in the executing shell, and that file descriptor is assigned
+ When the coprocess is executed, the shell creates an array variable
+ (see A\bAr\brr\bra\bay\bys\bs below) named _\bN_\bA_\bM_\bE in the context of the executing shell.
+ The standard output of _\bc_\bo_\bm_\bm_\ba_\bn_\bd is connected via a pipe to a file de-
+ scriptor in the executing shell, and that file descriptor is assigned
to _\bN_\bA_\bM_\bE[0]. The standard input of _\bc_\bo_\bm_\bm_\ba_\bn_\bd is connected via a pipe to a
file descriptor in the executing shell, and that file descriptor is as-
- signed to _\bN_\bA_\bM_\bE[1]. This pipe is established before any redirections
+ signed to _\bN_\bA_\bM_\bE[1]. This pipe is established before any redirections
specified by the command (see R\bRE\bED\bDI\bIR\bRE\bEC\bCT\bTI\bIO\bON\bN below). The file descriptors
- can be utilized as arguments to shell commands and redirections using
- standard word expansions. Other than those created to execute command
- and process substitutions, the file descriptors are not available in
+ can be utilized as arguments to shell commands and redirections using
+ standard word expansions. Other than those created to execute command
+ and process substitutions, the file descriptors are not available in
subshells.
- The process ID of the shell spawned to execute the coprocess is avail-
- able as the value of the variable _\bN_\bA_\bM_\bE_PID. The w\bwa\bai\bit\bt builtin may be
+ The process ID of the shell spawned to execute the coprocess is avail-
+ able as the value of the variable _\bN_\bA_\bM_\bE_PID. The w\bwa\bai\bit\bt builtin may be
used to wait for the coprocess to terminate.
- Since the coprocess is created as an asynchronous command, the c\bco\bop\bpr\bro\boc\bc
- command always returns success. The return status of a coprocess is
+ Since the coprocess is created as an asynchronous command, the c\bco\bop\bpr\bro\boc\bc
+ command always returns success. The return status of a coprocess is
the exit status of _\bc_\bo_\bm_\bm_\ba_\bn_\bd.
S\bSh\bhe\bel\bll\bl F\bFu\bun\bnc\bct\bti\bio\bon\bn D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bns\bs
- A shell function is an object that is called like a simple command and
- executes a compound command with a new set of positional parameters.
+ A shell function is an object that is called like a simple command and
+ executes a compound command with a new set of positional parameters.
Shell functions are declared as follows:
_\bf_\bn_\ba_\bm_\be () _\bc_\bo_\bm_\bp_\bo_\bu_\bn_\bd_\b-_\bc_\bo_\bm_\bm_\ba_\bn_\bd [_\br_\be_\bd_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn]
f\bfu\bun\bnc\bct\bti\bio\bon\bn _\bf_\bn_\ba_\bm_\be [()] _\bc_\bo_\bm_\bp_\bo_\bu_\bn_\bd_\b-_\bc_\bo_\bm_\bm_\ba_\bn_\bd [_\br_\be_\bd_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn]
This defines a function named _\bf_\bn_\ba_\bm_\be. The reserved word f\bfu\bun\bnc\bct\bti\bio\bon\bn
- is optional. If the f\bfu\bun\bnc\bct\bti\bio\bon\bn reserved word is supplied, the
- parentheses are optional. The _\bb_\bo_\bd_\by of the function is the com-
- pound command _\bc_\bo_\bm_\bp_\bo_\bu_\bn_\bd_\b-_\bc_\bo_\bm_\bm_\ba_\bn_\bd (see C\bCo\bom\bmp\bpo\bou\bun\bnd\bd C\bCo\bom\bmm\bma\ban\bnd\bds\bs above).
- That command is usually a _\bl_\bi_\bs_\bt of commands between { and }, but
+ is optional. If the f\bfu\bun\bnc\bct\bti\bio\bon\bn reserved word is supplied, the
+ parentheses are optional. The _\bb_\bo_\bd_\by of the function is the com-
+ pound command _\bc_\bo_\bm_\bp_\bo_\bu_\bn_\bd_\b-_\bc_\bo_\bm_\bm_\ba_\bn_\bd (see C\bCo\bom\bmp\bpo\bou\bun\bnd\bd C\bCo\bom\bmm\bma\ban\bnd\bds\bs above).
+ That command is usually a _\bl_\bi_\bs_\bt of commands between { and }, but
may be any command listed under C\bCo\bom\bmp\bpo\bou\bun\bnd\bd C\bCo\bom\bmm\bma\ban\bnd\bds\bs above. If the
f\bfu\bun\bnc\bct\bti\bio\bon\bn reserved word is used, but the parentheses are not sup-
plied, the braces are recommended. _\bc_\bo_\bm_\bp_\bo_\bu_\bn_\bd_\b-_\bc_\bo_\bm_\bm_\ba_\bn_\bd is executed
- whenever _\bf_\bn_\ba_\bm_\be is specified as the name of a simple command.
+ whenever _\bf_\bn_\ba_\bm_\be is specified as the name of a simple command.
When in posix mode, _\bf_\bn_\ba_\bm_\be must be a valid shell _\bn_\ba_\bm_\be and may not
- be the name of one of the POSIX _\bs_\bp_\be_\bc_\bi_\ba_\bl _\bb_\bu_\bi_\bl_\bt_\bi_\bn_\bs. In default
- mode, a function name can be any unquoted shell word that does
+ be the name of one of the POSIX _\bs_\bp_\be_\bc_\bi_\ba_\bl _\bb_\bu_\bi_\bl_\bt_\bi_\bn_\bs. In default
+ mode, a function name can be any unquoted shell word that does
not contain $\b$.
- Any redirections (see R\bRE\bED\bDI\bIR\bRE\bEC\bCT\bTI\bIO\bON\bN below) specified when a function is
+ Any redirections (see R\bRE\bED\bDI\bIR\bRE\bEC\bCT\bTI\bIO\bON\bN below) specified when a function is
defined are performed when the function is executed.
- The exit status of a function definition is zero unless a syntax error
- occurs or a readonly function with the same name already exists. When
- executed, the exit status of a function is the exit status of the last
+ The exit status of a function definition is zero unless a syntax error
+ occurs or a readonly function with the same name already exists. When
+ executed, the exit status of a function is the exit status of the last
command executed in the body. (See F\bFU\bUN\bNC\bCT\bTI\bIO\bON\bNS\bS below.)
C\bCO\bOM\bMM\bME\bEN\bNT\bTS\bS
In a non-interactive shell, or an interactive shell in which the i\bin\bnt\bte\ber\br-\b-
- a\bac\bct\bti\biv\bve\be_\b_c\bco\bom\bmm\bme\ben\bnt\bts\bs option to the s\bsh\bho\bop\bpt\bt builtin is enabled (see S\bSH\bHE\bEL\bLL\bL
- B\bBU\bUI\bIL\bLT\bTI\bIN\bN C\bCO\bOM\bMM\bMA\bAN\bND\bDS\bS below), a word beginning with #\b# introduces a comment.
+ a\bac\bct\bti\biv\bve\be_\b_c\bco\bom\bmm\bme\ben\bnt\bts\bs option to the s\bsh\bho\bop\bpt\bt builtin is enabled (see S\bSH\bHE\bEL\bLL\bL
+ B\bBU\bUI\bIL\bLT\bTI\bIN\bN C\bCO\bOM\bMM\bMA\bAN\bND\bDS\bS below), a word beginning with #\b# introduces a comment.
A word begins at the beginning of a line, after unquoted whitespace, or
- after an operator. The comment causes that word and all remaining
- characters on that line to be ignored. An interactive shell without
- the i\bin\bnt\bte\ber\bra\bac\bct\bti\biv\bve\be_\b_c\bco\bom\bmm\bme\ben\bnt\bts\bs option enabled does not allow comments. The
+ after an operator. The comment causes that word and all remaining
+ characters on that line to be ignored. An interactive shell without
+ the i\bin\bnt\bte\ber\bra\bac\bct\bti\biv\bve\be_\b_c\bco\bom\bmm\bme\ben\bnt\bts\bs option enabled does not allow comments. The
i\bin\bnt\bte\ber\bra\bac\bct\bti\biv\bve\be_\b_c\bco\bom\bmm\bme\ben\bnt\bts\bs option is enabled by default in interactive
shells.
Q\bQU\bUO\bOT\bTI\bIN\bNG\bG
- _\bQ_\bu_\bo_\bt_\bi_\bn_\bg is used to remove the special meaning of certain characters or
- words to the shell. Quoting can be used to disable special treatment
+ _\bQ_\bu_\bo_\bt_\bi_\bn_\bg is used to remove the special meaning of certain characters or
+ words to the shell. Quoting can be used to disable special treatment
for special characters, to prevent reserved words from being recognized
as such, and to prevent parameter expansion.
- Each of the _\bm_\be_\bt_\ba_\bc_\bh_\ba_\br_\ba_\bc_\bt_\be_\br_\bs listed above under D\bDE\bEF\bFI\bIN\bNI\bIT\bTI\bIO\bON\bNS\bS has special
+ Each of the _\bm_\be_\bt_\ba_\bc_\bh_\ba_\br_\ba_\bc_\bt_\be_\br_\bs listed above under D\bDE\bEF\bFI\bIN\bNI\bIT\bTI\bIO\bON\bNS\bS has special
meaning to the shell and must be quoted if it is to represent itself.
- When the command history expansion facilities are being used (see H\bHI\bIS\bS-\b-
+ When the command history expansion facilities are being used (see H\bHI\bIS\bS-\b-
T\bTO\bOR\bRY\bY E\bEX\bXP\bPA\bAN\bNS\bSI\bIO\bON\bN below), the _\bh_\bi_\bs_\bt_\bo_\br_\by _\be_\bx_\bp_\ba_\bn_\bs_\bi_\bo_\bn character, usually !\b!, must
be quoted to prevent history expansion.
There are four quoting mechanisms: the _\be_\bs_\bc_\ba_\bp_\be _\bc_\bh_\ba_\br_\ba_\bc_\bt_\be_\br, single quotes,
double quotes, and dollar-single quotes.
- A non-quoted backslash (\\b\) is the _\be_\bs_\bc_\ba_\bp_\be _\bc_\bh_\ba_\br_\ba_\bc_\bt_\be_\br. It preserves the
- literal value of the next character that follows, removing any special
- meaning it has, with the exception of <newline>. If a \\b\<newline> pair
- appears, and the backslash is not itself quoted, the \\b\<newline> is
- treated as a line continuation (that is, it is removed from the input
+ A non-quoted backslash (\\b\) is the _\be_\bs_\bc_\ba_\bp_\be _\bc_\bh_\ba_\br_\ba_\bc_\bt_\be_\br. It preserves the
+ literal value of the next character that follows, removing any special
+ meaning it has, with the exception of <newline>. If a \\b\<newline> pair
+ appears, and the backslash is not itself quoted, the \\b\<newline> is
+ treated as a line continuation (that is, it is removed from the input
stream and effectively ignored).
- Enclosing characters in single quotes preserves the literal value of
+ Enclosing characters in single quotes preserves the literal value of
each character within the quotes. A single quote may not occur between
single quotes, even when preceded by a backslash.
- Enclosing characters in double quotes preserves the literal value of
- all characters within the quotes, with the exception of $\b$, `\b`, \\b\, and,
+ Enclosing characters in double quotes preserves the literal value of
+ all characters within the quotes, with the exception of $\b$, `\b`, \\b\, and,
when history expansion is enabled, !\b!. When the shell is in posix mode,
- the !\b! has no special meaning within double quotes, even when history
- expansion is enabled. The characters $\b$ and `\b` retain their special
- meaning within double quotes. The backslash retains its special mean-
- ing only when followed by one of the following characters: $\b$, `\b`, "\b", \\b\,
+ the !\b! has no special meaning within double quotes, even when history
+ expansion is enabled. The characters $\b$ and `\b` retain their special
+ meaning within double quotes. The backslash retains its special mean-
+ ing only when followed by one of the following characters: $\b$, `\b`, "\b", \\b\,
or <\b<n\bne\bew\bwl\bli\bin\bne\be>\b>. Backslashes preceding characters without a special mean-
ing are left unmodified.
- A double quote may be quoted within double quotes by preceding it with
+ A double quote may be quoted within double quotes by preceding it with
a backslash. If enabled, history expansion will be performed unless an
- !\b! appearing in double quotes is escaped using a backslash. The back-
+ !\b! appearing in double quotes is escaped using a backslash. The back-
slash preceding the !\b! is not removed.
- The special parameters *\b* and @\b@ have special meaning when in double
+ The special parameters *\b* and @\b@ have special meaning when in double
quotes (see P\bPA\bAR\bRA\bAM\bME\bET\bTE\bER\bRS\bS below).
- Character sequences of the form $\b$'_\bs_\bt_\br_\bi_\bn_\bg' are treated as a special
- variant of single quotes. The sequence expands to _\bs_\bt_\br_\bi_\bn_\bg, with back-
- slash-escaped characters in _\bs_\bt_\br_\bi_\bn_\bg replaced as specified by the ANSI C
- standard. Backslash escape sequences, if present, are decoded as fol-
+ Character sequences of the form $\b$'_\bs_\bt_\br_\bi_\bn_\bg' are treated as a special
+ variant of single quotes. The sequence expands to _\bs_\bt_\br_\bi_\bn_\bg, with back-
+ slash-escaped characters in _\bs_\bt_\br_\bi_\bn_\bg replaced as specified by the ANSI C
+ standard. Backslash escape sequences, if present, are decoded as fol-
lows:
\\b\a\ba alert (bell)
\\b\b\bb backspace
\\b\'\b' single quote
\\b\"\b" double quote
\\b\?\b? question mark
- \\b\_\bn_\bn_\bn The eight-bit character whose value is the octal value
+ \\b\_\bn_\bn_\bn The eight-bit character whose value is the octal value
_\bn_\bn_\bn (one to three octal digits).
- \\b\x\bx_\bH_\bH The eight-bit character whose value is the hexadecimal
+ \\b\x\bx_\bH_\bH The eight-bit character whose value is the hexadecimal
value _\bH_\bH (one or two hex digits).
- \\b\u\bu_\bH_\bH_\bH_\bH The Unicode (ISO/IEC 10646) character whose value is the
+ \\b\u\bu_\bH_\bH_\bH_\bH The Unicode (ISO/IEC 10646) character whose value is the
hexadecimal value _\bH_\bH_\bH_\bH (one to four hex digits).
\\b\U\bU_\bH_\bH_\bH_\bH_\bH_\bH_\bH_\bH
- The Unicode (ISO/IEC 10646) character whose value is the
+ The Unicode (ISO/IEC 10646) character whose value is the
hexadecimal value _\bH_\bH_\bH_\bH_\bH_\bH_\bH_\bH (one to eight hex digits).
\\b\c\bc_\bx A control-_\bx character.
- The expanded result is single-quoted, as if the dollar sign had not
+ The expanded result is single-quoted, as if the dollar sign had not
been present.
T\bTr\bra\ban\bns\bsl\bla\bat\bti\bin\bng\bg S\bSt\btr\bri\bin\bng\bgs\bs
- A double-quoted string preceded by a dollar sign ($\b$"_\bs_\bt_\br_\bi_\bn_\bg") will cause
- the string to be translated according to the current locale. The _\bg_\be_\bt_\b-
- _\bt_\be_\bx_\bt infrastructure performs the lookup and translation, using the
- L\bLC\bC_\b_M\bME\bES\bSS\bSA\bAG\bGE\bES\bS, T\bTE\bEX\bXT\bTD\bDO\bOM\bMA\bAI\bIN\bND\bDI\bIR\bR, and T\bTE\bEX\bXT\bTD\bDO\bOM\bMA\bAI\bIN\bN shell variables. If the
- current locale is C\bC or P\bPO\bOS\bSI\bIX\bX, if there are no translations available,
- or if the string is not translated, the dollar sign is ignored, and the
- string is treated as double-quoted as described above. This is a form
- of double quoting, so the string remains double-quoted by default,
- whether or not it is translated and replaced. If the n\bno\boe\bex\bxp\bpa\ban\bnd\bd_\b_t\btr\bra\ban\bns\bsl\bla\ba-\b-
- t\bti\bio\bon\bn option is enabled using the s\bsh\bho\bop\bpt\bt builtin, translated strings are
- single-quoted instead of double-quoted. See the description of s\bsh\bho\bop\bpt\bt
- below under S\bSH\bHE\bEL\bLL\bL B\bBU\bUI\bIL\bLT\bTI\bIN\bN C\bCO\bOM\bMM\bMA\bAN\bND\bDS\bS.
+ A double-quoted string preceded by a dollar sign ($\b$"_\bs_\bt_\br_\bi_\bn_\bg") causes the
+ string to be translated according to the current locale. The _\bg_\be_\bt_\bt_\be_\bx_\bt
+ infrastructure performs the lookup and translation, using the L\bLC\bC_\b_M\bME\bES\bS-\b-
+ S\bSA\bAG\bGE\bES\bS, T\bTE\bEX\bXT\bTD\bDO\bOM\bMA\bAI\bIN\bND\bDI\bIR\bR, and T\bTE\bEX\bXT\bTD\bDO\bOM\bMA\bAI\bIN\bN shell variables. If the current
+ locale is C\bC or P\bPO\bOS\bSI\bIX\bX, if there are no translations available, or if the
+ string is not translated, the dollar sign is ignored, and the string is
+ treated as double-quoted as described above. This is a form of double
+ quoting, so the string remains double-quoted by default, whether or not
+ it is translated and replaced. If the n\bno\boe\bex\bxp\bpa\ban\bnd\bd_\b_t\btr\bra\ban\bns\bsl\bla\bat\bti\bio\bon\bn option is
+ enabled using the s\bsh\bho\bop\bpt\bt builtin, translated strings are single-quoted
+ instead of double-quoted. See the description of s\bsh\bho\bop\bpt\bt below under
+ S\bSH\bHE\bEL\bLL\bL B\bBU\bUI\bIL\bLT\bTI\bIN\bN C\bCO\bOM\bMM\bMA\bAN\bND\bDS\bS.
P\bPA\bAR\bRA\bAM\bME\bET\bTE\bER\bRS\bS
A _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br is an entity that stores values. It can be a _\bn_\ba_\bm_\be, a num-
the c\bco\bom\bmm\bma\ban\bnd\bd builtin and retain these assignment statement properties.
In the context where an assignment statement is assigning a value to a
- shell variable or array index, the += operator will append to or add to
- the variable's previous value. This includes arguments to _\bd_\be_\bc_\bl_\ba_\br_\ba_\bt_\bi_\bo_\bn
+ shell variable or array index, the += operator appends to or adds to
+ the variable's previous value. This includes arguments to _\bd_\be_\bc_\bl_\ba_\br_\ba_\bt_\bi_\bo_\bn
commands such as d\bde\bec\bcl\bla\bar\bre\be that accept assignment statements. When += is
applied to a variable for which the i\bin\bnt\bte\beg\bge\ber\br attribute has been set, the
variable's current value and _\bv_\ba_\bl_\bu_\be are each evaluated as arithmetic ex-
- pressions, and the sum of the results is assigned as the variable's
+ pressions, and the sum of the results is assigned as the variable's
value. The current value is usually an integer constant, but may be an
expression. When += is applied to an array variable using compound as-
- signment (see A\bAr\brr\bra\bay\bys\bs below), the variable's value is not unset (as it
+ signment (see A\bAr\brr\bra\bay\bys\bs below), the variable's value is not unset (as it
is when using =), and new values are appended to the array beginning at
- one greater than the array's maximum index (for indexed arrays) or
- added as additional key-value pairs in an associative array. When ap-
- plied to a string-valued variable, _\bv_\ba_\bl_\bu_\be is expanded and appended to
+ one greater than the array's maximum index (for indexed arrays) or
+ added as additional key-value pairs in an associative array. When ap-
+ plied to a string-valued variable, _\bv_\ba_\bl_\bu_\be is expanded and appended to
the variable's value.
A variable can be assigned the _\bn_\ba_\bm_\be_\br_\be_\bf attribute using the -\b-n\bn option to
- the d\bde\bec\bcl\bla\bar\bre\be or l\blo\boc\bca\bal\bl builtin commands (see the descriptions of d\bde\bec\bcl\bla\bar\bre\be
- and l\blo\boc\bca\bal\bl below) to create a _\bn_\ba_\bm_\be_\br_\be_\bf, or a reference to another vari-
- able. This allows variables to be manipulated indirectly. Whenever
- the nameref variable is referenced, assigned to, unset, or has its at-
- tributes modified (other than using or changing the _\bn_\ba_\bm_\be_\br_\be_\bf attribute
- itself), the operation is actually performed on the variable specified
- by the nameref variable's value. A nameref is commonly used within
+ the d\bde\bec\bcl\bla\bar\bre\be or l\blo\boc\bca\bal\bl builtin commands (see the descriptions of d\bde\bec\bcl\bla\bar\bre\be
+ and l\blo\boc\bca\bal\bl below) to create a _\bn_\ba_\bm_\be_\br_\be_\bf, or a reference to another vari-
+ able. This allows variables to be manipulated indirectly. Whenever
+ the nameref variable is referenced, assigned to, unset, or has its at-
+ tributes modified (other than using or changing the _\bn_\ba_\bm_\be_\br_\be_\bf attribute
+ itself), the operation is actually performed on the variable specified
+ by the nameref variable's value. A nameref is commonly used within
shell functions to refer to a variable whose name is passed as an argu-
- ment to the function. For instance, if a variable name is passed to a
+ ment to the function. For instance, if a variable name is passed to a
shell function as its first argument, running
declare -n ref=$1
the variable name passed as the first argument. References and assign-
ments to r\bre\bef\bf, and changes to its attributes, are treated as references,
assignments, and attribute modifications to the variable whose name was
- passed as $\b$1\b1. If the control variable in a f\bfo\bor\br loop has the nameref
- attribute, the list of words can be a list of shell variables, and a
- name reference will be established for each word in the list, in turn,
- when the loop is executed. Array variables cannot be given the n\bna\bam\bme\ber\bre\bef\bf
- attribute. However, nameref variables can reference array variables
- and subscripted array variables. Namerefs can be unset using the -\b-n\bn
- option to the u\bun\bns\bse\bet\bt builtin. Otherwise, if u\bun\bns\bse\bet\bt is executed with the
- name of a nameref variable as an argument, the variable referenced by
- the nameref variable will be unset.
+ passed as $\b$1\b1. If the control variable in a f\bfo\bor\br loop has the nameref
+ attribute, the list of words can be a list of shell variables, and a
+ name reference is established for each word in the list, in turn, when
+ the loop is executed. Array variables cannot be given the n\bna\bam\bme\ber\bre\bef\bf at-
+ tribute. However, nameref variables can reference array variables and
+ subscripted array variables. Namerefs can be unset using the -\b-n\bn option
+ to the u\bun\bns\bse\bet\bt builtin. Otherwise, if u\bun\bns\bse\bet\bt is executed with the name of
+ a nameref variable as an argument, the variable referenced by the
+ nameref variable is unset.
P\bPo\bos\bsi\bit\bti\bio\bon\bna\bal\bl P\bPa\bar\bra\bam\bme\bet\bte\ber\brs\bs
A _\bp_\bo_\bs_\bi_\bt_\bi_\bo_\bn_\ba_\bl _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br is a parameter denoted by one or more digits,
B\bBA\bAS\bSH\bH_\b_A\bAR\bRG\bGV\bV0\b0
When referenced, this variable expands to the name of the shell
or shell script (identical to $\b$0\b0; see the description of special
- parameter 0 above). Assigning a value to B\bBA\bAS\bSH\bH_\b_A\bAR\bRG\bGV\bV0\b0 assigns the
- same value to $\b$0\b0. If B\bBA\bAS\bSH\bH_\b_A\bAR\bRG\bGV\bV0\b0 is unset, it loses its special
+ parameter 0 above). Assigning a value to B\bBA\bAS\bSH\bH_\b_A\bAR\bRG\bGV\bV0\b0 sets $\b$0\b0 to
+ the same value. If B\bBA\bAS\bSH\bH_\b_A\bAR\bRG\bGV\bV0\b0 is unset, it loses its special
properties, even if it is subsequently reset.
B\bBA\bAS\bSH\bH_\b_C\bCM\bMD\bDS\bS
- An associative array variable whose members correspond to the
- internal hash table of commands as maintained by the h\bha\bas\bsh\bh
+ An associative array variable whose members correspond to the
+ internal hash table of commands as maintained by the h\bha\bas\bsh\bh
builtin. Adding elements to this array makes them appear in the
hash table; however, unsetting array elements currently does not
- remove command names from the hash table. If B\bBA\bAS\bSH\bH_\b_C\bCM\bMD\bDS\bS is un-
+ remove command names from the hash table. If B\bBA\bAS\bSH\bH_\b_C\bCM\bMD\bDS\bS is un-
set, it loses its special properties, even if it is subsequently
reset.
B\bBA\bAS\bSH\bH_\b_C\bCO\bOM\bMM\bMA\bAN\bND\bD
- Expands to the command currently being executed or about to be
- executed, unless the shell is executing a command as the result
+ Expands to the command currently being executed or about to be
+ executed, unless the shell is executing a command as the result
of a trap, in which case it is the command executing at the time
- of the trap. If B\bBA\bAS\bSH\bH_\b_C\bCO\bOM\bMM\bMA\bAN\bND\bD is unset, it loses its special
+ of the trap. If B\bBA\bAS\bSH\bH_\b_C\bCO\bOM\bMM\bMA\bAN\bND\bD is unset, it loses its special
properties, even if it is subsequently reset.
B\bBA\bAS\bSH\bH_\b_E\bEX\bXE\bEC\bCU\bUT\bTI\bIO\bON\bN_\b_S\bST\bTR\bRI\bIN\bNG\bG
The command argument to the -\b-c\bc invocation option.
B\bBA\bAS\bSH\bH_\b_L\bLI\bIN\bNE\bEN\bNO\bO
- An array variable whose members are the line numbers in source
- files where each corresponding member of F\bFU\bUN\bNC\bCN\bNA\bAM\bME\bE was invoked.
+ An array variable whose members are the line numbers in source
+ files where each corresponding member of F\bFU\bUN\bNC\bCN\bNA\bAM\bME\bE was invoked.
$\b${\b{B\bBA\bAS\bSH\bH_\b_L\bLI\bIN\bNE\bEN\bNO\bO[\b[_\b$_\bi]\b]}\b} is the line number in the source file
($\b${\b{B\bBA\bAS\bSH\bH_\b_S\bSO\bOU\bUR\bRC\bCE\bE[\b[_\b$_\bi_\b+_\b1]\b]}\b}) where $\b${\b{F\bFU\bUN\bNC\bCN\bNA\bAM\bME\bE[\b[_\b$_\bi]\b]}\b} was called (or
- $\b${\b{B\bBA\bAS\bSH\bH_\b_L\bLI\bIN\bNE\bEN\bNO\bO[\b[_\b$_\bi_\b-_\b1]\b]}\b} if referenced within another shell func-
- tion). Use L\bLI\bIN\bNE\bEN\bNO\bO to obtain the current line number. Assign-
+ $\b${\b{B\bBA\bAS\bSH\bH_\b_L\bLI\bIN\bNE\bEN\bNO\bO[\b[_\b$_\bi_\b-_\b1]\b]}\b} if referenced within another shell func-
+ tion). Use L\bLI\bIN\bNE\bEN\bNO\bO to obtain the current line number. Assign-
ments to B\bBA\bAS\bSH\bH_\b_L\bLI\bIN\bNE\bEN\bNO\bO have no effect, and it may not be unset.
B\bBA\bAS\bSH\bH_\b_L\bLO\bOA\bAD\bDA\bAB\bBL\bLE\bES\bS_\b_P\bPA\bAT\bTH\bH
- A colon-separated list of directories in which the e\ben\bna\bab\bbl\ble\be com-
+ A colon-separated list of directories in which the e\ben\bna\bab\bbl\ble\be com-
mand. looks for dynamically loadable builtins.
B\bBA\bAS\bSH\bH_\b_M\bMO\bON\bNO\bOS\bSE\bEC\bCO\bON\bND\bDS\bS
- Each time this variable is referenced, it expands to the value
- returned by the system's monotonic clock, if one is available.
- If there is no monotonic clock, this is equivalent to E\bEP\bPO\bOC\bCH\bHS\bSE\bEC\bC-\b-
- O\bON\bND\bDS\bS. If B\bBA\bAS\bSH\bH_\b_M\bMO\bON\bNO\bOS\bSE\bEC\bCO\bON\bND\bDS\bS is unset, it loses its special prop-
+ Each time this variable is referenced, it expands to the value
+ returned by the system's monotonic clock, if one is available.
+ If there is no monotonic clock, this is equivalent to E\bEP\bPO\bOC\bCH\bHS\bSE\bEC\bC-\b-
+ O\bON\bND\bDS\bS. If B\bBA\bAS\bSH\bH_\b_M\bMO\bON\bNO\bOS\bSE\bEC\bCO\bON\bND\bDS\bS is unset, it loses its special prop-
erties, even if it is subsequently reset.
B\bBA\bAS\bSH\bH_\b_R\bRE\bEM\bMA\bAT\bTC\bCH\bH
- An array variable whose members are assigned by the =\b=~\b~ binary
- operator to the [\b[[\b[ conditional command. The element with index
- 0 is the portion of the string matching the entire regular ex-
+ An array variable whose members are assigned by the =\b=~\b~ binary
+ operator to the [\b[[\b[ conditional command. The element with index
+ 0 is the portion of the string matching the entire regular ex-
pression. The element with index _\bn is the portion of the string
matching the _\bnth parenthesized subexpression.
B\bBA\bAS\bSH\bH_\b_S\bSO\bOU\bUR\bRC\bCE\bE
- An array variable whose members are the source filenames where
- the corresponding shell function names in the F\bFU\bUN\bNC\bCN\bNA\bAM\bME\bE array
+ An array variable whose members are the source filenames where
+ the corresponding shell function names in the F\bFU\bUN\bNC\bCN\bNA\bAM\bME\bE array
variable are defined. The shell function $\b${\b{F\bFU\bUN\bNC\bCN\bNA\bAM\bME\bE[\b[_\b$_\bi]\b]}\b} is de-
- fined in the file $\b${\b{B\bBA\bAS\bSH\bH_\b_S\bSO\bOU\bUR\bRC\bCE\bE[\b[_\b$_\bi]\b]}\b} and called from
- $\b${\b{B\bBA\bAS\bSH\bH_\b_S\bSO\bOU\bUR\bRC\bCE\bE[\b[_\b$_\bi_\b+_\b1]\b]}\b}. Assignments to B\bBA\bAS\bSH\bH_\b_S\bSO\bOU\bUR\bRC\bCE\bE have no ef-
+ fined in the file $\b${\b{B\bBA\bAS\bSH\bH_\b_S\bSO\bOU\bUR\bRC\bCE\bE[\b[_\b$_\bi]\b]}\b} and called from
+ $\b${\b{B\bBA\bAS\bSH\bH_\b_S\bSO\bOU\bUR\bRC\bCE\bE[\b[_\b$_\bi_\b+_\b1]\b]}\b}. Assignments to B\bBA\bAS\bSH\bH_\b_S\bSO\bOU\bUR\bRC\bCE\bE have no ef-
fect, and it may not be unset.
B\bBA\bAS\bSH\bH_\b_S\bSU\bUB\bBS\bSH\bHE\bEL\bLL\bL
- Incremented by one within each subshell or subshell environment
- when the shell begins executing in that environment. The ini-
- tial value is 0. If B\bBA\bAS\bSH\bH_\b_S\bSU\bUB\bBS\bSH\bHE\bEL\bLL\bL is unset, it loses its spe-
+ Incremented by one within each subshell or subshell environment
+ when the shell begins executing in that environment. The ini-
+ tial value is 0. If B\bBA\bAS\bSH\bH_\b_S\bSU\bUB\bBS\bSH\bHE\bEL\bLL\bL is unset, it loses its spe-
cial properties, even if it is subsequently reset.
B\bBA\bAS\bSH\bH_\b_T\bTR\bRA\bAP\bPS\bSI\bIG\bG
- Set to the signal number corresponding to the trap action being
- executed during its execution. See the description of t\btr\bra\bap\bp un-
- der S\bSH\bHE\bEL\bLL\bL B\bBU\bUI\bIL\bLT\bTI\bIN\bN C\bCO\bOM\bMM\bMA\bAN\bND\bDS\bS below for information about signal
+ Set to the signal number corresponding to the trap action being
+ executed during its execution. See the description of t\btr\bra\bap\bp un-
+ der S\bSH\bHE\bEL\bLL\bL B\bBU\bUI\bIL\bLT\bTI\bIN\bN C\bCO\bOM\bMM\bMA\bAN\bND\bDS\bS below for information about signal
numbers and trap execution.
B\bBA\bAS\bSH\bH_\b_V\bVE\bER\bRS\bSI\bIN\bNF\bFO\bO
A readonly array variable whose members hold version information
- for this instance of b\bba\bas\bsh\bh. The values assigned to the array
+ for this instance of b\bba\bas\bsh\bh. The values assigned to the array
members are as follows:
B\bBA\bAS\bSH\bH_\b_V\bVE\bER\bRS\bSI\bIN\bNF\bFO\bO[\b[0]\b] The major version number (the _\br_\be_\bl_\be_\ba_\bs_\be).
B\bBA\bAS\bSH\bH_\b_V\bVE\bER\bRS\bSI\bIN\bNF\bFO\bO[\b[1]\b] The minor version number (the _\bv_\be_\br_\bs_\bi_\bo_\bn).
B\bBA\bAS\bSH\bH_\b_V\bVE\bER\bRS\bSI\bIN\bNF\bFO\bO[\b[4]\b] The release status (e.g., _\bb_\be_\bt_\ba).
B\bBA\bAS\bSH\bH_\b_V\bVE\bER\bRS\bSI\bIN\bNF\bFO\bO[\b[5]\b] The value of M\bMA\bAC\bCH\bHT\bTY\bYP\bPE\bE.
B\bBA\bAS\bSH\bH_\b_V\bVE\bER\bRS\bSI\bIO\bON\bN
- Expands to a string describing the version of this instance of
+ Expands to a string describing the version of this instance of
b\bba\bas\bsh\bh (e.g., 5.2.37(3)-release).
C\bCO\bOM\bMP\bP_\b_C\bCW\bWO\bOR\bRD\bD
- An index into $\b${\b{C\bCO\bOM\bMP\bP_\b_W\bWO\bOR\bRD\bDS\bS}\b} of the word containing the current
+ An index into $\b${\b{C\bCO\bOM\bMP\bP_\b_W\bWO\bOR\bRD\bDS\bS}\b} of the word containing the current
cursor position. This variable is available only in shell func-
- tions invoked by the programmable completion facilities (see
+ tions invoked by the programmable completion facilities (see
P\bPr\bro\bog\bgr\bra\bam\bmm\bma\bab\bbl\ble\be C\bCo\bom\bmp\bpl\ble\bet\bti\bio\bon\bn below).
C\bCO\bOM\bMP\bP_\b_K\bKE\bEY\bY
The key (or final key of a key sequence) used to invoke the cur-
- rent completion function. This variable is available only in
- shell functions and external commands invoked by the programma-
+ rent completion function. This variable is available only in
+ shell functions and external commands invoked by the programma-
ble completion facilities (see P\bPr\bro\bog\bgr\bra\bam\bmm\bma\bab\bbl\ble\be C\bCo\bom\bmp\bpl\ble\bet\bti\bio\bon\bn below).
C\bCO\bOM\bMP\bP_\b_L\bLI\bIN\bNE\bE
- The current command line. This variable is available only in
- shell functions and external commands invoked by the programma-
+ The current command line. This variable is available only in
+ shell functions and external commands invoked by the programma-
ble completion facilities (see P\bPr\bro\bog\bgr\bra\bam\bmm\bma\bab\bbl\ble\be C\bCo\bom\bmp\bpl\ble\bet\bti\bio\bon\bn below).
C\bCO\bOM\bMP\bP_\b_P\bPO\bOI\bIN\bNT\bT
- The index of the current cursor position relative to the begin-
- ning of the current command. If the current cursor position is
+ The index of the current cursor position relative to the begin-
+ ning of the current command. If the current cursor position is
at the end of the current command, the value of this variable is
- equal to $\b${\b{#\b#C\bCO\bOM\bMP\bP_\b_L\bLI\bIN\bNE\bE}\b}. This variable is available only in
- shell functions and external commands invoked by the programma-
+ equal to $\b${\b{#\b#C\bCO\bOM\bMP\bP_\b_L\bLI\bIN\bNE\bE}\b}. This variable is available only in
+ shell functions and external commands invoked by the programma-
ble completion facilities (see P\bPr\bro\bog\bgr\bra\bam\bmm\bma\bab\bbl\ble\be C\bCo\bom\bmp\bpl\ble\bet\bti\bio\bon\bn below).
C\bCO\bOM\bMP\bP_\b_T\bTY\bYP\bPE\bE
- Set to an integer value corresponding to the type of attempted
- completion that caused a completion function to be called: _\bT_\bA_\bB,
- for normal completion, _\b?, for listing completions after succes-
- sive tabs, _\b!, for listing alternatives on partial word comple-
- tion, _\b@, to list completions if the word is not unmodified, or
- _\b%, for menu completion. This variable is available only in
- shell functions and external commands invoked by the programma-
+ Set to an integer value corresponding to the type of attempted
+ completion that caused a completion function to be called: _\bT_\bA_\bB,
+ for normal completion, _\b?, for listing completions after succes-
+ sive tabs, _\b!, for listing alternatives on partial word comple-
+ tion, _\b@, to list completions if the word is not unmodified, or
+ _\b%, for menu completion. This variable is available only in
+ shell functions and external commands invoked by the programma-
ble completion facilities (see P\bPr\bro\bog\bgr\bra\bam\bmm\bma\bab\bbl\ble\be C\bCo\bom\bmp\bpl\ble\bet\bti\bio\bon\bn below).
C\bCO\bOM\bMP\bP_\b_W\bWO\bOR\bRD\bDB\bBR\bRE\bEA\bAK\bKS\bS
- The set of characters that the r\bre\bea\bad\bdl\bli\bin\bne\be library treats as word
- separators when performing word completion. If C\bCO\bOM\bMP\bP_\b_W\bWO\bOR\bRD\bDB\bBR\bRE\bEA\bAK\bKS\bS
- is unset, it loses its special properties, even if it is subse-
+ The set of characters that the r\bre\bea\bad\bdl\bli\bin\bne\be library treats as word
+ separators when performing word completion. If C\bCO\bOM\bMP\bP_\b_W\bWO\bOR\bRD\bDB\bBR\bRE\bEA\bAK\bKS\bS
+ is unset, it loses its special properties, even if it is subse-
quently reset.
C\bCO\bOM\bMP\bP_\b_W\bWO\bOR\bRD\bDS\bS
- An array variable (see A\bAr\brr\bra\bay\bys\bs below) consisting of the individ-
- ual words in the current command line. The line is split into
- words as r\bre\bea\bad\bdl\bli\bin\bne\be would split it, using C\bCO\bOM\bMP\bP_\b_W\bWO\bOR\bRD\bDB\bBR\bRE\bEA\bAK\bKS\bS as de-
- scribed above. This variable is available only in shell func-
- tions invoked by the programmable completion facilities (see
+ An array variable (see A\bAr\brr\bra\bay\bys\bs below) consisting of the individ-
+ ual words in the current command line. The line is split into
+ words as r\bre\bea\bad\bdl\bli\bin\bne\be would split it, using C\bCO\bOM\bMP\bP_\b_W\bWO\bOR\bRD\bDB\bBR\bRE\bEA\bAK\bKS\bS as de-
+ scribed above. This variable is available only in shell func-
+ tions invoked by the programmable completion facilities (see
P\bPr\bro\bog\bgr\bra\bam\bmm\bma\bab\bbl\ble\be C\bCo\bom\bmp\bpl\ble\bet\bti\bio\bon\bn below).
- C\bCO\bOP\bPR\bRO\bOC\bC An array variable (see A\bAr\brr\bra\bay\bys\bs below) created to hold the file
- descriptors for output from and input to an unnamed coprocess
+ C\bCO\bOP\bPR\bRO\bOC\bC An array variable (see A\bAr\brr\bra\bay\bys\bs below) created to hold the file
+ descriptors for output from and input to an unnamed coprocess
(see C\bCo\bop\bpr\bro\boc\bce\bes\bss\bse\bes\bs above).
D\bDI\bIR\bRS\bST\bTA\bAC\bCK\bK
An array variable (see A\bAr\brr\bra\bay\bys\bs below) containing the current con-
- tents of the directory stack. Directories appear in the stack
- in the order they are displayed by the d\bdi\bir\brs\bs builtin. Assigning
+ tents of the directory stack. Directories appear in the stack
+ in the order they are displayed by the d\bdi\bir\brs\bs builtin. Assigning
to members of this array variable may be used to modify directo-
- ries already in the stack, but the p\bpu\bus\bsh\bhd\bd and p\bpo\bop\bpd\bd builtins must
- be used to add and remove directories. Assignment to this vari-
- able will not change the current directory. If D\bDI\bIR\bRS\bST\bTA\bAC\bCK\bK is un-
+ ries already in the stack, but the p\bpu\bus\bsh\bhd\bd and p\bpo\bop\bpd\bd builtins must
+ be used to add and remove directories. Assigning to this vari-
+ able does not change the current directory. If D\bDI\bIR\bRS\bST\bTA\bAC\bCK\bK is un-
set, it loses its special properties, even if it is subsequently
reset.
E\bEP\bPO\bOC\bCH\bHR\bRE\bEA\bAL\bLT\bTI\bIM\bME\bE
is subsequently reset.
H\bHI\bIS\bST\bTC\bCM\bMD\bD
The history number, or index in the history list, of the current
- command. Assignments to H\bHI\bIS\bST\bTC\bCM\bMD\bD are ignored. If H\bHI\bIS\bST\bTC\bCM\bMD\bD is un-
- set, it loses its special properties, even if it is subsequently
- reset.
+ command. Assignments to H\bHI\bIS\bST\bTC\bCM\bMD\bD have no effect. If H\bHI\bIS\bST\bTC\bCM\bMD\bD is
+ unset, it loses its special properties, even if it is subse-
+ quently reset.
H\bHO\bOS\bST\bTN\bNA\bAM\bME\bE
Automatically set to the name of the current host.
H\bHO\bOS\bST\bTT\bTY\bYP\bPE\bE
R\bRA\bAN\bND\bDO\bOM\bM Each time this parameter is referenced, it expands to a random
integer between 0 and 32767. Assigning a value to R\bRA\bAN\bND\bDO\bOM\bM ini-
tializes (seeds) the sequence of random numbers. Seeding the
- random number generator with the same constant value will pro-
- duce the same sequence of values. If R\bRA\bAN\bND\bDO\bOM\bM is unset, it loses
- its special properties, even if it is subsequently reset.
+ random number generator with the same constant value produces
+ the same sequence of values. If R\bRA\bAN\bND\bDO\bOM\bM is unset, it loses its
+ special properties, even if it is subsequently reset.
R\bRE\bEA\bAD\bDL\bLI\bIN\bNE\bE_\b_A\bAR\bRG\bGU\bUM\bME\bEN\bNT\bT
Any numeric argument given to a r\bre\bea\bad\bdl\bli\bin\bne\be command that was de-
fined using "bind -x" (see S\bSH\bHE\bEL\bLL\bL B\bBU\bUI\bIL\bLT\bTI\bIN\bN C\bCO\bOM\bMM\bMA\bAN\bND\bDS\bS below) when it
to search for the resultant filename.
B\bBA\bAS\bSH\bH_\b_X\bXT\bTR\bRA\bAC\bCE\bEF\bFD\bD
If set to an integer corresponding to a valid file descriptor,
- b\bba\bas\bsh\bh will write the trace output generated when "set -x" is en-
- abled to that file descriptor, instead of the standard error.
- The file descriptor is closed when B\bBA\bAS\bSH\bH_\b_X\bXT\bTR\bRA\bAC\bCE\bEF\bFD\bD is unset or as-
+ b\bba\bas\bsh\bh writes the trace output generated when "set -x" is enabled
+ to that file descriptor, instead of the standard error. The
+ file descriptor is closed when B\bBA\bAS\bSH\bH_\b_X\bXT\bTR\bRA\bAC\bCE\bEF\bFD\bD is unset or as-
signed a new value. Unsetting B\bBA\bAS\bSH\bH_\b_X\bXT\bTR\bRA\bAC\bCE\bEF\bFD\bD or assigning it the
- empty string causes the trace output to be sent to the standard
+ empty string causes the trace output to be sent to the standard
error. Note that setting B\bBA\bAS\bSH\bH_\b_X\bXT\bTR\bRA\bAC\bCE\bEF\bFD\bD to 2 (the standard error
- file descriptor) and then unsetting it will result in the stan-
+ file descriptor) and then unsetting it will result in the stan-
dard error being closed.
- C\bCD\bDP\bPA\bAT\bTH\bH The search path for the c\bcd\bd command. This is a colon-separated
+ C\bCD\bDP\bPA\bAT\bTH\bH The search path for the c\bcd\bd command. This is a colon-separated
list of directories where the shell looks for directories speci-
- fied as arguments to the c\bcd\bd command. A sample value is
+ fied as arguments to the c\bcd\bd command. A sample value is
".:~:/usr".
C\bCH\bHI\bIL\bLD\bD_\b_M\bMA\bAX\bX
- Set the number of exited child status values for the shell to
- remember. B\bBa\bas\bsh\bh will not allow this value to be decreased below
- a POSIX-mandated minimum, and there is a maximum value (cur-
- rently 8192) that this may not exceed. The minimum value is
+ Set the number of exited child status values for the shell to
+ remember. B\bBa\bas\bsh\bh will not allow this value to be decreased below
+ a POSIX-mandated minimum, and there is a maximum value (cur-
+ rently 8192) that this may not exceed. The minimum value is
system-dependent.
C\bCO\bOL\bLU\bUM\bMN\bNS\bS
- Used by the s\bse\bel\ble\bec\bct\bt compound command to determine the terminal
- width when printing selection lists. Automatically set if the
- c\bch\bhe\bec\bck\bkw\bwi\bin\bns\bsi\biz\bze\be option is enabled or in an interactive shell upon
+ Used by the s\bse\bel\ble\bec\bct\bt compound command to determine the terminal
+ width when printing selection lists. Automatically set if the
+ c\bch\bhe\bec\bck\bkw\bwi\bin\bns\bsi\biz\bze\be option is enabled or in an interactive shell upon
receipt of a S\bSI\bIG\bGW\bWI\bIN\bNC\bCH\bH.
C\bCO\bOM\bMP\bPR\bRE\bEP\bPL\bLY\bY
An array variable from which b\bba\bas\bsh\bh reads the possible completions
- generated by a shell function invoked by the programmable com-
- pletion facility (see P\bPr\bro\bog\bgr\bra\bam\bmm\bma\bab\bbl\ble\be C\bCo\bom\bmp\bpl\ble\bet\bti\bio\bon\bn below). Each ar-
+ generated by a shell function invoked by the programmable com-
+ pletion facility (see P\bPr\bro\bog\bgr\bra\bam\bmm\bma\bab\bbl\ble\be C\bCo\bom\bmp\bpl\ble\bet\bti\bio\bon\bn below). Each ar-
ray element contains one possible completion.
- E\bEM\bMA\bAC\bCS\bS If b\bba\bas\bsh\bh finds this variable in the environment when the shell
- starts with value "t", it assumes that the shell is running in
+ E\bEM\bMA\bAC\bCS\bS If b\bba\bas\bsh\bh 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.
- E\bEN\bNV\bV Expanded and executed similarly to B\bBA\bAS\bSH\bH_\b_E\bEN\bNV\bV (see I\bIN\bNV\bVO\bOC\bCA\bAT\bTI\bIO\bON\bN
+ E\bEN\bNV\bV Expanded and executed similarly to B\bBA\bAS\bSH\bH_\b_E\bEN\bNV\bV (see I\bIN\bNV\bVO\bOC\bCA\bAT\bTI\bIO\bON\bN
above) when an interactive shell is invoked in posix mode.
E\bEX\bXE\bEC\bCI\bIG\bGN\bNO\bOR\bRE\bE
- A colon-separated list of shell patterns (see P\bPa\bat\btt\bte\ber\brn\bn M\bMa\bat\btc\bch\bhi\bin\bng\bg)
- defining the set of filenames to be ignored by command search
- using P\bPA\bAT\bTH\bH. Files whose full pathnames match one of these pat-
- terns are not considered executable files for the purposes of
+ A colon-separated list of shell patterns (see P\bPa\bat\btt\bte\ber\brn\bn M\bMa\bat\btc\bch\bhi\bin\bng\bg)
+ defining the set of filenames to be ignored by command search
+ using P\bPA\bAT\bTH\bH. Files whose full pathnames match one of these pat-
+ terns are not considered executable files for the purposes of
completion and command execution via P\bPA\bAT\bTH\bH lookup. This does not
affect the behavior of the [\b[, t\bte\bes\bst\bt, and [\b[[\b[ commands. Full path-
- names in the command hash table are not subject to E\bEX\bXE\bEC\bCI\bIG\bGN\bNO\bOR\bRE\bE.
- Use this variable to ignore shared library files that have the
- executable bit set, but are not executable files. The pattern
+ names in the command hash table are not subject to E\bEX\bXE\bEC\bCI\bIG\bGN\bNO\bOR\bRE\bE.
+ Use this variable to ignore shared library files that have the
+ executable bit set, but are not executable files. The pattern
matching honors the setting of the e\bex\bxt\btg\bgl\blo\bob\bb shell option.
F\bFC\bCE\bED\bDI\bIT\bT The default editor for the f\bfc\bc builtin command.
F\bFI\bIG\bGN\bNO\bOR\bRE\bE
- A colon-separated list of suffixes to ignore when performing
+ A colon-separated list of suffixes to ignore when performing
filename completion (see R\bRE\bEA\bAD\bDL\bLI\bIN\bNE\bE below). A filename whose suf-
- fix matches one of the entries in F\bFI\bIG\bGN\bNO\bOR\bRE\bE is excluded from the
+ fix matches one of the entries in F\bFI\bIG\bGN\bNO\bOR\bRE\bE is excluded from the
list of matched filenames. A sample value is ".o:~".
F\bFU\bUN\bNC\bCN\bNE\bES\bST\bT
- If set to a numeric value greater than 0, defines a maximum
- function nesting level. Function invocations that exceed this
- nesting level will cause the current command to abort.
+ If set to a numeric value greater than 0, defines a maximum
+ function nesting level. Function invocations that exceed this
+ nesting level cause the current command to abort.
G\bGL\bLO\bOB\bBI\bIG\bGN\bNO\bOR\bRE\bE
- A colon-separated list of patterns defining the set of file
- names to be ignored by pathname expansion. If a file name
- matched by a pathname expansion pattern also matches one of the
- patterns in G\bGL\bLO\bOB\bBI\bIG\bGN\bNO\bOR\bRE\bE, it is removed from the list of matches.
+ A colon-separated list of patterns defining the set of file
+ names to be ignored by pathname expansion. If a file name
+ matched by a pathname expansion pattern also matches one of the
+ patterns in G\bGL\bLO\bOB\bBI\bIG\bGN\bNO\bOR\bRE\bE, it is removed from the list of matches.
The pattern matching honors the setting of the e\bex\bxt\btg\bgl\blo\bob\bb shell op-
tion.
G\bGL\bLO\bOB\bBS\bSO\bOR\bRT\bT
- Controls how the results of pathname expansion are sorted. The
- value of this variable specifies the sort criteria and sort or-
- der for the results of pathname expansion. If this variable is
- unset or set to the null string, pathname expansion uses the
- historical behavior of sorting by name, in ascending lexico-
+ Controls how the results of pathname expansion are sorted. The
+ value of this variable specifies the sort criteria and sort or-
+ der for the results of pathname expansion. If this variable is
+ unset or set to the null string, pathname expansion uses the
+ historical behavior of sorting by name, in ascending lexico-
graphic order as determined by the L\bLC\bC_\b_C\bCO\bOL\bLL\bLA\bAT\bTE\bE shell variable.
- If set, a valid value begins with an optional _\b+, which is ig-
+ If set, a valid value begins with an optional _\b+, which is ig-
nored, or _\b-, which reverses the sort order from ascending to de-
- scending, followed by a sort specifier. The valid sort speci-
- fiers are _\bn_\ba_\bm_\be, _\bn_\bu_\bm_\be_\br_\bi_\bc, _\bs_\bi_\bz_\be, _\bm_\bt_\bi_\bm_\be, _\ba_\bt_\bi_\bm_\be, _\bc_\bt_\bi_\bm_\be, and _\bb_\bl_\bo_\bc_\bk_\bs,
+ scending, followed by a sort specifier. The valid sort speci-
+ fiers are _\bn_\ba_\bm_\be, _\bn_\bu_\bm_\be_\br_\bi_\bc, _\bs_\bi_\bz_\be, _\bm_\bt_\bi_\bm_\be, _\ba_\bt_\bi_\bm_\be, _\bc_\bt_\bi_\bm_\be, and _\bb_\bl_\bo_\bc_\bk_\bs,
which sort the files on name, names in numeric rather than lexi-
- cographic order, file size, modification time, access time, in-
- ode change time, and number of blocks, respectively. If any of
- the non-name keys compare as equal (e.g., if two files are the
+ cographic order, file size, modification time, access time, in-
+ ode change time, and number of blocks, respectively. If any of
+ the non-name keys compare as equal (e.g., if two files are the
same size), sorting uses the name as a secondary sort key.
- For example, a value of _\b-_\bm_\bt_\bi_\bm_\be sorts the results in descending
+ For example, a value of _\b-_\bm_\bt_\bi_\bm_\be sorts the results in descending
order by modification time (newest first).
- The _\bn_\bu_\bm_\be_\br_\bi_\bc specifier treats names consisting solely of digits
- as numbers and sorts them using their numeric value (so "2" will
- sort before "10", for example). When using _\bn_\bu_\bm_\be_\br_\bi_\bc, names con-
- taining non-digits sort after all the all-digit names and are
+ The _\bn_\bu_\bm_\be_\br_\bi_\bc specifier treats names consisting solely of digits
+ as numbers and sorts them using their numeric value (so "2"
+ sorts before "10", for example). When using _\bn_\bu_\bm_\be_\br_\bi_\bc, names con-
+ taining non-digits sort after all the all-digit names and are
sorted by name using the traditional behavior.
A sort specifier of _\bn_\bo_\bs_\bo_\br_\bt disables sorting completely; b\bba\bas\bsh\bh re-
- turns the results in the order they are read from the file sys-
+ turns the results in the order they are read from the file sys-
tem, ignoring any leading _\b-.
- If the sort specifier is missing, it defaults to _\bn_\ba_\bm_\be, so a
- value of _\b+ is equivalent to the null string, and a value of _\b-
- sorts by name in descending order. Any invalid value restores
+ If the sort specifier is missing, it defaults to _\bn_\ba_\bm_\be, so a
+ value of _\b+ is equivalent to the null string, and a value of _\b-
+ sorts by name in descending order. Any invalid value restores
the historical sorting behavior.
H\bHI\bIS\bST\bTC\bCO\bON\bNT\bTR\bRO\bOL\bL
- A colon-separated list of values controlling how commands are
- saved on the history list. If the list of values includes
- _\bi_\bg_\bn_\bo_\br_\be_\bs_\bp_\ba_\bc_\be, lines which begin with a s\bsp\bpa\bac\bce\be character are not
- saved in the history list. A value of _\bi_\bg_\bn_\bo_\br_\be_\bd_\bu_\bp_\bs causes lines
+ A colon-separated list of values controlling how commands are
+ saved on the history list. If the list of values includes
+ _\bi_\bg_\bn_\bo_\br_\be_\bs_\bp_\ba_\bc_\be, lines which begin with a s\bsp\bpa\bac\bce\be character are not
+ saved in the history list. A value of _\bi_\bg_\bn_\bo_\br_\be_\bd_\bu_\bp_\bs causes lines
matching the previous history entry not to be saved. A value of
_\bi_\bg_\bn_\bo_\br_\be_\bb_\bo_\bt_\bh is shorthand for _\bi_\bg_\bn_\bo_\br_\be_\bs_\bp_\ba_\bc_\be and _\bi_\bg_\bn_\bo_\br_\be_\bd_\bu_\bp_\bs. A value
of _\be_\br_\ba_\bs_\be_\bd_\bu_\bp_\bs causes all previous lines matching the current line
- to be removed from the history list before that line is saved.
- Any value not in the above list is ignored. If H\bHI\bIS\bST\bTC\bCO\bON\bNT\bTR\bRO\bOL\bL is
- unset, or does not include a valid value, all lines read by the
- shell parser are saved on the history list, subject to the value
- of H\bHI\bIS\bST\bTI\bIG\bGN\bNO\bOR\bRE\bE. The second and subsequent lines of a multi-line
- compound command are not tested, and are added to the history
- regardless of the value of H\bHI\bIS\bST\bTC\bCO\bON\bNT\bTR\bRO\bOL\bL if the first line of the
- command was saved. If the first line was not saved, the second
- and subsequent lines of the command are not saved either.
+ to be removed from the history list before that line is saved.
+ Any value not in the above list is ignored. If H\bHI\bIS\bST\bTC\bCO\bON\bNT\bTR\bRO\bOL\bL is
+ unset, or does not include a valid value, b\bba\bas\bsh\bh saves all lines
+ read by the shell parser on the history list, subject to the
+ value of H\bHI\bIS\bST\bTI\bIG\bGN\bNO\bOR\bRE\bE. If the first line of a multi-line compound
+ command was saved, the second and subsequent lines are not
+ tested, and are added to the history regardless of the value of
+ H\bHI\bIS\bST\bTC\bCO\bON\bNT\bTR\bRO\bOL\bL. If the first line was not saved, the second and
+ subsequent lines of the command are not saved either.
H\bHI\bIS\bST\bTF\bFI\bIL\bLE\bE
The name of the file in which command history is saved (see H\bHI\bIS\bS-\b-
- T\bTO\bOR\bRY\bY below). B\bBa\bas\bsh\bh assigns a default value of _\b~_\b/_\b._\bb_\ba_\bs_\bh_\b__\bh_\bi_\bs_\bt_\bo_\br_\by.
- If H\bHI\bIS\bST\bTF\bFI\bIL\bLE\bE is unset or null, the shell does not save the com-
+ T\bTO\bOR\bRY\bY below). B\bBa\bas\bsh\bh assigns a default value of _\b~_\b/_\b._\bb_\ba_\bs_\bh_\b__\bh_\bi_\bs_\bt_\bo_\br_\by.
+ If H\bHI\bIS\bST\bTF\bFI\bIL\bLE\bE is unset or null, the shell does not save the com-
mand history when it exits.
H\bHI\bIS\bST\bTF\bFI\bIL\bLE\bES\bSI\bIZ\bZE\bE
The maximum number of lines contained in the history file. When
- this variable is assigned a value, the history file is trun-
- cated, if necessary, to contain no more than that number of
- lines by removing the oldest entries. The history file is also
+ this variable is assigned a value, the history file is trun-
+ cated, if necessary, to contain no more than that number of
+ lines by removing the oldest entries. The history file is also
truncated to this size after writing it when a shell exits or by
- the h\bhi\bis\bst\bto\bor\bry\by builtin. If the value is 0, the history file is
- truncated to zero size. Non-numeric values and numeric values
- less than zero inhibit truncation. The shell sets the default
+ the h\bhi\bis\bst\bto\bor\bry\by builtin. If the value is 0, the history file is
+ truncated to zero size. Non-numeric values and numeric values
+ less than zero inhibit truncation. The shell sets the default
value to the value of H\bHI\bIS\bST\bTS\bSI\bIZ\bZE\bE after reading any startup files.
H\bHI\bIS\bST\bTI\bIG\bGN\bNO\bOR\bRE\bE
- A colon-separated list of patterns used to decide which command
- lines should be saved on the history list. If a command line
- matches one of the patterns in the value of H\bHI\bIS\bST\bTI\bIG\bGN\bNO\bOR\bRE\bE, it is
- not saved on the history list. Each pattern is anchored at the
- beginning of the line and must match the complete line (b\bba\bas\bsh\bh
- will not implicitly append a "*\b*"). Each pattern is tested
- against the line after the checks specified by H\bHI\bIS\bST\bTC\bCO\bON\bNT\bTR\bRO\bOL\bL are
+ A colon-separated list of patterns used to decide which command
+ lines should be saved on the history list. If a command line
+ matches one of the patterns in the value of H\bHI\bIS\bST\bTI\bIG\bGN\bNO\bOR\bRE\bE, it is
+ not saved on the history list. Each pattern is anchored at the
+ beginning of the line and must match the complete line (b\bba\bas\bsh\bh
+ does not implicitly append a "*\b*"). Each pattern is tested
+ against the line after the checks specified by H\bHI\bIS\bST\bTC\bCO\bON\bNT\bTR\bRO\bOL\bL are
applied. In addition to the normal shell pattern matching char-
- acters, "&\b&" matches the previous history line. A backslash will
- escape the "&\b&"; the backslash is removed before attempting a
- match. The second and subsequent lines of a multi-line compound
- command are not tested, and are added to the history regardless
- of the value of H\bHI\bIS\bST\bTI\bIG\bGN\bNO\bOR\bRE\bE. If the first line was not saved,
- the second and subsequent lines of the command are not saved ei-
- ther. The pattern matching honors the setting of the e\bex\bxt\btg\bgl\blo\bob\bb
- shell option.
+ acters, "&\b&" matches the previous history line. A backslash es-
+ capes the "&\b&"; the backslash is removed before attempting a
+ match. If the first line of a multi-line compound command was
+ saved, the second and subsequent lines are not tested, and are
+ added to the history regardless of the value of H\bHI\bIS\bST\bTI\bIG\bGN\bNO\bOR\bRE\bE. If
+ the first line was not saved, the second and subsequent lines of
+ the command are not saved either. The pattern matching honors
+ the setting of the e\bex\bxt\btg\bgl\blo\bob\bb shell option.
H\bHI\bIS\bST\bTS\bSI\bIZ\bZE\bE
- The number of commands to remember in the command history (see
- H\bHI\bIS\bST\bTO\bOR\bRY\bY below). If the value is 0, commands are not saved in
+ The number of commands to remember in the command history (see
+ H\bHI\bIS\bST\bTO\bOR\bRY\bY below). If the value is 0, commands are not saved in
the history list. Numeric values less than zero result in every
- command being saved on the history list (there is no limit).
- The shell sets the default value to 500 after reading any
+ command being saved on the history list (there is no limit).
+ The shell sets the default value to 500 after reading any
startup files.
H\bHI\bIS\bST\bTT\bTI\bIM\bME\bEF\bFO\bOR\bRM\bMA\bAT\bT
- If this variable is set and not null, its value is used as a
+ If this variable is set and not null, its value is used as a
format string for _\bs_\bt_\br_\bf_\bt_\bi_\bm_\be(3) to print the time stamp associated
- with each history entry displayed by the h\bhi\bis\bst\bto\bor\bry\by builtin. If
- this variable is set, the shell writes time stamps to the his-
- tory file so they may be preserved across shell sessions. This
- uses the history comment character to distinguish timestamps
+ with each history entry displayed by the h\bhi\bis\bst\bto\bor\bry\by builtin. If
+ this variable is set, the shell writes time stamps to the his-
+ tory file so they may be preserved across shell sessions. This
+ uses the history comment character to distinguish timestamps
from other history lines.
H\bHO\bOM\bME\bE The home directory of the current user; the default argument for
the c\bcd\bd builtin command. The value of this variable is also used
when performing tilde expansion.
H\bHO\bOS\bST\bTF\bFI\bIL\bLE\bE
- Contains the name of a file in the same format as _\b/_\be_\bt_\bc_\b/_\bh_\bo_\bs_\bt_\bs
+ Contains the name of a file in the same format as _\b/_\be_\bt_\bc_\b/_\bh_\bo_\bs_\bt_\bs
that should be read when the shell needs to complete a hostname.
- The list of possible hostname completions may be changed while
- the shell is running; the next time hostname completion is at-
- tempted after the value is changed, b\bba\bas\bsh\bh adds the contents of
- the new file to the existing list. If H\bHO\bOS\bST\bTF\bFI\bIL\bLE\bE is set, but has
- no value, or does not name a readable file, b\bba\bas\bsh\bh attempts to
- read _\b/_\be_\bt_\bc_\b/_\bh_\bo_\bs_\bt_\bs to obtain the list of possible hostname comple-
- tions. When H\bHO\bOS\bST\bTF\bFI\bIL\bLE\bE is unset, the hostname list is cleared.
+ The list of possible hostname completions may be changed while
+ the shell is running; the next time hostname completion is at-
+ tempted after the value is changed, b\bba\bas\bsh\bh adds the contents of
+ the new file to the existing list. If H\bHO\bOS\bST\bTF\bFI\bIL\bLE\bE is set, but has
+ no value, or does not name a readable file, b\bba\bas\bsh\bh attempts to
+ read _\b/_\be_\bt_\bc_\b/_\bh_\bo_\bs_\bt_\bs to obtain the list of possible hostname comple-
+ tions. When H\bHO\bOS\bST\bTF\bFI\bIL\bLE\bE is unset, b\bba\bas\bsh\bh clears the the hostname
+ list.
I\bIF\bFS\bS The _\bI_\bn_\bt_\be_\br_\bn_\ba_\bl _\bF_\bi_\be_\bl_\bd _\bS_\be_\bp_\ba_\br_\ba_\bt_\bo_\br that is used for word splitting af-
ter expansion and to split lines into words with the r\bre\bea\bad\bd
builtin command. Word splitting is described below under E\bEX\bXP\bPA\bAN\bN-\b-
message to be printed when mail arrives in a particular file may
be specified by separating the filename from the message with a
"?". When used in the text of the message, $\b$_\b_ expands to the
- name of the current mailfile. Example:
+ name of the current mailfile. For example:
M\bMA\bAI\bIL\bLP\bPA\bAT\bTH\bH='/var/mail/bfox?"You have mail":~/shell-mail?"$_ has mail!"'
B\bBa\bas\bsh\bh can be configured to supply a default value for this vari-
able (there is no value by default), but the location of the
The optional _\bp is a digit specifying the _\bp_\br_\be_\bc_\bi_\bs_\bi_\bo_\bn, the number
of fractional digits after a decimal point. A value of 0 causes
- no decimal point or fraction to be output. t\bti\bim\bme\be will print at
- most six digits after the decimal point; values of _\bp greater
- than 6 are changed to 6. If _\bp is not specified, t\bti\bim\bme\be prints
- three digits after the decimal point.
+ no decimal point or fraction to be output. t\bti\bim\bme\be prints at most
+ six digits after the decimal point; values of _\bp greater than 6
+ are changed to 6. If _\bp is not specified, t\bti\bim\bme\be prints three dig-
+ its after the decimal point.
- The optional l\bl specifies a longer format, including minutes, of
- the form _\bM_\bMm_\bS_\bS._\bF_\bFs. The value of _\bp determines whether or not
+ The optional l\bl specifies a longer format, including minutes, of
+ the form _\bM_\bMm_\bS_\bS._\bF_\bFs. The value of _\bp determines whether or not
the fraction is included.
- If this variable is not set, b\bba\bas\bsh\bh acts as if it had the value
- $\b$'\b'\\b\n\bnr\bre\bea\bal\bl\\b\t\bt%\b%3\b3l\blR\bR\\b\n\bnu\bus\bse\ber\br\\b\t\bt%\b%3\b3l\blU\bU\\b\n\bns\bsy\bys\bs\\b\t\bt%\b%3\b3l\blS\bS'\b'. If the value is null,
- b\bba\bas\bsh\bh does not display any timing information. A trailing new-
+ If this variable is not set, b\bba\bas\bsh\bh acts as if it had the value
+ $\b$'\b'\\b\n\bnr\bre\bea\bal\bl\\b\t\bt%\b%3\b3l\blR\bR\\b\n\bnu\bus\bse\ber\br\\b\t\bt%\b%3\b3l\blU\bU\\b\n\bns\bsy\bys\bs\\b\t\bt%\b%3\b3l\blS\bS'\b'. If the value is null,
+ b\bba\bas\bsh\bh does not display any timing information. A trailing new-
line is added when the format string is displayed.
- T\bTM\bMO\bOU\bUT\bT If set to a value greater than zero, the r\bre\bea\bad\bd builtin uses the
- value as its default timeout. The s\bse\bel\ble\bec\bct\bt command terminates if
- input does not arrive after T\bTM\bMO\bOU\bUT\bT seconds when input is coming
- from a terminal. In an interactive shell, the value is inter-
- preted as the number of seconds to wait for a line of input af-
- ter issuing the primary prompt. B\bBa\bas\bsh\bh terminates after waiting
- for that number of seconds if a complete line of input does not
+ T\bTM\bMO\bOU\bUT\bT If set to a value greater than zero, the r\bre\bea\bad\bd builtin uses the
+ value as its default timeout. The s\bse\bel\ble\bec\bct\bt command terminates if
+ input does not arrive after T\bTM\bMO\bOU\bUT\bT seconds when input is coming
+ from a terminal. In an interactive shell, the value is inter-
+ preted as the number of seconds to wait for a line of input af-
+ ter issuing the primary prompt. B\bBa\bas\bsh\bh terminates after waiting
+ for that number of seconds if a complete line of input does not
arrive.
- T\bTM\bMP\bPD\bDI\bIR\bR If set, b\bba\bas\bsh\bh uses its value as the name of a directory in which
+ T\bTM\bMP\bPD\bDI\bIR\bR If set, b\bba\bas\bsh\bh uses its value as the name of a directory in which
b\bba\bas\bsh\bh creates temporary files for the shell's use.
a\bau\but\bto\bo_\b_r\bre\bes\bsu\bum\bme\be
This variable controls how the shell interacts with the user and
- job control. If this variable is set, simple commands consist-
- ing of only a single word, without redirections, are treated as
- candidates for resumption of an existing stopped job. There is
- no ambiguity allowed; if there is more than one job beginning
- with or containing the word, this selects the most recently ac-
- cessed job. The _\bn_\ba_\bm_\be of a stopped job, in this context, is the
- command line used to start it, as displayed by j\bjo\bob\bbs\bs. If set to
- the value _\be_\bx_\ba_\bc_\bt, the word must match the name of a stopped job
- exactly; if set to _\bs_\bu_\bb_\bs_\bt_\br_\bi_\bn_\bg, the word needs to match a sub-
- string of the name of a stopped job. The _\bs_\bu_\bb_\bs_\bt_\br_\bi_\bn_\bg value pro-
+ job control. If this variable is set, simple commands consist-
+ ing of only a single word, without redirections, are treated as
+ candidates for resumption of an existing stopped job. There is
+ no ambiguity allowed; if there is more than one job beginning
+ with or containing the word, this selects the most recently ac-
+ cessed job. The _\bn_\ba_\bm_\be of a stopped job, in this context, is the
+ command line used to start it, as displayed by j\bjo\bob\bbs\bs. If set to
+ the value _\be_\bx_\ba_\bc_\bt, the word must match the name of a stopped job
+ exactly; if set to _\bs_\bu_\bb_\bs_\bt_\br_\bi_\bn_\bg, the word needs to match a sub-
+ string of the name of a stopped job. The _\bs_\bu_\bb_\bs_\bt_\br_\bi_\bn_\bg value pro-
vides functionality analogous to the %\b%?\b? job identifier (see J\bJO\bOB\bB
- C\bCO\bON\bNT\bTR\bRO\bOL\bL below). If set to any other value (e.g., _\bp_\br_\be_\bf_\bi_\bx), the
- word must be a prefix of a stopped job's name; this provides
+ C\bCO\bON\bNT\bTR\bRO\bOL\bL below). If set to any other value (e.g., _\bp_\br_\be_\bf_\bi_\bx), the
+ word must be a prefix of a stopped job's name; this provides
functionality analogous to the %\b%_\bs_\bt_\br_\bi_\bn_\bg job identifier.
h\bhi\bis\bst\btc\bch\bha\bar\brs\bs
- The two or three characters which control history expansion and
- tokenization (see H\bHI\bIS\bST\bTO\bOR\bRY\bY E\bEX\bXP\bPA\bAN\bNS\bSI\bIO\bON\bN below). The first character
- is the _\bh_\bi_\bs_\bt_\bo_\br_\by _\be_\bx_\bp_\ba_\bn_\bs_\bi_\bo_\bn character, the character which begins a
- history expansion, normally "!\b!". The second character is the
- _\bq_\bu_\bi_\bc_\bk _\bs_\bu_\bb_\bs_\bt_\bi_\bt_\bu_\bt_\bi_\bo_\bn character, normally "^\b^". When it appears as
- the first character on the line, history substitution repeats
- the previous command, replacing one string with another. The
- optional third character is the character which indicates that
- the remainder of the line is a comment when found as the first
- character of a word, normally "#\b#". The history comment charac-
- ter disables history substitution for the remaining words on the
- line. It does not necessarily cause the shell parser to treat
- the rest of the line as a comment.
+ The two or three characters which control history expansion,
+ quick substitution, and tokenization (see H\bHI\bIS\bST\bTO\bOR\bRY\bY E\bEX\bXP\bPA\bAN\bNS\bSI\bIO\bON\bN be-
+ low). The first character is the _\bh_\bi_\bs_\bt_\bo_\br_\by _\be_\bx_\bp_\ba_\bn_\bs_\bi_\bo_\bn character,
+ the character which begins a history expansion, normally "!\b!".
+ The second character is the _\bq_\bu_\bi_\bc_\bk _\bs_\bu_\bb_\bs_\bt_\bi_\bt_\bu_\bt_\bi_\bo_\bn character, nor-
+ mally "^\b^". When it appears as the first character on the line,
+ history substitution repeats the previous command, replacing one
+ string with another. The optional third character is the char-
+ acter which indicates that the remainder of the line is a com-
+ ment when found as the first character of a word, normally "#\b#".
+ The history comment character disables history substitution for
+ the remaining words on the line. It does not necessarily cause
+ the shell parser to treat the rest of the line as a comment.
A\bAr\brr\bra\bay\bys\bs
- B\bBa\bas\bsh\bh provides one-dimensional indexed and associative array variables.
- Any variable may be used as an indexed array; the d\bde\bec\bcl\bla\bar\bre\be builtin will
- explicitly declare an array. There is no maximum limit on the size of
- an array, nor any requirement that members be indexed or assigned con-
- tiguously. Indexed arrays are referenced using integers (including
- arithmetic expressions) and are zero-based; associative arrays are ref-
- erenced using arbitrary strings. Unless otherwise noted, indexed array
- indices must be non-negative integers.
-
- An indexed array is created automatically if any variable is assigned
+ B\bBa\bas\bsh\bh provides one-dimensional indexed and associative array variables.
+ Any variable may be used as an indexed array; the d\bde\bec\bcl\bla\bar\bre\be builtin ex-
+ plicitly declares an array. There is no maximum limit on the size of
+ an array, nor any requirement that members be indexed or assigned con-
+ tiguously. Indexed arrays are referenced using arithmetic expressions
+ that must expand to an integer and are zero-based; associative arrays
+ are referenced using arbitrary strings. Unless otherwise noted, in-
+ dexed array indices must be non-negative integers.
+
+ An indexed array is created automatically if any variable is assigned
to using the syntax _\bn_\ba_\bm_\be[_\bs_\bu_\bb_\bs_\bc_\br_\bi_\bp_\bt]=_\bv_\ba_\bl_\bu_\be. The _\bs_\bu_\bb_\bs_\bc_\br_\bi_\bp_\bt is treated as
an arithmetic expression that must evaluate to a number greater than or
- equal to zero. To explicitly declare an indexed array, use d\bde\bec\bcl\bla\bar\bre\be -\b-a\ba
+ equal to zero. To explicitly declare an indexed array, use d\bde\bec\bcl\bla\bar\bre\be -\b-a\ba
_\bn_\ba_\bm_\be (see S\bSH\bHE\bEL\bLL\bL B\bBU\bUI\bIL\bLT\bTI\bIN\bN C\bCO\bOM\bMM\bMA\bAN\bND\bDS\bS below). d\bde\bec\bcl\bla\bar\bre\be -\b-a\ba _\bn_\ba_\bm_\be[\b[_\bs_\bu_\bb_\bs_\bc_\br_\bi_\bp_\bt]\b] is
also accepted; the _\bs_\bu_\bb_\bs_\bc_\br_\bi_\bp_\bt is ignored.
r\bre\bea\bad\bdo\bon\bnl\bly\by builtins. Each attribute applies to all members of an array.
Arrays are assigned using compound assignments of the form _\bn_\ba_\bm_\be=(\b(value_\b1
- ... value_\bn)\b), where each _\bv_\ba_\bl_\bu_\be may be of the form [_\bs_\bu_\bb_\bs_\bc_\br_\bi_\bp_\bt]=_\bs_\bt_\br_\bi_\bn_\bg.
- Indexed array assignments do not require anything but _\bs_\bt_\br_\bi_\bn_\bg. Each
- _\bv_\ba_\bl_\bu_\be in the list is expanded using the shell expansions described be-
+ ... value_\bn)\b), where each _\bv_\ba_\bl_\bu_\be may be of the form [_\bs_\bu_\bb_\bs_\bc_\br_\bi_\bp_\bt]=_\bs_\bt_\br_\bi_\bn_\bg.
+ Indexed array assignments do not require anything but _\bs_\bt_\br_\bi_\bn_\bg. Each
+ _\bv_\ba_\bl_\bu_\be in the list is expanded using the shell expansions described be-
low under E\bEX\bXP\bPA\bAN\bNS\bSI\bIO\bON\bN, but _\bv_\ba_\bl_\bu_\bes that are valid variable assignments in-
- cluding the brackets and subscript do not undergo brace expansion and
+ cluding the brackets and subscript do not undergo brace expansion and
word splitting, as with individual variable assignments.
- When assigning to indexed arrays, if the optional brackets and sub-
- script are supplied, that index is assigned to; otherwise the index of
- the element assigned is the last index assigned to by the statement
+ When assigning to indexed arrays, if the optional brackets and sub-
+ script are supplied, that index is assigned to; otherwise the index of
+ the element assigned is the last index assigned to by the statement
plus one. Indexing starts at zero.
When assigning to an associative array, the words in a compound assign-
- ment may be either assignment statements, for which the subscript is
- required, or a list of words that is interpreted as a sequence of al-
- ternating keys and values: _\bn_\ba_\bm_\be=(\b( _\bk_\be_\by_\b1 _\bv_\ba_\bl_\bu_\be_\b1 _\bk_\be_\by_\b2 _\bv_\ba_\bl_\bu_\be_\b2 ...)\b). These
- are treated identically to _\bn_\ba_\bm_\be=(\b( [_\bk_\be_\by_\b1]=_\bv_\ba_\bl_\bu_\be_\b1 [_\bk_\be_\by_\b2]=_\bv_\ba_\bl_\bu_\be_\b2 ...)\b).
- The first word in the list determines how the remaining words are in-
- terpreted; all assignments in a list must be of the same type. When
- using key/value pairs, the keys may not be missing or empty; a final
+ ment may be either assignment statements, for which the subscript is
+ required, or a list of words that is interpreted as a sequence of al-
+ ternating keys and values: _\bn_\ba_\bm_\be=(\b( _\bk_\be_\by_\b1 _\bv_\ba_\bl_\bu_\be_\b1 _\bk_\be_\by_\b2 _\bv_\ba_\bl_\bu_\be_\b2 ...)\b). These
+ are treated identically to _\bn_\ba_\bm_\be=(\b( [_\bk_\be_\by_\b1]=_\bv_\ba_\bl_\bu_\be_\b1 [_\bk_\be_\by_\b2]=_\bv_\ba_\bl_\bu_\be_\b2 ...)\b).
+ The first word in the list determines how the remaining words are in-
+ terpreted; all assignments in a list must be of the same type. When
+ using key/value pairs, the keys may not be missing or empty; a final
missing value is treated like the empty string.
- This syntax is also accepted by the d\bde\bec\bcl\bla\bar\bre\be builtin. Individual array
- elements may be assigned to using the _\bn_\ba_\bm_\be[_\bs_\bu_\bb_\bs_\bc_\br_\bi_\bp_\bt]=_\bv_\ba_\bl_\bu_\be syntax in-
+ This syntax is also accepted by the d\bde\bec\bcl\bla\bar\bre\be builtin. Individual array
+ elements may be assigned to using the _\bn_\ba_\bm_\be[_\bs_\bu_\bb_\bs_\bc_\br_\bi_\bp_\bt]=_\bv_\ba_\bl_\bu_\be syntax in-
troduced above.
- When assigning to an indexed array, if _\bn_\ba_\bm_\be is subscripted by a nega-
+ When assigning to an indexed array, if _\bn_\ba_\bm_\be is subscripted by a nega-
tive number, that number is interpreted as relative to one greater than
- the maximum index of _\bn_\ba_\bm_\be, so negative indices count back from the end
+ the maximum index of _\bn_\ba_\bm_\be, so negative indices count back from the end
of the array, and an index of -1 references the last element.
- The += operator will append to an array variable when assigning using
- the compound assignment syntax; see P\bPA\bAR\bRA\bAM\bME\bET\bTE\bER\bRS\bS above.
+ The += operator appends to an array variable when assigning using the
+ compound assignment syntax; see P\bPA\bAR\bRA\bAM\bME\bET\bTE\bER\bRS\bS above.
- An array element is referenced using ${_\bn_\ba_\bm_\be[_\bs_\bu_\bb_\bs_\bc_\br_\bi_\bp_\bt]}. The braces
- are required to avoid conflicts with pathname expansion. If _\bs_\bu_\bb_\bs_\bc_\br_\bi_\bp_\bt
+ An array element is referenced using ${_\bn_\ba_\bm_\be[_\bs_\bu_\bb_\bs_\bc_\br_\bi_\bp_\bt]}. The braces
+ are required to avoid conflicts with pathname expansion. If _\bs_\bu_\bb_\bs_\bc_\br_\bi_\bp_\bt
is @\b@ or *\b*, the word expands to all members of _\bn_\ba_\bm_\be, unless noted in the
- description of a builtin or word expansion. These subscripts differ
- only when the word appears within double quotes. If the word is dou-
- ble-quoted, ${_\bn_\ba_\bm_\be[*]} expands to a single word with the value of each
- array member separated by the first character of the I\bIF\bFS\bS special vari-
- able, and ${_\bn_\ba_\bm_\be[@]} expands each element of _\bn_\ba_\bm_\be to a separate word.
+ description of a builtin or word expansion. These subscripts differ
+ only when the word appears within double quotes. If the word is dou-
+ ble-quoted, ${_\bn_\ba_\bm_\be[*]} expands to a single word with the value of each
+ array member separated by the first character of the I\bIF\bFS\bS special vari-
+ able, and ${_\bn_\ba_\bm_\be[@]} expands each element of _\bn_\ba_\bm_\be to a separate word.
When there are no array members, ${_\bn_\ba_\bm_\be[@]} expands to nothing. If the
- double-quoted expansion occurs within a word, the expansion of the
- first parameter is joined with the beginning part of the expansion of
- the original word, and the expansion of the last parameter is joined
- with the last part of the expansion of the original word. This is
- analogous to the expansion of the special parameters *\b* and @\b@ (see S\bSp\bpe\be-\b-
+ double-quoted expansion occurs within a word, the expansion of the
+ first parameter is joined with the beginning part of the expansion of
+ the original word, and the expansion of the last parameter is joined
+ with the last part of the expansion of the original word. This is
+ analogous to the expansion of the special parameters *\b* and @\b@ (see S\bSp\bpe\be-\b-
c\bci\bia\bal\bl P\bPa\bar\bra\bam\bme\bet\bte\ber\brs\bs above).
- ${#_\bn_\ba_\bm_\be[_\bs_\bu_\bb_\bs_\bc_\br_\bi_\bp_\bt]} expands to the length of ${_\bn_\ba_\bm_\be[_\bs_\bu_\bb_\bs_\bc_\br_\bi_\bp_\bt]}. If
+ ${#_\bn_\ba_\bm_\be[_\bs_\bu_\bb_\bs_\bc_\br_\bi_\bp_\bt]} expands to the length of ${_\bn_\ba_\bm_\be[_\bs_\bu_\bb_\bs_\bc_\br_\bi_\bp_\bt]}. If
_\bs_\bu_\bb_\bs_\bc_\br_\bi_\bp_\bt is *\b* or @\b@, the expansion is the number of elements in the ar-
ray.
If the _\bs_\bu_\bb_\bs_\bc_\br_\bi_\bp_\bt used to reference an element of an indexed array eval-
- uates to a number less than zero, it is interpreted as relative to one
- greater than the maximum index of the array, so negative indices count
- back from the end of the array, and an index of -1 references the last
+ uates to a number less than zero, it is interpreted as relative to one
+ greater than the maximum index of the array, so negative indices count
+ back from the end of the array, and an index of -1 references the last
element.
Referencing an array variable without a subscript is equivalent to ref-
- erencing the array with a subscript of 0. Any reference to a variable
- using a valid subscript is valid, and b\bba\bas\bsh\bh will create an array if nec-
- essary.
+ erencing the array with a subscript of 0. Any reference to a variable
+ using a valid subscript is valid; b\bba\bas\bsh\bh creates an array if necessary.
- An array variable is considered set if a subscript has been assigned a
+ An array variable is considered set if a subscript has been assigned a
value. The null string is a valid value.
- It is possible to obtain the keys (indices) of an array as well as the
- values. ${!\b!_\bn_\ba_\bm_\be[_\b@]} and ${!\b!_\bn_\ba_\bm_\be[_\b*]} expand to the indices assigned in
+ It is possible to obtain the keys (indices) of an array as well as the
+ values. ${!\b!_\bn_\ba_\bm_\be[_\b@]} and ${!\b!_\bn_\ba_\bm_\be[_\b*]} expand to the indices assigned in
array variable _\bn_\ba_\bm_\be. The treatment when in double quotes is similar to
the expansion of the special parameters _\b@ and _\b* within double quotes.
The u\bun\bns\bse\bet\bt builtin is used to destroy arrays. u\bun\bns\bse\bet\bt _\bn_\ba_\bm_\be[_\bs_\bu_\bb_\bs_\bc_\br_\bi_\bp_\bt] un-
- sets the array element at index _\bs_\bu_\bb_\bs_\bc_\br_\bi_\bp_\bt, for both indexed and asso-
- ciative arrays. Negative subscripts to indexed arrays are interpreted
- as described above. Unsetting the last element of an array variable
- does not unset the variable. u\bun\bns\bse\bet\bt _\bn_\ba_\bm_\be, where _\bn_\ba_\bm_\be is an array, re-
- moves the entire array. u\bun\bns\bse\bet\bt _\bn_\ba_\bm_\be[_\bs_\bu_\bb_\bs_\bc_\br_\bi_\bp_\bt] behaves differently de-
- pending on whether _\bn_\ba_\bm_\be is an indexed or associative array when _\bs_\bu_\bb_\b-
+ sets the array element at index _\bs_\bu_\bb_\bs_\bc_\br_\bi_\bp_\bt, for both indexed and asso-
+ ciative arrays. Negative subscripts to indexed arrays are interpreted
+ as described above. Unsetting the last element of an array variable
+ does not unset the variable. u\bun\bns\bse\bet\bt _\bn_\ba_\bm_\be, where _\bn_\ba_\bm_\be is an array, re-
+ moves the entire array. u\bun\bns\bse\bet\bt _\bn_\ba_\bm_\be[_\bs_\bu_\bb_\bs_\bc_\br_\bi_\bp_\bt] behaves differently de-
+ pending on whether _\bn_\ba_\bm_\be is an indexed or associative array when _\bs_\bu_\bb_\b-
_\bs_\bc_\br_\bi_\bp_\bt is *\b* or @\b@. If _\bn_\ba_\bm_\be is an associative array, this unsets the el-
- ement with subscript *\b* or @\b@. If _\bn_\ba_\bm_\be is an indexed array, unset re-
+ ement with subscript *\b* or @\b@. If _\bn_\ba_\bm_\be is an indexed array, unset re-
moves all of the elements but does not remove the array itself.
- When using a variable name with a subscript as an argument to a com-
- mand, such as with u\bun\bns\bse\bet\bt, without using the word expansion syntax de-
- scribed above, (e.g., unset a[4]), the argument is subject to pathname
- expansion. Quote the argument if pathname expansion is not desired
+ When using a variable name with a subscript as an argument to a com-
+ mand, such as with u\bun\bns\bse\bet\bt, without using the word expansion syntax de-
+ scribed above, (e.g., unset a[4]), the argument is subject to pathname
+ expansion. Quote the argument if pathname expansion is not desired
(e.g., unset 'a[4]').
- The d\bde\bec\bcl\bla\bar\bre\be, l\blo\boc\bca\bal\bl, and r\bre\bea\bad\bdo\bon\bnl\bly\by builtins each accept a -\b-a\ba option to
- specify an indexed array and a -\b-A\bA option to specify an associative ar-
- ray. If both options are supplied, -\b-A\bA takes precedence. The r\bre\bea\bad\bd
- builtin accepts a -\b-a\ba option to assign a list of words read from the
+ The d\bde\bec\bcl\bla\bar\bre\be, l\blo\boc\bca\bal\bl, and r\bre\bea\bad\bdo\bon\bnl\bly\by builtins each accept a -\b-a\ba option to
+ specify an indexed array and a -\b-A\bA option to specify an associative ar-
+ ray. If both options are supplied, -\b-A\bA takes precedence. The r\bre\bea\bad\bd
+ builtin accepts a -\b-a\ba option to assign a list of words read from the
standard input to an array. The s\bse\bet\bt and d\bde\bec\bcl\bla\bar\bre\be builtins display array
- values in a way that allows them to be reused as assignments. Other
- builtins accept array name arguments as well (e.g., m\bma\bap\bpf\bfi\bil\ble\be); see the
- descriptions of individual builtins below for details. The shell pro-
+ values in a way that allows them to be reused as assignments. Other
+ builtins accept array name arguments as well (e.g., m\bma\bap\bpf\bfi\bil\ble\be); see the
+ descriptions of individual builtins below for details. The shell pro-
vides a number of builtin array variables.
E\bEX\bXP\bPA\bAN\bNS\bSI\bIO\bON\bN
_\bm_\be_\bt_\bi_\bc _\be_\bx_\bp_\ba_\bn_\bs_\bi_\bo_\bn, _\bw_\bo_\br_\bd _\bs_\bp_\bl_\bi_\bt_\bt_\bi_\bn_\bg, _\bp_\ba_\bt_\bh_\bn_\ba_\bm_\be _\be_\bx_\bp_\ba_\bn_\bs_\bi_\bo_\bn, and _\bq_\bu_\bo_\bt_\be _\br_\be_\bm_\bo_\bv_\ba_\bl.
The order of expansions is: brace expansion; tilde expansion, parameter
- and variable expansion, arithmetic expansion, and command substitution
- (done in a left-to-right fashion); word splitting; pathname expansion;
+ and variable expansion, arithmetic expansion, and command substitution
+ (done in a left-to-right fashion); word splitting; pathname expansion;
and quote removal.
On systems that can support it, there is an additional expansion avail-
- able: _\bp_\br_\bo_\bc_\be_\bs_\bs _\bs_\bu_\bb_\bs_\bt_\bi_\bt_\bu_\bt_\bi_\bo_\bn. This is performed at the same time as
- tilde, parameter, variable, and arithmetic expansion and command sub-
+ able: _\bp_\br_\bo_\bc_\be_\bs_\bs _\bs_\bu_\bb_\bs_\bt_\bi_\bt_\bu_\bt_\bi_\bo_\bn. This is performed at the same time as
+ tilde, parameter, variable, and arithmetic expansion and command sub-
stitution.
- _\bQ_\bu_\bo_\bt_\be _\br_\be_\bm_\bo_\bv_\ba_\bl is always performed last. It removes quote characters
- present in the original word, not ones resulting from one of the other
+ _\bQ_\bu_\bo_\bt_\be _\br_\be_\bm_\bo_\bv_\ba_\bl is always performed last. It removes quote characters
+ present in the original word, not ones resulting from one of the other
expansions, unless they have been quoted themselves.
- Only brace expansion, word splitting, and pathname expansion can in-
- crease the number of words of the expansion; other expansions expand a
- single word to a single word. The only exceptions to this are the ex-
+ Only brace expansion, word splitting, and pathname expansion can in-
+ crease the number of words of the expansion; other expansions expand a
+ single word to a single word. The only exceptions to this are the ex-
pansions of "\b"$\b$@\b@"\b" and "\b"$\b${\b{_\bn_\ba_\bm_\be[\b[@\b@]\b]}\b}"\b", and, in most cases, $\b$*\b* and
$\b${\b{_\bn_\ba_\bm_\be[\b[*\b*]\b]}\b} as explained above (see P\bPA\bAR\bRA\bAM\bME\bET\bTE\bER\bRS\bS).
B\bBr\bra\bac\bce\be E\bEx\bxp\bpa\ban\bns\bsi\bio\bon\bn
- _\bB_\br_\ba_\bc_\be _\be_\bx_\bp_\ba_\bn_\bs_\bi_\bo_\bn is a mechanism to generate arbitrary strings sharing a
+ _\bB_\br_\ba_\bc_\be _\be_\bx_\bp_\ba_\bn_\bs_\bi_\bo_\bn is a mechanism to generate arbitrary strings sharing a
common prefix and suffix, either of which can be empty. This mechanism
- is similar to _\bp_\ba_\bt_\bh_\bn_\ba_\bm_\be _\be_\bx_\bp_\ba_\bn_\bs_\bi_\bo_\bn, but the filenames generated need not
- exist. Patterns to be brace expanded are formed from an optional _\bp_\br_\be_\b-
- _\ba_\bm_\bb_\bl_\be, followed by either a series of comma-separated strings or a se-
- quence expression between a pair of braces, followed by an optional
- _\bp_\bo_\bs_\bt_\bs_\bc_\br_\bi_\bp_\bt. The preamble is prefixed to each string contained within
- the braces, and the postscript is then appended to each resulting
+ is similar to _\bp_\ba_\bt_\bh_\bn_\ba_\bm_\be _\be_\bx_\bp_\ba_\bn_\bs_\bi_\bo_\bn, but the filenames generated need not
+ exist. Patterns to be brace expanded are formed from an optional _\bp_\br_\be_\b-
+ _\ba_\bm_\bb_\bl_\be, followed by either a series of comma-separated strings or a se-
+ quence expression between a pair of braces, followed by an optional
+ _\bp_\bo_\bs_\bt_\bs_\bc_\br_\bi_\bp_\bt. The preamble is prefixed to each string contained within
+ the braces, and the postscript is then appended to each resulting
string, expanding left to right.
- Brace expansions may be nested. The results of each expanded string
+ Brace expansions may be nested. The results of each expanded string
are not sorted; brace expansion preserves left to right order. For ex-
ample, a{\b{d,c,b}\b}e expands into "ade ace abe".
- A sequence expression takes the form {\b{_\bx.\b..\b._\by[\b[.\b..\b._\bi_\bn_\bc_\br]\b]}\b}, where _\bx and _\by are
- either integers or single letters, and _\bi_\bn_\bc_\br, an optional increment, is
+ A sequence expression takes the form {\b{_\bx.\b..\b._\by[\b[.\b..\b._\bi_\bn_\bc_\br]\b]}\b}, where _\bx and _\by are
+ either integers or single letters, and _\bi_\bn_\bc_\br, an optional increment, is
an integer. When integers are supplied, the expression expands to each
- number between _\bx and _\by, inclusive. If the supplied integers are pre-
- fixed with _\b0, each term will have the same width, zero-padding if nec-
- essary. When either _\bx or _\by begins with a zero, the shell attempts to
- force all generated terms to contain the same number of digits, zero-
- padding where necessary. When letters are supplied, the expression ex-
- pands to each character lexicographically between _\bx and _\by, inclusive,
- using the default C locale. Note that both _\bx and _\by must be of the same
- type (integer or letter). When the increment is supplied, it is used
- as the difference between each term. The default increment is 1 or -1
- as appropriate.
+ number between _\bx and _\by, inclusive. If either _\bx or _\by begins with _\b0,
+ each generated term will contain the same number of digits, zero-
+ padding where necessary. When either _\bx or _\by begins with a zero, the
+ shell attempts to force all generated terms to contain the same number
+ of digits, zero-padding where necessary. When letters are supplied,
+ the expression expands to each character lexicographically between _\bx
+ and _\by, inclusive, using the default C locale. Note that both _\bx and _\by
+ must be of the same type (integer or letter). When the increment is
+ supplied, it is used as the difference between each term. The default
+ increment is 1 or -1 as appropriate.
Brace expansion is performed before any other expansions, and any char-
- acters special to other expansions are preserved in the result. It is
- strictly textual. B\bBa\bas\bsh\bh does not apply any syntactic interpretation to
+ acters special to other expansions are preserved in the result. It is
+ strictly textual. B\bBa\bas\bsh\bh does not apply any syntactic interpretation to
the context of the expansion or the text between the braces.
- A correctly-formed brace expansion must contain unquoted opening and
+ A correctly-formed brace expansion must contain unquoted opening and
closing braces, and at least one unquoted comma or a valid sequence ex-
pression. Any incorrectly formed brace expansion is left unchanged.
A {\b{ or ,\b, may be quoted with a backslash to prevent its being considered
- part of a brace expression. To avoid conflicts with parameter expan-
+ part of a brace expression. To avoid conflicts with parameter expan-
sion, the string $\b${\b{ is not considered eligible for brace expansion, and
inhibits brace expansion until the closing }\b}.
or
chown root /usr/{ucb/{ex,edit},lib/{ex?.?*,how_ex}}
- Brace expansion introduces a slight incompatibility with historical
- versions of s\bsh\bh. s\bsh\bh does not treat opening or closing braces specially
- when they appear as part of a word, and preserves them in the output.
- B\bBa\bas\bsh\bh removes braces from words as a consequence of brace expansion.
- For example, a word entered to s\bsh\bh as _\bf_\bi_\bl_\be_\b{_\b1_\b,_\b2_\b} appears identically in
- the output. B\bBa\bas\bsh\bh outputs that word as _\bf_\bi_\bl_\be_\b1 _\bf_\bi_\bl_\be_\b2 after brace expan-
- sion. Start b\bba\bas\bsh\bh with the +\b+B\bB option or disable brace expansion with
+ Brace expansion introduces a slight incompatibility with historical
+ versions of s\bsh\bh. s\bsh\bh does not treat opening or closing braces specially
+ when they appear as part of a word, and preserves them in the output.
+ B\bBa\bas\bsh\bh removes braces from words as a consequence of brace expansion.
+ For example, a word entered to s\bsh\bh as _\bf_\bi_\bl_\be_\b{_\b1_\b,_\b2_\b} appears identically in
+ the output. B\bBa\bas\bsh\bh outputs that word as _\bf_\bi_\bl_\be_\b1 _\bf_\bi_\bl_\be_\b2 after brace expan-
+ sion. Start b\bba\bas\bsh\bh with the +\b+B\bB option or disable brace expansion with
the +\b+B\bB option to the s\bse\bet\bt command (see S\bSH\bHE\bEL\bLL\bL B\bBU\bUI\bIL\bLT\bTI\bIN\bN C\bCO\bOM\bMM\bMA\bAN\bND\bDS\bS below) for
strict s\bsh\bh compatibility.
T\bTi\bil\bld\bde\be E\bEx\bxp\bpa\ban\bns\bsi\bio\bon\bn
- If a word begins with an unquoted tilde character ("~\b~"), all of the
- characters preceding the first unquoted slash (or all characters, if
- there is no unquoted slash) are considered a _\bt_\bi_\bl_\bd_\be_\b-_\bp_\br_\be_\bf_\bi_\bx. If none of
- the characters in the tilde-prefix are quoted, the characters in the
- tilde-prefix following the tilde are treated as a possible _\bl_\bo_\bg_\bi_\bn _\bn_\ba_\bm_\be.
- If this login name is the null string, the tilde is replaced with the
+ If a word begins with an unquoted tilde character ("~\b~"), all of the
+ characters preceding the first unquoted slash (or all characters, if
+ there is no unquoted slash) are considered a _\bt_\bi_\bl_\bd_\be_\b-_\bp_\br_\be_\bf_\bi_\bx. If none of
+ the characters in the tilde-prefix are quoted, the characters in the
+ tilde-prefix following the tilde are treated as a possible _\bl_\bo_\bg_\bi_\bn _\bn_\ba_\bm_\be.
+ If this login name is the null string, the tilde is replaced with the
value of the shell parameter H\bHO\bOM\bME\bE. If H\bHO\bOM\bME\bE is unset, the tilde expands
- to the home directory of the user executing the shell instead. Other-
- wise, the tilde-prefix is replaced with the home directory associated
+ to the home directory of the user executing the shell instead. Other-
+ wise, the tilde-prefix is replaced with the home directory associated
with the specified login name.
- If the tilde-prefix is a "~+", the value of the shell variable P\bPW\bWD\bD re-
+ If the tilde-prefix is a "~+", the value of the shell variable P\bPW\bWD\bD re-
places the tilde-prefix. If the tilde-prefix is a "~-", the shell sub-
- stitutes the value of the shell variable O\bOL\bLD\bDP\bPW\bWD\bD, if it is set. If the
- characters following the tilde in the tilde-prefix consist of a number
- _\bN, optionally prefixed by a "+" or a "-", the tilde-prefix is replaced
+ stitutes the value of the shell variable O\bOL\bLD\bDP\bPW\bWD\bD, if it is set. If the
+ characters following the tilde in the tilde-prefix consist of a number
+ _\bN, optionally prefixed by a "+" or a "-", the tilde-prefix is replaced
with the corresponding element from the directory stack, as it would be
displayed by the d\bdi\bir\brs\bs builtin invoked with the characters following the
- tilde in the tilde-prefix as an argument. If the characters following
+ tilde in the tilde-prefix as an argument. If the characters following
the tilde in the tilde-prefix consist of a number without a leading "+"
or "-", tilde expansion assumes "+".
- The results of tilde expansion are treated as if they were quoted, so
- the replacement is not subject to word splitting and pathname expan-
+ The results of tilde expansion are treated as if they were quoted, so
+ the replacement is not subject to word splitting and pathname expan-
sion.
- If the login name is invalid, or the tilde expansion fails, the tilde-
+ If the login name is invalid, or the tilde expansion fails, the tilde-
prefix is unchanged.
- B\bBa\bas\bsh\bh checks each variable assignment for unquoted tilde-prefixes imme-
- diately following a :\b: or the first =\b=, and performs tilde expansion in
- these cases. Consequently, one may use filenames with tildes in as-
- signments to P\bPA\bAT\bTH\bH, M\bMA\bAI\bIL\bLP\bPA\bAT\bTH\bH, and C\bCD\bDP\bPA\bAT\bTH\bH, and the shell assigns the ex-
+ B\bBa\bas\bsh\bh checks each variable assignment for unquoted tilde-prefixes imme-
+ diately following a :\b: or the first =\b=, and performs tilde expansion in
+ these cases. Consequently, one may use filenames with tildes in as-
+ signments to P\bPA\bAT\bTH\bH, M\bMA\bAI\bIL\bLP\bPA\bAT\bTH\bH, and C\bCD\bDP\bPA\bAT\bTH\bH, and the shell assigns the ex-
panded value.
- B\bBa\bas\bsh\bh also performs tilde expansion on words satisfying the conditions
+ B\bBa\bas\bsh\bh also performs tilde expansion on words satisfying the conditions
of variable assignments (as described above under P\bPA\bAR\bRA\bAM\bME\bET\bTE\bER\bRS\bS) when they
- appear as arguments to simple commands. B\bBa\bas\bsh\bh does not do this, except
+ appear as arguments to simple commands. B\bBa\bas\bsh\bh does not do this, except
for the _\bd_\be_\bc_\bl_\ba_\br_\ba_\bt_\bi_\bo_\bn commands listed above, when in posix mode.
P\bPa\bar\bra\bam\bme\bet\bte\ber\br E\bEx\bxp\bpa\ban\bns\bsi\bio\bon\bn
The "$\b$" character introduces parameter expansion, command substitution,
- or arithmetic expansion. The parameter name or symbol to be expanded
- may be enclosed in braces, which are optional but serve to protect the
- variable to be expanded from characters immediately following it which
+ or arithmetic expansion. The parameter name or symbol to be expanded
+ may be enclosed in braces, which are optional but serve to protect the
+ variable to be expanded from characters immediately following it which
could be interpreted as part of the name.
- When braces are used, the matching ending brace is the first "}\b}" not
+ When braces are used, the matching ending brace is the first "}\b}" not
escaped by a backslash or within a quoted string, and not within an em-
- bedded arithmetic expansion, command substitution, or parameter expan-
+ bedded arithmetic expansion, command substitution, or parameter expan-
sion.
The basic form of parameter expansion is
${_\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br}
which substitutes the value of _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br. The braces are required when
- _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br is a positional parameter with more than one digit, or when
- _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br is followed by a character which is not to be interpreted as
- part of its name. The _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br is a shell parameter as described
+ _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br is a positional parameter with more than one digit, or when
+ _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br is followed by a character which is not to be interpreted as
+ part of its name. The _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br is a shell parameter as described
above P\bPA\bAR\bRA\bAM\bME\bET\bTE\bER\bRS\bS) or an array reference (A\bAr\brr\bra\bay\bys\bs).
- If the first character of _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br is an exclamation point (!\b!), and
+ If the first character of _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br is an exclamation point (!\b!), and
_\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br is not a _\bn_\ba_\bm_\be_\br_\be_\bf, it introduces a level of indirection. B\bBa\bas\bsh\bh
uses the value formed by expanding the rest of _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br as the new _\bp_\ba_\b-
- _\br_\ba_\bm_\be_\bt_\be_\br; this new parameter is then expanded and that value is used in
- the rest of the expansion, rather than the expansion of the original
- _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br. This is known as _\bi_\bn_\bd_\bi_\br_\be_\bc_\bt _\be_\bx_\bp_\ba_\bn_\bs_\bi_\bo_\bn. The value is subject
- to tilde expansion, parameter expansion, command substitution, and
- arithmetic expansion. If _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br is a nameref, this expands to the
+ _\br_\ba_\bm_\be_\bt_\be_\br; this new parameter is then expanded and that value is used in
+ the rest of the expansion, rather than the expansion of the original
+ _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br. This is known as _\bi_\bn_\bd_\bi_\br_\be_\bc_\bt _\be_\bx_\bp_\ba_\bn_\bs_\bi_\bo_\bn. The value is subject
+ to tilde expansion, parameter expansion, command substitution, and
+ arithmetic expansion. If _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br is a nameref, this expands to the
name of the parameter referenced by _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br instead of performing the
complete indirect expansion, for compatibility. The exceptions to this
are the expansions of ${!\b!_\bp_\br_\be_\bf_\bi_\bx*\b*} and ${!\b!_\bn_\ba_\bm_\be[_\b@]} described below. The
- exclamation point must immediately follow the left brace in order to
+ exclamation point must immediately follow the left brace in order to
introduce indirection.
In each of the cases below, _\bw_\bo_\br_\bd is subject to tilde expansion, parame-
ter expansion, command substitution, and arithmetic expansion.
When not performing substring expansion, using the forms documented be-
- low (e.g., :\b:-\b-), b\bba\bas\bsh\bh tests for a parameter that is unset or null.
+ low (e.g., :\b:-\b-), b\bba\bas\bsh\bh tests for a parameter that is unset or null.
Omitting the colon tests only for a parameter that is unset.
${_\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br:\b:-\b-_\bw_\bo_\br_\bd}
- U\bUs\bse\be D\bDe\bef\bfa\bau\bul\blt\bt V\bVa\bal\blu\bue\bes\bs. If _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br is unset or null, the expan-
- sion of _\bw_\bo_\br_\bd is substituted. Otherwise, the value of _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br
+ U\bUs\bse\be D\bDe\bef\bfa\bau\bul\blt\bt V\bVa\bal\blu\bue\bes\bs. If _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br is unset or null, the expan-
+ sion of _\bw_\bo_\br_\bd is substituted. Otherwise, the value of _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br
is substituted.
${_\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br:\b:=\b=_\bw_\bo_\br_\bd}
- A\bAs\bss\bsi\big\bgn\bn D\bDe\bef\bfa\bau\bul\blt\bt V\bVa\bal\blu\bue\bes\bs. If _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br is unset or null, the ex-
- pansion of _\bw_\bo_\br_\bd is assigned to _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br, and the expansion is
+ A\bAs\bss\bsi\big\bgn\bn D\bDe\bef\bfa\bau\bul\blt\bt V\bVa\bal\blu\bue\bes\bs. If _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br is unset or null, the ex-
+ pansion of _\bw_\bo_\br_\bd is assigned to _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br, and the expansion is
the final value of _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br. Positional parameters and special
parameters may not be assigned in this way.
${_\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br:\b:?\b?_\bw_\bo_\br_\bd}
- D\bDi\bis\bsp\bpl\bla\bay\by E\bEr\brr\bro\bor\br i\bif\bf N\bNu\bul\bll\bl o\bor\br U\bUn\bns\bse\bet\bt. If _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br is null or unset,
+ D\bDi\bis\bsp\bpl\bla\bay\by E\bEr\brr\bro\bor\br i\bif\bf N\bNu\bul\bll\bl o\bor\br U\bUn\bns\bse\bet\bt. If _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br is null or unset,
the shell writes the expansion of _\bw_\bo_\br_\bd (or a message to that ef-
fect if _\bw_\bo_\br_\bd is not present) to the standard error and, if it is
- not interactive, exits with a non-zero status. An interactive
+ not interactive, exits with a non-zero status. An interactive
shell does not exit, but does not execute the command associated
- with the expansion. Otherwise, the value of _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br is sub-
+ with the expansion. Otherwise, the value of _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br is sub-
stituted.
${_\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br:\b:+\b+_\bw_\bo_\br_\bd}
- U\bUs\bse\be A\bAl\blt\bte\ber\brn\bna\bat\bte\be V\bVa\bal\blu\bue\be. If _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br is null or unset, nothing is
- substituted, otherwise the expansion of _\bw_\bo_\br_\bd is substituted.
+ U\bUs\bse\be A\bAl\blt\bte\ber\brn\bna\bat\bte\be V\bVa\bal\blu\bue\be. If _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br is null or unset, nothing is
+ substituted, otherwise the expansion of _\bw_\bo_\br_\bd is substituted.
The value of _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br is not used.
${_\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br:\b:_\bo_\bf_\bf_\bs_\be_\bt}
${_\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br:\b:_\bo_\bf_\bf_\bs_\be_\bt:\b:_\bl_\be_\bn_\bg_\bt_\bh}
- S\bSu\bub\bbs\bst\btr\bri\bin\bng\bg E\bEx\bxp\bpa\ban\bns\bsi\bio\bon\bn. Expands to up to _\bl_\be_\bn_\bg_\bt_\bh characters of the
- value of _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br starting at the character specified by _\bo_\bf_\bf_\b-
- _\bs_\be_\bt. If _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br is @\b@ or *\b*, an indexed array subscripted by @\b@
- or *\b*, or an associative array name, the results differ as de-
- scribed below. If _\bl_\be_\bn_\bg_\bt_\bh is omitted, expands to the substring
+ S\bSu\bub\bbs\bst\btr\bri\bin\bng\bg E\bEx\bxp\bpa\ban\bns\bsi\bio\bon\bn. Expands to up to _\bl_\be_\bn_\bg_\bt_\bh characters of the
+ value of _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br starting at the character specified by _\bo_\bf_\bf_\b-
+ _\bs_\be_\bt. If _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br is @\b@ or *\b*, an indexed array subscripted by @\b@
+ or *\b*, or an associative array name, the results differ as de-
+ scribed below. If _\bl_\be_\bn_\bg_\bt_\bh is omitted, expands to the substring
of the value of _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br starting at the character specified by
_\bo_\bf_\bf_\bs_\be_\bt and extending to the end of the value. _\bl_\be_\bn_\bg_\bt_\bh and _\bo_\bf_\bf_\bs_\be_\bt
are arithmetic expressions (see A\bAR\bRI\bIT\bTH\bHM\bME\bET\bTI\bIC\bC E\bEV\bVA\bAL\bLU\bUA\bAT\bTI\bIO\bON\bN below).
- If _\bo_\bf_\bf_\bs_\be_\bt evaluates to a number less than zero, the value is
+ If _\bo_\bf_\bf_\bs_\be_\bt evaluates to a number less than zero, the value is
used as an offset in characters from the end of the value of _\bp_\ba_\b-
- _\br_\ba_\bm_\be_\bt_\be_\br. If _\bl_\be_\bn_\bg_\bt_\bh evaluates to a number less than zero, it is
+ _\br_\ba_\bm_\be_\bt_\be_\br. If _\bl_\be_\bn_\bg_\bt_\bh evaluates to a number less than zero, it is
interpreted as an offset in characters from the end of the value
- of _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br rather than a number of characters, and the expan-
- sion is the characters between _\bo_\bf_\bf_\bs_\be_\bt and that result. Note
- that a negative offset must be separated from the colon by at
+ of _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br rather than a number of characters, and the expan-
+ sion is the characters between _\bo_\bf_\bf_\bs_\be_\bt and that result. Note
+ that a negative offset must be separated from the colon by at
least one space to avoid being confused with the :\b:-\b- expansion.
- If _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br is @\b@ or *\b*, the result is _\bl_\be_\bn_\bg_\bt_\bh positional parame-
- ters beginning at _\bo_\bf_\bf_\bs_\be_\bt. A negative _\bo_\bf_\bf_\bs_\be_\bt is taken relative
- to one greater than the greatest positional parameter, so an
+ If _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br is @\b@ or *\b*, the result is _\bl_\be_\bn_\bg_\bt_\bh positional parame-
+ ters beginning at _\bo_\bf_\bf_\bs_\be_\bt. A negative _\bo_\bf_\bf_\bs_\be_\bt is taken relative
+ to one greater than the greatest positional parameter, so an
offset of -1 evaluates to the last positional parameter (or 0 if
- there are no positional parameters). It is an expansion error
+ there are no positional parameters). It is an expansion error
if _\bl_\be_\bn_\bg_\bt_\bh evaluates to a number less than zero.
If _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br is an indexed array name subscripted by @ or *, the
result is the _\bl_\be_\bn_\bg_\bt_\bh members of the array beginning with ${_\bp_\ba_\br_\ba_\b-
- _\bm_\be_\bt_\be_\br[_\bo_\bf_\bf_\bs_\be_\bt]}. A negative _\bo_\bf_\bf_\bs_\be_\bt is taken relative to one
+ _\bm_\be_\bt_\be_\br[_\bo_\bf_\bf_\bs_\be_\bt]}. A negative _\bo_\bf_\bf_\bs_\be_\bt is taken relative to one
greater than the maximum index of the specified array. It is an
expansion error if _\bl_\be_\bn_\bg_\bt_\bh evaluates to a number less than zero.
Substring expansion applied to an associative array produces un-
defined results.
- Substring indexing is zero-based unless the positional parame-
- ters are used, in which case the indexing starts at 1 by de-
- fault. If _\bo_\bf_\bf_\bs_\be_\bt is 0, and the positional parameters are used,
+ Substring indexing is zero-based unless the positional parame-
+ ters are used, in which case the indexing starts at 1 by de-
+ fault. If _\bo_\bf_\bf_\bs_\be_\bt is 0, and the positional parameters are used,
$\b$0\b0 is prefixed to the list.
${!\b!_\bp_\br_\be_\bf_\bi_\bx*\b*}
${!\b!_\bp_\br_\be_\bf_\bi_\bx@\b@}
- N\bNa\bam\bme\bes\bs m\bma\bat\btc\bch\bhi\bin\bng\bg p\bpr\bre\bef\bfi\bix\bx. Expands to the names of variables whose
+ N\bNa\bam\bme\bes\bs m\bma\bat\btc\bch\bhi\bin\bng\bg p\bpr\bre\bef\bfi\bix\bx. Expands to the names of variables whose
names begin with _\bp_\br_\be_\bf_\bi_\bx, separated by the first character of the
- I\bIF\bFS\bS special variable. When _\b@ is used and the expansion appears
- within double quotes, each variable name expands to a separate
+ I\bIF\bFS\bS special variable. When _\b@ is used and the expansion appears
+ within double quotes, each variable name expands to a separate
word.
${!\b!_\bn_\ba_\bm_\be[_\b@]}
${!\b!_\bn_\ba_\bm_\be[_\b*]}
- L\bLi\bis\bst\bt o\bof\bf a\bar\brr\bra\bay\by k\bke\bey\bys\bs. If _\bn_\ba_\bm_\be is an array variable, expands to
- the list of array indices (keys) assigned in _\bn_\ba_\bm_\be. If _\bn_\ba_\bm_\be is
- not an array, expands to 0 if _\bn_\ba_\bm_\be is set and null otherwise.
- When _\b@ is used and the expansion appears within double quotes,
+ L\bLi\bis\bst\bt o\bof\bf a\bar\brr\bra\bay\by k\bke\bey\bys\bs. If _\bn_\ba_\bm_\be is an array variable, expands to
+ the list of array indices (keys) assigned in _\bn_\ba_\bm_\be. If _\bn_\ba_\bm_\be is
+ not an array, expands to 0 if _\bn_\ba_\bm_\be is set and null otherwise.
+ When _\b@ is used and the expansion appears within double quotes,
each key expands to a separate word.
${#\b#_\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br}
- P\bPa\bar\bra\bam\bme\bet\bte\ber\br l\ble\ben\bng\bgt\bth\bh. Substitutes the length in characters of the
- expanded value of _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br. If _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br is *\b* or @\b@, the value
- substituted is the number of positional parameters. If _\bp_\ba_\br_\ba_\bm_\be_\b-
- _\bt_\be_\br is an array name subscripted by *\b* or @\b@, the value substi-
- tuted is the number of elements in the array. If _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br is
- an indexed array name subscripted by a negative number, that
- number is interpreted as relative to one greater than the maxi-
- mum index of _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br, so negative indices count back from the
- end of the array, and an index of -1 references the last ele-
+ P\bPa\bar\bra\bam\bme\bet\bte\ber\br l\ble\ben\bng\bgt\bth\bh. Substitutes the length in characters of the
+ expanded value of _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br. If _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br is *\b* or @\b@, the value
+ substituted is the number of positional parameters. If _\bp_\ba_\br_\ba_\bm_\be_\b-
+ _\bt_\be_\br is an array name subscripted by *\b* or @\b@, the value substi-
+ tuted is the number of elements in the array. If _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br is
+ an indexed array name subscripted by a negative number, that
+ number is interpreted as relative to one greater than the maxi-
+ mum index of _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br, so negative indices count back from the
+ end of the array, and an index of -1 references the last ele-
ment.
${_\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br#\b#_\bw_\bo_\br_\bd}
R\bRe\bem\bmo\bov\bve\be m\bma\bat\btc\bch\bhi\bin\bng\bg p\bpr\bre\bef\bfi\bix\bx p\bpa\bat\btt\bte\ber\brn\bn. The _\bw_\bo_\br_\bd is expanded to produce
a pattern just as in pathname expansion, and matched against the
expanded value of _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br using the rules described under P\bPa\bat\bt-\b-
- t\bte\ber\brn\bn M\bMa\bat\btc\bch\bhi\bin\bng\bg below. If the pattern matches the beginning of
- the value of _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br, then the result of the expansion is the
- expanded value of _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br with the shortest matching pattern
- (the "#" case) or the longest matching pattern (the "##" case)
- deleted. If _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br is @\b@ or *\b*, the pattern removal operation
- is applied to each positional parameter in turn, and the expan-
- sion is the resultant list. If _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br is an array variable
- subscripted with @\b@ or *\b*, the pattern removal operation is ap-
- plied to each member of the array in turn, and the expansion is
+ t\bte\ber\brn\bn M\bMa\bat\btc\bch\bhi\bin\bng\bg below. If the pattern matches the beginning of
+ the value of _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br, then the result of the expansion is the
+ expanded value of _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br with the shortest matching pattern
+ (the "#" case) or the longest matching pattern (the "##" case)
+ deleted. If _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br is @\b@ or *\b*, the pattern removal operation
+ is applied to each positional parameter in turn, and the expan-
+ sion is the resultant list. If _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br is an array variable
+ subscripted with @\b@ or *\b*, the pattern removal operation is ap-
+ plied to each member of the array in turn, and the expansion is
the resultant list.
${_\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br%\b%_\bw_\bo_\br_\bd}
R\bRe\bem\bmo\bov\bve\be m\bma\bat\btc\bch\bhi\bin\bng\bg s\bsu\buf\bff\bfi\bix\bx p\bpa\bat\btt\bte\ber\brn\bn. The _\bw_\bo_\br_\bd is expanded to produce
a pattern just as in pathname expansion, and matched against the
expanded value of _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br using the rules described under P\bPa\bat\bt-\b-
- t\bte\ber\brn\bn M\bMa\bat\btc\bch\bhi\bin\bng\bg below. If the pattern matches a trailing portion
- of the expanded value of _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br, then the result of the ex-
- pansion is the expanded value of _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br with the shortest
- matching pattern (the "%" case) or the longest matching pattern
- (the "%%" case) deleted. If _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br is @\b@ or *\b*, the pattern
- removal operation is applied to each positional parameter in
- turn, and the expansion is the resultant list. If _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br is
- an array variable subscripted with @\b@ or *\b*, the pattern removal
- operation is applied to each member of the array in turn, and
+ t\bte\ber\brn\bn M\bMa\bat\btc\bch\bhi\bin\bng\bg below. If the pattern matches a trailing portion
+ of the expanded value of _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br, then the result of the ex-
+ pansion is the expanded value of _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br with the shortest
+ matching pattern (the "%" case) or the longest matching pattern
+ (the "%%" case) deleted. If _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br is @\b@ or *\b*, the pattern
+ removal operation is applied to each positional parameter in
+ turn, and the expansion is the resultant list. If _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br is
+ an array variable subscripted with @\b@ or *\b*, the pattern removal
+ operation is applied to each member of the array in turn, and
the expansion is the resultant list.
${_\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br/\b/_\bp_\ba_\bt_\bt_\be_\br_\bn/\b/_\bs_\bt_\br_\bi_\bn_\bg}
${_\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br/\b/#\b#_\bp_\ba_\bt_\bt_\be_\br_\bn/\b/_\bs_\bt_\br_\bi_\bn_\bg}
${_\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br/\b/%\b%_\bp_\ba_\bt_\bt_\be_\br_\bn/\b/_\bs_\bt_\br_\bi_\bn_\bg}
P\bPa\bat\btt\bte\ber\brn\bn s\bsu\bub\bbs\bst\bti\bit\btu\but\bti\bio\bon\bn. The _\bp_\ba_\bt_\bt_\be_\br_\bn is expanded to produce a pat-
- tern just as in pathname expansion and matched against the ex-
- panded value of _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br using the rules described under P\bPa\bat\bt-\b-
- t\bte\ber\brn\bn M\bMa\bat\btc\bch\bhi\bin\bng\bg below. The longest match of _\bp_\ba_\bt_\bt_\be_\br_\bn in the ex-
- panded value is replaced with _\bs_\bt_\br_\bi_\bn_\bg. _\bs_\bt_\br_\bi_\bn_\bg undergoes tilde
- expansion, parameter and variable expansion, arithmetic expan-
+ tern just as in pathname expansion and matched against the ex-
+ panded value of _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br using the rules described under P\bPa\bat\bt-\b-
+ t\bte\ber\brn\bn M\bMa\bat\btc\bch\bhi\bin\bng\bg below. The longest match of _\bp_\ba_\bt_\bt_\be_\br_\bn in the ex-
+ panded value is replaced with _\bs_\bt_\br_\bi_\bn_\bg. _\bs_\bt_\br_\bi_\bn_\bg undergoes tilde
+ expansion, parameter and variable expansion, arithmetic expan-
sion, command and process substitution, and quote removal.
- In the first form above, only the first match is replaced. If
+ In the first form above, only the first match is replaced. If
there are two slashes separating _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br and _\bp_\ba_\bt_\bt_\be_\br_\bn (the sec-
- ond form above), all matches of _\bp_\ba_\bt_\bt_\be_\br_\bn are replaced with
- _\bs_\bt_\br_\bi_\bn_\bg. If _\bp_\ba_\bt_\bt_\be_\br_\bn is preceded by #\b# (the third form above), it
- must match at the beginning of the expanded value of _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br.
- If _\bp_\ba_\bt_\bt_\be_\br_\bn is preceded by %\b% (the fourth form above), it must
+ ond form above), all matches of _\bp_\ba_\bt_\bt_\be_\br_\bn are replaced with
+ _\bs_\bt_\br_\bi_\bn_\bg. If _\bp_\ba_\bt_\bt_\be_\br_\bn is preceded by #\b# (the third form above), it
+ must match at the beginning of the expanded value of _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br.
+ If _\bp_\ba_\bt_\bt_\be_\br_\bn is preceded by %\b% (the fourth form above), it must
match at the end of the expanded value of _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br.
- If the expansion of _\bs_\bt_\br_\bi_\bn_\bg is null, matches of _\bp_\ba_\bt_\bt_\be_\br_\bn are
+ If the expansion of _\bs_\bt_\br_\bi_\bn_\bg is null, matches of _\bp_\ba_\bt_\bt_\be_\br_\bn are
deleted and the /\b/ following _\bp_\ba_\bt_\bt_\be_\br_\bn may be omitted.
- If the p\bpa\bat\bts\bsu\bub\bb_\b_r\bre\bep\bpl\bla\bac\bce\bem\bme\ben\bnt\bt shell option is enabled using s\bsh\bho\bop\bpt\bt,
- any unquoted instances of &\b& in _\bs_\bt_\br_\bi_\bn_\bg are replaced with the
+ If the p\bpa\bat\bts\bsu\bub\bb_\b_r\bre\bep\bpl\bla\bac\bce\bem\bme\ben\bnt\bt shell option is enabled using s\bsh\bho\bop\bpt\bt,
+ any unquoted instances of &\b& in _\bs_\bt_\br_\bi_\bn_\bg are replaced with the
matching portion of _\bp_\ba_\bt_\bt_\be_\br_\bn.
Quoting any part of _\bs_\bt_\br_\bi_\bn_\bg inhibits replacement in the expansion
- of the quoted portion, including replacement strings stored in
- shell variables. Backslash will escape &\b& in _\bs_\bt_\br_\bi_\bn_\bg; the back-
- slash is removed in order to permit a literal &\b& in the replace-
- ment string. Backslash can also be used to escape a backslash;
- \\b\\\b\ results in a literal backslash in the replacement. Users
- should take care if _\bs_\bt_\br_\bi_\bn_\bg is double-quoted to avoid unwanted
- interactions between the backslash and double-quoting, since
- backslash has special meaning within double quotes. Pattern
- substitution performs the check for unquoted &\b& after expanding
- _\bs_\bt_\br_\bi_\bn_\bg; shell programmers should quote any occurrences of &\b& they
- want to be taken literally in the replacement and ensure any in-
- stances of &\b& they want to be replaced are unquoted.
-
- Like the pattern removal operators, double quotes surrounding
+ of the quoted portion, including replacement strings stored in
+ shell variables. Backslash escapes &\b& in _\bs_\bt_\br_\bi_\bn_\bg; the backslash
+ is removed in order to permit a literal &\b& in the replacement
+ string. Backslash can also be used to escape a backslash; \\b\\\b\
+ results in a literal backslash in the replacement. Users should
+ take care if _\bs_\bt_\br_\bi_\bn_\bg is double-quoted to avoid unwanted interac-
+ tions between the backslash and double-quoting, since backslash
+ has special meaning within double quotes. Pattern substitution
+ performs the check for unquoted &\b& after expanding _\bs_\bt_\br_\bi_\bn_\bg; shell
+ programmers should quote any occurrences of &\b& they want to be
+ taken literally in the replacement and ensure any instances of &\b&
+ they want to be replaced are unquoted.
+
+ Like the pattern removal operators, double quotes surrounding
the replacement string quote the expanded characters, while dou-
- ble quotes enclosing the entire parameter substitution do not,
- since the expansion is performed in a context that doesn't take
+ ble quotes enclosing the entire parameter substitution do not,
+ since the expansion is performed in a context that doesn't take
any enclosing double quotes into account.
- If the n\bno\boc\bca\bas\bse\bem\bma\bat\btc\bch\bh shell option is enabled, the match is per-
+ If the n\bno\boc\bca\bas\bse\bem\bma\bat\btc\bch\bh shell option is enabled, the match is per-
formed without regard to the case of alphabetic characters.
If _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br is @\b@ or *\b*, the substitution operation is applied to
- each positional parameter in turn, and the expansion is the re-
- sultant list. If _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br is an array variable subscripted
- with @\b@ or *\b*, the substitution operation is applied to each mem-
- ber of the array in turn, and the expansion is the resultant
+ each positional parameter in turn, and the expansion is the re-
+ sultant list. If _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br is an array variable subscripted
+ with @\b@ or *\b*, the substitution operation is applied to each mem-
+ ber of the array in turn, and the expansion is the resultant
list.
${_\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br^\b^_\bp_\ba_\bt_\bt_\be_\br_\bn}
${_\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br^\b^^\b^_\bp_\ba_\bt_\bt_\be_\br_\bn}
${_\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br,\b,_\bp_\ba_\bt_\bt_\be_\br_\bn}
${_\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br,\b,,\b,_\bp_\ba_\bt_\bt_\be_\br_\bn}
- C\bCa\bas\bse\be m\bmo\bod\bdi\bif\bfi\bic\bca\bat\bti\bio\bon\bn. This expansion modifies the case of alpha-
- betic characters in _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br. The _\bp_\ba_\bt_\bt_\be_\br_\bn is expanded to pro-
+ C\bCa\bas\bse\be m\bmo\bod\bdi\bif\bfi\bic\bca\bat\bti\bio\bon\bn. This expansion modifies the case of alpha-
+ betic characters in _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br. The _\bp_\ba_\bt_\bt_\be_\br_\bn is expanded to pro-
duce a pattern just as in pathname expansion. Each character in
- the expanded value of _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br is tested against _\bp_\ba_\bt_\bt_\be_\br_\bn, and,
- if it matches the pattern, its case is converted. The pattern
+ the expanded value of _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br is tested against _\bp_\ba_\bt_\bt_\be_\br_\bn, and,
+ if it matches the pattern, its case is converted. The pattern
should not attempt to match more than one character.
- The ^\b^ operator converts lowercase letters matching _\bp_\ba_\bt_\bt_\be_\br_\bn to
+ The ^\b^ operator converts lowercase letters matching _\bp_\ba_\bt_\bt_\be_\br_\bn to
uppercase; the ,\b, operator converts matching uppercase letters to
- lowercase. The ^\b^^\b^ and ,\b,,\b, expansions convert each matched char-
- acter in the expanded value; the ^\b^ and ,\b, expansions match and
+ lowercase. The ^\b^^\b^ and ,\b,,\b, expansions convert each matched char-
+ acter in the expanded value; the ^\b^ and ,\b, expansions match and
convert only the first character in the expanded value. If _\bp_\ba_\bt_\b-
- _\bt_\be_\br_\bn is omitted, it is treated like a ?\b?, which matches every
+ _\bt_\be_\br_\bn is omitted, it is treated like a ?\b?, which matches every
character.
- If _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br is @\b@ or *\b*, the case modification operation is ap-
+ If _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br is @\b@ or *\b*, the case modification operation is ap-
plied to each positional parameter in turn, and the expansion is
- the resultant list. If _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br is an array variable sub-
+ the resultant list. If _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br is an array variable sub-
scripted with @\b@ or *\b*, the case modification operation is applied
- to each member of the array in turn, and the expansion is the
+ to each member of the array in turn, and the expansion is the
resultant list.
${_\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br@\b@_\bo_\bp_\be_\br_\ba_\bt_\bo_\br}
P\bPa\bar\bra\bam\bme\bet\bte\ber\br t\btr\bra\ban\bns\bsf\bfo\bor\brm\bma\bat\bti\bio\bon\bn. The expansion is either a transforma-
- tion of the value of _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br or information about _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br
- itself, depending on the value of _\bo_\bp_\be_\br_\ba_\bt_\bo_\br. Each _\bo_\bp_\be_\br_\ba_\bt_\bo_\br is a
+ tion of the value of _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br or information about _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br
+ itself, depending on the value of _\bo_\bp_\be_\br_\ba_\bt_\bo_\br. Each _\bo_\bp_\be_\br_\ba_\bt_\bo_\br is a
single letter:
- U\bU The expansion is a string that is the value of _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br
- with lowercase alphabetic characters converted to upper-
+ U\bU The expansion is a string that is the value of _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br
+ with lowercase alphabetic characters converted to upper-
case.
- u\bu The expansion is a string that is the value of _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br
+ u\bu The expansion is a string that is the value of _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br
with the first character converted to uppercase, if it is
alphabetic.
- L\bL The expansion is a string that is the value of _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br
- with uppercase alphabetic characters converted to lower-
+ L\bL The expansion is a string that is the value of _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br
+ with uppercase alphabetic characters converted to lower-
case.
- Q\bQ The expansion is a string that is the value of _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br
+ Q\bQ The expansion is a string that is the value of _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br
quoted in a format that can be reused as input.
- E\bE The expansion is a string that is the value of _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br
- with backslash escape sequences expanded as with the
+ E\bE The expansion is a string that is the value of _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br
+ with backslash escape sequences expanded as with the
$\b$'\b'...'\b' quoting mechanism.
P\bP The expansion is a string that is the result of expanding
the value of _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br as if it were a prompt string (see
P\bPR\bRO\bOM\bMP\bPT\bTI\bIN\bNG\bG below).
- A\bA The expansion is a string in the form of an assignment
- statement or d\bde\bec\bcl\bla\bar\bre\be command that, if evaluated, will
- recreate _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br with its attributes and value.
- K\bK Produces a possibly-quoted version of the value of _\bp_\ba_\br_\ba_\b-
- _\bm_\be_\bt_\be_\br, except that it prints the values of indexed and
- associative arrays as a sequence of quoted key-value
+ A\bA The expansion is a string in the form of an assignment
+ statement or d\bde\bec\bcl\bla\bar\bre\be command that, if evaluated, recre-
+ ates _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br with its attributes and value.
+ K\bK Produces a possibly-quoted version of the value of _\bp_\ba_\br_\ba_\b-
+ _\bm_\be_\bt_\be_\br, except that it prints the values of indexed and
+ associative arrays as a sequence of quoted key-value
pairs (see A\bAr\brr\bra\bay\bys\bs above). The keys and values are quoted
in a format that can be reused as input.
- a\ba The expansion is a string consisting of flag values rep-
+ a\ba The expansion is a string consisting of flag values rep-
resenting _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br's attributes.
- k\bk Like the K transformation, but expands the keys and val-
- ues of indexed and associative arrays to separate words
+ k\bk Like the K transformation, but expands the keys and val-
+ ues of indexed and associative arrays to separate words
after word splitting.
- If _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br is @\b@ or *\b*, the operation is applied to each posi-
- tional parameter in turn, and the expansion is the resultant
- list. If _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br is an array variable subscripted with @\b@ or
+ If _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br is @\b@ or *\b*, the operation is applied to each posi-
+ tional parameter in turn, and the expansion is the resultant
+ list. If _\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br is an array variable subscripted with @\b@ or
*\b*, the operation is applied to each member of the array in turn,
and the expansion is the resultant list.
- The result of the expansion is subject to word splitting and
+ The result of the expansion is subject to word splitting and
pathname expansion as described below.
C\bCo\bom\bmm\bma\ban\bnd\bd S\bSu\bub\bbs\bst\bti\bit\btu\but\bti\bio\bon\bn
B\bBa\bas\bsh\bh performs the expansion by executing _\bc_\bo_\bm_\bm_\ba_\bn_\bd in a subshell environ-
ment and replacing the command substitution with the standard output of
the command, with any trailing newlines deleted. Embedded newlines are
- not deleted, but they may be removed during word splitting. The com-
- mand substitution $\b$(\b(c\bca\bat\bt _\bf_\bi_\bl_\be)\b) can be replaced by the equivalent but
+ not deleted, but they may be removed during word splitting. The com-
+ mand substitution $\b$(\b(c\bca\bat\bt _\bf_\bi_\bl_\be)\b) can be replaced by the equivalent but
faster $\b$(\b(<\b< _\bf_\bi_\bl_\be)\b).
- With the old-style backquote form of substitution, backslash retains
- its literal meaning except when followed by $\b$, `\b`, or \\b\. The first
- backquote not preceded by a backslash terminates the command substitu-
- tion. When using the $(_\bc_\bo_\bm_\bm_\ba_\bn_\bd) form, all characters between the
+ With the old-style backquote form of substitution, backslash retains
+ its literal meaning except when followed by $\b$, `\b`, or \\b\. The first
+ backquote not preceded by a backslash terminates the command substitu-
+ tion. When using the $(_\bc_\bo_\bm_\bm_\ba_\bn_\bd) form, all characters between the
parentheses make up the command; none are treated specially.
There is an alternate form of command substitution:
$\b${\b{_\bc _\bc_\bo_\bm_\bm_\ba_\bn_\bd;\b;}\b}
- which executes _\bc_\bo_\bm_\bm_\ba_\bn_\bd in the current execution environment and cap-
+ which executes _\bc_\bo_\bm_\bm_\ba_\bn_\bd in the current execution environment and cap-
tures its output, again with trailing newlines removed.
The character _\bc following the open brace must be a space, tab, newline,
- or |\b|, and the close brace must be in a position where a reserved word
- may appear (i.e., preceded by a command terminator such as semicolon).
+ or |\b|, and the close brace must be in a position where a reserved word
+ may appear (i.e., preceded by a command terminator such as semicolon).
B\bBa\bas\bsh\bh allows the close brace to be joined to the remaining characters in
- the word without being followed by a shell metacharacter as a reserved
+ the word without being followed by a shell metacharacter as a reserved
word would usually require.
Any side effects of _\bc_\bo_\bm_\bm_\ba_\bn_\bd take effect immediately in the current exe-
- cution environment and persist in the current environment after the
- command completes (e.g., the e\bex\bxi\bit\bt builtin will exit the shell).
+ cution environment and persist in the current environment after the
+ command completes (e.g., the e\bex\bxi\bit\bt builtin exits the shell).
- This type of command substitution superficially resembles executing an
- unnamed shell function: local variables are created as when a shell
- function is executing, and the r\bre\bet\btu\bur\brn\bn builtin forces _\bc_\bo_\bm_\bm_\ba_\bn_\bd to com-
- plete; however, the rest of the execution environment, including the
+ This type of command substitution superficially resembles executing an
+ unnamed shell function: local variables are created as when a shell
+ function is executing, and the r\bre\bet\btu\bur\brn\bn builtin forces _\bc_\bo_\bm_\bm_\ba_\bn_\bd to com-
+ plete; however, the rest of the execution environment, including the
positional parameters, is shared with the caller.
- If the first character following the open brace is a |\b|, the construct
- expands to the value of the R\bRE\bEP\bPL\bLY\bY shell variable after _\bc_\bo_\bm_\bm_\ba_\bn_\bd exe-
- cutes, without removing any trailing newlines, and the standard output
- of _\bc_\bo_\bm_\bm_\ba_\bn_\bd remains the same as in the calling shell. B\bBa\bas\bsh\bh creates R\bRE\bE-\b-
+ If the first character following the open brace is a |\b|, the construct
+ expands to the value of the R\bRE\bEP\bPL\bLY\bY shell variable after _\bc_\bo_\bm_\bm_\ba_\bn_\bd exe-
+ cutes, without removing any trailing newlines, and the standard output
+ of _\bc_\bo_\bm_\bm_\ba_\bn_\bd remains the same as in the calling shell. B\bBa\bas\bsh\bh creates R\bRE\bE-\b-
P\bPL\bLY\bY as an initially-unset local variable when _\bc_\bo_\bm_\bm_\ba_\bn_\bd executes, and re-
- stores R\bRE\bEP\bPL\bLY\bY to the value it had before the command substitution after
+ stores R\bRE\bEP\bPL\bLY\bY to the value it had before the command substitution after
_\bc_\bo_\bm_\bm_\ba_\bn_\bd completes, as with any local variable.
Command substitutions may be nested. To nest when using the backquoted
$\b$(\b((\b(_\be_\bx_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn)\b))\b)
- The _\be_\bx_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn undergoes the same expansions as if it were within dou-
- ble quotes, but double quote characters in _\be_\bx_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn are not treated
- specially and are removed. All tokens in the expression undergo para-
- meter and variable expansion, command substitution, and quote removal.
- The result is treated as the arithmetic expression to be evaluated.
+ The _\be_\bx_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn undergoes the same expansions as if it were within dou-
+ ble quotes, but double quote characters in _\be_\bx_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn are not treated
+ specially and are removed. All tokens in the expression undergo para-
+ meter and variable expansion, command substitution, and quote removal.
+ The result is treated as the arithmetic expression to be evaluated.
Arithmetic expansions may be nested.
- The evaluation is performed according to the rules listed below under
+ The evaluation is performed according to the rules listed below under
A\bAR\bRI\bIT\bTH\bHM\bME\bET\bTI\bIC\bC E\bEV\bVA\bAL\bLU\bUA\bAT\bTI\bIO\bON\bN. If _\be_\bx_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn is invalid, b\bba\bas\bsh\bh prints a message
- to standard error indicating failure, does not perform the substitu-
+ to standard error indicating failure, does not perform the substitu-
tion, and does not execute the command associated with the expansion.
P\bPr\bro\boc\bce\bes\bss\bs S\bSu\bub\bbs\bst\bti\bit\btu\but\bti\bio\bon\bn
- _\bP_\br_\bo_\bc_\be_\bs_\bs _\bs_\bu_\bb_\bs_\bt_\bi_\bt_\bu_\bt_\bi_\bo_\bn allows a process's input or output to be referred
- to using a filename. It takes the form of <\b<(\b(_\bl_\bi_\bs_\bt)\b) or >\b>(\b(_\bl_\bi_\bs_\bt)\b). The
- process _\bl_\bi_\bs_\bt is run asynchronously, and its input or output appears as
+ _\bP_\br_\bo_\bc_\be_\bs_\bs _\bs_\bu_\bb_\bs_\bt_\bi_\bt_\bu_\bt_\bi_\bo_\bn allows a process's input or output to be referred
+ to using a filename. It takes the form of <\b<(\b(_\bl_\bi_\bs_\bt)\b) or >\b>(\b(_\bl_\bi_\bs_\bt)\b). The
+ process _\bl_\bi_\bs_\bt is run asynchronously, and its input or output appears as
a filename. This filename is passed as an argument to the current com-
mand as the result of the expansion.
- If the >\b>(\b(_\bl_\bi_\bs_\bt)\b) form is used, writing to the file will provide input for
- _\bl_\bi_\bs_\bt. If the <\b<(\b(_\bl_\bi_\bs_\bt)\b) form is used, reading the file will obtain the
- output of _\bl_\bi_\bs_\bt. No space may appear between the <\b< or >\b> and the left
- parenthesis, otherwise the construct would be interpreted as a redirec-
- tion.
+ If the >\b>(\b(_\bl_\bi_\bs_\bt)\b) form is used, writing to the file provides input for
+ _\bl_\bi_\bs_\bt. If the <\b<(\b(_\bl_\bi_\bs_\bt)\b) form is used, reading the file obtains the output
+ of _\bl_\bi_\bs_\bt. No space may appear between the <\b< or >\b> and the left parenthe-
+ sis, otherwise the construct would be interpreted as a redirection.
Process substitution is supported on systems that support named pipes
(_\bF_\bI_\bF_\bO_\bs) or the /\b/d\bde\bev\bv/\b/f\bfd\bd method of naming open files.
case. The filenames _\b. and _\b._\b. are always ignored when G\bGL\bLO\bOB\bBI\bIG\bGN\bNO\bOR\bRE\bE is set
and not null. However, setting G\bGL\bLO\bOB\bBI\bIG\bGN\bNO\bOR\bRE\bE to a non-null value has the
effect of enabling the d\bdo\bot\btg\bgl\blo\bob\bb shell option, so all other filenames be-
- ginning with a "." will match. To get the old behavior of ignoring
- filenames beginning with a ".", make ".*" one of the patterns in G\bGL\bLO\bO-\b-
- B\bBI\bIG\bGN\bNO\bOR\bRE\bE. The d\bdo\bot\btg\bgl\blo\bob\bb option is disabled when G\bGL\bLO\bOB\bBI\bIG\bGN\bNO\bOR\bRE\bE is unset. The
+ ginning with a "." match. To get the old behavior of ignoring file-
+ names beginning with a ".", make ".*" one of the patterns in G\bGL\bLO\bOB\bBI\bIG\bG-\b-
+ N\bNO\bOR\bRE\bE. The d\bdo\bot\btg\bgl\blo\bob\bb option is disabled when G\bGL\bLO\bOB\bBI\bIG\bGN\bNO\bOR\bRE\bE is unset. The
G\bGL\bLO\bOB\bBI\bIG\bGN\bNO\bOR\bRE\bE pattern matching honors the setting of the e\bex\bxt\btg\bgl\blo\bob\bb shell op-
tion.
P\bPa\bat\btt\bte\ber\brn\bn M\bMa\bat\btc\bch\bhi\bin\bng\bg
Any character that appears in a pattern, other than the special pattern
- characters described below, matches itself. The NUL character may not
- occur in a pattern. A backslash escapes the following character; the
- escaping backslash is discarded when matching. The special pattern
+ characters described below, matches itself. The NUL character may not
+ occur in a pattern. A backslash escapes the following character; the
+ escaping backslash is discarded when matching. The special pattern
characters must be quoted if they are to be matched literally.
The special pattern characters have the following meanings:
- *\b* Matches any string, including the null string. When the
- g\bgl\blo\bob\bbs\bst\bta\bar\br shell option is enabled, and *\b* is used in a
- pathname expansion context, two adjacent *\b*s used as a
- single pattern will match all files and zero or more di-
- rectories and subdirectories. If followed by a /\b/, two
- adjacent *\b*s will match only directories and subdirecto-
- ries.
+ *\b* Matches any string, including the null string. When the
+ g\bgl\blo\bob\bbs\bst\bta\bar\br shell option is enabled, and *\b* is used in a
+ pathname expansion context, two adjacent *\b*s used as a
+ single pattern match all files and zero or more directo-
+ ries and subdirectories. If followed by a /\b/, two adja-
+ cent *\b*s match only directories and subdirectories.
?\b? Matches any single character.
- [\b[...]\b] Matches any one of the enclosed characters. A pair of
- characters separated by a hyphen denotes a _\br_\ba_\bn_\bg_\be _\be_\bx_\bp_\br_\be_\bs_\b-
- _\bs_\bi_\bo_\bn; any character that falls between those two charac-
- ters, inclusive, using the current locale's collating se-
- quence and character set, matches. If the first charac-
- ter following the [\b[ is a !\b! or a ^\b^ then any character not
- within the range matches. A -\b- may be matched by includ-
- ing it as the first or last character in the set. A ]\b]
- may be matched by including it as the first character in
- the set.
+ [\b[...]\b] Matches any one of the characters enclosed between the
+ brackets. This is known as a _\bb_\br_\ba_\bc_\bk_\be_\bt _\be_\bx_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn and
+ matches a single character. A pair of characters sepa-
+ rated by a hyphen denotes a _\br_\ba_\bn_\bg_\be _\be_\bx_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn; any charac-
+ ter that falls between those two characters, inclusive,
+ using the current locale's collating sequence and charac-
+ ter set, matches. If the first character following the [\b[
+ is a !\b! or a ^\b^ then any character not within the range
+ matches. To match a -\b-, include it as the first or last
+ character in the set. To match a ]\b], include it as the
+ first character in the set.
The sorting order of characters in range expressions, and
the characters included in the range, are determined by
or L\bLC\bC_\b_A\bAL\bLL\bL shell variables to C\bC, or enable the g\bgl\blo\bob\bba\bas\bsc\bci\bi-\b-
i\bir\bra\ban\bng\bge\bes\bs shell option.
- Within [\b[ and ]\b], _\bc_\bh_\ba_\br_\ba_\bc_\bt_\be_\br _\bc_\bl_\ba_\bs_\bs_\be_\bs can be specified using
- the syntax [\b[:\b:_\bc_\bl_\ba_\bs_\bs:\b:]\b], where _\bc_\bl_\ba_\bs_\bs is one of the following
- classes defined in the POSIX standard:
+ Within a bracket expression, _\bc_\bh_\ba_\br_\ba_\bc_\bt_\be_\br _\bc_\bl_\ba_\bs_\bs_\be_\bs can be
+ specified using the syntax [\b[:\b:_\bc_\bl_\ba_\bs_\bs:\b:]\b], where _\bc_\bl_\ba_\bs_\bs is one
+ of the following classes defined in the POSIX standard:
- a\bal\bln\bnu\bum\bm a\bal\blp\bph\bha\ba a\bas\bsc\bci\bii\bi b\bbl\bla\ban\bnk\bk c\bcn\bnt\btr\brl\bl d\bdi\big\bgi\bit\bt g\bgr\bra\bap\bph\bh l\blo\bow\bwe\ber\br p\bpr\bri\bin\bnt\bt
+ a\bal\bln\bnu\bum\bm a\bal\blp\bph\bha\ba a\bas\bsc\bci\bii\bi b\bbl\bla\ban\bnk\bk c\bcn\bnt\btr\brl\bl d\bdi\big\bgi\bit\bt g\bgr\bra\bap\bph\bh l\blo\bow\bwe\ber\br p\bpr\bri\bin\bnt\bt
p\bpu\bun\bnc\bct\bt s\bsp\bpa\bac\bce\be u\bup\bpp\bpe\ber\br w\bwo\bor\brd\bd x\bxd\bdi\big\bgi\bit\bt
A character class matches any character belonging to that
class. The w\bwo\bor\brd\bd character class matches letters, digits,
and the character _.
- Within [\b[ and ]\b], an _\be_\bq_\bu_\bi_\bv_\ba_\bl_\be_\bn_\bc_\be _\bc_\bl_\ba_\bs_\bs can be specified us-
- ing the syntax [\b[=\b=_\bc=\b=]\b], which matches all characters with
- the same collation weight (as defined by the current lo-
- cale) as the character _\bc.
+ Within a bracket expression, an _\be_\bq_\bu_\bi_\bv_\ba_\bl_\be_\bn_\bc_\be _\bc_\bl_\ba_\bs_\bs can be
+ specified using the syntax [\b[=\b=_\bc=\b=]\b], which matches all char-
+ acters with the same collation weight (as defined by the
+ current locale) as the character _\bc.
- Within [\b[ and ]\b], the syntax [\b[.\b._\bs_\by_\bm_\bb_\bo_\bl.\b.]\b] matches the collat-
- ing symbol _\bs_\by_\bm_\bb_\bo_\bl.
+ Within a bracket expression, the syntax [\b[.\b._\bs_\by_\bm_\bb_\bo_\bl.\b.]\b]
+ matches the collating symbol _\bs_\by_\bm_\bb_\bo_\bl.
If the e\bex\bxt\btg\bgl\blo\bob\bb shell option is enabled using the s\bsh\bho\bop\bpt\bt builtin, the
shell recognizes several extended pattern matching operators. In the
Each redirection that may be preceded by a file descriptor number may
instead be preceded by a word of the form {_\bv_\ba_\br_\bn_\ba_\bm_\be}. In this case, for
- each redirection operator except >&- and <&-, the shell will allocate a
- file descriptor greater than or equal to 10 and assign it to _\bv_\ba_\br_\bn_\ba_\bm_\be.
- If {_\bv_\ba_\br_\bn_\ba_\bm_\be} precedes >&- or <&-, the value of _\bv_\ba_\br_\bn_\ba_\bm_\be defines the file
- descriptor to close. If {_\bv_\ba_\br_\bn_\ba_\bm_\be} is supplied, the redirection per-
- sists beyond the scope of the command, which allows the shell program-
+ each redirection operator except >\b>&\b&-\b- and <\b<&\b&-\b-, the shell allocates a
+ file descriptor greater than or equal to 10 and assigns it to _\bv_\ba_\br_\bn_\ba_\bm_\be.
+ If {_\bv_\ba_\br_\bn_\ba_\bm_\be} precedes >\b>&\b&-\b- or <\b<&\b&-\b-, the value of _\bv_\ba_\br_\bn_\ba_\bm_\be defines the file
+ descriptor to close. If {_\bv_\ba_\br_\bn_\ba_\bm_\be} is supplied, the redirection per-
+ sists beyond the scope of the command, which allows the shell program-
mer to manage the file descriptor's lifetime manually without using the
e\bex\bxe\bec\bc builtin. The v\bva\bar\brr\bre\bed\bdi\bir\br_\b_c\bcl\blo\bos\bse\be shell option manages this behavior.
- In the following descriptions, if the file descriptor number is omit-
- ted, and the first character of the redirection operator is <\b<, the
- redirection refers to the standard input (file descriptor 0). If the
- first character of the redirection operator is >\b>, the redirection
+ In the following descriptions, if the file descriptor number is omit-
+ ted, and the first character of the redirection operator is "<", the
+ redirection refers to the standard input (file descriptor 0). If the
+ first character of the redirection operator is ">", the redirection
refers to the standard output (file descriptor 1).
- The _\bw_\bo_\br_\bd following the redirection operator in the following descrip-
- tions, unless otherwise noted, is subjected to brace expansion, tilde
- expansion, parameter and variable expansion, command substitution,
- arithmetic expansion, quote removal, pathname expansion, and word
+ The _\bw_\bo_\br_\bd following the redirection operator in the following descrip-
+ tions, unless otherwise noted, is subjected to brace expansion, tilde
+ expansion, parameter and variable expansion, command substitution,
+ arithmetic expansion, quote removal, pathname expansion, and word
splitting. If it expands to more than one word, b\bba\bas\bsh\bh reports an error.
The order of redirections is significant. For example, the command
ls >\b> dirlist 2>\b>&\b&1
- directs both standard output and standard error to the file _\bd_\bi_\br_\bl_\bi_\bs_\bt,
+ directs both standard output and standard error to the file _\bd_\bi_\br_\bl_\bi_\bs_\bt,
while the command
ls 2>\b>&\b&1 >\b> dirlist
- directs only the standard output to file _\bd_\bi_\br_\bl_\bi_\bs_\bt, because the standard
- error was directed to the standard output before the standard output
+ directs only the standard output to file _\bd_\bi_\br_\bl_\bi_\bs_\bt, because the standard
+ error was directed to the standard output before the standard output
was redirected to _\bd_\bi_\br_\bl_\bi_\bs_\bt.
B\bBa\bas\bsh\bh handles several filenames specially when they are used in redirec-
tions, as described in the following table. If the operating system on
- which b\bba\bas\bsh\bh is running provides these special files, b\bba\bas\bsh\bh will use them;
- otherwise it will emulate them internally with the behavior described
- below.
+ which b\bba\bas\bsh\bh is running provides these special files, b\bba\bas\bsh\bh uses them;
+ otherwise it emulates them internally with the behavior described be-
+ low.
/\b/d\bde\bev\bv/\b/f\bfd\bd/\b/_\bf_\bd
If _\bf_\bd is a valid integer, duplicate file descriptor _\bf_\bd.
[_\bn]>\b>_\bw_\bo_\br_\bd
If the redirection operator is >\b>, and the n\bno\boc\bcl\blo\bob\bbb\bbe\ber\br option to the s\bse\bet\bt
- builtin has been enabled, the redirection will fail if the file whose
- name results from the expansion of _\bw_\bo_\br_\bd exists and is a regular file.
- If the redirection operator is >\b>|\b|, or the redirection operator is >\b> and
- the n\bno\boc\bcl\blo\bob\bbb\bbe\ber\br option to the s\bse\bet\bt builtin command is not enabled, b\bba\bas\bsh\bh
+ builtin has been enabled, the redirection fails if the file whose name
+ results from the expansion of _\bw_\bo_\br_\bd exists and is a regular file. If
+ the redirection operator is >\b>|\b|, or the redirection operator is >\b> and
+ the n\bno\boc\bcl\blo\bob\bbb\bbe\ber\br option to the s\bse\bet\bt builtin command is not enabled, b\bba\bas\bsh\bh
attempts the redirection even if the file named by _\bw_\bo_\br_\bd exists.
A\bAp\bpp\bpe\ben\bnd\bdi\bin\bng\bg R\bRe\bed\bdi\bir\bre\bec\bct\bte\bed\bd O\bOu\but\btp\bpu\but\bt
- Redirecting output in this fashion opens the file whose name results
- from the expansion of _\bw_\bo_\br_\bd for appending on file descriptor _\bn, or the
+ Redirecting output in this fashion opens the file whose name results
+ from the expansion of _\bw_\bo_\br_\bd for appending on file descriptor _\bn, or the
standard output (file descriptor 1) if _\bn is not specified. If the file
does not exist it is created.
[_\bn]>\b>>\b>_\bw_\bo_\br_\bd
R\bRe\bed\bdi\bir\bre\bec\bct\bti\bin\bng\bg S\bSt\bta\ban\bnd\bda\bar\brd\bd O\bOu\but\btp\bpu\but\bt a\ban\bnd\bd S\bSt\bta\ban\bnd\bda\bar\brd\bd E\bEr\brr\bro\bor\br
- This construct redirects both the standard output (file descriptor 1)
- and the standard error output (file descriptor 2) to the file whose
+ This construct redirects both the standard output (file descriptor 1)
+ and the standard error output (file descriptor 2) to the file whose
name is the expansion of _\bw_\bo_\br_\bd.
- There are two formats for redirecting standard output and standard er-
+ There are two formats for redirecting standard output and standard er-
ror:
&\b&>\b>_\bw_\bo_\br_\bd
>\b>_\bw_\bo_\br_\bd 2>\b>&\b&1
- When using the second form, _\bw_\bo_\br_\bd may not expand to a number or -\b-. If
- it does, other redirection operators apply (see D\bDu\bup\bpl\bli\bic\bca\bat\bti\bin\bng\bg F\bFi\bil\ble\be D\bDe\be-\b-
+ When using the second form, _\bw_\bo_\br_\bd may not expand to a number or -\b-. If
+ it does, other redirection operators apply (see D\bDu\bup\bpl\bli\bic\bca\bat\bti\bin\bng\bg F\bFi\bil\ble\be D\bDe\be-\b-
s\bsc\bcr\bri\bip\bpt\bto\bor\brs\bs below) for compatibility reasons.
A\bAp\bpp\bpe\ben\bnd\bdi\bin\bng\bg S\bSt\bta\ban\bnd\bda\bar\brd\bd O\bOu\but\btp\bpu\but\bt a\ban\bnd\bd S\bSt\bta\ban\bnd\bda\bar\brd\bd E\bEr\brr\bro\bor\br
(see D\bDu\bup\bpl\bli\bic\bca\bat\bti\bin\bng\bg F\bFi\bil\ble\be D\bDe\bes\bsc\bcr\bri\bip\bpt\bto\bor\brs\bs below).
H\bHe\ber\bre\be D\bDo\boc\bcu\bum\bme\ben\bnt\bts\bs
- This type of redirection instructs the shell to read input from the
+ This type of redirection instructs the shell to read input from the
current source until it reads a line containing only _\bd_\be_\bl_\bi_\bm_\bi_\bt_\be_\br (with no
- trailing blanks). All of the lines read up to that point then become
- the standard input (or file descriptor _\bn if _\bn is specified) for a com-
+ trailing blanks). All of the lines read up to that point then become
+ the standard input (or file descriptor _\bn if _\bn is specified) for a com-
mand.
The format of here-documents is:
_\bh_\be_\br_\be_\b-_\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt
_\bd_\be_\bl_\bi_\bm_\bi_\bt_\be_\br
- The shell does not perform parameter and variable expansion, command
- substitution, arithmetic expansion, or pathname expansion is performed
+ The shell does not perform parameter and variable expansion, command
+ substitution, arithmetic expansion, or pathname expansion is performed
on _\bw_\bo_\br_\bd.
If any part of _\bw_\bo_\br_\bd is quoted, the _\bd_\be_\bl_\bi_\bm_\bi_\bt_\be_\br is the result of quote re-
moval on _\bw_\bo_\br_\bd, and the lines in the here-document are not expanded. If
- _\bw_\bo_\br_\bd is unquoted, the _\bd_\be_\bl_\bi_\bm_\bi_\bt_\be_\br is _\bw_\bo_\br_\bd itself, and the here-document
- text is treated similarly to a double-quoted string: all lines of the
- here-document are subjected to parameter expansion, command substitu-
- tion, and arithmetic expansion, the character sequence \\b\<\b<n\bne\bew\bwl\bli\bin\bne\be>\b> is
+ _\bw_\bo_\br_\bd is unquoted, the _\bd_\be_\bl_\bi_\bm_\bi_\bt_\be_\br is _\bw_\bo_\br_\bd itself, and the here-document
+ text is treated similarly to a double-quoted string: all lines of the
+ here-document are subjected to parameter expansion, command substitu-
+ tion, and arithmetic expansion, the character sequence \\b\<\b<n\bne\bew\bwl\bli\bin\bne\be>\b> is
treated literally, and \\b\ must be used to quote the characters \\b\, $\b$, and
`\b`; however, double quote characters have no special meaning.
- If the redirection operator is <\b<<\b<-\b-, then the shell strips all leading
- tab characters from input lines and the line containing _\bd_\be_\bl_\bi_\bm_\bi_\bt_\be_\br.
- This allows here-documents within shell scripts to be indented in a
+ If the redirection operator is <\b<<\b<-\b-, then the shell strips all leading
+ tab characters from input lines and the line containing _\bd_\be_\bl_\bi_\bm_\bi_\bt_\be_\br.
+ This allows here-documents within shell scripts to be indented in a
natural fashion.
If the delimiter is not quoted, the \\b\<\b<n\bne\bew\bwl\bli\bin\bne\be>\b> sequence is treated as a
- line continuation: the two lines are joined and the backslash-newline
- is removed. This happens while reading the here-document, before the
+ line continuation: the two lines are joined and the backslash-newline
+ is removed. This happens while reading the here-document, before the
check for the ending delimiter, so joined lines can form the end delim-
iter.
[_\bn]<\b<<\b<<\b<_\bw_\bo_\br_\bd
- The _\bw_\bo_\br_\bd undergoes tilde expansion, parameter and variable expansion,
- command substitution, arithmetic expansion, and quote removal. Path-
- name expansion and word splitting are not performed. The result is
+ The _\bw_\bo_\br_\bd undergoes tilde expansion, parameter and variable expansion,
+ command substitution, arithmetic expansion, and quote removal. Path-
+ name expansion and word splitting are not performed. The result is
supplied as a single string, with a newline appended, to the command on
its standard input (or file descriptor _\bn if _\bn is specified).
[_\bn]<\b<&\b&_\bw_\bo_\br_\bd
is used to duplicate input file descriptors. If _\bw_\bo_\br_\bd expands to one or
- more digits, file descriptor _\bn is made to be a copy of that file de-
+ more digits, file descriptor _\bn is made to be a copy of that file de-
scriptor. It is a redirection error if the digits in _\bw_\bo_\br_\bd do not spec-
ify a file descriptor open for input. If _\bw_\bo_\br_\bd evaluates to -\b-, file de-
- scriptor _\bn is closed. If _\bn is not specified, this uses the standard
+ scriptor _\bn is closed. If _\bn is not specified, this uses the standard
input (file descriptor 0).
The operator
[_\bn]>\b>&\b&_\bw_\bo_\br_\bd
- is used similarly to duplicate output file descriptors. If _\bn is not
- specified, this uses the standard output (file descriptor 1). It is a
- redirection error if the digits in _\bw_\bo_\br_\bd do not specify a file descrip-
- tor open for output. If _\bw_\bo_\br_\bd evaluates to -\b-, file descriptor _\bn is
- closed. As a special case, if _\bn is omitted, and _\bw_\bo_\br_\bd does not expand
- to one or more digits or -\b-, this redirects the standard output and
+ is used similarly to duplicate output file descriptors. If _\bn is not
+ specified, this uses the standard output (file descriptor 1). It is a
+ redirection error if the digits in _\bw_\bo_\br_\bd do not specify a file descrip-
+ tor open for output. If _\bw_\bo_\br_\bd evaluates to -\b-, file descriptor _\bn is
+ closed. As a special case, if _\bn is omitted, and _\bw_\bo_\br_\bd does not expand
+ to one or more digits or -\b-, this redirects the standard output and
standard error as described previously.
M\bMo\bov\bvi\bin\bng\bg F\bFi\bil\ble\be D\bDe\bes\bsc\bcr\bri\bip\bpt\bto\bor\brs\bs
[_\bn]<\b<&\b&_\bd_\bi_\bg_\bi_\bt-\b-
- moves the file descriptor _\bd_\bi_\bg_\bi_\bt to file descriptor _\bn, or the standard
+ moves the file descriptor _\bd_\bi_\bg_\bi_\bt to file descriptor _\bn, or the standard
input (file descriptor 0) if _\bn is not specified. _\bd_\bi_\bg_\bi_\bt is closed after
being duplicated to _\bn.
[_\bn]>\b>&\b&_\bd_\bi_\bg_\bi_\bt-\b-
- moves the file descriptor _\bd_\bi_\bg_\bi_\bt to file descriptor _\bn, or the standard
+ moves the file descriptor _\bd_\bi_\bg_\bi_\bt to file descriptor _\bn, or the standard
output (file descriptor 1) if _\bn is not specified.
O\bOp\bpe\ben\bni\bin\bng\bg F\bFi\bil\ble\be D\bDe\bes\bsc\bcr\bri\bip\bpt\bto\bor\brs\bs f\bfo\bor\br R\bRe\bea\bad\bdi\bin\bng\bg a\ban\bnd\bd W\bWr\bri\bit\bti\bin\bng\bg
ified. If the file does not exist, it is created.
A\bAL\bLI\bIA\bAS\bSE\bES\bS
- _\bA_\bl_\bi_\ba_\bs_\be_\bs allow a string to be substituted for a word that is in a posi-
- tion in the input where it can be the first word of a simple command.
- Aliases have names and corresponding values that are set and unset us-
- ing the a\bal\bli\bia\bas\bs and u\bun\bna\bal\bli\bia\bas\bs builtin commands (see S\bSH\bHE\bEL\bLL\bL B\bBU\bUI\bIL\bLT\bTI\bIN\bN C\bCO\bOM\bMM\bMA\bAN\bND\bDS\bS
+ _\bA_\bl_\bi_\ba_\bs_\be_\bs allow a string to be substituted for a word that is in a posi-
+ tion in the input where it can be the first word of a simple command.
+ Aliases have names and corresponding values that are set and unset us-
+ ing the a\bal\bli\bia\bas\bs and u\bun\bna\bal\bli\bia\bas\bs builtin commands (see S\bSH\bHE\bEL\bLL\bL B\bBU\bUI\bIL\bLT\bTI\bIN\bN C\bCO\bOM\bMM\bMA\bAN\bND\bDS\bS
below).
- If the shell reads an unquoted word in the right position, it checks
- the word to see if it matches an alias name. If it matches, the shell
- replaces the word with the alias value, and reads that value as if it
+ If the shell reads an unquoted word in the right position, it checks
+ the word to see if it matches an alias name. If it matches, the shell
+ replaces the word with the alias value, and reads that value as if it
had been read instead of the word. The shell doesn't look at any char-
acters following the word before attempting alias substitution.
- The characters /\b/, $\b$, `\b`, and =\b= and any of the shell _\bm_\be_\bt_\ba_\bc_\bh_\ba_\br_\ba_\bc_\bt_\be_\br_\bs or
- quoting characters listed above may not appear in an alias name. The
- replacement text may contain any valid shell input, including shell
- metacharacters. The first word of the replacement text is tested for
+ The characters /\b/, $\b$, `\b`, and =\b= and any of the shell _\bm_\be_\bt_\ba_\bc_\bh_\ba_\br_\ba_\bc_\bt_\be_\br_\bs or
+ quoting characters listed above may not appear in an alias name. The
+ replacement text may contain any valid shell input, including shell
+ metacharacters. The first word of the replacement text is tested for
aliases, but a word that is identical to an alias being expanded is not
expanded a second time. This means that one may alias l\bls\bs to l\bls\bs -\b-F\bF, for
- instance, and b\bba\bas\bsh\bh does not try to recursively expand the replacement
+ instance, and b\bba\bas\bsh\bh does not try to recursively expand the replacement
text.
- If the last character of the alias value is a _\bb_\bl_\ba_\bn_\bk, the shell checks
+ If the last character of the alias value is a _\bb_\bl_\ba_\bn_\bk, the shell checks
the next command word following the alias for alias expansion.
Aliases are created and listed with the a\bal\bli\bia\bas\bs command, and removed with
the u\bun\bna\bal\bli\bia\bas\bs command.
- There is no mechanism for using arguments in the replacement text. If
- arguments are needed, use a shell function (see F\bFU\bUN\bNC\bCT\bTI\bIO\bON\bNS\bS below) in-
+ There is no mechanism for using arguments in the replacement text. If
+ arguments are needed, use a shell function (see F\bFU\bUN\bNC\bCT\bTI\bIO\bON\bNS\bS below) in-
stead.
- Aliases are not expanded when the shell is not interactive, unless the
- e\bex\bxp\bpa\ban\bnd\bd_\b_a\bal\bli\bia\bas\bse\bes\bs shell option is set using s\bsh\bho\bop\bpt\bt (see the description of
+ Aliases are not expanded when the shell is not interactive, unless the
+ e\bex\bxp\bpa\ban\bnd\bd_\b_a\bal\bli\bia\bas\bse\bes\bs shell option is set using s\bsh\bho\bop\bpt\bt (see the description of
s\bsh\bho\bop\bpt\bt under S\bSH\bHE\bEL\bLL\bL B\bBU\bUI\bIL\bLT\bTI\bIN\bN C\bCO\bOM\bMM\bMA\bAN\bND\bDS\bS below).
- The rules concerning the definition and use of aliases are somewhat
- confusing. B\bBa\bas\bsh\bh always reads at least one complete line of input, and
- all lines that make up a compound command, before executing any of the
- commands on that line or the compound command. Aliases are expanded
- when a command is read, not when it is executed. Therefore, an alias
- definition appearing on the same line as another command does not take
+ The rules concerning the definition and use of aliases are somewhat
+ confusing. B\bBa\bas\bsh\bh always reads at least one complete line of input, and
+ all lines that make up a compound command, before executing any of the
+ commands on that line or the compound command. Aliases are expanded
+ when a command is read, not when it is executed. Therefore, an alias
+ definition appearing on the same line as another command does not take
effect until the shell reads the next line of input, and an alias defi-
- nition in a compound command does not take effect until the shell
- parses and executes the entire compound command. The commands follow-
- ing the alias definition on that line, or in the rest of a compound
- command, are not affected by the new alias. This behavior is also an
- issue when functions are executed. Aliases are expanded when a func-
- tion definition is read, not when the function is executed, because a
+ nition in a compound command does not take effect until the shell
+ parses and executes the entire compound command. The commands follow-
+ ing the alias definition on that line, or in the rest of a compound
+ command, are not affected by the new alias. This behavior is also an
+ issue when functions are executed. Aliases are expanded when a func-
+ tion definition is read, not when the function is executed, because a
function definition is itself a command. As a consequence, aliases de-
fined in a function are not available until after that function is exe-
- cuted. To be safe, always put alias definitions on a separate line,
+ cuted. To be safe, always put alias definitions on a separate line,
and do not use a\bal\bli\bia\bas\bs in compound commands.
For almost every purpose, shell functions are preferable to aliases.
F\bFU\bUN\bNC\bCT\bTI\bIO\bON\bNS\bS
- A shell function, defined as described above under S\bSH\bHE\bEL\bLL\bL G\bGR\bRA\bAM\bMM\bMA\bAR\bR,
- stores a series of commands for later execution. When the name of a
+ A shell function, defined as described above under S\bSH\bHE\bEL\bLL\bL G\bGR\bRA\bAM\bMM\bMA\bAR\bR,
+ stores a series of commands for later execution. When the name of a
shell function is used as a simple command name, the shell executes the
list of commands associated with that function name. Functions are ex-
- ecuted in the context of the calling shell; there is no new process
- created to interpret them (contrast this with the execution of a shell
+ ecuted in the context of the calling shell; there is no new process
+ created to interpret them (contrast this with the execution of a shell
script).
- When a function is executed, the arguments to the function become the
+ When a function is executed, the arguments to the function become the
positional parameters during its execution. The special parameter #\b# is
- updated to reflect the new positional parameters. Special parameter 0\b0
+ updated to reflect the new positional parameters. Special parameter 0\b0
is unchanged. The first element of the F\bFU\bUN\bNC\bCN\bNA\bAM\bME\bE variable is set to the
name of the function while the function is executing.
- All other aspects of the shell execution environment are identical be-
- tween a function and its caller with these exceptions: the D\bDE\bEB\bBU\bUG\bG and
- R\bRE\bET\bTU\bUR\bRN\bN traps (see the description of the t\btr\bra\bap\bp builtin under S\bSH\bHE\bEL\bLL\bL
- B\bBU\bUI\bIL\bLT\bTI\bIN\bN C\bCO\bOM\bMM\bMA\bAN\bND\bDS\bS below) are not inherited unless the function has been
- given the t\btr\bra\bac\bce\be attribute (see the description of the d\bde\bec\bcl\bla\bar\bre\be builtin
- below) or the -\b-o\bo f\bfu\bun\bnc\bct\btr\bra\bac\bce\be shell option has been enabled with the s\bse\bet\bt
- builtin (in which case all functions inherit the D\bDE\bEB\bBU\bUG\bG and R\bRE\bET\bTU\bUR\bRN\bN
- traps), and the E\bER\bRR\bR trap is not inherited unless the -\b-o\bo e\ber\brr\brt\btr\bra\bac\bce\be shell
+ All other aspects of the shell execution environment are identical be-
+ tween a function and its caller with these exceptions: the D\bDE\bEB\bBU\bUG\bG and
+ R\bRE\bET\bTU\bUR\bRN\bN traps (see the description of the t\btr\bra\bap\bp builtin under S\bSH\bHE\bEL\bLL\bL
+ B\bBU\bUI\bIL\bLT\bTI\bIN\bN C\bCO\bOM\bMM\bMA\bAN\bND\bDS\bS below) are not inherited unless the function has been
+ given the t\btr\bra\bac\bce\be attribute (see the description of the d\bde\bec\bcl\bla\bar\bre\be builtin
+ below) or the -\b-o\bo f\bfu\bun\bnc\bct\btr\bra\bac\bce\be shell option has been enabled with the s\bse\bet\bt
+ builtin (in which case all functions inherit the D\bDE\bEB\bBU\bUG\bG and R\bRE\bET\bTU\bUR\bRN\bN
+ traps), and the E\bER\bRR\bR trap is not inherited unless the -\b-o\bo e\ber\brr\brt\btr\bra\bac\bce\be shell
option has been enabled.
- Variables local to the function are declared with the l\blo\boc\bca\bal\bl builtin
- command (_\bl_\bo_\bc_\ba_\bl _\bv_\ba_\br_\bi_\ba_\bb_\bl_\be_\bs). Ordinarily, variables and their values are
- shared between the function and its caller. If a variable is declared
- l\blo\boc\bca\bal\bl, the variable's visible scope is restricted to that function and
+ Variables local to the function are declared with the l\blo\boc\bca\bal\bl builtin
+ command (_\bl_\bo_\bc_\ba_\bl _\bv_\ba_\br_\bi_\ba_\bb_\bl_\be_\bs). Ordinarily, variables and their values are
+ shared between the function and its caller. If a variable is declared
+ l\blo\boc\bca\bal\bl, the variable's visible scope is restricted to that function and
its children (including the functions it calls).
In the following description, the _\bc_\bu_\br_\br_\be_\bn_\bt _\bs_\bc_\bo_\bp_\be is a currently- execut-
ing function. Previous scopes consist of that function's caller and so
- on, back to the "global" scope, where the shell is not executing any
- shell function. A local variable at the current scope is a variable
- declared using the l\blo\boc\bca\bal\bl or d\bde\bec\bcl\bla\bar\bre\be builtins in the function that is
+ on, back to the "global" scope, where the shell is not executing any
+ shell function. A local variable at the current scope is a variable
+ declared using the l\blo\boc\bca\bal\bl or d\bde\bec\bcl\bla\bar\bre\be builtins in the function that is
currently executing.
- Local variables "shadow" variables with the same name declared at pre-
- vious scopes. For instance, a local variable declared in a function
+ Local variables "shadow" variables with the same name declared at pre-
+ vious scopes. For instance, a local variable declared in a function
hides variables with the same name declared at previous scopes, includ-
- ing global variables: references and assignments refer to the local
- variable, leaving the variables at previous scopes unmodified. When
+ ing global variables: references and assignments refer to the local
+ variable, leaving the variables at previous scopes unmodified. When
the function returns, the global variable is once again visible.
- The shell uses _\bd_\by_\bn_\ba_\bm_\bi_\bc _\bs_\bc_\bo_\bp_\bi_\bn_\bg to control a variable's visibility
- within functions. With dynamic scoping, visible variables and their
- values are a result of the sequence of function calls that caused exe-
- cution to reach the current function. The value of a variable that a
- function sees depends on its value within its caller, if any, whether
- that caller is the global scope or another shell function. This is
+ The shell uses _\bd_\by_\bn_\ba_\bm_\bi_\bc _\bs_\bc_\bo_\bp_\bi_\bn_\bg to control a variable's visibility
+ within functions. With dynamic scoping, visible variables and their
+ values are a result of the sequence of function calls that caused exe-
+ cution to reach the current function. The value of a variable that a
+ function sees depends on its value within its caller, if any, whether
+ that caller is the global scope or another shell function. This is
also the value that a local variable declaration shadows, and the value
that is restored when the function returns.
- For example, if a variable _\bv_\ba_\br is declared as local in function _\bf_\bu_\bn_\bc_\b1,
- and _\bf_\bu_\bn_\bc_\b1 calls another function _\bf_\bu_\bn_\bc_\b2, references to _\bv_\ba_\br made from
- within _\bf_\bu_\bn_\bc_\b2 will resolve to the local variable _\bv_\ba_\br from _\bf_\bu_\bn_\bc_\b1, shadow-
- ing any global variable named _\bv_\ba_\br.
+ For example, if a variable _\bv_\ba_\br is declared as local in function _\bf_\bu_\bn_\bc_\b1,
+ and _\bf_\bu_\bn_\bc_\b1 calls another function _\bf_\bu_\bn_\bc_\b2, references to _\bv_\ba_\br made from
+ within _\bf_\bu_\bn_\bc_\b2 resolve to the local variable _\bv_\ba_\br from _\bf_\bu_\bn_\bc_\b1, shadowing
+ any global variable named _\bv_\ba_\br.
The u\bun\bns\bse\bet\bt builtin also acts using the same dynamic scope: if a variable
- is local to the current scope, u\bun\bns\bse\bet\bt will unset it; otherwise the unset
- will refer to the variable found in any calling scope as described
- above. If a variable at the current local scope is unset, it will re-
- main so (appearing as unset) until it is reset in that scope or until
- the function returns. Once the function returns, any instance of the
- variable at a previous scope will become visible. If the unset acts on
- a variable at a previous scope, any instance of a variable with that
- name that had been shadowed will become visible (see below how the l\blo\bo-\b-
- c\bca\bal\blv\bva\bar\br_\b_u\bun\bns\bse\bet\bt shell option changes this behavior).
+ is local to the current scope, u\bun\bns\bse\bet\bt unsets it; otherwise the unset
+ will refer to the variable found in any calling scope as described
+ above. If a variable at the current local scope is unset, it remains
+ so (appearing as unset) until it is reset in that scope or until the
+ function returns. Once the function returns, any instance of the vari-
+ able at a previous scope becomes visible. If the unset acts on a vari-
+ able at a previous scope, any instance of a variable with that name
+ that had been shadowed becomes visible (see below how the l\blo\boc\bca\bal\blv\bva\bar\br_\b_u\bun\bn-\b-
+ s\bse\bet\bt shell option changes this behavior).
The F\bFU\bUN\bNC\bCN\bNE\bES\bST\bT variable, if set to a numeric value greater than 0, de-
fines a maximum function nesting level. Function invocations that ex-
ters and the special parameter #\b# are restored to the values they had
prior to the function's execution.
- The -\b-f\bf option to the d\bde\bec\bcl\bla\bar\bre\be or t\bty\byp\bpe\bes\bse\bet\bt builtin commands will list
- function names and definitions. The -\b-F\bF option to d\bde\bec\bcl\bla\bar\bre\be or t\bty\byp\bpe\bes\bse\bet\bt
- will list the function names only (and optionally the source file and
- line number, if the e\bex\bxt\btd\bde\beb\bbu\bug\bg shell option is enabled). Functions may
- be exported so that child shell processes (those created when executing
- a separate shell invocation) automatically have them defined with the
- -\b-f\bf option to the e\bex\bxp\bpo\bor\brt\bt builtin. The -\b-f\bf option to the u\bun\bns\bse\bet\bt builtin
- will delete a function definition.
+ The -\b-f\bf option to the d\bde\bec\bcl\bla\bar\bre\be or t\bty\byp\bpe\bes\bse\bet\bt builtin commands lists function
+ names and definitions. The -\b-F\bF option to d\bde\bec\bcl\bla\bar\bre\be or t\bty\byp\bpe\bes\bse\bet\bt lists the
+ function names only (and optionally the source file and line number, if
+ the e\bex\bxt\btd\bde\beb\bbu\bug\bg shell option is enabled). Functions may be exported so
+ that child shell processes (those created when executing a separate
+ shell invocation) automatically have them defined with the -\b-f\bf option to
+ the e\bex\bxp\bpo\bor\brt\bt builtin. The -\b-f\bf option to the u\bun\bns\bse\bet\bt builtin deletes a func-
+ tion definition.
Functions may be recursive. The F\bFU\bUN\bNC\bCN\bNE\bES\bST\bT variable may be used to limit
- the depth of the function call stack and restrict the number of func-
- tion invocations. By default, b\bba\bas\bsh\bh imposes no limit on the number of
+ the depth of the function call stack and restrict the number of func-
+ tion invocations. By default, b\bba\bas\bsh\bh imposes no limit on the number of
recursive calls.
A\bAR\bRI\bIT\bTH\bHM\bME\bET\bTI\bIC\bC E\bEV\bVA\bAL\bLU\bUA\bAT\bTI\bIO\bON\bN
- The shell allows arithmetic expressions to be evaluated, under certain
- circumstances (see the l\ble\bet\bt and d\bde\bec\bcl\bla\bar\bre\be builtin commands, the (\b((\b( com-
- pound command, the arithmetic f\bfo\bor\br command, the [\b[[\b[ conditional command,
+ The shell allows arithmetic expressions to be evaluated, under certain
+ circumstances (see the l\ble\bet\bt and d\bde\bec\bcl\bla\bar\bre\be builtin commands, the (\b((\b( com-
+ pound command, the arithmetic f\bfo\bor\br command, the [\b[[\b[ conditional command,
and A\bAr\bri\bit\bth\bhm\bme\bet\bti\bic\bc E\bEx\bxp\bpa\ban\bns\bsi\bio\bon\bn).
- Evaluation is done in the largest fixed-width integers available, with
- no check for overflow, though division by 0 is trapped and flagged as
- an error. The operators and their precedence, associativity, and val-
+ Evaluation is done in the largest fixed-width integers available, with
+ no check for overflow, though division by 0 is trapped and flagged as
+ an error. The operators and their precedence, associativity, and val-
ues are the same as in the C language. The following list of operators
- is grouped into levels of equal-precedence operators. The levels are
+ is grouped into levels of equal-precedence operators. The levels are
listed in order of decreasing precedence.
_\bi_\bd+\b++\b+ _\bi_\bd-\b--\b-
_\be_\bx_\bp_\br_\b1 ,\b, _\be_\bx_\bp_\br_\b2
comma
- Shell variables are allowed as operands; parameter expansion is per-
+ Shell variables are allowed as operands; parameter expansion is per-
formed before the expression is evaluated. Within an expression, shell
- variables may also be referenced by name without using the parameter
+ variables may also be referenced by name without using the parameter
expansion syntax. This means you can use "x", where _\bx is a shell vari-
able name, in an arithmetic expression, and the shell will evaluate its
- value as an expression and use the result. A shell variable that is
+ value as an expression and use the result. A shell variable that is
null or unset evaluates to 0 when referenced by name in an expression.
- The value of a variable is evaluated as an arithmetic expression when
- it is referenced, or when a variable which has been given the _\bi_\bn_\bt_\be_\bg_\be_\br
+ The value of a variable is evaluated as an arithmetic expression when
+ it is referenced, or when a variable which has been given the _\bi_\bn_\bt_\be_\bg_\be_\br
attribute using d\bde\bec\bcl\bla\bar\bre\be -\b-i\bi is assigned a value. A null value evaluates
- to 0. A shell variable need not have its _\bi_\bn_\bt_\be_\bg_\be_\br attribute turned on
+ to 0. A shell variable need not have its _\bi_\bn_\bt_\be_\bg_\be_\br attribute turned on
to be used in an expression.
Integer constants follow the C language definition, without suffixes or
character constants. Constants with a leading 0 are interpreted as oc-
- tal numbers. A leading 0x or 0X denotes hexadecimal. Otherwise, num-
- bers take the form [_\bb_\ba_\bs_\be_\b#]n, where the optional _\bb_\ba_\bs_\be is a decimal num-
- ber between 2 and 64 representing the arithmetic base, and _\bn is a num-
- ber in that base. If _\bb_\ba_\bs_\be_\b# is omitted, then base 10 is used. When
+ tal numbers. A leading 0x or 0X denotes hexadecimal. Otherwise, num-
+ bers take the form [_\bb_\ba_\bs_\be_\b#]n, where the optional _\bb_\ba_\bs_\be is a decimal num-
+ ber between 2 and 64 representing the arithmetic base, and _\bn is a num-
+ ber in that base. If _\bb_\ba_\bs_\be_\b# is omitted, then base 10 is used. When
specifying _\bn, if a non-digit is required, the digits greater than 9 are
- represented by the lowercase letters, the uppercase letters, @, and _,
- in that order. If _\bb_\ba_\bs_\be is less than or equal to 36, lowercase and up-
- percase letters may be used interchangeably to represent numbers be-
+ represented by the lowercase letters, the uppercase letters, @, and _,
+ in that order. If _\bb_\ba_\bs_\be is less than or equal to 36, lowercase and up-
+ percase letters may be used interchangeably to represent numbers be-
tween 10 and 35.
Operators are evaluated in precedence order. Sub-expressions in paren-
theses are evaluated first and may override the precedence rules above.
C\bCO\bON\bND\bDI\bIT\bTI\bIO\bON\bNA\bAL\bL E\bEX\bXP\bPR\bRE\bES\bSS\bSI\bIO\bON\bNS\bS
- Conditional expressions are used by the [\b[[\b[ compound command and the
- t\bte\bes\bst\bt and [\b[ builtin commands to test file attributes and perform string
- and arithmetic comparisons. The t\bte\bes\bst\bt and [\b[ commands determine their
- behavior based on the number of arguments; see the descriptions of
+ Conditional expressions are used by the [\b[[\b[ compound command and the
+ t\bte\bes\bst\bt and [\b[ builtin commands to test file attributes and perform string
+ and arithmetic comparisons. The t\bte\bes\bst\bt and [\b[ commands determine their
+ behavior based on the number of arguments; see the descriptions of
those commands for any other command-specific actions.
Expressions are formed from the unary or binary primaries listed below.
- Unary expressions are often used to examine the status of a file or
- shell variable. Binary operators are used for string, numeric, and
+ Unary expressions are often used to examine the status of a file or
+ shell variable. Binary operators are used for string, numeric, and
file attribute comparisons.
- B\bBa\bas\bsh\bh handles several filenames specially when they are used in expres-
+ B\bBa\bas\bsh\bh handles several filenames specially when they are used in expres-
sions. If the operating system on which b\bba\bas\bsh\bh is running provides these
- special files, bash will use them; otherwise it will emulate them in-
- ternally with this behavior: If any _\bf_\bi_\bl_\be argument to one of the pri-
- maries is of the form _\b/_\bd_\be_\bv_\b/_\bf_\bd_\b/_\bn, then b\bba\bas\bsh\bh checks file descriptor _\bn.
- If the _\bf_\bi_\bl_\be argument to one of the primaries is one of _\bd_\be_\bv_\b/_\bs_\bt_\bd_\bi_\bn,
- _\bd_\be_\bv_\b/_\bs_\bt_\bd_\bo_\bu_\bt, or _\bd_\be_\bv_\b/_\bs_\bt_\bd_\be_\br_\br, b\bba\bas\bsh\bh checks file descriptor 0, 1, or 2, re-
- spectively.
+ special files, bash will use them; otherwise it will emulate them in-
+ ternally with this behavior: If any _\bf_\bi_\bl_\be argument to one of the pri-
+ maries is of the form _\b/_\bd_\be_\bv_\b/_\bf_\bd_\b/_\bn, then b\bba\bas\bsh\bh checks file descriptor _\bn.
+ If the _\bf_\bi_\bl_\be argument to one of the primaries is one of _\b/_\bd_\be_\bv_\b/_\bs_\bt_\bd_\bi_\bn,
+ _\b/_\bd_\be_\bv_\b/_\bs_\bt_\bd_\bo_\bu_\bt, or _\b/_\bd_\be_\bv_\b/_\bs_\bt_\bd_\be_\br_\br, b\bba\bas\bsh\bh checks file descriptor 0, 1, or 2,
+ respectively.
Unless otherwise specified, primaries that operate on files follow sym-
bolic links and operate on the target of the link, rather than the link
itself.
- When used with [\b[[\b[, or when the shell is in posix mode, the <\b< and >\b> op-
- erators sort lexicographically using the current locale. When the
- shell is not in posix mode, the t\bte\bes\bst\bt command sorts using ASCII order-
+ When used with [\b[[\b[, or when the shell is in posix mode, the <\b< and >\b> op-
+ erators sort lexicographically using the current locale. When the
+ shell is not in posix mode, the t\bte\bes\bst\bt command sorts using ASCII order-
ing.
-\b-a\ba _\bf_\bi_\bl_\be
-\b-L\bL _\bf_\bi_\bl_\be
True if _\bf_\bi_\bl_\be exists and is a symbolic link.
-\b-N\bN _\bf_\bi_\bl_\be
- True if _\bf_\bi_\bl_\be exists and has been modified since it was last ac-
+ True if _\bf_\bi_\bl_\be exists and has been modified since it was last ac-
cessed.
-\b-O\bO _\bf_\bi_\bl_\be
True if _\bf_\bi_\bl_\be exists and is owned by the effective user id.
-\b-S\bS _\bf_\bi_\bl_\be
True if _\bf_\bi_\bl_\be exists and is a socket.
-\b-o\bo _\bo_\bp_\bt_\bn_\ba_\bm_\be
- True if the shell option _\bo_\bp_\bt_\bn_\ba_\bm_\be is enabled. See the list of
- options under the description of the -\b-o\bo option to the s\bse\bet\bt
+ True if the shell option _\bo_\bp_\bt_\bn_\ba_\bm_\be is enabled. See the list of
+ options under the description of the -\b-o\bo option to the s\bse\bet\bt
builtin below.
-\b-v\bv _\bv_\ba_\br_\bn_\ba_\bm_\be
- True if the shell variable _\bv_\ba_\br_\bn_\ba_\bm_\be is set (has been assigned a
- value). If _\bv_\ba_\br_\bn_\ba_\bm_\be is an indexed array variable name sub-
- scripted by _\b@ or _\b*, this returns true if the array has any set
+ True if the shell variable _\bv_\ba_\br_\bn_\ba_\bm_\be is set (has been assigned a
+ value). If _\bv_\ba_\br_\bn_\ba_\bm_\be is an indexed array variable name sub-
+ scripted by _\b@ or _\b*, this returns true if the array has any set
elements. If _\bv_\ba_\br_\bn_\ba_\bm_\be is an associative array variable name sub-
- scripted by _\b@ or _\b*, this returns true if an element with that
+ scripted by _\b@ or _\b*, this returns true if an element with that
key is set.
-\b-R\bR _\bv_\ba_\br_\bn_\ba_\bm_\be
- True if the shell variable _\bv_\ba_\br_\bn_\ba_\bm_\be is set and is a name refer-
+ True if the shell variable _\bv_\ba_\br_\bn_\ba_\bm_\be is set and is a name refer-
ence.
-\b-z\bz _\bs_\bt_\br_\bi_\bn_\bg
True if the length of _\bs_\bt_\br_\bi_\bn_\bg is zero.
_\bs_\bt_\br_\bi_\bn_\bg_\b1 =\b==\b= _\bs_\bt_\br_\bi_\bn_\bg_\b2
_\bs_\bt_\br_\bi_\bn_\bg_\b1 =\b= _\bs_\bt_\br_\bi_\bn_\bg_\b2
- True if the strings are equal. =\b= should be used with the t\bte\bes\bst\bt
- command for POSIX conformance. When used with the [\b[[\b[ command,
+ True if the strings are equal. =\b= should be used with the t\bte\bes\bst\bt
+ command for POSIX conformance. When used with the [\b[[\b[ command,
this performs pattern matching as described above (C\bCo\bom\bmp\bpo\bou\bun\bnd\bd C\bCo\bom\bm-\b-
m\bma\ban\bnd\bds\bs).
_\bs_\bt_\br_\bi_\bn_\bg_\b1 !\b!=\b= _\bs_\bt_\br_\bi_\bn_\bg_\b2
True if _\bs_\bt_\br_\bi_\bn_\bg_\b1 sorts after _\bs_\bt_\br_\bi_\bn_\bg_\b2 lexicographically.
_\bf_\bi_\bl_\be_\b1 -\b-e\bef\bf _\bf_\bi_\bl_\be_\b2
- True if _\bf_\bi_\bl_\be_\b1 and _\bf_\bi_\bl_\be_\b2 refer to the same device and inode num-
+ True if _\bf_\bi_\bl_\be_\b1 and _\bf_\bi_\bl_\be_\b2 refer to the same device and inode num-
bers.
_\bf_\bi_\bl_\be_\b1 -n\bnt\bt _\bf_\bi_\bl_\be_\b2
- True if _\bf_\bi_\bl_\be_\b1 is newer (according to modification date) than
+ True if _\bf_\bi_\bl_\be_\b1 is newer (according to modification date) than
_\bf_\bi_\bl_\be_\b2, or if _\bf_\bi_\bl_\be_\b1 exists and _\bf_\bi_\bl_\be_\b2 does not.
_\bf_\bi_\bl_\be_\b1 -o\bot\bt _\bf_\bi_\bl_\be_\b2
- True if _\bf_\bi_\bl_\be_\b1 is older than _\bf_\bi_\bl_\be_\b2, or if _\bf_\bi_\bl_\be_\b2 exists and _\bf_\bi_\bl_\be_\b1
+ True if _\bf_\bi_\bl_\be_\b1 is older than _\bf_\bi_\bl_\be_\b2, or if _\bf_\bi_\bl_\be_\b2 exists and _\bf_\bi_\bl_\be_\b1
does not.
_\ba_\br_\bg_\b1 O\bOP\bP _\ba_\br_\bg_\b2
- O\bOP\bP is one of -\b-e\beq\bq, -\b-n\bne\be, -\b-l\blt\bt, -\b-l\ble\be, -\b-g\bgt\bt, or -\b-g\bge\be. These arithmetic
- binary operators return true if _\ba_\br_\bg_\b1 is equal to, not equal to,
- less than, less than or equal to, greater than, or greater than
- or equal to _\ba_\br_\bg_\b2, respectively. _\ba_\br_\bg_\b1 and _\ba_\br_\bg_\b2 may be positive
- or negative integers. When used with the [\b[[\b[ command, _\ba_\br_\bg_\b1 and
- _\ba_\br_\bg_\b2 are evaluated as arithmetic expressions (see A\bAR\bRI\bIT\bTH\bHM\bME\bET\bTI\bIC\bC
+ O\bOP\bP is one of -\b-e\beq\bq, -\b-n\bne\be, -\b-l\blt\bt, -\b-l\ble\be, -\b-g\bgt\bt, or -\b-g\bge\be. These arithmetic
+ binary operators return true if _\ba_\br_\bg_\b1 is equal to, not equal to,
+ less than, less than or equal to, greater than, or greater than
+ or equal to _\ba_\br_\bg_\b2, respectively. _\ba_\br_\bg_\b1 and _\ba_\br_\bg_\b2 may be positive
+ or negative integers. When used with the [\b[[\b[ command, _\ba_\br_\bg_\b1 and
+ _\ba_\br_\bg_\b2 are evaluated as arithmetic expressions (see A\bAR\bRI\bIT\bTH\bHM\bME\bET\bTI\bIC\bC
E\bEV\bVA\bAL\bLU\bUA\bAT\bTI\bIO\bON\bN above).
S\bSI\bIM\bMP\bPL\bLE\bE C\bCO\bOM\bMM\bMA\bAN\bND\bD E\bEX\bXP\bPA\bAN\bNS\bSI\bIO\bON\bN
When the shell executes a simple command, it performs the following ex-
- pansions, assignments, and redirections, from left to right, in the
+ pansions, assignments, and redirections, from left to right, in the
following order.
- 1. The words that the parser has marked as variable assignments
- (those preceding the command name) and redirections are saved
+ 1. The words that the parser has marked as variable assignments
+ (those preceding the command name) and redirections are saved
for later processing.
- 2. The words that are not variable assignments or redirections are
- expanded. If any words remain after expansion, the first word
- is taken to be the name of the command and the remaining words
+ 2. The words that are not variable assignments or redirections are
+ expanded. If any words remain after expansion, the first word
+ is taken to be the name of the command and the remaining words
are the arguments.
3. Redirections are performed as described above under R\bRE\bED\bDI\bIR\bRE\bEC\bCT\bTI\bIO\bON\bN.
4. The text after the =\b= in each variable assignment undergoes tilde
expansion, parameter expansion, command substitution, arithmetic
- expansion, and quote removal before being assigned to the vari-
+ expansion, and quote removal before being assigned to the vari-
able.
If no command name results, the variable assignments affect the current
- shell environment. In the case of such a command (one that consists
- only of assignment statements and redirections), assignment statements
- are performed before redirections. Otherwise, the variables are added
- to the environment of the executed command and do not affect the cur-
+ shell environment. In the case of such a command (one that consists
+ only of assignment statements and redirections), assignment statements
+ are performed before redirections. Otherwise, the variables are added
+ to the environment of the executed command and do not affect the cur-
rent shell environment. If any of the assignments attempts to assign a
- value to a readonly variable, an error occurs, and the command exits
+ value to a readonly variable, an error occurs, and the command exits
with a non-zero status.
- If no command name results, redirections are performed, but do not af-
- fect the current shell environment. A redirection error causes the
+ If no command name results, redirections are performed, but do not af-
+ fect the current shell environment. A redirection error causes the
command to exit with a non-zero status.
- If there is a command name left after expansion, execution proceeds as
- described below. Otherwise, the command exits. If one of the expan-
- sions contained a command substitution, the exit status of the command
- is the exit status of the last command substitution performed. If
+ If there is a command name left after expansion, execution proceeds as
+ described below. Otherwise, the command exits. If one of the expan-
+ sions contained a command substitution, the exit status of the command
+ is the exit status of the last command substitution performed. If
there were no command substitutions, the command exits with a zero sta-
tus.
C\bCO\bOM\bMM\bMA\bAN\bND\bD E\bEX\bXE\bEC\bCU\bUT\bTI\bIO\bON\bN
- After a command has been split into words, if it results in a simple
- command and an optional list of arguments, the shell performs the fol-
+ After a command has been split into words, if it results in a simple
+ command and an optional list of arguments, the shell performs the fol-
lowing actions.
- If the command name contains no slashes, the shell attempts to locate
- it. If there exists a shell function by that name, that function is
- invoked as described above in F\bFU\bUN\bNC\bCT\bTI\bIO\bON\bNS\bS. If the name does not match a
- function, the shell searches for it in the list of shell builtins. If
+ If the command name contains no slashes, the shell attempts to locate
+ it. If there exists a shell function by that name, that function is
+ invoked as described above in F\bFU\bUN\bNC\bCT\bTI\bIO\bON\bNS\bS. If the name does not match a
+ function, the shell searches for it in the list of shell builtins. If
a match is found, that builtin is invoked.
- If the name is neither a shell function nor a builtin, and contains no
- slashes, b\bba\bas\bsh\bh searches each element of the P\bPA\bAT\bTH\bH for a directory con-
+ If the name is neither a shell function nor a builtin, and contains no
+ slashes, b\bba\bas\bsh\bh searches each element of the P\bPA\bAT\bTH\bH for a directory con-
taining an executable file by that name. B\bBa\bas\bsh\bh uses a hash table to re-
- member the full pathnames of executable files (see h\bha\bas\bsh\bh under S\bSH\bHE\bEL\bLL\bL
- B\bBU\bUI\bIL\bLT\bTI\bIN\bN C\bCO\bOM\bMM\bMA\bAN\bND\bDS\bS below). Bash performs a full search of the directo-
- ries in P\bPA\bAT\bTH\bH only if the command is not found in the hash table. If
- the search is unsuccessful, the shell searches for a defined shell
- function named c\bco\bom\bmm\bma\ban\bnd\bd_\b_n\bno\bot\bt_\b_f\bfo\bou\bun\bnd\bd_\b_h\bha\ban\bnd\bdl\ble\be. If that function exists, it
- is invoked in a separate execution environment with the original com-
- mand and the original command's arguments as its arguments, and the
- function's exit status becomes the exit status of that subshell. If
+ member the full pathnames of executable files (see h\bha\bas\bsh\bh under S\bSH\bHE\bEL\bLL\bL
+ B\bBU\bUI\bIL\bLT\bTI\bIN\bN C\bCO\bOM\bMM\bMA\bAN\bND\bDS\bS below). Bash performs a full search of the directo-
+ ries in P\bPA\bAT\bTH\bH only if the command is not found in the hash table. If
+ the search is unsuccessful, the shell searches for a defined shell
+ function named c\bco\bom\bmm\bma\ban\bnd\bd_\b_n\bno\bot\bt_\b_f\bfo\bou\bun\bnd\bd_\b_h\bha\ban\bnd\bdl\ble\be. If that function exists, it
+ is invoked in a separate execution environment with the original com-
+ mand and the original command's arguments as its arguments, and the
+ function's exit status becomes the exit status of that subshell. If
that function is not defined, the shell prints an error message and re-
turns an exit status of 127.
- If the search is successful, or if the command name contains one or
+ If the search is successful, or if the command name contains one or
more slashes, the shell executes the named program in a separate execu-
tion environment. Argument 0 is set to the name given, and the remain-
ing arguments to the command are set to the arguments given, if any.
- If this execution fails because the file is not in executable format,
- and the file is not a directory, it is assumed to be a _\bs_\bh_\be_\bl_\bl _\bs_\bc_\br_\bi_\bp_\bt, a
+ If this execution fails because the file is not in executable format,
+ and the file is not a directory, it is assumed to be a _\bs_\bh_\be_\bl_\bl _\bs_\bc_\br_\bi_\bp_\bt, a
file containing shell commands, and the shell creates a new instance of
- itself to execute it. Bash tries to determine whether the file is a
- text file or a binary, and will not execute files it determines to be
+ itself to execute it. Bash tries to determine whether the file is a
+ text file or a binary, and will not execute files it determines to be
binaries. This subshell reinitializes itself, so that the effect is as
- if a new shell had been invoked to handle the script, with the excep-
- tion that the locations of commands remembered by the parent (see h\bha\bas\bsh\bh
+ if a new shell had been invoked to handle the script, with the excep-
+ tion that the locations of commands remembered by the parent (see h\bha\bas\bsh\bh
below under S\bSH\bHE\bEL\bLL\bL B\bBU\bUI\bIL\bLT\bTI\bIN\bN C\bCO\bOM\bMM\bMA\bAN\bND\bDS\bS are retained by the child.
- If the program is a file beginning with #\b#!\b!, the remainder of the first
- line specifies an interpreter for the program. The shell executes the
+ If the program is a file beginning with #\b#!\b!, the remainder of the first
+ line specifies an interpreter for the program. The shell executes the
specified interpreter on operating systems that do not handle this exe-
cutable format themselves. The arguments to the interpreter consist of
- a single optional argument following the interpreter name on the first
- line of the program, followed by the name of the program, followed by
+ a single optional argument following the interpreter name on the first
+ line of the program, followed by the name of the program, followed by
the command arguments, if any.
C\bCO\bOM\bMM\bMA\bAN\bND\bD E\bEX\bXE\bEC\bCU\bUT\bTI\bIO\bON\bN E\bEN\bNV\bVI\bIR\bRO\bON\bNM\bME\bEN\bNT\bT
- The shell has an _\be_\bx_\be_\bc_\bu_\bt_\bi_\bo_\bn _\be_\bn_\bv_\bi_\br_\bo_\bn_\bm_\be_\bn_\bt, which consists of the follow-
+ The shell has an _\be_\bx_\be_\bc_\bu_\bt_\bi_\bo_\bn _\be_\bn_\bv_\bi_\br_\bo_\bn_\bm_\be_\bn_\bt, which consists of the follow-
ing:
- +\bo Open files inherited by the shell at invocation, as modified by
+ +\bo Open files inherited by the shell at invocation, as modified by
redirections supplied to the e\bex\bxe\bec\bc builtin.
- +\bo The current working directory as set by c\bcd\bd, p\bpu\bus\bsh\bhd\bd, or p\bpo\bop\bpd\bd, or
+ +\bo The current working directory as set by c\bcd\bd, p\bpu\bus\bsh\bhd\bd, or p\bpo\bop\bpd\bd, or
inherited by the shell at invocation.
- +\bo The file creation mode mask as set by u\bum\bma\bas\bsk\bk or inherited from
+ +\bo The file creation mode mask as set by u\bum\bma\bas\bsk\bk or inherited from
the shell's parent.
+\bo Current traps set by t\btr\bra\bap\bp.
+\bo Shell parameters that are set by variable assignment or with s\bse\bet\bt
or inherited from the shell's parent in the environment.
- +\bo Shell functions defined during execution or inherited from the
+ +\bo Shell functions defined during execution or inherited from the
shell's parent in the environment.
- +\bo Options enabled at invocation (either by default or with com-
+ +\bo Options enabled at invocation (either by default or with com-
mand-line arguments) or by s\bse\bet\bt.
+\bo Options enabled by s\bsh\bho\bop\bpt\bt.
+\bo Shell aliases defined with a\bal\bli\bia\bas\bs.
- +\bo Various process IDs, including those of background jobs, the
+ +\bo Various process IDs, including those of background jobs, the
value of $\b$$\b$, and the value of P\bPP\bPI\bID\bD.
- When a simple command other than a builtin or shell function is to be
- executed, it is invoked in a separate execution environment that con-
- sists of the following. Unless otherwise noted, the values are inher-
+ When a simple command other than a builtin or shell function is to be
+ executed, it is invoked in a separate execution environment that con-
+ sists of the following. Unless otherwise noted, the values are inher-
ited from the shell.
- +\bo The shell's open files, plus any modifications and additions
+ +\bo The shell's open files, plus any modifications and additions
specified by redirections to the command.
+\bo The current working directory.
+\bo The file creation mode mask.
- +\bo Shell variables and functions marked for export, along with
+ +\bo Shell variables and functions marked for export, along with
variables exported for the command, passed in the environment.
+\bo Traps caught by the shell are reset to the values inherited from
the shell's parent, and traps ignored by the shell are ignored.
- A command invoked in this separate environment cannot affect the
+ A command invoked in this separate environment cannot affect the
shell's execution environment.
A _\bs_\bu_\bb_\bs_\bh_\be_\bl_\bl is a copy of the shell process.
- Command substitution, commands grouped with parentheses, and asynchro-
+ Command substitution, commands grouped with parentheses, and asynchro-
nous commands are invoked in a subshell environment that is a duplicate
of the shell environment, except that traps caught by the shell are re-
- set to the values that the shell inherited from its parent at invoca-
- tion. Builtin commands that are invoked as part of a pipeline, except
- possibly in the last element depending on the value of the l\bla\bas\bst\btp\bpi\bip\bpe\be
- shell option, are also executed in a subshell environment. Changes
- made to the subshell environment cannot affect the shell's execution
+ set to the values that the shell inherited from its parent at invoca-
+ tion. Builtin commands that are invoked as part of a pipeline, except
+ possibly in the last element depending on the value of the l\bla\bas\bst\btp\bpi\bip\bpe\be
+ shell option, are also executed in a subshell environment. Changes
+ made to the subshell environment cannot affect the shell's execution
environment.
- When the shell is in posix mode, subshells spawned to execute command
- substitutions inherit the value of the -\b-e\be option from their parent
- shell. When not in posix mode, b\bba\bas\bsh\bh clears the -\b-e\be option in such sub-
- shells. See the description of the i\bin\bnh\bhe\ber\bri\bit\bt_\b_e\ber\brr\bre\bex\bxi\bit\bt shell option below
+ When the shell is in posix mode, subshells spawned to execute command
+ substitutions inherit the value of the -\b-e\be option from their parent
+ shell. When not in posix mode, b\bba\bas\bsh\bh clears the -\b-e\be option in such sub-
+ shells. See the description of the i\bin\bnh\bhe\ber\bri\bit\bt_\b_e\ber\brr\bre\bex\bxi\bit\bt shell option below
for how to control this behavior when not in posix mode.
- If a command is followed by a &\b& and job control is not active, the de-
+ If a command is followed by a &\b& and job control is not active, the de-
fault standard input for the command is the empty file _\b/_\bd_\be_\bv_\b/_\bn_\bu_\bl_\bl. Oth-
- erwise, the invoked command inherits the file descriptors of the call-
+ erwise, the invoked command inherits the file descriptors of the call-
ing shell as modified by redirections.
E\bEN\bNV\bVI\bIR\bRO\bON\bNM\bME\bEN\bNT\bT
- When a program is invoked it is given an array of strings called the
+ When a program is invoked it is given an array of strings called the
_\be_\bn_\bv_\bi_\br_\bo_\bn_\bm_\be_\bn_\bt. This is a list of _\bn_\ba_\bm_\be-_\bv_\ba_\bl_\bu_\be pairs, of the form
_\bn_\ba_\bm_\be=_\bv_\ba_\bl_\bu_\be.
- The shell provides several ways to manipulate the environment. On in-
- vocation, the shell scans its own environment and creates a parameter
- for each name found, automatically marking it for _\be_\bx_\bp_\bo_\br_\bt to child
+ The shell provides several ways to manipulate the environment. On in-
+ vocation, the shell scans its own environment and creates a parameter
+ for each name found, automatically marking it for _\be_\bx_\bp_\bo_\br_\bt to child
processes. Executed commands inherit the environment. The e\bex\bxp\bpo\bor\brt\bt, d\bde\be-\b-
- c\bcl\bla\bar\bre\be -\b-x\bx, and u\bun\bns\bse\bet\bt commands modify the environment by adding and
- deleting parameters and functions. If the value of a parameter in the
- environment is modified, the new value automatically becomes part of
- the environment, replacing the old. The environment inherited by any
- executed command consists of the shell's initial environment, whose
- values may be modified in the shell, less any pairs removed by the u\bun\bn-\b-
- s\bse\bet\bt or e\bex\bxp\bpo\bor\brt\bt -\b-n\bn commands, plus any additions via the e\bex\bxp\bpo\bor\brt\bt and d\bde\be-\b-
+ c\bcl\bla\bar\bre\be -\b-x\bx, and u\bun\bns\bse\bet\bt commands modify the environment by adding and
+ deleting parameters and functions. If the value of a parameter in the
+ environment is modified, the new value automatically becomes part of
+ the environment, replacing the old. The environment inherited by any
+ executed command consists of the shell's initial environment, whose
+ values may be modified in the shell, less any pairs removed by the u\bun\bn-\b-
+ s\bse\bet\bt or e\bex\bxp\bpo\bor\brt\bt -\b-n\bn commands, plus any additions via the e\bex\bxp\bpo\bor\brt\bt and d\bde\be-\b-
c\bcl\bla\bar\bre\be -\b-x\bx commands.
- If any parameter assignments, as described above in P\bPA\bAR\bRA\bAM\bME\bET\bTE\bER\bRS\bS, appear
+ If any parameter assignments, as described above in P\bPA\bAR\bRA\bAM\bME\bET\bTE\bER\bRS\bS, appear
before a _\bs_\bi_\bm_\bp_\bl_\be _\bc_\bo_\bm_\bm_\ba_\bn_\bd, the variable assignments are part of that com-
mand's environment for as long as it executes. These assignment state-
- ments affect only the environment seen by that command. If these as-
- signments precede a call to a shell function, the variables are local
+ ments affect only the environment seen by that command. If these as-
+ signments precede a call to a shell function, the variables are local
to the function and exported to that function's children.
- If the -\b-k\bk option is set (see the s\bse\bet\bt builtin command below), then _\ba_\bl_\bl
- parameter assignments are placed in the environment for a command, not
+ If the -\b-k\bk option is set (see the s\bse\bet\bt builtin command below), then _\ba_\bl_\bl
+ parameter assignments are placed in the environment for a command, not
just those that precede the command name.
- When b\bba\bas\bsh\bh invokes an external command, the variable _\b_ is set to the
+ When b\bba\bas\bsh\bh invokes an external command, the variable _\b_ is set to the
full pathname of the command and passed to that command in its environ-
ment.
E\bEX\bXI\bIT\bT S\bST\bTA\bAT\bTU\bUS\bS
- The exit status of an executed command is the value returned by the
+ The exit status of an executed command is the value returned by the
_\bw_\ba_\bi_\bt_\bp_\bi_\bd system call or equivalent function. Exit statuses fall between
- 0 and 255, though, as explained below, the shell may use values above
+ 0 and 255, though, as explained below, the shell may use values above
125 specially. Exit statuses from shell builtins and compound commands
are also limited to this range. Under certain circumstances, the shell
will use special values to indicate specific failure modes.
For the shell's purposes, a command which exits with a zero exit status
- has succeeded. So while an exit status of zero indicates success, a
+ has succeeded. So while an exit status of zero indicates success, a
non-zero exit status indicates failure.
- When a command terminates on a fatal signal _\bN, b\bba\bas\bsh\bh uses the value of
+ When a command terminates on a fatal signal _\bN, b\bba\bas\bsh\bh uses the value of
128+_\bN as the exit status.
- If a command is not found, the child process created to execute it re-
- turns a status of 127. If a command is found but is not executable,
+ If a command is not found, the child process created to execute it re-
+ turns a status of 127. If a command is found but is not executable,
the return status is 126.
If a command fails because of an error during expansion or redirection,
the exit status is greater than zero.
- Shell builtin commands return a status of 0 (_\bt_\br_\bu_\be) if successful, and
- non-zero (_\bf_\ba_\bl_\bs_\be) if an error occurs while they execute. All builtins
- return an exit status of 2 to indicate incorrect usage, generally in-
+ Shell builtin commands return a status of 0 (_\bt_\br_\bu_\be) if successful, and
+ non-zero (_\bf_\ba_\bl_\bs_\be) if an error occurs while they execute. All builtins
+ return an exit status of 2 to indicate incorrect usage, generally in-
valid options or missing arguments.
The exit status of the last command is available in the special parame-
ter $?.
- B\bBa\bas\bsh\bh itself returns the exit status of the last command executed, un-
- less a syntax error occurs, in which case it exits with a non-zero
+ B\bBa\bas\bsh\bh itself returns the exit status of the last command executed, un-
+ less a syntax error occurs, in which case it exits with a non-zero
value. See also the e\bex\bxi\bit\bt builtin command below.
S\bSI\bIG\bGN\bNA\bAL\bLS\bS
- When b\bba\bas\bsh\bh is interactive, in the absence of any traps, it ignores
- S\bSI\bIG\bGT\bTE\bER\bRM\bM (so that k\bki\bil\bll\bl 0\b0 does not kill an interactive shell), and
+ When b\bba\bas\bsh\bh is interactive, in the absence of any traps, it ignores
+ S\bSI\bIG\bGT\bTE\bER\bRM\bM (so that k\bki\bil\bll\bl 0\b0 does not kill an interactive shell), and
catches and handles S\bSI\bIG\bGI\bIN\bNT\bT (so that the w\bwa\bai\bit\bt builtin is interruptible).
- When b\bba\bas\bsh\bh receives S\bSI\bIG\bGI\bIN\bNT\bT, it breaks out of any executing loops. In
+ When b\bba\bas\bsh\bh receives S\bSI\bIG\bGI\bIN\bNT\bT, it breaks out of any executing loops. In
all cases, b\bba\bas\bsh\bh ignores S\bSI\bIG\bGQ\bQU\bUI\bIT\bT. If job control is in effect, b\bba\bas\bsh\bh ig-
nores S\bSI\bIG\bGT\bTT\bTI\bIN\bN, S\bSI\bIG\bGT\bTT\bTO\bOU\bU, and S\bSI\bIG\bGT\bTS\bST\bTP\bP.
Non-builtin commands b\bba\bas\bsh\bh executes have signal handlers set to the val-
ues inherited by the shell from its parent, unless t\btr\bra\bap\bp sets them to be
- ignored, in which case the child process will ignore them as well.
- When job control is not in effect, asynchronous commands ignore S\bSI\bIG\bGI\bIN\bNT\bT
+ ignored, in which case the child process will ignore them as well.
+ When job control is not in effect, asynchronous commands ignore S\bSI\bIG\bGI\bIN\bNT\bT
and S\bSI\bIG\bGQ\bQU\bUI\bIT\bT in addition to these inherited handlers. Commands run as a
- result of command substitution ignore the keyboard-generated job con-
+ result of command substitution ignore the keyboard-generated job con-
trol signals S\bSI\bIG\bGT\bTT\bTI\bIN\bN, S\bSI\bIG\bGT\bTT\bTO\bOU\bU, and S\bSI\bIG\bGT\bTS\bST\bTP\bP.
- The shell exits by default upon receipt of a S\bSI\bIG\bGH\bHU\bUP\bP. Before exiting,
- an interactive shell resends the S\bSI\bIG\bGH\bHU\bUP\bP to all jobs, running or
- stopped. The shell sends S\bSI\bIG\bGC\bCO\bON\bNT\bT to stopped jobs to ensure that they
- receive the S\bSI\bIG\bGH\bHU\bUP\bP (see J\bJO\bOB\bB C\bCO\bON\bNT\bTR\bRO\bOL\bL below for more information about
- running and stopped jobs). To prevent the shell from sending the sig-
- nal to a particular job, remove it from the jobs table with the d\bdi\bis\bso\bow\bwn\bn
- builtin (see S\bSH\bHE\bEL\bLL\bL B\bBU\bUI\bIL\bLT\bTI\bIN\bN C\bCO\bOM\bMM\bMA\bAN\bND\bDS\bS below) or mark it not to receive
+ The shell exits by default upon receipt of a S\bSI\bIG\bGH\bHU\bUP\bP. Before exiting,
+ an interactive shell resends the S\bSI\bIG\bGH\bHU\bUP\bP to all jobs, running or
+ stopped. The shell sends S\bSI\bIG\bGC\bCO\bON\bNT\bT to stopped jobs to ensure that they
+ receive the S\bSI\bIG\bGH\bHU\bUP\bP (see J\bJO\bOB\bB C\bCO\bON\bNT\bTR\bRO\bOL\bL below for more information about
+ running and stopped jobs). To prevent the shell from sending the sig-
+ nal to a particular job, remove it from the jobs table with the d\bdi\bis\bso\bow\bwn\bn
+ builtin (see S\bSH\bHE\bEL\bLL\bL B\bBU\bUI\bIL\bLT\bTI\bIN\bN C\bCO\bOM\bMM\bMA\bAN\bND\bDS\bS below) or mark it not to receive
S\bSI\bIG\bGH\bHU\bUP\bP using d\bdi\bis\bso\bow\bwn\bn -\b-h\bh.
- If the h\bhu\bup\bpo\bon\bne\bex\bxi\bit\bt shell option has been set using s\bsh\bho\bop\bpt\bt, b\bba\bas\bsh\bh sends a
+ If the h\bhu\bup\bpo\bon\bne\bex\bxi\bit\bt shell option has been set using s\bsh\bho\bop\bpt\bt, b\bba\bas\bsh\bh sends a
S\bSI\bIG\bGH\bHU\bUP\bP to all jobs when an interactive login shell exits.
- If b\bba\bas\bsh\bh is waiting for a command to complete and receives a signal for
- which a trap has been set, it will not execute the trap until the com-
+ If b\bba\bas\bsh\bh is waiting for a command to complete and receives a signal for
+ which a trap has been set, it will not execute the trap until the com-
mand completes. If b\bba\bas\bsh\bh is waiting for an asynchronous command via the
- w\bwa\bai\bit\bt builtin, and it receives a signal for which a trap has been set,
- the w\bwa\bai\bit\bt builtin will return immediately with an exit status greater
+ w\bwa\bai\bit\bt builtin, and it receives a signal for which a trap has been set,
+ the w\bwa\bai\bit\bt builtin will return immediately with an exit status greater
than 128, immediately after which the shell executes the trap.
- When job control is not enabled, and b\bba\bas\bsh\bh is waiting for a foreground
+ When job control is not enabled, and b\bba\bas\bsh\bh is waiting for a foreground
command to complete, the shell receives keyboard-generated signals such
- as S\bSI\bIG\bGI\bIN\bNT\bT (usually generated by ^\b^C\bC) that users commonly intend to send
+ as S\bSI\bIG\bGI\bIN\bNT\bT (usually generated by ^\b^C\bC) that users commonly intend to send
to that command. This happens because the shell and the command are in
- the same process group as the terminal, and ^\b^C\bC sends S\bSI\bIG\bGI\bIN\bNT\bT to all
- processes in that process group. Since b\bba\bas\bsh\bh does not enable job con-
- trol by default when the shell is not interactive, this scenario is
+ the same process group as the terminal, and ^\b^C\bC sends S\bSI\bIG\bGI\bIN\bNT\bT to all
+ processes in that process group. Since b\bba\bas\bsh\bh does not enable job con-
+ trol by default when the shell is not interactive, this scenario is
most common in non-interactive shells.
- When job control is enabled, and b\bba\bas\bsh\bh is waiting for a foreground com-
- mand to complete, the shell does not receive keyboard-generated sig-
- nals, because it is not in the same process group as the terminal.
+ When job control is enabled, and b\bba\bas\bsh\bh is waiting for a foreground com-
+ mand to complete, the shell does not receive keyboard-generated sig-
+ nals, because it is not in the same process group as the terminal.
This scenario is most common in interactive shells, where b\bba\bas\bsh\bh attempts
- to enable job control by default. See J\bJO\bOB\bB C\bCO\bON\bNT\bTR\bRO\bOL\bL below for more in-
+ to enable job control by default. See J\bJO\bOB\bB C\bCO\bON\bNT\bTR\bRO\bOL\bL below for more in-
formation about process groups.
When job control is not enabled, and b\bba\bas\bsh\bh receives S\bSI\bIG\bGI\bIN\bNT\bT while waiting
1. If the command terminates due to the S\bSI\bIG\bGI\bIN\bNT\bT, b\bba\bas\bsh\bh concludes that
the user meant to send the S\bSI\bIG\bGI\bIN\bNT\bT to the shell as well, and acts
on the S\bSI\bIG\bGI\bIN\bNT\bT (e.g., by running a S\bSI\bIG\bGI\bIN\bNT\bT trap, exiting a non-in-
- teractive shell, or returning to the top level to read a new
+ teractive shell, or returning to the top level to read a new
command).
- 2. If the command does not terminate due to S\bSI\bIG\bGI\bIN\bNT\bT, the program
- handled the S\bSI\bIG\bGI\bIN\bNT\bT itself and did not treat it as a fatal sig-
- nal. In that case, b\bba\bas\bsh\bh does not treat S\bSI\bIG\bGI\bIN\bNT\bT as a fatal sig-
- nal, either, instead assuming that the S\bSI\bIG\bGI\bIN\bNT\bT was used as part
- of the program's normal operation (e.g., emacs uses it to abort
+ 2. If the command does not terminate due to S\bSI\bIG\bGI\bIN\bNT\bT, the program
+ handled the S\bSI\bIG\bGI\bIN\bNT\bT itself and did not treat it as a fatal sig-
+ nal. In that case, b\bba\bas\bsh\bh does not treat S\bSI\bIG\bGI\bIN\bNT\bT as a fatal sig-
+ nal, either, instead assuming that the S\bSI\bIG\bGI\bIN\bNT\bT was used as part
+ of the program's normal operation (e.g., emacs uses it to abort
editing commands) or deliberately discarded. However, b\bba\bas\bsh\bh will
- run any trap set on S\bSI\bIG\bGI\bIN\bNT\bT, as it does with any other trapped
- signal it receives while it is waiting for the foreground com-
+ run any trap set on S\bSI\bIG\bGI\bIN\bNT\bT, as it does with any other trapped
+ signal it receives while it is waiting for the foreground com-
mand to complete, for compatibility.
- When job control is enabled, b\bba\bas\bsh\bh does not receive keyboard-generated
- signals such as S\bSI\bIG\bGI\bIN\bNT\bT while it is waiting for a foreground command.
- An interactive shell does not pay attention to the S\bSI\bIG\bGI\bIN\bNT\bT, even if the
- foreground command terminates as a result, other than noting its exit
- status. If the shell is not interactive, and the foreground command
- terminates due to the S\bSI\bIG\bGI\bIN\bNT\bT, b\bba\bas\bsh\bh pretends it received the S\bSI\bIG\bGI\bIN\bNT\bT it-
+ When job control is enabled, b\bba\bas\bsh\bh does not receive keyboard-generated
+ signals such as S\bSI\bIG\bGI\bIN\bNT\bT while it is waiting for a foreground command.
+ An interactive shell does not pay attention to the S\bSI\bIG\bGI\bIN\bNT\bT, even if the
+ foreground command terminates as a result, other than noting its exit
+ status. If the shell is not interactive, and the foreground command
+ terminates due to the S\bSI\bIG\bGI\bIN\bNT\bT, b\bba\bas\bsh\bh pretends it received the S\bSI\bIG\bGI\bIN\bNT\bT it-
self (scenario 1 above), for compatibility.
J\bJO\bOB\bB C\bCO\bON\bNT\bTR\bRO\bOL\bL
_\bJ_\bo_\bb _\bc_\bo_\bn_\bt_\br_\bo_\bl refers to the ability to selectively stop (_\bs_\bu_\bs_\bp_\be_\bn_\bd) the ex-
- ecution of processes and continue (_\br_\be_\bs_\bu_\bm_\be) their execution at a later
- point. A user typically employs this facility via an interactive in-
+ ecution of processes and continue (_\br_\be_\bs_\bu_\bm_\be) their execution at a later
+ point. A user typically employs this facility via an interactive in-
terface supplied jointly by the operating system kernel's terminal dri-
ver and b\bba\bas\bsh\bh.
- The shell associates a _\bj_\bo_\bb with each pipeline. It keeps a table of
- currently executing jobs, which the j\bjo\bob\bbs\bs command will display. Each
- job has a _\bj_\bo_\bb _\bn_\bu_\bm_\bb_\be_\br, which j\bjo\bob\bbs\bs displays between brackets. Job num-
- bers start at 1. When b\bba\bas\bsh\bh starts a job asynchronously (in the _\bb_\ba_\bc_\bk_\b-
+ The shell associates a _\bj_\bo_\bb with each pipeline. It keeps a table of
+ currently executing jobs, which the j\bjo\bob\bbs\bs command will display. Each
+ job has a _\bj_\bo_\bb _\bn_\bu_\bm_\bb_\be_\br, which j\bjo\bob\bbs\bs displays between brackets. Job num-
+ bers start at 1. When b\bba\bas\bsh\bh starts a job asynchronously (in the _\bb_\ba_\bc_\bk_\b-
_\bg_\br_\bo_\bu_\bn_\bd), it prints a line that looks like:
[1] 25647
indicating that this job is job number 1 and that the process ID of the
last process in the pipeline associated with this job is 25647. All of
- the processes in a single pipeline are members of the same job. B\bBa\bas\bsh\bh
+ the processes in a single pipeline are members of the same job. B\bBa\bas\bsh\bh
uses the _\bj_\bo_\bb abstraction as the basis for job control.
- To facilitate the implementation of the user interface to job control,
+ To facilitate the implementation of the user interface to job control,
each process has a _\bp_\br_\bo_\bc_\be_\bs_\bs _\bg_\br_\bo_\bu_\bp _\bI_\bD, and the operating system maintains
the notion of a _\bc_\bu_\br_\br_\be_\bn_\bt _\bt_\be_\br_\bm_\bi_\bn_\ba_\bl _\bp_\br_\bo_\bc_\be_\bs_\bs _\bg_\br_\bo_\bu_\bp _\bI_\bD. Processes that have
- the same process group ID are said to be part of the same _\bp_\br_\bo_\bc_\be_\bs_\bs
- _\bg_\br_\bo_\bu_\bp. Members of the _\bf_\bo_\br_\be_\bg_\br_\bo_\bu_\bn_\bd process group (processes whose
+ the same process group ID are said to be part of the same _\bp_\br_\bo_\bc_\be_\bs_\bs
+ _\bg_\br_\bo_\bu_\bp. Members of the _\bf_\bo_\br_\be_\bg_\br_\bo_\bu_\bn_\bd process group (processes whose
process group ID is equal to the current terminal process group ID) re-
- ceive keyboard-generated signals such as S\bSI\bIG\bGI\bIN\bNT\bT. Processes in the
- foreground process group are said to be _\bf_\bo_\br_\be_\bg_\br_\bo_\bu_\bn_\bd processes. _\bB_\ba_\bc_\bk_\b-
+ ceive keyboard-generated signals such as S\bSI\bIG\bGI\bIN\bNT\bT. Processes in the
+ foreground process group are said to be _\bf_\bo_\br_\be_\bg_\br_\bo_\bu_\bn_\bd processes. _\bB_\ba_\bc_\bk_\b-
_\bg_\br_\bo_\bu_\bn_\bd processes are those whose process group ID differs from the ter-
minal's; such processes are immune to keyboard-generated signals. Only
foreground processes are allowed to read from or, if the user so speci-
- fies with "stty tostop", write to the terminal. Background processes
- which attempt to read from (write to when "tostop" is in effect) the
- terminal are sent a S\bSI\bIG\bGT\bTT\bTI\bIN\bN (\b(S\bSI\bIG\bGT\bTT\bTO\bOU\bU)\b) signal by the kernel's terminal
+ fies with "stty tostop", write to the terminal. Background processes
+ which attempt to read from (write to when "tostop" is in effect) the
+ terminal are sent a S\bSI\bIG\bGT\bTT\bTI\bIN\bN (\b(S\bSI\bIG\bGT\bTT\bTO\bOU\bU)\b) signal by the kernel's terminal
driver, which, unless caught, suspends the process.
- If the operating system on which b\bba\bas\bsh\bh is running supports job control,
+ If the operating system on which b\bba\bas\bsh\bh is running supports job control,
b\bba\bas\bsh\bh contains facilities to use it. Typing the _\bs_\bu_\bs_\bp_\be_\bn_\bd character (typ-
ically ^\b^Z\bZ, Control-Z) while a process is running stops that process and
- returns control to b\bba\bas\bsh\bh. Typing the _\bd_\be_\bl_\ba_\by_\be_\bd _\bs_\bu_\bs_\bp_\be_\bn_\bd character (typi-
- cally ^\b^Y\bY, Control-Y) causes the process stop when it attempts to read
- input from the terminal, and returns control to b\bba\bas\bsh\bh. The user then
- manipulates the state of this job, using the b\bbg\bg command to continue it
- in the background, the f\bfg\bg command to continue it in the foreground, or
- the k\bki\bil\bll\bl command to kill it. The suspend character takes effect imme-
- diately, and has the additional side effect of discarding any pending
+ returns control to b\bba\bas\bsh\bh. Typing the _\bd_\be_\bl_\ba_\by_\be_\bd _\bs_\bu_\bs_\bp_\be_\bn_\bd character (typi-
+ cally ^\b^Y\bY, Control-Y) causes the process stop when it attempts to read
+ input from the terminal, and returns control to b\bba\bas\bsh\bh. The user then
+ manipulates the state of this job, using the b\bbg\bg command to continue it
+ in the background, the f\bfg\bg command to continue it in the foreground, or
+ the k\bki\bil\bll\bl command to kill it. The suspend character takes effect imme-
+ diately, and has the additional side effect of discarding any pending
output and typeahead. To force a background process to stop, or stop a
- process that's not associated with the current terminal session, send
+ process that's not associated with the current terminal session, send
it the S\bSI\bIG\bGS\bST\bTO\bOP\bP signal using k\bki\bil\bll\bl.
There are a number of ways to refer to a job in the shell. The %\b% char-
acter introduces a job specification (jobspec).
- Job number _\bn may be referred to as %\b%n\bn. A job may also be referred to
- using a prefix of the name used to start it, or using a substring that
- appears in its command line. For example, %\b%c\bce\be refers to a job whose
- command name begins with c\bce\be. Using %\b%?\b?c\bce\be, on the other hand, refers to
+ Job number _\bn may be referred to as %\b%n\bn. A job may also be referred to
+ using a prefix of the name used to start it, or using a substring that
+ appears in its command line. For example, %\b%c\bce\be refers to a job whose
+ command name begins with c\bce\be. Using %\b%?\b?c\bce\be, on the other hand, refers to
any job containing the string c\bce\be in its command line. If the prefix or
substring matches more than one job, b\bba\bas\bsh\bh reports an error.
- The symbols %\b%%\b% and %\b%+\b+ refer to the shell's notion of the _\bc_\bu_\br_\br_\be_\bn_\bt _\bj_\bo_\bb.
- A single % (with no accompanying job specification) also refers to the
- current job. %\b%-\b- refers to the _\bp_\br_\be_\bv_\bi_\bo_\bu_\bs _\bj_\bo_\bb. When a job starts in the
+ The symbols %\b%%\b% and %\b%+\b+ refer to the shell's notion of the _\bc_\bu_\br_\br_\be_\bn_\bt _\bj_\bo_\bb.
+ A single % (with no accompanying job specification) also refers to the
+ current job. %\b%-\b- refers to the _\bp_\br_\be_\bv_\bi_\bo_\bu_\bs _\bj_\bo_\bb. When a job starts in the
background, a job stops while in the foreground, or a job is resumed in
- the background, it becomes the current job. The job that was the cur-
- rent job becomes the previous job. When the current job terminates,
- the previous job becomes the current job. If there is only a single
- job, %\b%+\b+ and %\b%-\b- can both be used to refer to that job. In output per-
+ the background, it becomes the current job. The job that was the cur-
+ rent job becomes the previous job. When the current job terminates,
+ the previous job becomes the current job. If there is only a single
+ job, %\b%+\b+ and %\b%-\b- can both be used to refer to that job. In output per-
taining to jobs (e.g., the output of the j\bjo\bob\bbs\bs command), the current job
is always marked with a +\b+, and the previous job with a -\b-.
- Simply naming a job can be used to bring it into the foreground: %\b%1\b1 is
- a synonym for "fg %1", bringing job 1 from the background into the
+ Simply naming a job can be used to bring it into the foreground: %\b%1\b1 is
+ a synonym for "fg %1", bringing job 1 from the background into the
foreground. Similarly, "%1 &" resumes job 1 in the background, equiva-
lent to "bg %1".
- The shell learns immediately whenever a job changes state. Normally,
- b\bba\bas\bsh\bh waits until it is about to print a prompt before notifying the
- user about changes in a job's status so as to not interrupt any other
- output, though it will notify of changes in a job's status after a
- foreground command in a list completes, before executing the next com-
- mand in the list. If the -\b-b\bb option to the s\bse\bet\bt builtin command is en-
+ The shell learns immediately whenever a job changes state. Normally,
+ b\bba\bas\bsh\bh waits until it is about to print a prompt before notifying the
+ user about changes in a job's status so as to not interrupt any other
+ output, though it will notify of changes in a job's status after a
+ foreground command in a list completes, before executing the next com-
+ mand in the list. If the -\b-b\bb option to the s\bse\bet\bt builtin command is en-
abled, b\bba\bas\bsh\bh reports status changes immediately. B\bBa\bas\bsh\bh executes any trap
on S\bSI\bIG\bGC\bCH\bHL\bLD\bD for each child that terminates.
When a job terminates and b\bba\bas\bsh\bh notifies the user about it, b\bba\bas\bsh\bh removes
- the job from the table. It will not appear in j\bjo\bob\bbs\bs output, but w\bwa\bai\bit\bt
- will report its exit status, as long as it's supplied the process ID
- associated with the job as an argument. When the table is empty, job
+ the job from the table. It will not appear in j\bjo\bob\bbs\bs output, but w\bwa\bai\bit\bt
+ will report its exit status, as long as it's supplied the process ID
+ associated with the job as an argument. When the table is empty, job
numbers start over at 1.
- If a user attempts to exit b\bba\bas\bsh\bh while jobs are stopped (or, if the
- c\bch\bhe\bec\bck\bkj\bjo\bob\bbs\bs shell option has been enabled using the s\bsh\bho\bop\bpt\bt builtin, run-
+ If a user attempts to exit b\bba\bas\bsh\bh while jobs are stopped (or, if the
+ c\bch\bhe\bec\bck\bkj\bjo\bob\bbs\bs shell option has been enabled using the s\bsh\bho\bop\bpt\bt builtin, run-
ning), the shell prints a warning message, and, if the c\bch\bhe\bec\bck\bkj\bjo\bob\bbs\bs option
- is enabled, lists the jobs and their statuses. The j\bjo\bob\bbs\bs command may
+ is enabled, lists the jobs and their statuses. The j\bjo\bob\bbs\bs command may
then be used to inspect their status. If the user immediately attempts
- to exit again, without an intervening command, b\bba\bas\bsh\bh does not print an-
+ to exit again, without an intervening command, b\bba\bas\bsh\bh does not print an-
other warning, and terminates any stopped jobs.
- When the shell is waiting for a job or process using the w\bwa\bai\bit\bt builtin,
- and job control is enabled, w\bwa\bai\bit\bt will return when the job changes
+ When the shell is waiting for a job or process using the w\bwa\bai\bit\bt builtin,
+ and job control is enabled, w\bwa\bai\bit\bt will return when the job changes
state. The -\b-f\bf option causes w\bwa\bai\bit\bt to wait until the job or process ter-
minates before returning.
P\bPR\bRO\bOM\bMP\bPT\bTI\bIN\bNG\bG
When executing interactively, b\bba\bas\bsh\bh displays the primary prompt P\bPS\bS1\b1 when
- it is ready to read a command, and the secondary prompt P\bPS\bS2\b2 when it
+ it is ready to read a command, and the secondary prompt P\bPS\bS2\b2 when it
needs more input to complete a command.
- B\bBa\bas\bsh\bh examines the value of the array variable P\bPR\bRO\bOM\bMP\bPT\bT_\b_C\bCO\bOM\bMM\bMA\bAN\bND\bD just be-
- fore printing each primary prompt. If any elements in P\bPR\bRO\bOM\bMP\bPT\bT_\b_C\bCO\bOM\bMM\bMA\bAN\bND\bD
- are set and non-null, Bash executes each value, in numeric order, just
- as if it had been typed on the command line. B\bBa\bas\bsh\bh displays P\bPS\bS0\b0 after
+ B\bBa\bas\bsh\bh examines the value of the array variable P\bPR\bRO\bOM\bMP\bPT\bT_\b_C\bCO\bOM\bMM\bMA\bAN\bND\bD just be-
+ fore printing each primary prompt. If any elements in P\bPR\bRO\bOM\bMP\bPT\bT_\b_C\bCO\bOM\bMM\bMA\bAN\bND\bD
+ are set and non-null, Bash executes each value, in numeric order, just
+ as if it had been typed on the command line. B\bBa\bas\bsh\bh displays P\bPS\bS0\b0 after
it reads a command but before executing it.
- B\bBa\bas\bsh\bh displays P\bPS\bS4\b4 as described above before tracing each command when
+ B\bBa\bas\bsh\bh displays P\bPS\bS4\b4 as described above before tracing each command when
the -\b-x\bx option is enabled.
B\bBa\bas\bsh\bh allows the prompt strings P\bPS\bS0\b0, P\bPS\bS1\b1, P\bPS\bS2\b2, and P\bPS\bS4\b4, to be customized
- by inserting a number of backslash-escaped special characters that are
+ by inserting a number of backslash-escaped special characters that are
decoded as follows:
\\b\a\ba An ASCII bell character (07).
- \\b\d\bd The date in "Weekday Month Date" format (e.g., "Tue May
+ \\b\d\bd The date in "Weekday Month Date" format (e.g., "Tue May
26").
\\b\D\bD{\b{_\bf_\bo_\br_\bm_\ba_\bt}\b}
The _\bf_\bo_\br_\bm_\ba_\bt is passed to _\bs_\bt_\br_\bf_\bt_\bi_\bm_\be(3) and the result is in-
serted into the prompt string; an empty _\bf_\bo_\br_\bm_\ba_\bt results in
- a locale-specific time representation. The braces are
+ a locale-specific time representation. The braces are
required.
\\b\e\be An ASCII escape character (033).
\\b\h\bh The hostname up to the first ".".
\\b\H\bH The hostname.
\\b\j\bj The number of jobs currently managed by the shell.
- \\b\l\bl The basename of the shell's terminal device name (e.g.,
+ \\b\l\bl The basename of the shell's terminal device name (e.g.,
"ttys0").
\\b\n\bn A newline.
\\b\r\br A carriage return.
- \\b\s\bs The name of the shell: the basename of $\b$0\b0 (the portion
+ \\b\s\bs The name of the shell: the basename of $\b$0\b0 (the portion
following the final slash).
\\b\t\bt The current time in 24-hour HH:MM:SS format.
\\b\T\bT The current time in 12-hour HH:MM:SS format.
\\b\u\bu The username of the current user.
\\b\v\bv The b\bba\bas\bsh\bh version (e.g., 2.00).
\\b\V\bV The b\bba\bas\bsh\bh release, version + patch level (e.g., 2.00.0)
- \\b\w\bw The value of the P\bPW\bWD\bD shell variable ($\b$P\bPW\bWD\bD), with $\b$H\bHO\bOM\bME\bE
- abbreviated with a tilde (uses the value of the
+ \\b\w\bw The value of the P\bPW\bWD\bD shell variable ($\b$P\bPW\bWD\bD), with $\b$H\bHO\bOM\bME\bE
+ abbreviated with a tilde (uses the value of the
P\bPR\bRO\bOM\bMP\bPT\bT_\b_D\bDI\bIR\bRT\bTR\bRI\bIM\bM variable).
- \\b\W\bW The basename of $\b$P\bPW\bWD\bD, with $\b$H\bHO\bOM\bME\bE abbreviated with a
+ \\b\W\bW The basename of $\b$P\bPW\bWD\bD, with $\b$H\bHO\bOM\bME\bE abbreviated with a
tilde.
\\b\!\b! The history number of this command.
\\b\#\b# The command number of this command.
\\b\$\b$ If the effective UID is 0, a #\b#, otherwise a $\b$.
\\b\_\bn_\bn_\bn The character corresponding to the octal number _\bn_\bn_\bn.
\\b\\\b\ A backslash.
- \\b\[\b[ Begin a sequence of non-printing characters, which could
- be used to embed a terminal control sequence into the
+ \\b\[\b[ Begin a sequence of non-printing characters, which could
+ be used to embed a terminal control sequence into the
prompt.
\\b\]\b] End a sequence of non-printing characters.
- The command number and the history number are usually different: the
- history number of a command is its position in the history list, which
- may include commands restored from the history file (see H\bHI\bIS\bST\bTO\bOR\bRY\bY be-
- low), while the command number is the position in the sequence of com-
- mands executed during the current shell session. After the string is
- decoded, it is expanded via parameter expansion, command substitution,
- arithmetic expansion, and quote removal, subject to the value of the
+ The command number and the history number are usually different: the
+ history number of a command is its position in the history list, which
+ may include commands restored from the history file (see H\bHI\bIS\bST\bTO\bOR\bRY\bY be-
+ low), while the command number is the position in the sequence of com-
+ mands executed during the current shell session. After the string is
+ decoded, it is expanded via parameter expansion, command substitution,
+ arithmetic expansion, and quote removal, subject to the value of the
p\bpr\bro\bom\bmp\bpt\btv\bva\bar\brs\bs shell option (see the description of the s\bsh\bho\bop\bpt\bt command under
- S\bSH\bHE\bEL\bLL\bL B\bBU\bUI\bIL\bLT\bTI\bIN\bN C\bCO\bOM\bMM\bMA\bAN\bND\bDS\bS below). This can have unwanted side effects if
- escaped portions of the string appear within command substitution or
+ S\bSH\bHE\bEL\bLL\bL B\bBU\bUI\bIL\bLT\bTI\bIN\bN C\bCO\bOM\bMM\bMA\bAN\bND\bDS\bS below). This can have unwanted side effects if
+ escaped portions of the string appear within command substitution or
contain characters special to word expansion.
R\bRE\bEA\bAD\bDL\bLI\bIN\bNE\bE
- This is the library that handles reading input when using an interac-
- tive shell, unless the -\b--\b-n\bno\boe\bed\bdi\bit\bti\bin\bng\bg option is supplied at shell invoca-
- tion. Line editing is also used when using the -\b-e\be option to the r\bre\bea\bad\bd
+ This is the library that handles reading input when using an interac-
+ tive shell, unless the -\b--\b-n\bno\boe\bed\bdi\bit\bti\bin\bng\bg option is supplied at shell invoca-
+ tion. Line editing is also used when using the -\b-e\be option to the r\bre\bea\bad\bd
builtin. By default, the line editing commands are similar to those of
emacs; a vi-style line editing interface is also available. Line edit-
- ing can be enabled at any time using the -\b-o\bo e\bem\bma\bac\bcs\bs or -\b-o\bo v\bvi\bi options to
- the s\bse\bet\bt builtin (see S\bSH\bHE\bEL\bLL\bL B\bBU\bUI\bIL\bLT\bTI\bIN\bN C\bCO\bOM\bMM\bMA\bAN\bND\bDS\bS below). To turn off line
- editing after the shell is running, use the +\b+o\bo e\bem\bma\bac\bcs\bs or +\b+o\bo v\bvi\bi options
+ ing can be enabled at any time using the -\b-o\bo e\bem\bma\bac\bcs\bs or -\b-o\bo v\bvi\bi options to
+ the s\bse\bet\bt builtin (see S\bSH\bHE\bEL\bLL\bL B\bBU\bUI\bIL\bLT\bTI\bIN\bN C\bCO\bOM\bMM\bMA\bAN\bND\bDS\bS below). To turn off line
+ editing after the shell is running, use the +\b+o\bo e\bem\bma\bac\bcs\bs or +\b+o\bo v\bvi\bi options
to the s\bse\bet\bt builtin.
R\bRe\bea\bad\bdl\bli\bin\bne\be N\bNo\bot\bta\bat\bti\bio\bon\bn
- This section uses Emacs-style editing concepts and uses its notation
- for keystrokes. Control keys are denoted by C-_\bk_\be_\by, e.g., C-n means
- Control-N. Similarly, _\bm_\be_\bt_\ba keys are denoted by M-_\bk_\be_\by, so M-x means
+ This section uses Emacs-style editing concepts and uses its notation
+ for keystrokes. Control keys are denoted by C-_\bk_\be_\by, e.g., C-n means
+ Control-N. Similarly, _\bm_\be_\bt_\ba keys are denoted by M-_\bk_\be_\by, so M-x means
Meta-X. The Meta key is often labeled "Alt" or "Option".
- On keyboards without a _\bM_\be_\bt_\ba key, M-_\bx means ESC _\bx, i.e., press and re-
- lease the Escape key, then press and release the _\bx key, in sequence.
- This makes ESC the _\bm_\be_\bt_\ba _\bp_\br_\be_\bf_\bi_\bx. The combination M-C-_\bx means ESC-Con-
- trol-_\bx: press and release the Escape key, then press and hold the Con-
+ On keyboards without a _\bM_\be_\bt_\ba key, M-_\bx means ESC _\bx, i.e., press and re-
+ lease the Escape key, then press and release the _\bx key, in sequence.
+ This makes ESC the _\bm_\be_\bt_\ba _\bp_\br_\be_\bf_\bi_\bx. The combination M-C-_\bx means ESC Con-
+ trol-_\bx: press and release the Escape key, then press and hold the Con-
trol key while pressing the _\bx key, then release both.
- On some keyboards, the Meta key modifier produces characters with the
- eighth bit (0200) set. You can use the e\ben\bna\bab\bbl\ble\be-\b-m\bme\bet\bta\ba-\b-k\bke\bey\by variable to
- control whether or not it does this, if the keyboard allows it. On
- many others, the terminal or terminal emulator converts the metafied
- key to a key sequence beginning with ESC as described in the preceding
+ On some keyboards, the Meta key modifier produces characters with the
+ eighth bit (0200) set. You can use the e\ben\bna\bab\bbl\ble\be-\b-m\bme\bet\bta\ba-\b-k\bke\bey\by variable to
+ control whether or not it does this, if the keyboard allows it. On
+ many others, the terminal or terminal emulator converts the metafied
+ key to a key sequence beginning with ESC as described in the preceding
paragraph.
- If your _\bM_\be_\bt_\ba key produces a key sequence with the ESC meta prefix, you
- can make M-_\bk_\be_\by key bindings you specify (see R\bRe\bea\bad\bdl\bli\bin\bne\be K\bKe\bey\by B\bBi\bin\bnd\bdi\bin\bng\bgs\bs be-
+ If your _\bM_\be_\bt_\ba key produces a key sequence with the ESC meta prefix, you
+ can make M-_\bk_\be_\by key bindings you specify (see R\bRe\bea\bad\bdl\bli\bin\bne\be K\bKe\bey\by B\bBi\bin\bnd\bdi\bin\bng\bgs\bs be-
low) do the same thing by setting the f\bfo\bor\brc\bce\be-\b-m\bme\bet\bta\ba-\b-p\bpr\bre\bef\bfi\bix\bx variable.
R\bRe\bea\bad\bdl\bli\bin\bne\be commands may be given numeric _\ba_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs, which normally act as
- a repeat count. Sometimes, however, it is the sign of the argument
- that is significant. Passing a negative argument to a command that
- acts in the forward direction (e.g., k\bki\bil\bll\bl-\b-l\bli\bin\bne\be) makes that command act
- in a backward direction. Commands whose behavior with arguments devi-
+ a repeat count. Sometimes, however, it is the sign of the argument
+ that is significant. Passing a negative argument to a command that
+ acts in the forward direction (e.g., k\bki\bil\bll\bl-\b-l\bli\bin\bne\be) makes that command act
+ in a backward direction. Commands whose behavior with arguments devi-
ates from this are noted below.
- The _\bp_\bo_\bi_\bn_\bt is the current cursor position, and _\bm_\ba_\br_\bk refers to a saved
+ The _\bp_\bo_\bi_\bn_\bt is the current cursor position, and _\bm_\ba_\br_\bk refers to a saved
cursor position. The text between the point and mark is referred to as
the _\br_\be_\bg_\bi_\bo_\bn. R\bRe\bea\bad\bdl\bli\bin\bne\be has the concept of an _\ba_\bc_\bt_\bi_\bv_\be _\br_\be_\bg_\bi_\bo_\bn: when the re-
- gion is active, r\bre\bea\bad\bdl\bli\bin\bne\be redisplay highlights the region using the
+ gion is active, r\bre\bea\bad\bdl\bli\bin\bne\be redisplay highlights the region using the
value of the a\bac\bct\bti\biv\bve\be-\b-r\bre\beg\bgi\bio\bon\bn-\b-s\bst\bta\bar\brt\bt-\b-c\bco\bol\blo\bor\br variable. The e\ben\bna\bab\bbl\ble\be-\b-a\bac\bct\bti\biv\bve\be-\b-r\bre\be-\b-
- g\bgi\bio\bon\bn variable turns this on and off. Several commands set the region
+ g\bgi\bio\bon\bn variable turns this on and off. Several commands set the region
to active; those are noted below.
- When a command is described as _\bk_\bi_\bl_\bl_\bi_\bn_\bg text, the text deleted is saved
+ When a command is described as _\bk_\bi_\bl_\bl_\bi_\bn_\bg text, the text deleted is saved
for possible future retrieval (_\by_\ba_\bn_\bk_\bi_\bn_\bg). The killed text is saved in a
- _\bk_\bi_\bl_\bl _\br_\bi_\bn_\bg. Consecutive kills accumulate the deleted text into one
+ _\bk_\bi_\bl_\bl _\br_\bi_\bn_\bg. Consecutive kills accumulate the deleted text into one
unit, which can be yanked all at once. Commands which do not kill text
separate the chunks of text on the kill ring.
R\bRe\bea\bad\bdl\bli\bin\bne\be I\bIn\bni\bit\bti\bia\bal\bli\biz\bza\bat\bti\bio\bon\bn
- R\bRe\bea\bad\bdl\bli\bin\bne\be is customized by putting commands in an initialization file
- (the _\bi_\bn_\bp_\bu_\bt_\br_\bc file). The name of this file is taken from the value of
- the I\bIN\bNP\bPU\bUT\bTR\bRC\bC shell variable. If that variable is unset, the default is
- _\b~_\b/_\b._\bi_\bn_\bp_\bu_\bt_\br_\bc. If that file does not exist or cannot be read, r\bre\bea\bad\bdl\bli\bin\bne\be
- looks for _\b/_\be_\bt_\bc_\b/_\bi_\bn_\bp_\bu_\bt_\br_\bc. When a program which uses the r\bre\bea\bad\bdl\bli\bin\bne\be library
+ R\bRe\bea\bad\bdl\bli\bin\bne\be is customized by putting commands in an initialization file
+ (the _\bi_\bn_\bp_\bu_\bt_\br_\bc file). The name of this file is taken from the value of
+ the I\bIN\bNP\bPU\bUT\bTR\bRC\bC shell variable. If that variable is unset, the default is
+ _\b~_\b/_\b._\bi_\bn_\bp_\bu_\bt_\br_\bc. If that file does not exist or cannot be read, r\bre\bea\bad\bdl\bli\bin\bne\be
+ looks for _\b/_\be_\bt_\bc_\b/_\bi_\bn_\bp_\bu_\bt_\br_\bc. When a program that uses the r\bre\bea\bad\bdl\bli\bin\bne\be library
starts up, r\bre\bea\bad\bdl\bli\bin\bne\be reads the initialization file and sets the key
bindings and variables found there, before reading any user input.
_\bs_\ba_\bl_\b-_\ba_\br_\bg_\bu_\bm_\be_\bn_\bt.
Key bindings may contain the following symbolic character names: _\bD_\bE_\bL,
- _\bE_\bS_\bC, _\bE_\bS_\bC_\bA_\bP_\bE, _\bL_\bF_\bD, _\bN_\bE_\bW_\bL_\bI_\bN_\bE, _\bR_\bE_\bT, _\bR_\bE_\bT_\bU_\bR_\bN, _\bR_\bU_\bB_\bO_\bU_\bT(a_\bd_\be_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bv_\bebackspace),
- _\bS_\bP_\bA_\bC_\bE, _\bS_\bP_\bC, and _\bT_\bA_\bB.
+ _\bE_\bS_\bC, _\bE_\bS_\bC_\bA_\bP_\bE, _\bL_\bF_\bD, _\bN_\bE_\bW_\bL_\bI_\bN_\bE, _\bR_\bE_\bT, _\bR_\bE_\bT_\bU_\bR_\bN, _\bR_\bU_\bB_\bO_\bU_\bT (a destructive back-
+ space), _\bS_\bP_\bA_\bC_\bE, _\bS_\bP_\bC, and _\bT_\bA_\bB.
In addition to command names, r\bre\bea\bad\bdl\bli\bin\bne\be allows keys to be bound to a
string that is inserted when the key is pressed (a _\bm_\ba_\bc_\br_\bo). The differ-
When entering the text of a macro, single or double quotes must be used
to indicate a macro definition. Unquoted text is assumed to be a func-
- tion name. Tthe backslash escapes described above are expanded in the
- macro body. Backslash will quote any other character in the macro
- text, including " and '.
+ tion name. The backslash escapes described above are expanded in the
+ macro body. Backslash quotes any other character in the macro text,
+ including " and '.
B\bBa\bas\bsh\bh will display or modify the current r\bre\bea\bad\bdl\bli\bin\bne\be key bindings with the
b\bbi\bin\bnd\bd builtin command. The -\b-o\bo e\bem\bma\bac\bcs\bs or -\b-o\bo v\bvi\bi options to the s\bse\bet\bt builtin
- (see S\bSH\bHE\bEL\bLL\bL B\bBU\bUI\bIL\bLT\bTI\bIN\bN C\bCO\bOM\bMM\bMA\bAN\bND\bDS\bS below) will change the editing mode during
- interactive use.
+ (see S\bSH\bHE\bEL\bLL\bL B\bBU\bUI\bIL\bLT\bTI\bIN\bN C\bCO\bOM\bMM\bMA\bAN\bND\bDS\bS below) change the editing mode during in-
+ teractive use.
R\bRe\bea\bad\bdl\bli\bin\bne\be V\bVa\bar\bri\bia\bab\bbl\ble\bes\bs
R\bRe\bea\bad\bdl\bli\bin\bne\be has variables that can be used to further customize its behav-
equivalent to O\bOf\bff\bf.
The b\bbi\bin\bnd\bd -\b-V\bV command lists the current r\bre\bea\bad\bdl\bli\bin\bne\be variable names and val-
- ues (see S\bSH\bHE\bEL\bLL\bL B\bBU\bUI\bIL\bLT\bTI\bIN\bN C\bCO\bOM\bMM\bMA\bAN\bND\bDS\bS below).
+ ues (see S\bSH\bHE\bEL\bLL\bL B\bBU\bUI\bIL\bLT\bTI\bIN\bN C\bCO\bOM\bMM\bMA\bAN\bND\bDS\bS below).
The variables and their default values are:
The number of screen columns used to display possible matches
when performing completion. The value is ignored if it is less
than 0 or greater than the terminal screen width. A value of 0
- will cause matches to be displayed one per line. The default
- value is -1.
+ causes matches to be displayed one per line. The default value
+ is -1.
c\bco\bom\bmp\bpl\ble\bet\bti\bio\bon\bn-\b-i\big\bgn\bno\bor\bre\be-\b-c\bca\bas\bse\be (\b(O\bOf\bff\bf)\b)
If set to O\bOn\bn, r\bre\bea\bad\bdl\bli\bin\bne\be performs filename matching and completion
in a case-insensitive fashion.
t\bti\bio\bon\bns\bs command. It may be set to any integer value greater than
or equal to zero. If the number of possible completions is
greater than or equal to the value of this variable, r\bre\bea\bad\bdl\bli\bin\bne\be
- will ask whether or not the user wishes to view them; otherwise
+ asks whether or not the user wishes to view them; otherwise
r\bre\bea\bad\bdl\bli\bin\bne\be simply lists them on the terminal. A zero value means
r\bre\bea\bad\bdl\bli\bin\bne\be should never ask; negative values are treated as zero.
c\bco\bon\bnv\bve\ber\brt\bt-\b-m\bme\bet\bta\ba (\b(O\bOn\bn)\b)
- If set to O\bOn\bn, r\bre\bea\bad\bdl\bli\bin\bne\be will convert characters it reads that
- have the eighth bit set to an ASCII key sequence by clearing the
+ If set to O\bOn\bn, r\bre\bea\bad\bdl\bli\bin\bne\be converts characters it reads that have
+ the eighth bit set to an ASCII key sequence by clearing the
eighth bit and prefixing it with an escape character (converting
- the character to have the meta prefix). The default is _\bO_\bn, but
- r\bre\bea\bad\bdl\bli\bin\bne\be will set it to _\bO_\bf_\bf if the locale contains characters
- whose encodings may include bytes with the eighth bit set. This
- variable is dependent on the L\bLC\bC_\b_C\bCT\bTY\bYP\bPE\bE locale category, and may
- change if the locale changes. This variable also affects key
+ the character to have the meta prefix). The default is _\bO_\bn, but
+ r\bre\bea\bad\bdl\bli\bin\bne\be sets it to _\bO_\bf_\bf if the locale contains characters whose
+ encodings may include bytes with the eighth bit set. This vari-
+ able is dependent on the L\bLC\bC_\b_C\bCT\bTY\bYP\bPE\bE locale category, and may
+ change if the locale changes. This variable also affects key
bindings; see the description of f\bfo\bor\brc\bce\be-\b-m\bme\bet\bta\ba-\b-p\bpr\bre\bef\bfi\bix\bx below.
d\bdi\bis\bsa\bab\bbl\ble\be-\b-c\bco\bom\bmp\bpl\ble\bet\bti\bio\bon\bn (\b(O\bOf\bff\bf)\b)
- If set to O\bOn\bn, r\bre\bea\bad\bdl\bli\bin\bne\be will inhibit word completion. Completion
- characters will be inserted into the line as if they had been
- mapped to s\bse\bel\blf\bf-\b-i\bin\bns\bse\ber\brt\bt.
+ If set to O\bOn\bn, r\bre\bea\bad\bdl\bli\bin\bne\be inhibits word completion. Completion
+ characters are inserted into the line as if they had been mapped
+ to s\bse\bel\blf\bf-\b-i\bin\bns\bse\ber\brt\bt.
e\bec\bch\bho\bo-\b-c\bco\bon\bnt\btr\bro\bol\bl-\b-c\bch\bha\bar\bra\bac\bct\bte\ber\brs\bs (\b(O\bOn\bn)\b)
- When set to O\bOn\bn, on operating systems that indicate they support
+ When set to O\bOn\bn, on operating systems that indicate they support
it, r\bre\bea\bad\bdl\bli\bin\bne\be echoes a character corresponding to a signal gener-
ated from the keyboard.
e\bed\bdi\bit\bti\bin\bng\bg-\b-m\bmo\bod\bde\be (\b(e\bem\bma\bac\bcs\bs)\b)
- Controls whether r\bre\bea\bad\bdl\bli\bin\bne\be uses a set of key bindings similar to
+ Controls whether r\bre\bea\bad\bdl\bli\bin\bne\be uses a set of key bindings similar to
_\bE_\bm_\ba_\bc_\bs or _\bv_\bi. e\bed\bdi\bit\bti\bin\bng\bg-\b-m\bmo\bod\bde\be can be set to either e\bem\bma\bac\bcs\bs or v\bvi\bi.
e\bem\bma\bac\bcs\bs-\b-m\bmo\bod\bde\be-\b-s\bst\btr\bri\bin\bng\bg (\b(@\b@)\b)
- If the _\bs_\bh_\bo_\bw_\b-_\bm_\bo_\bd_\be_\b-_\bi_\bn_\b-_\bp_\br_\bo_\bm_\bp_\bt variable is enabled, this string is
+ If the _\bs_\bh_\bo_\bw_\b-_\bm_\bo_\bd_\be_\b-_\bi_\bn_\b-_\bp_\br_\bo_\bm_\bp_\bt variable is enabled, this string is
displayed immediately before the last line of the primary prompt
when emacs editing mode is active. The value is expanded like a
- key binding, so the standard set of meta- and control- prefixes
- and backslash escape sequences is available. The \1 and \2 es-
- capes begin and end sequences of non-printing characters, which
- can be used to embed a terminal control sequence into the mode
+ key binding, so the standard set of meta- and control- prefixes
+ and backslash escape sequences is available. The \1 and \2 es-
+ capes begin and end sequences of non-printing characters, which
+ can be used to embed a terminal control sequence into the mode
string.
e\ben\bna\bab\bbl\ble\be-\b-a\bac\bct\bti\biv\bve\be-\b-r\bre\beg\bgi\bio\bon\bn (\b(O\bOn\bn)\b)
- When this variable is set to _\bO_\bn, r\bre\bea\bad\bdl\bli\bin\bne\be allows certain com-
+ When this variable is set to _\bO_\bn, r\bre\bea\bad\bdl\bli\bin\bne\be allows certain com-
mands to designate the region as _\ba_\bc_\bt_\bi_\bv_\be. When the region is ac-
tive, r\bre\bea\bad\bdl\bli\bin\bne\be highlights the text in the region using the value
- of the a\bac\bct\bti\biv\bve\be-\b-r\bre\beg\bgi\bio\bon\bn-\b-s\bst\bta\bar\brt\bt-\b-c\bco\bol\blo\bor\br, which defaults to the string
- that enables the terminal's standout mode. The active region
- shows the text inserted by bracketed-paste and any matching text
- found by incremental and non-incremental history searches.
+ of the a\bac\bct\bti\biv\bve\be-\b-r\bre\beg\bgi\bio\bon\bn-\b-s\bst\bta\bar\brt\bt-\b-c\bco\bol\blo\bor\br variable, which defaults to the
+ string that enables the terminal's standout mode. The active
+ region shows the text inserted by bracketed-paste and any match-
+ ing text found by incremental and non-incremental history
+ searches.
e\ben\bna\bab\bbl\ble\be-\b-b\bbr\bra\bac\bck\bke\bet\bte\bed\bd-\b-p\bpa\bas\bst\bte\be (\b(O\bOn\bn)\b)
- When set to O\bOn\bn, r\bre\bea\bad\bdl\bli\bin\bne\be configures the terminal to insert each
- paste into the editing buffer as a single string of characters,
- instead of treating each character as if it had been read from
- the keyboard. This is called _\bb_\br_\ba_\bc_\bk_\be_\bt_\be_\bd_\b-_\bp_\ba_\bs_\bt_\be _\bm_\bo_\bd_\be; it prevents
- r\bre\bea\bad\bdl\bli\bin\bne\be from executing any editing commands bound to key se-
+ When set to O\bOn\bn, r\bre\bea\bad\bdl\bli\bin\bne\be configures the terminal to insert each
+ paste into the editing buffer as a single string of characters,
+ instead of treating each character as if it had been read from
+ the keyboard. This is called _\bb_\br_\ba_\bc_\bk_\be_\bt_\be_\bd_\b-_\bp_\ba_\bs_\bt_\be _\bm_\bo_\bd_\be; it prevents
+ r\bre\bea\bad\bdl\bli\bin\bne\be from executing any editing commands bound to key se-
quences appearing in the pasted text.
e\ben\bna\bab\bbl\ble\be-\b-k\bke\bey\byp\bpa\bad\bd (\b(O\bOf\bff\bf)\b)
- When set to O\bOn\bn, r\bre\bea\bad\bdl\bli\bin\bne\be will try to enable the application key-
- pad when it is called. Some systems need this to enable the ar-
- row keys.
+ When set to O\bOn\bn, r\bre\bea\bad\bdl\bli\bin\bne\be tries to enable the application keypad
+ when it is called. Some systems need this to enable the arrow
+ keys.
e\ben\bna\bab\bbl\ble\be-\b-m\bme\bet\bta\ba-\b-k\bke\bey\by (\b(O\bOn\bn)\b)
- When set to O\bOn\bn, r\bre\bea\bad\bdl\bli\bin\bne\be will try to enable any meta modifier
- key the terminal claims to support. On many terminals, the Meta
- key is used to send eight-bit characters; this variable checks
- for the terminal capability that indicates the terminal can en-
- able and disable a mode that sets the eighth bit of a character
+ When set to O\bOn\bn, r\bre\bea\bad\bdl\bli\bin\bne\be tries to enable any meta modifier key
+ the terminal claims to support. On many terminals, the Meta key
+ is used to send eight-bit characters; this variable checks for
+ the terminal capability that indicates the terminal can enable
+ and disable a mode that sets the eighth bit of a character
(0200) if the Meta key is held down when the character is typed
(a meta character).
e\bex\bxp\bpa\ban\bnd\bd-\b-t\bti\bil\bld\bde\be (\b(O\bOf\bff\bf)\b)
wrapping to a new line. This setting is automatically enabled
for terminals of height 1.
i\bin\bnp\bpu\but\bt-\b-m\bme\bet\bta\ba (\b(O\bOf\bff\bf)\b)
- If set to O\bOn\bn, r\bre\bea\bad\bdl\bli\bin\bne\be will enable eight-bit input (that is, it
- will not clear the eighth bit in the characters it reads), re-
- gardless of what the terminal claims it can support. The de-
- fault is _\bO_\bf_\bf, but r\bre\bea\bad\bdl\bli\bin\bne\be will set it to _\bO_\bn if the locale con-
- tains characters whose encodings may include bytes with the
- eighth bit set. This variable is dependent on the L\bLC\bC_\b_C\bCT\bTY\bYP\bPE\bE lo-
- cale category, and its value may change if the locale changes.
- The name m\bme\bet\bta\ba-\b-f\bfl\bla\bag\bg is a synonym for i\bin\bnp\bpu\but\bt-\b-m\bme\bet\bta\ba.
- i\bis\bse\bea\bar\brc\bch\bh-\b-t\bte\ber\brm\bmi\bin\bna\bat\bto\bor\brs\bs (\b("C\bC-\b-[\b[C\bC-\b-J\bJ")\b)
- The string of characters that should terminate an incremental
- search without subsequently executing the character as a com-
- mand. If this variable has not been given a value, the charac-
- ters _\bE_\bS_\bC and _\bC_\b-_\bJ will terminate an incremental search.
+ If set to O\bOn\bn, r\bre\bea\bad\bdl\bli\bin\bne\be enables eight-bit input (that is, it does
+ not clear the eighth bit in the characters it reads), regardless
+ of what the terminal claims it can support. The default is _\bO_\bf_\bf,
+ but r\bre\bea\bad\bdl\bli\bin\bne\be sets it to _\bO_\bn if the locale contains characters
+ whose encodings may include bytes with the eighth bit set. This
+ variable is dependent on the L\bLC\bC_\b_C\bCT\bTY\bYP\bPE\bE locale category, and its
+ value may change if the locale changes. The name m\bme\bet\bta\ba-\b-f\bfl\bla\bag\bg is a
+ synonym for i\bin\bnp\bpu\but\bt-\b-m\bme\bet\bta\ba.
+ i\bis\bse\bea\bar\brc\bch\bh-\b-t\bte\ber\brm\bmi\bin\bna\bat\bto\bor\brs\bs (\b("C\bC-\b-[\b[C\bC-\b-j\bj")\b)
+ The string of characters that should terminate an incremental
+ search without subsequently executing the character as a com-
+ mand. If this variable has not been given a value, the charac-
+ ters _\bE_\bS_\bC and C\bC-\b-j\bj terminate an incremental search.
k\bke\bey\bym\bma\bap\bp (\b(e\bem\bma\bac\bcs\bs)\b)
- Set the current r\bre\bea\bad\bdl\bli\bin\bne\be keymap. The set of valid keymap names
- is _\be_\bm_\ba_\bc_\bs_\b, _\be_\bm_\ba_\bc_\bs_\b-_\bs_\bt_\ba_\bn_\bd_\ba_\br_\bd_\b, _\be_\bm_\ba_\bc_\bs_\b-_\bm_\be_\bt_\ba_\b, _\be_\bm_\ba_\bc_\bs_\b-_\bc_\bt_\bl_\bx_\b, _\bv_\bi_\b, _\bv_\bi_\b-_\bc_\bo_\bm_\b-
- _\bm_\ba_\bn_\bd, and _\bv_\bi_\b-_\bi_\bn_\bs_\be_\br_\bt. _\bv_\bi is equivalent to _\bv_\bi_\b-_\bc_\bo_\bm_\bm_\ba_\bn_\bd; _\be_\bm_\ba_\bc_\bs is
- equivalent to _\be_\bm_\ba_\bc_\bs_\b-_\bs_\bt_\ba_\bn_\bd_\ba_\br_\bd. The default value is _\be_\bm_\ba_\bc_\bs; the
+ Set the current r\bre\bea\bad\bdl\bli\bin\bne\be keymap. The set of valid keymap names
+ is _\be_\bm_\ba_\bc_\bs_\b, _\be_\bm_\ba_\bc_\bs_\b-_\bs_\bt_\ba_\bn_\bd_\ba_\br_\bd_\b, _\be_\bm_\ba_\bc_\bs_\b-_\bm_\be_\bt_\ba_\b, _\be_\bm_\ba_\bc_\bs_\b-_\bc_\bt_\bl_\bx_\b, _\bv_\bi_\b, _\bv_\bi_\b-_\bc_\bo_\bm_\b-
+ _\bm_\ba_\bn_\bd, and _\bv_\bi_\b-_\bi_\bn_\bs_\be_\br_\bt. _\bv_\bi is equivalent to _\bv_\bi_\b-_\bc_\bo_\bm_\bm_\ba_\bn_\bd; _\be_\bm_\ba_\bc_\bs is
+ equivalent to _\be_\bm_\ba_\bc_\bs_\b-_\bs_\bt_\ba_\bn_\bd_\ba_\br_\bd. The default value is _\be_\bm_\ba_\bc_\bs; the
value of e\bed\bdi\bit\bti\bin\bng\bg-\b-m\bmo\bod\bde\be also affects the default keymap.
k\bke\bey\bys\bse\beq\bq-\b-t\bti\bim\bme\beo\bou\but\bt (\b(5\b50\b00\b0)\b)
- Specifies the duration r\bre\bea\bad\bdl\bli\bin\bne\be will wait for a character when
- reading an ambiguous key sequence (one that can form a complete
+ Specifies the duration r\bre\bea\bad\bdl\bli\bin\bne\be will wait for a character when
+ reading an ambiguous key sequence (one that can form a complete
key sequence using the input read so far, or can take additional
- input to complete a longer key sequence). If r\bre\bea\bad\bdl\bli\bin\bne\be does not
- receive any input within the timeout, it will use the shorter
- but complete key sequence. The value is specified in millisec-
- onds, so a value of 1000 means that r\bre\bea\bad\bdl\bli\bin\bne\be will wait one sec-
- ond for additional input. If this variable is set to a value
- less than or equal to zero, or to a non-numeric value, r\bre\bea\bad\bdl\bli\bin\bne\be
- will wait until another key is pressed to decide which key se-
- quence to complete.
+ input to complete a longer key sequence). If r\bre\bea\bad\bdl\bli\bin\bne\be does not
+ receive any input within the timeout, it uses the shorter but
+ complete key sequence. The value is specified in milliseconds,
+ so a value of 1000 means that r\bre\bea\bad\bdl\bli\bin\bne\be will wait one second for
+ additional input. If this variable is set to a value less than
+ or equal to zero, or to a non-numeric value, r\bre\bea\bad\bdl\bli\bin\bne\be waits un-
+ til another key is pressed to decide which key sequence to com-
+ plete.
m\bma\bar\brk\bk-\b-d\bdi\bir\bre\bec\bct\bto\bor\bri\bie\bes\bs (\b(O\bOn\bn)\b)
If set to O\bOn\bn, completed directory names have a slash appended.
m\bma\bar\brk\bk-\b-m\bmo\bod\bdi\bif\bfi\bie\bed\bd-\b-l\bli\bin\bne\bes\bs (\b(O\bOf\bff\bf)\b)
- If set to O\bOn\bn, r\bre\bea\bad\bdl\bli\bin\bne\be displays history lines that have been
+ If set to O\bOn\bn, r\bre\bea\bad\bdl\bli\bin\bne\be displays history lines that have been
modified with a preceding asterisk (*\b*).
m\bma\bar\brk\bk-\b-s\bsy\bym\bml\bli\bin\bnk\bke\bed\bd-\b-d\bdi\bir\bre\bec\bct\bto\bor\bri\bie\bes\bs (\b(O\bOf\bff\bf)\b)
If set to O\bOn\bn, completed names which are symbolic links to direc-
- tories have a slash appended, subject to the value of m\bma\bar\brk\bk-\b-d\bdi\bi-\b-
+ tories have a slash appended, subject to the value of m\bma\bar\brk\bk-\b-d\bdi\bi-\b-
r\bre\bec\bct\bto\bor\bri\bie\bes\bs.
m\bma\bat\btc\bch\bh-\b-h\bhi\bid\bdd\bde\ben\bn-\b-f\bfi\bil\ble\bes\bs (\b(O\bOn\bn)\b)
- This variable, when set to O\bOn\bn, forces r\bre\bea\bad\bdl\bli\bin\bne\be to match files
- whose names begin with a "." (hidden files) when performing
- filename completion. If set to O\bOf\bff\bf, the user must include the
+ This variable, when set to O\bOn\bn, forces r\bre\bea\bad\bdl\bli\bin\bne\be to match files
+ whose names begin with a "." (hidden files) when performing
+ filename completion. If set to O\bOf\bff\bf, the user must include the
leading "." in the filename to be completed.
m\bme\ben\bnu\bu-\b-c\bco\bom\bmp\bpl\ble\bet\bte\be-\b-d\bdi\bis\bsp\bpl\bla\bay\by-\b-p\bpr\bre\bef\bfi\bix\bx (\b(O\bOf\bff\bf)\b)
- If set to O\bOn\bn, menu completion displays the common prefix of the
+ If set to O\bOn\bn, menu completion displays the common prefix of the
list of possible completions (which may be empty) before cycling
through the list.
o\bou\but\btp\bpu\but\bt-\b-m\bme\bet\bta\ba (\b(O\bOf\bff\bf)\b)
- If set to O\bOn\bn, r\bre\bea\bad\bdl\bli\bin\bne\be will display characters with the eighth
- bit set directly rather than as a meta-prefixed escape sequence.
- The default is _\bO_\bf_\bf, but r\bre\bea\bad\bdl\bli\bin\bne\be will set it to _\bO_\bn if the locale
- contains characters whose encodings may include bytes with the
- eighth bit set. This variable is dependent on the L\bLC\bC_\b_C\bCT\bTY\bYP\bPE\bE lo-
+ If set to O\bOn\bn, r\bre\bea\bad\bdl\bli\bin\bne\be displays characters with the eighth bit
+ set directly rather than as a meta-prefixed escape sequence.
+ The default is _\bO_\bf_\bf, but r\bre\bea\bad\bdl\bli\bin\bne\be sets it to _\bO_\bn if the locale
+ contains characters whose encodings may include bytes with the
+ eighth bit set. This variable is dependent on the L\bLC\bC_\b_C\bCT\bTY\bYP\bPE\bE lo-
cale category, and its value may change if the locale changes.
p\bpa\bag\bge\be-\b-c\bco\bom\bmp\bpl\ble\bet\bti\bio\bon\bns\bs (\b(O\bOn\bn)\b)
- If set to O\bOn\bn, r\bre\bea\bad\bdl\bli\bin\bne\be uses an internal _\bm_\bo_\br_\be-like pager to dis-
- play a screenful of possible completions at a time.
+ If set to O\bOn\bn, r\bre\bea\bad\bdl\bli\bin\bne\be uses an internal pager resembling _\bm_\bo_\br_\be(1)
+ to display a screenful of possible completions at a time.
p\bpr\bre\bef\bfe\ber\br-\b-v\bvi\bis\bsi\bib\bbl\ble\be-\b-b\bbe\bel\bll\bl
See b\bbe\bel\bll\bl-\b-s\bst\bty\byl\ble\be.
p\bpr\bri\bin\bnt\bt-\b-c\bco\bom\bmp\bpl\ble\bet\bti\bio\bon\bns\bs-\b-h\bho\bor\bri\biz\bzo\bon\bnt\bta\bal\bll\bly\by (\b(O\bOf\bff\bf)\b)
- If set to O\bOn\bn, r\bre\bea\bad\bdl\bli\bin\bne\be will display completions with matches
- sorted horizontally in alphabetical order, rather than down the
- screen.
+ If set to O\bOn\bn, r\bre\bea\bad\bdl\bli\bin\bne\be displays completions with matches sorted
+ horizontally in alphabetical order, rather than down the screen.
r\bre\bev\bve\ber\brt\bt-\b-a\bal\bll\bl-\b-a\bat\bt-\b-n\bne\bew\bwl\bli\bin\bne\be (\b(O\bOf\bff\bf)\b)
- If set to O\bOn\bn, r\bre\bea\bad\bdl\bli\bin\bne\be will undo all changes to history lines
- before returning when executing a\bac\bcc\bce\bep\bpt\bt-\b-l\bli\bin\bne\be. By default, his-
- tory lines may be modified and retain individual undo lists
+ If set to O\bOn\bn, r\bre\bea\bad\bdl\bli\bin\bne\be will undo all changes to history lines
+ before returning when executing a\bac\bcc\bce\bep\bpt\bt-\b-l\bli\bin\bne\be. By default, his-
+ tory lines may be modified and retain individual undo lists
across calls to r\bre\bea\bad\bdl\bli\bin\bne\be.
s\bse\bea\bar\brc\bch\bh-\b-i\big\bgn\bno\bor\bre\be-\b-c\bca\bas\bse\be (\b(O\bOf\bff\bf)\b)
- If set to O\bOn\bn, r\bre\bea\bad\bdl\bli\bin\bne\be performs incremental and non-incremental
+ If set to O\bOn\bn, r\bre\bea\bad\bdl\bli\bin\bne\be performs incremental and non-incremental
history list searches in a case-insensitive fashion.
s\bsh\bho\bow\bw-\b-a\bal\bll\bl-\b-i\bif\bf-\b-a\bam\bmb\bbi\big\bgu\buo\bou\bus\bs (\b(O\bOf\bff\bf)\b)
- This alters the default behavior of the completion functions.
+ This alters the default behavior of the completion functions.
If set to O\bOn\bn, words which have more than one possible completion
- cause the matches to be listed immediately instead of ringing
+ cause the matches to be listed immediately instead of ringing
the bell.
s\bsh\bho\bow\bw-\b-a\bal\bll\bl-\b-i\bif\bf-\b-u\bun\bnm\bmo\bod\bdi\bif\bfi\bie\bed\bd (\b(O\bOf\bff\bf)\b)
- This alters the default behavior of the completion functions in
+ This alters the default behavior of the completion functions in
a fashion similar to s\bsh\bho\bow\bw-\b-a\bal\bll\bl-\b-i\bif\bf-\b-a\bam\bmb\bbi\big\bgu\buo\bou\bus\bs. If set to O\bOn\bn, words
- which have more than one possible completion without any possi-
- ble partial completion (the possible completions don't share a
- common prefix) cause the matches to be listed immediately in-
+ which have more than one possible completion without any possi-
+ ble partial completion (the possible completions don't share a
+ common prefix) cause the matches to be listed immediately in-
stead of ringing the bell.
s\bsh\bho\bow\bw-\b-m\bmo\bod\bde\be-\b-i\bin\bn-\b-p\bpr\bro\bom\bmp\bpt\bt (\b(O\bOf\bff\bf)\b)
- If set to O\bOn\bn, add a string to the beginning of the prompt indi-
- cating the editing mode: emacs, vi command, or vi insertion.
+ If set to O\bOn\bn, add a string to the beginning of the prompt indi-
+ cating the editing mode: emacs, vi command, or vi insertion.
The mode strings are user-settable (e.g., _\be_\bm_\ba_\bc_\bs_\b-_\bm_\bo_\bd_\be_\b-_\bs_\bt_\br_\bi_\bn_\bg).
s\bsk\bki\bip\bp-\b-c\bco\bom\bmp\bpl\ble\bet\bte\bed\bd-\b-t\bte\bex\bxt\bt (\b(O\bOf\bff\bf)\b)
- If set to O\bOn\bn, this alters the default completion behavior when
- inserting a single match into the line. It's only active when
- performing completion in the middle of a word. If enabled,
- r\bre\bea\bad\bdl\bli\bin\bne\be does not insert characters from the completion that
- match characters after point in the word being completed, so
+ If set to O\bOn\bn, this alters the default completion behavior when
+ inserting a single match into the line. It's only active when
+ performing completion in the middle of a word. If enabled,
+ r\bre\bea\bad\bdl\bli\bin\bne\be does not insert characters from the completion that
+ match characters after point in the word being completed, so
portions of the word following the cursor are not duplicated.
v\bvi\bi-\b-c\bcm\bmd\bd-\b-m\bmo\bod\bde\be-\b-s\bst\btr\bri\bin\bng\bg (\b((\b(c\bcm\bmd\bd)\b))\b)
- If the _\bs_\bh_\bo_\bw_\b-_\bm_\bo_\bd_\be_\b-_\bi_\bn_\b-_\bp_\br_\bo_\bm_\bp_\bt variable is enabled, this string is
+ If the _\bs_\bh_\bo_\bw_\b-_\bm_\bo_\bd_\be_\b-_\bi_\bn_\b-_\bp_\br_\bo_\bm_\bp_\bt variable is enabled, this string is
displayed immediately before the last line of the primary prompt
- when vi editing mode is active and in command mode. The value
+ when vi editing mode is active and in command mode. The value
is expanded like a key binding, so the standard set of meta- and
- control- prefixes and backslash escape sequences is available.
- The \1 and \2 escapes begin and end sequences of non-printing
- characters, which can be used to embed a terminal control se-
+ control- prefixes and backslash escape sequences is available.
+ The \1 and \2 escapes begin and end sequences of non-printing
+ characters, which can be used to embed a terminal control se-
quence into the mode string.
v\bvi\bi-\b-i\bin\bns\bs-\b-m\bmo\bod\bde\be-\b-s\bst\btr\bri\bin\bng\bg (\b((\b(i\bin\bns\bs)\b))\b)
- If the _\bs_\bh_\bo_\bw_\b-_\bm_\bo_\bd_\be_\b-_\bi_\bn_\b-_\bp_\br_\bo_\bm_\bp_\bt variable is enabled, this string is
+ If the _\bs_\bh_\bo_\bw_\b-_\bm_\bo_\bd_\be_\b-_\bi_\bn_\b-_\bp_\br_\bo_\bm_\bp_\bt variable is enabled, this string is
displayed immediately before the last line of the primary prompt
when vi editing mode is active and in insertion mode. The value
is expanded like a key binding, so the standard set of meta- and
- control- prefixes and backslash escape sequences is available.
- The \1 and \2 escapes begin and end sequences of non-printing
- characters, which can be used to embed a terminal control se-
+ control- prefixes and backslash escape sequences is available.
+ The \1 and \2 escapes begin and end sequences of non-printing
+ characters, which can be used to embed a terminal control se-
quence into the mode string.
v\bvi\bis\bsi\bib\bbl\ble\be-\b-s\bst\bta\bat\bts\bs (\b(O\bOf\bff\bf)\b)
- If set to O\bOn\bn, a character denoting a file's type as reported by
- _\bs_\bt_\ba_\bt(2) is appended to the filename when listing possible com-
+ If set to O\bOn\bn, a character denoting a file's type as reported by
+ _\bs_\bt_\ba_\bt(2) is appended to the filename when listing possible com-
pletions.
R\bRe\bea\bad\bdl\bli\bin\bne\be C\bCo\bon\bnd\bdi\bit\bti\bio\bon\bna\bal\bl C\bCo\bon\bns\bst\btr\bru\buc\bct\bts\bs
- R\bRe\bea\bad\bdl\bli\bin\bne\be implements a facility similar in spirit to the conditional
- compilation features of the C preprocessor which allows key bindings
- and variable settings to be performed as the result of tests. There
+ R\bRe\bea\bad\bdl\bli\bin\bne\be implements a facility similar in spirit to the conditional
+ compilation features of the C preprocessor which allows key bindings
+ and variable settings to be performed as the result of tests. There
are four parser directives available.
- $\b$i\bif\bf The $\b$i\bif\bf construct allows bindings to be made based on the edit-
- ing mode, the terminal being used, or the application using
- r\bre\bea\bad\bdl\bli\bin\bne\be. The text of the test, after any comparison operator,
+ $\b$i\bif\bf The $\b$i\bif\bf construct allows bindings to be made based on the edit-
+ ing mode, the terminal being used, or the application using
+ r\bre\bea\bad\bdl\bli\bin\bne\be. The text of the test, after any comparison operator,
extends to the end of the line; unless otherwise noted, no char-
acters are required to isolate it.
- m\bmo\bod\bde\be The m\bmo\bod\bde\be=\b= form of the $\b$i\bif\bf directive is used to test
- whether r\bre\bea\bad\bdl\bli\bin\bne\be is in emacs or vi mode. This may be
- used in conjunction with the s\bse\bet\bt k\bke\bey\bym\bma\bap\bp command, for in-
- stance, to set bindings in the _\be_\bm_\ba_\bc_\bs_\b-_\bs_\bt_\ba_\bn_\bd_\ba_\br_\bd and
- _\be_\bm_\ba_\bc_\bs_\b-_\bc_\bt_\bl_\bx keymaps only if r\bre\bea\bad\bdl\bli\bin\bne\be is starting out in
+ m\bmo\bod\bde\be The m\bmo\bod\bde\be=\b= form of the $\b$i\bif\bf directive is used to test
+ whether r\bre\bea\bad\bdl\bli\bin\bne\be is in emacs or vi mode. This may be
+ used in conjunction with the s\bse\bet\bt k\bke\bey\bym\bma\bap\bp command, for in-
+ stance, to set bindings in the _\be_\bm_\ba_\bc_\bs_\b-_\bs_\bt_\ba_\bn_\bd_\ba_\br_\bd and
+ _\be_\bm_\ba_\bc_\bs_\b-_\bc_\bt_\bl_\bx keymaps only if r\bre\bea\bad\bdl\bli\bin\bne\be is starting out in
emacs mode.
- t\bte\ber\brm\bm The t\bte\ber\brm\bm=\b= form may be used to include terminal-specific
+ t\bte\ber\brm\bm The t\bte\ber\brm\bm=\b= form may be used to include terminal-specific
key bindings, perhaps to bind the key sequences output by
the terminal's function keys. The word on the right side
of the =\b= is tested against both the full name of the ter-
- minal and the portion of the terminal name before the
- first -\b-. This allows _\bx_\bt_\be_\br_\bm to match both _\bx_\bt_\be_\br_\bm and
+ minal and the portion of the terminal name before the
+ first -\b-. This allows _\bx_\bt_\be_\br_\bm to match both _\bx_\bt_\be_\br_\bm and
_\bx_\bt_\be_\br_\bm_\b-_\b2_\b5_\b6_\bc_\bo_\bl_\bo_\br, for instance.
v\bve\ber\brs\bsi\bio\bon\bn
- The v\bve\ber\brs\bsi\bio\bon\bn test may be used to perform comparisons
- against specific r\bre\bea\bad\bdl\bli\bin\bne\be versions. The v\bve\ber\brs\bsi\bio\bon\bn expands
- to the current r\bre\bea\bad\bdl\bli\bin\bne\be version. The set of comparison
- operators includes =\b=, (and =\b==\b=), !\b!=\b=, <\b<=\b=, >\b>=\b=, <\b<, and >\b>.
- The version number supplied on the right side of the op-
- erator consists of a major version number, an optional
+ The v\bve\ber\brs\bsi\bio\bon\bn test may be used to perform comparisons
+ against specific r\bre\bea\bad\bdl\bli\bin\bne\be versions. The v\bve\ber\brs\bsi\bio\bon\bn expands
+ to the current r\bre\bea\bad\bdl\bli\bin\bne\be version. The set of comparison
+ operators includes =\b=, (and =\b==\b=), !\b!=\b=, <\b<=\b=, >\b>=\b=, <\b<, and >\b>.
+ The version number supplied on the right side of the op-
+ erator consists of a major version number, an optional
decimal point, and an optional minor version (e.g., 7\b7.\b.1\b1).
- If the minor version is omitted, it defaults to 0\b0. The
- operator may be separated from the string v\bve\ber\brs\bsi\bio\bon\bn and
+ If the minor version is omitted, it defaults to 0\b0. The
+ operator may be separated from the string v\bve\ber\brs\bsi\bio\bon\bn and
from the version number argument by whitespace.
_\ba_\bp_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bo_\bn
The _\ba_\bp_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bo_\bn construct is used to include application-
- specific settings. Each program using the r\bre\bea\bad\bdl\bli\bin\bne\be li-
- brary sets the _\ba_\bp_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bo_\bn _\bn_\ba_\bm_\be, and an initialization
+ specific settings. Each program using the r\bre\bea\bad\bdl\bli\bin\bne\be li-
+ brary sets the _\ba_\bp_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bo_\bn _\bn_\ba_\bm_\be, and an initialization
file can test for a particular value. This could be used
- to bind key sequences to functions useful for a specific
- program. For instance, the following command adds a key
- sequence that quotes the current or previous word in
+ to bind key sequences to functions useful for a specific
+ program. For instance, the following command adds a key
+ sequence that quotes the current or previous word in
b\bba\bas\bsh\bh:
$\b$i\bif\bf Bash
_\bv_\ba_\br_\bi_\ba_\bb_\bl_\be
The _\bv_\ba_\br_\bi_\ba_\bb_\bl_\be construct provides simple equality tests for
- r\bre\bea\bad\bdl\bli\bin\bne\be variables and values. The permitted comparison
- operators are _\b=, _\b=_\b=, and _\b!_\b=. The variable name must be
+ r\bre\bea\bad\bdl\bli\bin\bne\be variables and values. The permitted comparison
+ operators are _\b=, _\b=_\b=, and _\b!_\b=. The variable name must be
separated from the comparison operator by whitespace; the
- operator may be separated from the value on the right
- hand side by whitespace. String and boolean variables
- may be tested. Boolean variables must be tested against
+ operator may be separated from the value on the right
+ hand side by whitespace. String and boolean variables
+ may be tested. Boolean variables must be tested against
the values _\bo_\bn and _\bo_\bf_\bf.
$\b$e\bel\bls\bse\be Commands in this branch of the $\b$i\bif\bf directive are executed if the
command.
$\b$i\bin\bnc\bcl\blu\bud\bde\be
- This directive takes a single filename as an argument and reads
+ This directive takes a single filename as an argument and reads
commands and key bindings from that file. For example, the fol-
lowing directive would read _\b/_\be_\bt_\bc_\b/_\bi_\bn_\bp_\bu_\bt_\br_\bc:
$\b$i\bin\bnc\bcl\blu\bud\bde\be _\b/_\be_\bt_\bc_\b/_\bi_\bn_\bp_\bu_\bt_\br_\bc
S\bSe\bea\bar\brc\bch\bhi\bin\bng\bg
- R\bRe\bea\bad\bdl\bli\bin\bne\be provides commands for searching through the command history
+ R\bRe\bea\bad\bdl\bli\bin\bne\be provides commands for searching through the command history
(see H\bHI\bIS\bST\bTO\bOR\bRY\bY below) for lines containing a specified string. There are
two search modes: _\bi_\bn_\bc_\br_\be_\bm_\be_\bn_\bt_\ba_\bl and _\bn_\bo_\bn_\b-_\bi_\bn_\bc_\br_\be_\bm_\be_\bn_\bt_\ba_\bl.
- Incremental searches begin before the user has finished typing the
- search string. As each character of the search string is typed, r\bre\bea\bad\bd-\b-
+ Incremental searches begin before the user has finished typing the
+ search string. As each character of the search string is typed, r\bre\bea\bad\bd-\b-
l\bli\bin\bne\be displays the next entry from the history matching the string typed
- so far. An incremental search requires only as many characters as
- needed to find the desired history entry. When using emacs editing
- mode, type C\bC-\b-r\br to search backward in the history for a particular
- string. Typing C\bC-\b-s\bs searches forward through the history. The charac-
- ters present in the value of the i\bis\bse\bea\bar\brc\bch\bh-\b-t\bte\ber\brm\bmi\bin\bna\bat\bto\bor\brs\bs variable are used
- to terminate an incremental search. If that variable has not been as-
- signed a value, _\bE_\bS_\bC and _\bC_\b-_\bJ will terminate an incremental search. _\bC_\b-_\bg
- will abort an incremental search and restore the original line. When
- the search is terminated, the history entry containing the search
- string becomes the current line.
-
- To find other matching entries in the history list, type C\bC-\b-r\br or C\bC-\b-s\bs as
- appropriate. This will search backward or forward in the history for
- the next entry matching the search string typed so far. Any other key
- sequence bound to a r\bre\bea\bad\bdl\bli\bin\bne\be command will terminate the search and exe-
- cute that command. For instance, a newline will terminate the search
- and accept the line, thereby executing the command from the history
- list. A movement command will terminate the search, make the last line
- found the current line, and begin editing.
+ so far. An incremental search requires only as many characters as
+ needed to find the desired history entry. When using emacs editing
+ mode, type C\bC-\b-r\br to search backward in the history for a particular
+ string. Typing C\bC-\b-s\bs searches forward through the history. The charac-
+ ters present in the value of the i\bis\bse\bea\bar\brc\bch\bh-\b-t\bte\ber\brm\bmi\bin\bna\bat\bto\bor\brs\bs variable are used
+ to terminate an incremental search. If that variable has not been as-
+ signed a value, _\bE_\bS_\bC and C\bC-\b-j\bj terminate an incremental search. C\bC-\b-g\bg
+ aborts an incremental search and restores the original line. When the
+ search is terminated, the history entry containing the search string
+ becomes the current line.
+
+ To find other matching entries in the history list, type C\bC-\b-r\br or C\bC-\b-s\bs as
+ appropriate. This searches backward or forward in the history for the
+ next entry matching the search string typed so far. Any other key se-
+ quence bound to a r\bre\bea\bad\bdl\bli\bin\bne\be command terminates the search and executes
+ that command. For instance, a newline terminates the search and ac-
+ cepts the line, thereby executing the command from the history list. A
+ movement command will terminate the search, make the last line found
+ the current line, and begin editing.
R\bRe\bea\bad\bdl\bli\bin\bne\be remembers the last incremental search string. If two C\bC-\b-r\brs are
typed without any intervening characters defining a new search string,
tion, and _\bm_\ba_\br_\bk refers to a cursor position saved by the s\bse\bet\bt-\b-m\bma\bar\brk\bk com-
mand. The text between the point and mark is referred to as the _\br_\be_\b-
_\bg_\bi_\bo_\bn. R\bRe\bea\bad\bdl\bli\bin\bne\be has the concept of an _\ba_\bc_\bt_\bi_\bv_\be _\br_\be_\bg_\bi_\bo_\bn: when the region is
- active, r\bre\bea\bad\bdl\bli\bin\bne\be redisplay uses the value of the a\bac\bct\bti\biv\bve\be-\b-r\bre\be-\b-
- g\bgi\bio\bon\bn-\b-s\bst\bta\bar\brt\bt-\b-c\bco\bol\blo\bor\br v\bva\bar\bri\bia\bab\bbl\ble\be t\bto\bo d\bde\ben\bno\bot\bte\be t\bth\bhe\be r\bre\beg\bgi\bio\bon\bn.\b. S\bSe\bev\bve\ber\bra\bal\bl c\bco\bom\bmm\bma\ban\bnd\bds\bs s\bse\bet\bt
- t\bth\bhe\be r\bre\beg\bgi\bio\bon\bn t\bto\bo a\bac\bct\bti\biv\bve\be;\b; t\bth\bho\bos\bse\be a\bar\bre\be n\bno\bot\bte\bed\bd b\bbe\bel\blo\bow\bw.\b.
+ active, r\bre\bea\bad\bdl\bli\bin\bne\be redisplay highlights the region using the value of the
+ a\bac\bct\bti\biv\bve\be-\b-r\bre\beg\bgi\bio\bon\bn-\b-s\bst\bta\bar\brt\bt-\b-c\bco\bol\blo\bor\br variable. The e\ben\bna\bab\bbl\ble\be-\b-a\bac\bct\bti\biv\bve\be-\b-r\bre\beg\bgi\bio\bon\bn r\bre\bea\bad\bdl\bli\bin\bne\be
+ variable turns this on and off. Several commands set the region to ac-
+ tive; those are noted below.
C\bCo\bom\bmm\bma\ban\bnd\bds\bs f\bfo\bor\br M\bMo\bov\bvi\bin\bng\bg
b\bbe\beg\bgi\bin\bnn\bni\bin\bng\bg-\b-o\bof\bf-\b-l\bli\bin\bne\be (\b(C\bC-\b-a\ba)\b)
- Move to the start of the current line. This may also be bound
+ Move to the start of the current line. This may also be bound
to the Home key on some keyboards.
e\ben\bnd\bd-\b-o\bof\bf-\b-l\bli\bin\bne\be (\b(C\bC-\b-e\be)\b)
- Move to the end of the line. This may also be bound to the End
+ Move to the end of the line. This may also be bound to the End
key on some keyboards.
f\bfo\bor\brw\bwa\bar\brd\bd-\b-c\bch\bha\bar\br (\b(C\bC-\b-f\bf)\b)
- Move forward a character.
+ Move forward a character. This may also be bound to the right
+ arrow key on some keyboards.
b\bba\bac\bck\bkw\bwa\bar\brd\bd-\b-c\bch\bha\bar\br (\b(C\bC-\b-b\bb)\b)
- Move back a character.
+ Move back a character. This may also be bound to the left arrow
+ key on some keyboards.
f\bfo\bor\brw\bwa\bar\brd\bd-\b-w\bwo\bor\brd\bd (\b(M\bM-\b-f\bf)\b)
Move forward to the end of the next word. Words are composed of
alphanumeric characters (letters and digits).
state.
p\bpr\bre\bev\bvi\bio\bou\bus\bs-\b-h\bhi\bis\bst\bto\bor\bry\by (\b(C\bC-\b-p\bp)\b)
Fetch the previous command from the history list, moving back in
- the list.
+ the list. This may also be bound to the up arrow key on some
+ keyboards.
n\bne\bex\bxt\bt-\b-h\bhi\bis\bst\bto\bor\bry\by (\b(C\bC-\b-n\bn)\b)
- Fetch the next command from the history list, moving forward in
- the list.
+ Fetch the next command from the history list, moving forward in
+ the list. This may also be bound to the down arrow key on some
+ keyboards.
b\bbe\beg\bgi\bin\bnn\bni\bin\bng\bg-\b-o\bof\bf-\b-h\bhi\bis\bst\bto\bor\bry\by (\b(M\bM-\b-<\b<)\b)
Move to the first line in the history.
e\ben\bnd\bd-\b-o\bof\bf-\b-h\bhi\bis\bst\bto\bor\bry\by (\b(M\bM-\b->\b>)\b)
stream using the following format, writing information on sepa-
rate lines:
- The number of matches;
- The word being completed;
- S:E, where S and E are the start and end offsets of the word
- in the readline line buffer; then
- Each match, one per line
-
- If there are no matches, the first line will be 0, and this com-
- mand will not print any output after the S:E. If there is only
- a single match, this prints a single line containing it. If
- there is more than one match, this prints the common prefix of
- the matches, which may be empty, on the first line after the
- S:E, then the matches on subsequent lines. In this case, N will
+ +\bo the number of matches _\bN;
+ +\bo the word being completed;
+ +\bo _\bS:_\bE, where S and E are the start and end offsets of the
+ word in the r\bre\bea\bad\bdl\bli\bin\bne\be line buffer; then
+ +\bo each match, one per line
+
+ If there are no matches, the first line will be "0", and this
+ command does not print any output after the _\bS:_\bE. If there is
+ only a single match, this prints a single line containing it.
+ If there is more than one match, this prints the common prefix
+ of the matches, which may be empty, on the first line after the
+ _\bS:_\bE, then the matches on subsequent lines. In this case, _\bN will
include the first line with the common prefix.
The user or application should be able to accommodate the possi-
bility of a blank line. The intent is that the user or applica-
- tion reads N lines after the line containing S:E to obtain the
+ tion reads _\bN lines after the line containing _\bS:_\bE to obtain the
match list. This command is unbound by default.
+
d\bde\bel\ble\bet\bte\be-\b-c\bch\bha\bar\br-\b-o\bor\br-\b-l\bli\bis\bst\bt
Deletes the character under the cursor if not at the beginning
or end of the line (like d\bde\bel\ble\bet\bte\be-\b-c\bch\bha\bar\br). At the end of the line,
it behaves identically to p\bpo\bos\bss\bsi\bib\bbl\ble\be-\b-c\bco\bom\bmp\bpl\ble\bet\bti\bio\bon\bns\bs. This command is
unbound by default.
+
c\bco\bom\bmp\bpl\ble\bet\bte\be-\b-f\bfi\bil\ble\ben\bna\bam\bme\be (\b(M\bM-\b-/\b/)\b)
Attempt filename completion on the text before point.
+
p\bpo\bos\bss\bsi\bib\bbl\ble\be-\b-f\bfi\bil\ble\ben\bna\bam\bme\be-\b-c\bco\bom\bmp\bpl\ble\bet\bti\bio\bon\bns\bs (\b(C\bC-\b-x\bx /\b/)\b)
List the possible completions of the text before point, treating
it as a filename.
+
c\bco\bom\bmp\bpl\ble\bet\bte\be-\b-u\bus\bse\ber\brn\bna\bam\bme\be (\b(M\bM-\b-~\b~)\b)
Attempt completion on the text before point, treating it as a
username.
+
p\bpo\bos\bss\bsi\bib\bbl\ble\be-\b-u\bus\bse\ber\brn\bna\bam\bme\be-\b-c\bco\bom\bmp\bpl\ble\bet\bti\bio\bon\bns\bs (\b(C\bC-\b-x\bx ~\b~)\b)
List the possible completions of the text before point, treating
it as a username.
+
c\bco\bom\bmp\bpl\ble\bet\bte\be-\b-v\bva\bar\bri\bia\bab\bbl\ble\be (\b(M\bM-\b-$\b$)\b)
Attempt completion on the text before point, treating it as a
shell variable.
+
p\bpo\bos\bss\bsi\bib\bbl\ble\be-\b-v\bva\bar\bri\bia\bab\bbl\ble\be-\b-c\bco\bom\bmp\bpl\ble\bet\bti\bio\bon\bns\bs (\b(C\bC-\b-x\bx $\b$)\b)
List the possible completions of the text before point, treating
it as a shell variable.
+
c\bco\bom\bmp\bpl\ble\bet\bte\be-\b-h\bho\bos\bst\btn\bna\bam\bme\be (\b(M\bM-\b-@\b@)\b)
Attempt completion on the text before point, treating it as a
hostname.
+
p\bpo\bos\bss\bsi\bib\bbl\ble\be-\b-h\bho\bos\bst\btn\bna\bam\bme\be-\b-c\bco\bom\bmp\bpl\ble\bet\bti\bio\bon\bns\bs (\b(C\bC-\b-x\bx @\b@)\b)
List the possible completions of the text before point, treating
it as a hostname.
+
c\bco\bom\bmp\bpl\ble\bet\bte\be-\b-c\bco\bom\bmm\bma\ban\bnd\bd (\b(M\bM-\b-!\b!)\b)
Attempt completion on the text before point, treating it as a
command name. Command completion attempts to match the text
against aliases, reserved words, shell functions, shell
builtins, and finally executable filenames, in that order.
+
p\bpo\bos\bss\bsi\bib\bbl\ble\be-\b-c\bco\bom\bmm\bma\ban\bnd\bd-\b-c\bco\bom\bmp\bpl\ble\bet\bti\bio\bon\bns\bs (\b(C\bC-\b-x\bx !\b!)\b)
List the possible completions of the text before point, treating
it as a command name.
+
d\bdy\byn\bna\bam\bmi\bic\bc-\b-c\bco\bom\bmp\bpl\ble\bet\bte\be-\b-h\bhi\bis\bst\bto\bor\bry\by (\b(M\bM-\b-T\bTA\bAB\bB)\b)
Attempt completion on the text before point, comparing the text
against history list entries for possible completion matches.
+
d\bda\bab\bbb\bbr\bre\bev\bv-\b-e\bex\bxp\bpa\ban\bnd\bd
Attempt menu completion on the text before point, comparing the
text against lines from the history list for possible completion
matches.
+
c\bco\bom\bmp\bpl\ble\bet\bte\be-\b-i\bin\bnt\bto\bo-\b-b\bbr\bra\bac\bce\bes\bs (\b(M\bM-\b-{\b{)\b)
Perform filename completion and insert the list of possible com-
pletions enclosed within braces so the list is available to the
s\bsk\bki\bip\bp-\b-c\bcs\bsi\bi-\b-s\bse\beq\bqu\bue\ben\bnc\bce\be
Read enough characters to consume a multi-key sequence such as
those defined for keys like Home and End. CSI sequences begin
- with a Control Sequence Indicator (CSI), usually ESC-[. If this
- sequence is bound to "\e[", keys producing CSI sequences will
- have no effect unless explicitly bound to a r\bre\bea\bad\bdl\bli\bin\bne\be command,
- instead of inserting stray characters into the editing buffer.
- This is unbound by default, but usually bound to ESC-[.
+ with a Control Sequence Indicator (CSI), usually _\bE_\bS_\bC _\b[. If this
+ sequence is bound to "\e[", keys producing CSI sequences have no
+ effect unless explicitly bound to a r\bre\bea\bad\bdl\bli\bin\bne\be command, instead of
+ inserting stray characters into the editing buffer. This is un-
+ bound by default, but usually bound to _\bE_\bS_\bC _\b[.
i\bin\bns\bse\ber\brt\bt-\b-c\bco\bom\bmm\bme\ben\bnt\bt (\b(M\bM-\b-#\b#)\b)
- Without a numeric argument, insert the value of the r\bre\bea\bad\bdl\bli\bin\bne\be
+ Without a numeric argument, insert the value of the r\bre\bea\bad\bdl\bli\bin\bne\be
c\bco\bom\bmm\bme\ben\bnt\bt-\b-b\bbe\beg\bgi\bin\bn variable at the beginning of the current line. If
- a numeric argument is supplied, this command acts as a toggle:
- if the characters at the beginning of the line do not match the
- value of c\bco\bom\bmm\bme\ben\bnt\bt-\b-b\bbe\beg\bgi\bin\bn, insert the value; otherwise delete the
- characters in c\bco\bom\bmm\bme\ben\bnt\bt-\b-b\bbe\beg\bgi\bin\bn from the beginning of the line. In
- either case, the line is accepted as if a newline had been
- typed. The default value of c\bco\bom\bmm\bme\ben\bnt\bt-\b-b\bbe\beg\bgi\bin\bn causes this command
+ a numeric argument is supplied, this command acts as a toggle:
+ if the characters at the beginning of the line do not match the
+ value of c\bco\bom\bmm\bme\ben\bnt\bt-\b-b\bbe\beg\bgi\bin\bn, insert the value; otherwise delete the
+ characters in c\bco\bom\bmm\bme\ben\bnt\bt-\b-b\bbe\beg\bgi\bin\bn from the beginning of the line. In
+ either case, the line is accepted as if a newline had been
+ typed. The default value of c\bco\bom\bmm\bme\ben\bnt\bt-\b-b\bbe\beg\bgi\bin\bn causes this command
to make the current line a shell comment. If a numeric argument
causes the comment character to be removed, the line will be ex-
ecuted by the shell.
s\bsp\bpe\bel\bll\bl-\b-c\bco\bor\brr\bre\bec\bct\bt-\b-w\bwo\bor\brd\bd (\b(C\bC-\b-x\bx s\bs)\b)
- Perform spelling correction on the current word, treating it as
- a directory or filename, in the same way as the c\bcd\bds\bsp\bpe\bel\bll\bl shell
- option. Word boundaries are the same as those used by
+ Perform spelling correction on the current word, treating it as
+ a directory or filename, in the same way as the c\bcd\bds\bsp\bpe\bel\bll\bl shell
+ option. Word boundaries are the same as those used by
s\bsh\bhe\bel\bll\bl-\b-f\bfo\bor\brw\bwa\bar\brd\bd-\b-w\bwo\bor\brd\bd.
g\bgl\blo\bob\bb-\b-c\bco\bom\bmp\bpl\ble\bet\bte\be-\b-w\bwo\bor\brd\bd (\b(M\bM-\b-g\bg)\b)
Treat the word before point as a pattern for pathname expansion,
- with an asterisk implicitly appended, then use the pattern to
+ with an asterisk implicitly appended, then use the pattern to
generate a list of matching file names for possible completions.
g\bgl\blo\bob\bb-\b-e\bex\bxp\bpa\ban\bnd\bd-\b-w\bwo\bor\brd\bd (\b(C\bC-\b-x\bx *\b*)\b)
Treat the word before point as a pattern for pathname expansion,
- and insert the list of matching file names, replacing the word.
- If a numeric argument is supplied, append a *\b* before pathname
+ and insert the list of matching file names, replacing the word.
+ If a numeric argument is supplied, append a *\b* before pathname
expansion.
g\bgl\blo\bob\bb-\b-l\bli\bis\bst\bt-\b-e\bex\bxp\bpa\ban\bns\bsi\bio\bon\bns\bs (\b(C\bC-\b-x\bx g\bg)\b)
Display the list of expansions that would have been generated by
- g\bgl\blo\bob\bb-\b-e\bex\bxp\bpa\ban\bnd\bd-\b-w\bwo\bor\brd\bd and redisplay the line. If a numeric argument
+ g\bgl\blo\bob\bb-\b-e\bex\bxp\bpa\ban\bnd\bd-\b-w\bwo\bor\brd\bd and redisplay the line. If a numeric argument
is supplied, append a *\b* before pathname expansion.
d\bdu\bum\bmp\bp-\b-f\bfu\bun\bnc\bct\bti\bio\bon\bns\bs
- Print all of the functions and their key bindings to the r\bre\bea\bad\bd-\b-
+ Print all of the functions and their key bindings to the r\bre\bea\bad\bd-\b-
l\bli\bin\bne\be output stream. If a numeric argument is supplied, the out-
- put is formatted in such a way that it can be made part of an
+ put is formatted in such a way that it can be made part of an
_\bi_\bn_\bp_\bu_\bt_\br_\bc file.
d\bdu\bum\bmp\bp-\b-v\bva\bar\bri\bia\bab\bbl\ble\bes\bs
Print all of the settable r\bre\bea\bad\bdl\bli\bin\bne\be variables and their values to
- the r\bre\bea\bad\bdl\bli\bin\bne\be output stream. If a numeric argument is supplied,
- the output is formatted in such a way that it can be made part
+ the r\bre\bea\bad\bdl\bli\bin\bne\be output stream. If a numeric argument is supplied,
+ the output is formatted in such a way that it can be made part
of an _\bi_\bn_\bp_\bu_\bt_\br_\bc file.
d\bdu\bum\bmp\bp-\b-m\bma\bac\bcr\bro\bos\bs
- Print all of the r\bre\bea\bad\bdl\bli\bin\bne\be key sequences bound to macros and the
+ Print all of the r\bre\bea\bad\bdl\bli\bin\bne\be key sequences bound to macros and the
strings they output to the r\bre\bea\bad\bdl\bli\bin\bne\be output stream. If a numeric
argument is supplied, the output is formatted in such a way that
it can be made part of an _\bi_\bn_\bp_\bu_\bt_\br_\bc file.
e\bex\bxe\bec\bcu\but\bte\be-\b-n\bna\bam\bme\bed\bd-\b-c\bco\bom\bmm\bma\ban\bnd\bd (\b(M\bM-\b-x\bx)\b)
Read a bindable r\bre\bea\bad\bdl\bli\bin\bne\be command name from the input and execute
- the function to which it's bound, as if the key sequence to
- which it was bound appeared in the input. If this function is
+ the function to which it's bound, as if the key sequence to
+ which it was bound appeared in the input. If this function is
supplied with a numeric argument, it passes that argument to the
function it executes.
d\bdi\bis\bsp\bpl\bla\bay\by-\b-s\bsh\bhe\bel\bll\bl-\b-v\bve\ber\brs\bsi\bio\bon\bn (\b(C\bC-\b-x\bx C\bC-\b-v\bv)\b)
Display version information about the current instance of b\bba\bas\bsh\bh.
P\bPr\bro\bog\bgr\bra\bam\bmm\bma\bab\bbl\ble\be C\bCo\bom\bmp\bpl\ble\bet\bti\bio\bon\bn
- When a user attempts word completion for an argument to a command for
- which a completion specification (a _\bc_\bo_\bm_\bp_\bs_\bp_\be_\bc) has been defined using
- the c\bco\bom\bmp\bpl\ble\bet\bte\be builtin (see S\bSH\bHE\bEL\bLL\bL B\bBU\bUI\bIL\bLT\bTI\bIN\bN C\bCO\bOM\bMM\bMA\bAN\bND\bDS\bS below), r\bre\bea\bad\bdl\bli\bin\bne\be in-
- vokes the programmable completion facilities.
-
- First, b\bba\bas\bsh\bh identifies the command name. If a compspec has been de-
- fined for that command, the compspec is used to generate the list of
- possible completions for the word. If the command word is the empty
- string (completion attempted at the beginning of an empty line), b\bba\bas\bsh\bh
- uses any compspec defined with the -\b-E\bE option to c\bco\bom\bmp\bpl\ble\bet\bte\be. If the com-
- mand word is a full pathname, b\bba\bas\bsh\bh searches for a compspec for the full
- pathname first. If there is no compspec for the full pathname, b\bba\bas\bsh\bh
- attempts to find a compspec for the portion following the final slash.
- If those searches do not result in a compspec, any compspec defined
- with the -\b-D\bD option to c\bco\bom\bmp\bpl\ble\bet\bte\be is used as the default. If there is no
- default compspec, b\bba\bas\bsh\bh attempts alias expansion on the command word as
+ When a user attempts word completion for a command or an argument to a
+ command for which a completion specification (a _\bc_\bo_\bm_\bp_\bs_\bp_\be_\bc) has been de-
+ fined using the c\bco\bom\bmp\bpl\ble\bet\bte\be builtin (see S\bSH\bHE\bEL\bLL\bL B\bBU\bUI\bIL\bLT\bTI\bIN\bN C\bCO\bOM\bMM\bMA\bAN\bND\bDS\bS below),
+ r\bre\bea\bad\bdl\bli\bin\bne\be invokes the programmable completion facilities.
+
+ First, b\bba\bas\bsh\bh identifies the command name. If a compspec has been de-
+ fined for that command, the compspec is used to generate the list of
+ possible completions for the word. If the command word is the empty
+ string (completion attempted at the beginning of an empty line), b\bba\bas\bsh\bh
+ uses any compspec defined with the -\b-E\bE option to c\bco\bom\bmp\bpl\ble\bet\bte\be. The -\b-I\bI op-
+ tion to c\bco\bom\bmp\bpl\ble\bet\bte\be indicates that the command word is the first non-as-
+ signment word on the line, or after a command delimiter such as ;\b; or |\b|.
+ This usually indicates command name completion.
+
+ If the command word is a full pathname, b\bba\bas\bsh\bh searches for a compspec
+ for the full pathname first. If there is no compspec for the full
+ pathname, b\bba\bas\bsh\bh attempts to find a compspec for the portion following
+ the final slash. If those searches do not result in a compspec, or if
+ there is no compspec for the command word, b\bba\bas\bsh\bh uses any compspec de-
+ fined with the -\b-D\bD option to c\bco\bom\bmp\bpl\ble\bet\bte\be as the default. If there is no
+ default compspec, b\bba\bas\bsh\bh performs alias expansion on the command word as
a final resort, and attempts to find a compspec for the command word
- from any successful expansion.
+ resulting from any successful expansion.
If a compspec is not found, b\bba\bas\bsh\bh performs its default completion as de-
scribed above under C\bCo\bom\bmp\bpl\ble\bet\bti\bin\bng\bg. Otherwise, once a compspec has been
found, b\bba\bas\bsh\bh uses it to generate the list of matching words.
- First, b\bba\bas\bsh\bh performs the _\ba_\bc_\bt_\bi_\bo_\bn_\bs specified by the compspec. Only
- matches which are prefixed by the word being completed are returned.
- When the -\b-f\bf or -\b-d\bd option is used for filename or directory name comple-
- tion, b\bba\bas\bsh\bh uses the shell variable F\bFI\bIG\bGN\bNO\bOR\bRE\bE to filter the matches.
+ First, b\bba\bas\bsh\bh performs the _\ba_\bc_\bt_\bi_\bo_\bn_\bs specified by the compspec. This only
+ returns matches which are prefixes of the word being completed. When
+ the -\b-f\bf or -\b-d\bd option is used for filename or directory name completion,
+ b\bba\bas\bsh\bh uses the shell variable F\bFI\bIG\bGN\bNO\bOR\bRE\bE to filter the matches.
- Any completions specified by a pathname expansion pattern to the -\b-G\bG op-
- tion are generated next. The words generated by the pattern need not
- match the word being completed. B\bBa\bas\bsh\bh uses the F\bFI\bIG\bGN\bNO\bOR\bRE\bE variable to fil-
- ter the matches, but does not use the G\bGL\bLO\bOB\bBI\bIG\bGN\bNO\bOR\bRE\bE shell variable.
+ Next, programmable completion generates matches specified by a pathname
+ expansion pattern supplied as an argument to the -\b-G\bG option. The words
+ generated by the pattern need not match the word being completed. B\bBa\bas\bsh\bh
+ uses the F\bFI\bIG\bGN\bNO\bOR\bRE\bE variable to filter the matches, but does not use the
+ G\bGL\bLO\bOB\bBI\bIG\bGN\bNO\bOR\bRE\bE shell variable.
Next, completion considers the string specified as the argument to the
-\b-W\bW option. The string is first split using the characters in the I\bIF\bFS\bS
- special variable as delimiters. Shell quoting is honored. Each word
- is then expanded using brace expansion, tilde expansion, parameter and
- variable expansion, command substitution, and arithmetic expansion, as
- described above under E\bEX\bXP\bPA\bAN\bNS\bSI\bIO\bON\bN. The results are split using the rules
- described above under W\bWo\bor\brd\bd S\bSp\bpl\bli\bit\btt\bti\bin\bng\bg. The results of the expansion are
- prefix-matched against the word being completed, and the matching words
- become possible completions.
-
- After these matches have been generated, b\bba\bas\bsh\bh executes any shell func-
+ special variable as delimiters. This honors shell quoting within the
+ string, in order to provide a mechanism for the words to contain shell
+ metacharacters or characters in the value of I\bIF\bFS\bS. Each word is then
+ expanded using brace expansion, tilde expansion, parameter and variable
+ expansion, command substitution, and arithmetic expansion, as described
+ above under E\bEX\bXP\bPA\bAN\bNS\bSI\bIO\bON\bN. The results are split using the rules described
+ above under W\bWo\bor\brd\bd S\bSp\bpl\bli\bit\btt\bti\bin\bng\bg. The results of the expansion are prefix-
+ matched against the word being completed, and the matching words become
+ possible completions.
+
+ After these matches have been generated, b\bba\bas\bsh\bh executes any shell func-
tion or command specified with the -\b-F\bF and -\b-C\bC options. When the command
- or function is invoked, the C\bCO\bOM\bMP\bP_\b_L\bLI\bIN\bNE\bE, C\bCO\bOM\bMP\bP_\b_P\bPO\bOI\bIN\bNT\bT, C\bCO\bOM\bMP\bP_\b_K\bKE\bEY\bY, and
- C\bCO\bOM\bMP\bP_\b_T\bTY\bYP\bPE\bE variables are assigned values as described above under S\bSh\bhe\bel\bll\bl
- V\bVa\bar\bri\bia\bab\bbl\ble\bes\bs. If a shell function is being invoked, the C\bCO\bOM\bMP\bP_\b_W\bWO\bOR\bRD\bDS\bS and
- C\bCO\bOM\bMP\bP_\b_C\bCW\bWO\bOR\bRD\bD variables are also set. When the function or command is in-
- voked, the first argument ($\b$1\b1) is the name of the command whose argu-
- ments are being completed, the second argument ($\b$2\b2) is the word being
- completed, and the third argument ($\b$3\b3) is the word preceding the word
- being completed on the current command line. There is no filtering of
- the generated completions against the word being completed; the func-
- tion or command has complete freedom in generating the matches.
+ or function is invoked, b\bba\bas\bsh\bh assigns values to the C\bCO\bOM\bMP\bP_\b_L\bLI\bIN\bNE\bE,
+ C\bCO\bOM\bMP\bP_\b_P\bPO\bOI\bIN\bNT\bT, C\bCO\bOM\bMP\bP_\b_K\bKE\bEY\bY, and C\bCO\bOM\bMP\bP_\b_T\bTY\bYP\bPE\bE variables as described above under
+ S\bSh\bhe\bel\bll\bl V\bVa\bar\bri\bia\bab\bbl\ble\bes\bs. If a shell function is being invoked, b\bba\bas\bsh\bh also sets
+ the C\bCO\bOM\bMP\bP_\b_W\bWO\bOR\bRD\bDS\bS and C\bCO\bOM\bMP\bP_\b_C\bCW\bWO\bOR\bRD\bD variables. When the function or command
+ is invoked, the first argument ($\b$1\b1) is the name of the command whose
+ arguments are being completed, the second argument ($\b$2\b2) is the word be-
+ ing completed, and the third argument ($\b$3\b3) is the word preceding the
+ word being completed on the current command line. There is no filter-
+ ing of the generated completions against the word being completed; the
+ function or command has complete freedom in generating the matches and
+ they do not need to match a prefix of the word.
Any function specified with -\b-F\bF is invoked first. The function may use
any of the shell facilities, including the c\bco\bom\bmp\bpg\bge\ben\bn and c\bco\bom\bmp\bpo\bop\bpt\bt builtins
Next, any command specified with the -\b-C\bC option is invoked in an envi-
ronment equivalent to command substitution. It should print a list of
- completions, one per line, to the standard output. Backslash may be
- used to escape a newline, if necessary. These are added to the set of
- possible completions.
-
- After all of the possible completions are generated, any filter speci-
- fied with the -\b-X\bX option is applied to the list. The filter is a pat-
- tern as used for pathname expansion; a &\b& in the pattern is replaced
- with the text of the word being completed. A literal &\b& may be escaped
- with a backslash; the backslash is removed before attempting a match.
- Any completion that matches the pattern will be removed from the list.
- A leading !\b! negates the pattern; in this case any completion not match-
- ing the pattern will be removed. If the n\bno\boc\bca\bas\bse\bem\bma\bat\btc\bch\bh shell option is
- enabled, the match is performed without regard to the case of alpha-
- betic characters.
-
- Finally, any prefix and suffix specified with the -\b-P\bP and -\b-S\bS options are
- added to each member of the completion list, and the result is returned
- to r\bre\bea\bad\bdl\bli\bin\bne\be as the list of possible completions.
+ completions, one per line, to the standard output. Backslash will es-
+ cape a newline, if necessary. These are added to the set of possible
+ completions.
+
+ After generating all of the possible completions, b\bba\bas\bsh\bh applies any fil-
+ ter specified with the -\b-X\bX option to the completions in the list. The
+ filter is a pattern as used for pathname expansion; a &\b& in the pattern
+ is replaced with the text of the word being completed. A literal &\b& may
+ be escaped with a backslash; the backslash is removed before attempting
+ a match. Any completion that matches the pattern is removed from the
+ list. A leading !\b! negates the pattern; in this case b\bba\bas\bsh\bh removes any
+ completion that does not match the pattern. If the n\bno\boc\bca\bas\bse\bem\bma\bat\btc\bch\bh shell
+ option is enabled, b\bba\bas\bsh\bh performs the match without regard to the case
+ of alphabetic characters.
+
+ Finally, programmable completion adds any prefix and suffix specified
+ with the -\b-P\bP and -\b-S\bS options, respectively, to each completion, and re-
+ turns the result to r\bre\bea\bad\bdl\bli\bin\bne\be as the list of possible completions.
If the previously-applied actions do not generate any matches, and the
-\b-o\bo d\bdi\bir\brn\bna\bam\bme\bes\bs option was supplied to c\bco\bom\bmp\bpl\ble\bet\bte\be when the compspec was de-
to the completion code as the full set of possible completions. The
default b\bba\bas\bsh\bh completions and the r\bre\bea\bad\bdl\bli\bin\bne\be default of filename comple-
tion are disabled. If the -\b-o\bo b\bba\bas\bsh\bhd\bde\bef\bfa\bau\bul\blt\bt option was supplied to c\bco\bom\bm-\b-
- p\bpl\ble\bet\bte\be when the compspec was defined, if the compspec generates no
- matches, b\bba\bas\bsh\bh attempts its default completions. If the -\b-o\bo d\bde\bef\bfa\bau\bul\blt\bt op-
- tion was supplied to c\bco\bom\bmp\bpl\ble\bet\bte\be when the compspec was defined, programma-
- ble completion will perform r\bre\bea\bad\bdl\bli\bin\bne\be's default completion if the comp-
- spec (and, if attempted, the default b\bba\bas\bsh\bh completions) generate no
- matches.
-
- When a compspec indicates that directory name completion is desired,
- the programmable completion functions force r\bre\bea\bad\bdl\bli\bin\bne\be to append a slash
- to completed names which are symbolic links to directories, subject to
- the value of the m\bma\bar\brk\bk-\b-d\bdi\bir\bre\bec\bct\bto\bor\bri\bie\bes\bs r\bre\bea\bad\bdl\bli\bin\bne\be variable, regardless of the
- setting of the m\bma\bar\brk\bk-\b-s\bsy\bym\bml\bli\bin\bnk\bke\bed\bd-\b-d\bdi\bir\bre\bec\bct\bto\bor\bri\bie\bes\bs r\bre\bea\bad\bdl\bli\bin\bne\be variable.
+ p\bpl\ble\bet\bte\be when the compspec was defined, and the compspec generates no
+ matches, b\bba\bas\bsh\bh attempts its default completions. If the compspec and,
+ if attempted, the default b\bba\bas\bsh\bh completions generate no matches, and the
+ -\b-o\bo d\bde\bef\bfa\bau\bul\blt\bt option was supplied to c\bco\bom\bmp\bpl\ble\bet\bte\be when the compspec was de-
+ fined, programmable completion performs r\bre\bea\bad\bdl\bli\bin\bne\be's default completion.
+
+ The options supplied to c\bco\bom\bmp\bpl\ble\bet\bte\be and c\bco\bom\bmp\bpo\bop\bpt\bt can control how r\bre\bea\bad\bdl\bli\bin\bne\be
+ treats the completions. For instance, the _\b-_\bo _\bf_\bu_\bl_\bl_\bq_\bu_\bo_\bt_\be option tells
+ r\bre\bea\bad\bdl\bli\bin\bne\be to quote the matches as if they were filenames. See the de-
+ scription of c\bco\bom\bmp\bpl\ble\bet\bte\be below for details.
+
+ When a compspec indicates that it wants directory name completion, the
+ programmable completion functions force r\bre\bea\bad\bdl\bli\bin\bne\be to append a slash to
+ completed names which are symbolic links to directories, subject to the
+ value of the m\bma\bar\brk\bk-\b-d\bdi\bir\bre\bec\bct\bto\bor\bri\bie\bes\bs r\bre\bea\bad\bdl\bli\bin\bne\be variable, regardless of the set-
+ ting of the m\bma\bar\brk\bk-\b-s\bsy\bym\bml\bli\bin\bnk\bke\bed\bd-\b-d\bdi\bir\bre\bec\bct\bto\bor\bri\bie\bes\bs r\bre\bea\bad\bdl\bli\bin\bne\be variable.
There is some support for dynamically modifying completions. This is
most useful when used in combination with a default completion speci-
changes the compspec associated with the command on which completion is
being attempted (supplied as the first argument when the function is
executed), programmable completion restarts from the beginning, with an
- attempt to find a new compspec for that command. This allows a set of
- completions to be built dynamically as completion is attempted, rather
- than being loaded all at once.
+ attempt to find a new compspec for that command. This can be used to
+ build a set of completions dynamically as completion is attempted,
+ rather than loading them all at once.
For instance, assuming that there is a library of compspecs, each kept
in a file corresponding to the name of the command, the following de-
Substitute _\bn_\be_\bw for the first occurrence of _\bo_\bl_\bd in the event
line. Any character may be used as the delimiter in place of /.
The final delimiter is optional if it is the last character of
- the event line. A single backslash will quote the delimiter in
- _\bo_\bl_\bd and _\bn_\be_\bw. If & appears in _\bn_\be_\bw, it is replaced with _\bo_\bl_\bd. A
- single backslash will quote the &. If _\bo_\bl_\bd is null, it is set to
- the last _\bo_\bl_\bd substituted, or, if no previous history substitu-
- tions took place, the last _\bs_\bt_\br_\bi_\bn_\bg in a !\b!?\b?_\bs_\bt_\br_\bi_\bn_\bg[\b[?\b?]\b] search. If
- _\bn_\be_\bw is null, each matching _\bo_\bl_\bd is deleted.
+ the event line. A single backslash quotes the delimiter in _\bo_\bl_\bd
+ and _\bn_\be_\bw. If & appears in _\bn_\be_\bw, it is replaced with _\bo_\bl_\bd. A sin-
+ gle backslash quotes the &. If _\bo_\bl_\bd is null, it is set to the
+ last _\bo_\bl_\bd substituted, or, if no previous history substitutions
+ took place, the last _\bs_\bt_\br_\bi_\bn_\bg in a !\b!?\b?_\bs_\bt_\br_\bi_\bn_\bg[\b[?\b?]\b] search. If _\bn_\be_\bw is
+ null, each matching _\bo_\bl_\bd is deleted.
&\b& Repeat the previous substitution.
g\bg Cause changes to be applied over the entire event line. This is
used in conjunction with ":\b:s\bs" (e.g., ":\b:g\bgs\bs/\b/_\bo_\bl_\bd/\b/_\bn_\be_\bw/\b/") or ":\b:&\b&".
routine call or _\be_\bx_\bp_\br does not correspond to a valid position in
the call stack.
- c\bcd\bd [-\b-L\bL] [-@] [_\bd_\bi_\br]
- c\bcd\bd -\b-P\bP [-\b-e\be] [-@] [_\bd_\bi_\br]
+ c\bcd\bd [-\b-L\bL] [-\b-@\b@] [_\bd_\bi_\br]
+ c\bcd\bd -\b-P\bP [-\b-e\be] [-\b-@\b@] [_\bd_\bi_\br]
Change the current directory to _\bd_\bi_\br. if _\bd_\bi_\br is not supplied,
the value of the H\bHO\bOM\bME\bE shell variable is used as _\bd_\bi_\br. The vari-
able C\bCD\bDP\bPA\bAT\bTH\bH exists, and _\bd_\bi_\br does not begin with a slash (/), c\bcd\bd
If the -\b-e\be option is supplied with -\b-P\bP, and c\bcd\bd cannot successfully
determine the current working directory after a successful di-
- rectory change, it will return a non-zero status.
+ rectory change, it returns a non-zero status.
On systems that support it, the -\b-@\b@ option presents the extended
attributes associated with a file as a directory.
e\ben\bna\bab\bbl\ble\bed\bd Names of enabled shell builtins.
e\bex\bxp\bpo\bor\brt\bt Names of exported shell variables. May also be
specified as -\b-e\be.
- f\bfi\bil\ble\be File names. May also be specified as -\b-f\bf.
+ f\bfi\bil\ble\be File and directory names, similar to r\bre\bea\bad\bdl\bli\bin\bne\be's
+ filename completion. May also be specified as
+ -\b-f\bf.
f\bfu\bun\bnc\bct\bti\bio\bon\bn
Names of shell functions.
g\bgr\bro\bou\bup\bp Group names. May also be specified as -\b-g\bg.
of _\bo_\bp_\bt_\bs_\bt_\br_\bi_\bn_\bg is a colon, g\bge\bet\bto\bop\bpt\bts\bs uses _\bs_\bi_\bl_\be_\bn_\bt error reporting.
In normal operation, g\bge\bet\bto\bop\bpt\bts\bs prints diagnostic messages when it
encounters invalid options or missing option arguments. If the
- variable O\bOP\bPT\bTE\bER\bRR\bR is set to 0, no error messages will be dis-
- played, even if the first character of _\bo_\bp_\bt_\bs_\bt_\br_\bi_\bn_\bg is not a colon.
+ variable O\bOP\bPT\bTE\bER\bRR\bR is set to 0, g\bge\bet\bto\bop\bpt\bts\bs does not display any error
+ messages, even if the first character of _\bo_\bp_\bt_\bs_\bt_\br_\bi_\bn_\bg is not a
+ colon.
If g\bge\bet\bto\bop\bpt\bts\bs detects an invalid option, it places ? into _\bn_\ba_\bm_\be and,
- if not silent, prints an error message and unsets O\bOP\bPT\bTA\bAR\bRG\bG. If
- g\bge\bet\bto\bop\bpt\bts\bs is silent, it assigns the option character found to O\bOP\bP-\b-
+ if not silent, prints an error message and unsets O\bOP\bPT\bTA\bAR\bRG\bG. If
+ g\bge\bet\bto\bop\bpt\bts\bs is silent, it assigns the option character found to O\bOP\bP-\b-
T\bTA\bAR\bRG\bG and does not print a diagnostic message.
- If a required argument is not found, and g\bge\bet\bto\bop\bpt\bts\bs is not silent,
+ If a required argument is not found, and g\bge\bet\bto\bop\bpt\bts\bs is not silent,
it sets the value of _\bn_\ba_\bm_\be to a question mark (?\b?), unsets O\bOP\bPT\bTA\bAR\bRG\bG,
- and prints a diagnostic message. If g\bge\bet\bto\bop\bpt\bts\bs is silent, it sets
- the value of _\bn_\ba_\bm_\be to a colon (:\b:) and sets O\bOP\bPT\bTA\bAR\bRG\bG to the option
+ and prints a diagnostic message. If g\bge\bet\bto\bop\bpt\bts\bs is silent, it sets
+ the value of _\bn_\ba_\bm_\be to a colon (:\b:) and sets O\bOP\bPT\bTA\bAR\bRG\bG to the option
character found.
- g\bge\bet\bto\bop\bpt\bts\bs returns true if an option, specified or unspecified, is
+ g\bge\bet\bto\bop\bpt\bts\bs returns true if an option, specified or unspecified, is
found. It returns false if the end of options is encountered or
an error occurs.
h\bha\bas\bsh\bh [-\b-l\blr\br] [-\b-p\bp _\bf_\bi_\bl_\be_\bn_\ba_\bm_\be] [-\b-d\bdt\bt] [_\bn_\ba_\bm_\be]
Each time h\bha\bas\bsh\bh is invoked, it remembers the full pathname of the
- command _\bn_\ba_\bm_\be as determined by searching the directories in
- $\b$P\bPA\bAT\bTH\bH. Any previously-remembered pathname associated with _\bn_\ba_\bm_\be
- is discarded. If the -\b-p\bp option is supplied, h\bha\bas\bsh\bh uses _\bf_\bi_\bl_\be_\bn_\ba_\bm_\be
+ command _\bn_\ba_\bm_\be as determined by searching the directories in
+ $\b$P\bPA\bAT\bTH\bH. Any previously-remembered pathname associated with _\bn_\ba_\bm_\be
+ is discarded. If the -\b-p\bp option is supplied, h\bha\bas\bsh\bh uses _\bf_\bi_\bl_\be_\bn_\ba_\bm_\be
as the full pathname of the command.
- The -\b-r\br option causes the shell to forget all remembered loca-
- tions. Assigning to the P\bPA\bAT\bTH\bH variable also clears all hashed
- filenames. The -\b-d\bd option causes the shell to forget the remem-
+ The -\b-r\br option causes the shell to forget all remembered loca-
+ tions. Assigning to the P\bPA\bAT\bTH\bH variable also clears all hashed
+ filenames. The -\b-d\bd option causes the shell to forget the remem-
bered location of each _\bn_\ba_\bm_\be.
If the -\b-t\bt option is supplied, h\bha\bas\bsh\bh prints the full pathname cor-
- responding to each _\bn_\ba_\bm_\be. If multiple _\bn_\ba_\bm_\be arguments are sup-
- plied with -\b-t\bt, h\bha\bas\bsh\bh prints the _\bn_\ba_\bm_\be before the corresponding
+ responding to each _\bn_\ba_\bm_\be. If multiple _\bn_\ba_\bm_\be arguments are sup-
+ plied with -\b-t\bt, h\bha\bas\bsh\bh prints the _\bn_\ba_\bm_\be before the corresponding
hashed full pathname. The -\b-l\bl option displays output in a format
that may be reused as input.
- If no arguments are given, or if only -\b-l\bl is supplied, h\bha\bas\bsh\bh
- prints information about remembered commands. The -\b-t\bt, -\b-d\bd, and
- -\b-p\bp options (the options that act on the _\bn_\ba_\bm_\be arguments) are mu-
+ If no arguments are given, or if only -\b-l\bl is supplied, h\bha\bas\bsh\bh
+ prints information about remembered commands. The -\b-t\bt, -\b-d\bd, and
+ -\b-p\bp options (the options that act on the _\bn_\ba_\bm_\be arguments) are mu-
tually exclusive. Only one will be active. If more than one is
- supplied, -\b-t\bt has higher priority than -\b-p\bp, and both have higher
+ supplied, -\b-t\bt has higher priority than -\b-p\bp, and both have higher
priority than -\b-d\bd.
- The return status is zero unless a _\bn_\ba_\bm_\be is not found or an in-
+ The return status is zero unless a _\bn_\ba_\bm_\be is not found or an in-
valid option is supplied.
h\bhe\bel\blp\bp [-\b-d\bdm\bms\bs] [_\bp_\ba_\bt_\bt_\be_\br_\bn]
- Display helpful information about builtin commands. If _\bp_\ba_\bt_\bt_\be_\br_\bn
- is specified, h\bhe\bel\blp\bp gives detailed help on all commands matching
- _\bp_\ba_\bt_\bt_\be_\br_\bn; otherwise it displays a list of all the builtins and
+ Display helpful information about builtin commands. If _\bp_\ba_\bt_\bt_\be_\br_\bn
+ is specified, h\bhe\bel\blp\bp gives detailed help on all commands matching
+ _\bp_\ba_\bt_\bt_\be_\br_\bn; otherwise it displays a list of all the builtins and
shell compound commands.
-\b-d\bd Display a short description of each _\bp_\ba_\bt_\bt_\be_\br_\bn
-\b-m\bm Display the description of each _\bp_\ba_\bt_\bt_\be_\br_\bn in a manpage-like
h\bhi\bis\bst\bto\bor\bry\by -\b-a\ban\bnr\brw\bw [_\bf_\bi_\bl_\be_\bn_\ba_\bm_\be]
h\bhi\bis\bst\bto\bor\bry\by -\b-p\bp _\ba_\br_\bg [_\ba_\br_\bg ...]
h\bhi\bis\bst\bto\bor\bry\by -\b-s\bs _\ba_\br_\bg [_\ba_\br_\bg ...]
- With no options, display the command history list with numbers.
- Entries prefixed with a *\b* have been modified. An argument of _\bn
- lists only the last _\bn entries. If the shell variable H\bHI\bIS\bST\bTT\bTI\bIM\bME\bE-\b-
- F\bFO\bOR\bRM\bMA\bAT\bT is set and not null, it is used as a format string for
- _\bs_\bt_\br_\bf_\bt_\bi_\bm_\be(3) to display the time stamp associated with each dis-
- played history entry. If h\bhi\bis\bst\bto\bor\bry\by uses H\bHI\bIS\bST\bTT\bTI\bIM\bME\bEF\bFO\bOR\bRM\bMA\bAT\bT, it does
- not print an intervening space between the formatted time stamp
+ With no options, display the command history list with numbers.
+ Entries prefixed with a *\b* have been modified. An argument of _\bn
+ lists only the last _\bn entries. If the shell variable H\bHI\bIS\bST\bTT\bTI\bIM\bME\bE-\b-
+ F\bFO\bOR\bRM\bMA\bAT\bT is set and not null, it is used as a format string for
+ _\bs_\bt_\br_\bf_\bt_\bi_\bm_\be(3) to display the time stamp associated with each dis-
+ played history entry. If h\bhi\bis\bst\bto\bor\bry\by uses H\bHI\bIS\bST\bTT\bTI\bIM\bME\bEF\bFO\bOR\bRM\bMA\bAT\bT, it does
+ not print an intervening space between the formatted time stamp
and the history entry.
If _\bf_\bi_\bl_\be_\bn_\ba_\bm_\be is supplied, h\bhi\bis\bst\bto\bor\bry\by uses it as the name of the his-
- tory file; if not, it uses the value of H\bHI\bIS\bST\bTF\bFI\bIL\bLE\bE. If _\bf_\bi_\bl_\be_\bn_\ba_\bm_\be
- is not supplied and H\bHI\bIS\bST\bTF\bFI\bIL\bLE\bE is unset or null, the -\b-a\ba,\b, -\b-n\bn,\b, -\b-r\br,\b,
+ tory file; if not, it uses the value of H\bHI\bIS\bST\bTF\bFI\bIL\bLE\bE. If _\bf_\bi_\bl_\be_\bn_\ba_\bm_\be
+ is not supplied and H\bHI\bIS\bST\bTF\bFI\bIL\bLE\bE is unset or null, the -\b-a\ba,\b, -\b-n\bn,\b, -\b-r\br,\b,
and -\b-w\bw options have no effect.
Options, if supplied, have the following meanings:
can be used with the other options to replace the history
list.
-\b-d\bd _\bo_\bf_\bf_\bs_\be_\bt
- Delete the history entry at position _\bo_\bf_\bf_\bs_\be_\bt. If _\bo_\bf_\bf_\bs_\be_\bt
+ Delete the history entry at position _\bo_\bf_\bf_\bs_\be_\bt. If _\bo_\bf_\bf_\bs_\be_\bt
is negative, it is interpreted as relative to one greater
than the last history position, so negative indices count
- back from the end of the history, and an index of -1
+ back from the end of the history, and an index of -1
refers to the current h\bhi\bis\bst\bto\bor\bry\by -\b-d\bd command.
-\b-d\bd _\bs_\bt_\ba_\br_\bt-_\be_\bn_\bd
- Delete the range of history entries between positions
- _\bs_\bt_\ba_\br_\bt and _\be_\bn_\bd, inclusive. Positive and negative values
+ Delete the range of history entries between positions
+ _\bs_\bt_\ba_\br_\bt and _\be_\bn_\bd, inclusive. Positive and negative values
for _\bs_\bt_\ba_\br_\bt and _\be_\bn_\bd are interpreted as described above.
- -\b-a\ba Append the "new" history lines to the history file.
- These are history lines entered since the beginning of
+ -\b-a\ba Append the "new" history lines to the history file.
+ These are history lines entered since the beginning of
the current b\bba\bas\bsh\bh session, but not already appended to the
history file.
- -\b-n\bn Read the history lines not already read from the history
+ -\b-n\bn Read the history lines not already read from the history
file and add them to the current history list. These are
lines appended to the history file since the beginning of
the current b\bba\bas\bsh\bh session.
rent history list.
-\b-w\bw Write the current history list to the history file, over-
writing the history file.
- -\b-p\bp Perform history substitution on the following _\ba_\br_\bg_\bs and
- display the result on the standard output, without stor-
- ing the results in the history list. Each _\ba_\br_\bg must be
+ -\b-p\bp Perform history substitution on the following _\ba_\br_\bg_\bs and
+ display the result on the standard output, without stor-
+ ing the results in the history list. Each _\ba_\br_\bg must be
quoted to disable normal history expansion.
- -\b-s\bs Store the _\ba_\br_\bg_\bs in the history list as a single entry.
- The last command in the history list is removed before
+ -\b-s\bs Store the _\ba_\br_\bg_\bs in the history list as a single entry.
+ The last command in the history list is removed before
adding the _\ba_\br_\bg_\bs.
- If the H\bHI\bIS\bST\bTT\bTI\bIM\bME\bEF\bFO\bOR\bRM\bMA\bAT\bT variable is set, h\bhi\bis\bst\bto\bor\bry\by writes the time
+ If the H\bHI\bIS\bST\bTT\bTI\bIM\bME\bEF\bFO\bOR\bRM\bMA\bAT\bT variable is set, h\bhi\bis\bst\bto\bor\bry\by writes the time
stamp information associated with each history entry to the his-
- tory file, marked with the history comment character as de-
- scribed above. When the history file is read, lines beginning
- with the history comment character followed immediately by a
- digit are interpreted as timestamps for the following history
+ tory file, marked with the history comment character as de-
+ scribed above. When the history file is read, lines beginning
+ with the history comment character followed immediately by a
+ digit are interpreted as timestamps for the following history
entry.
- The return value is 0 unless an invalid option is encountered,
- an error occurs while reading or writing the history file, an
+ The return value is 0 unless an invalid option is encountered,
+ an error occurs while reading or writing the history file, an
invalid _\bo_\bf_\bf_\bs_\be_\bt or range is supplied as an argument to -\b-d\bd, or the
history expansion supplied as an argument to -\b-p\bp fails.
The first form lists the active jobs. The options have the fol-
lowing meanings:
-\b-l\bl List process IDs in addition to the normal information.
- -\b-n\bn Display information only about jobs that have changed
+ -\b-n\bn Display information only about jobs that have changed
status since the user was last notified of their status.
- -\b-p\bp List only the process ID of the job's process group
+ -\b-p\bp List only the process ID of the job's process group
leader.
-\b-r\br Display only running jobs.
-\b-s\bs Display only stopped jobs.
- If _\bj_\bo_\bb_\bs_\bp_\be_\bc is supplied, j\bjo\bob\bbs\bs restricts output to information
+ If _\bj_\bo_\bb_\bs_\bp_\be_\bc is supplied, j\bjo\bob\bbs\bs restricts output to information
about that job. The return status is 0 unless an invalid option
is encountered or an invalid _\bj_\bo_\bb_\bs_\bp_\be_\bc is supplied.
k\bki\bil\bll\bl [-\b-s\bs _\bs_\bi_\bg_\bs_\bp_\be_\bc | -\b-n\bn _\bs_\bi_\bg_\bn_\bu_\bm | -\b-_\bs_\bi_\bg_\bs_\bp_\be_\bc] _\bi_\bd [ ... ]
k\bki\bil\bll\bl -\b-l\bl|-\b-L\bL [_\bs_\bi_\bg_\bs_\bp_\be_\bc | _\be_\bx_\bi_\bt_\b__\bs_\bt_\ba_\bt_\bu_\bs]
- Send the signal specified by _\bs_\bi_\bg_\bs_\bp_\be_\bc or _\bs_\bi_\bg_\bn_\bu_\bm to the processes
+ Send the signal specified by _\bs_\bi_\bg_\bs_\bp_\be_\bc or _\bs_\bi_\bg_\bn_\bu_\bm to the processes
named by each _\bi_\bd. Each _\bi_\bd may be a job specification _\bj_\bo_\bb_\bs_\bp_\be_\bc or
- a process ID _\bp_\bi_\bd. _\bs_\bi_\bg_\bs_\bp_\be_\bc is either a case-insensitive signal
- name such as S\bSI\bIG\bGK\bKI\bIL\bLL\bL (with or without the S\bSI\bIG\bG prefix) or a sig-
- nal number; _\bs_\bi_\bg_\bn_\bu_\bm is a signal number. If _\bs_\bi_\bg_\bs_\bp_\be_\bc is not sup-
+ a process ID _\bp_\bi_\bd. _\bs_\bi_\bg_\bs_\bp_\be_\bc is either a case-insensitive signal
+ name such as S\bSI\bIG\bGK\bKI\bIL\bLL\bL (with or without the S\bSI\bIG\bG prefix) or a sig-
+ nal number; _\bs_\bi_\bg_\bn_\bu_\bm is a signal number. If _\bs_\bi_\bg_\bs_\bp_\be_\bc is not sup-
plied, then k\bki\bil\bll\bl sends S\bSI\bIG\bGT\bTE\bER\bRM\bM.
The -\b-l\bl option lists the signal names. If any arguments are sup-
plied when -\b-l\bl is given, k\bki\bil\bll\bl lists the names of the signals cor-
- responding to the arguments, and the return status is 0. The
- _\be_\bx_\bi_\bt_\b__\bs_\bt_\ba_\bt_\bu_\bs argument to -\b-l\bl is a number specifying either a sig-
- nal number or the exit status of a process terminated by a sig-
- nal; if it is supplied, k\bki\bil\bll\bl prints the name of the signal that
+ responding to the arguments, and the return status is 0. The
+ _\be_\bx_\bi_\bt_\b__\bs_\bt_\ba_\bt_\bu_\bs argument to -\b-l\bl is a number specifying either a sig-
+ nal number or the exit status of a process terminated by a sig-
+ nal; if it is supplied, k\bki\bil\bll\bl prints the name of the signal that
caused the process to terminate. k\bki\bil\bll\bl assumes that process exit
statuses are greater than 128; anything less than that is a sig-
nal number. The -\b-L\bL option is equivalent to -\b-l\bl.
- k\bki\bil\bll\bl returns true if at least one signal was successfully sent,
+ k\bki\bil\bll\bl returns true if at least one signal was successfully sent,
or false if an error occurs or an invalid option is encountered.
l\ble\bet\bt _\ba_\br_\bg [_\ba_\br_\bg ...]
- Each _\ba_\br_\bg is evaluated as an arithmetic expression (see A\bAR\bRI\bIT\bTH\bH-\b-
- M\bME\bET\bTI\bIC\bC E\bEV\bVA\bAL\bLU\bUA\bAT\bTI\bIO\bON\bN above). If the last _\ba_\br_\bg evaluates to 0, l\ble\bet\bt
+ Each _\ba_\br_\bg is evaluated as an arithmetic expression (see A\bAR\bRI\bIT\bTH\bH-\b-
+ M\bME\bET\bTI\bIC\bC E\bEV\bVA\bAL\bLU\bUA\bAT\bTI\bIO\bON\bN above). If the last _\ba_\br_\bg evaluates to 0, l\ble\bet\bt
returns 1; otherwise l\ble\bet\bt returns 0.
l\blo\boc\bca\bal\bl [_\bo_\bp_\bt_\bi_\bo_\bn] [_\bn_\ba_\bm_\be[=_\bv_\ba_\bl_\bu_\be] ... | - ]
For each argument, create a local variable named _\bn_\ba_\bm_\be and assign
- it _\bv_\ba_\bl_\bu_\be. The _\bo_\bp_\bt_\bi_\bo_\bn can be any of the options accepted by d\bde\be-\b-
- c\bcl\bla\bar\bre\be. When l\blo\boc\bca\bal\bl is used within a function, it causes the
- variable _\bn_\ba_\bm_\be to have a visible scope restricted to that func-
- tion and its children. It is an error to use l\blo\boc\bca\bal\bl when not
+ it _\bv_\ba_\bl_\bu_\be. The _\bo_\bp_\bt_\bi_\bo_\bn can be any of the options accepted by d\bde\be-\b-
+ c\bcl\bla\bar\bre\be. When l\blo\boc\bca\bal\bl is used within a function, it causes the
+ variable _\bn_\ba_\bm_\be to have a visible scope restricted to that func-
+ tion and its children. It is an error to use l\blo\boc\bca\bal\bl when not
within a function.
- If _\bn_\ba_\bm_\be is -, it makes the set of shell options local to the
- function in which l\blo\boc\bca\bal\bl is invoked: any shell options changed
- using the s\bse\bet\bt builtin inside the function after the call to l\blo\bo-\b-
- c\bca\bal\bl are restored to their original values when the function re-
- turns. The restore is performed as if a series of s\bse\bet\bt commands
- were executed to restore the values that were in place before
+ If _\bn_\ba_\bm_\be is -, it makes the set of shell options local to the
+ function in which l\blo\boc\bca\bal\bl is invoked: any shell options changed
+ using the s\bse\bet\bt builtin inside the function after the call to l\blo\bo-\b-
+ c\bca\bal\bl are restored to their original values when the function re-
+ turns. The restore is performed as if a series of s\bse\bet\bt commands
+ were executed to restore the values that were in place before
the function.
- With no operands, l\blo\boc\bca\bal\bl writes a list of local variables to the
+ With no operands, l\blo\boc\bca\bal\bl writes a list of local variables to the
standard output.
- The return status is 0 unless l\blo\boc\bca\bal\bl is used outside a function,
+ The return status is 0 unless l\blo\boc\bca\bal\bl is used outside a function,
an invalid _\bn_\ba_\bm_\be is supplied, or _\bn_\ba_\bm_\be is a readonly variable.
l\blo\bog\bgo\bou\but\bt [\b[_\bn]\b]
- Exit a login shell, returning a status of _\bn to the shell's par-
+ Exit a login shell, returning a status of _\bn to the shell's par-
ent.
m\bma\bap\bpf\bfi\bil\ble\be [-\b-d\bd _\bd_\be_\bl_\bi_\bm] [-\b-n\bn _\bc_\bo_\bu_\bn_\bt] [-\b-O\bO _\bo_\br_\bi_\bg_\bi_\bn] [-\b-s\bs _\bc_\bo_\bu_\bn_\bt] [-\b-t\bt] [-\b-u\bu _\bf_\bd] [-\b-C\bC
_\bc_\ba_\bl_\bl_\bb_\ba_\bc_\bk] [-\b-c\bc _\bq_\bu_\ba_\bn_\bt_\bu_\bm] [_\ba_\br_\br_\ba_\by]
r\bre\bea\bad\bda\bar\brr\bra\bay\by [-\b-d\bd _\bd_\be_\bl_\bi_\bm] [-\b-n\bn _\bc_\bo_\bu_\bn_\bt] [-\b-O\bO _\bo_\br_\bi_\bg_\bi_\bn] [-\b-s\bs _\bc_\bo_\bu_\bn_\bt] [-\b-t\bt] [-\b-u\bu _\bf_\bd] [-\b-C\bC
_\bc_\ba_\bl_\bl_\bb_\ba_\bc_\bk] [-\b-c\bc _\bq_\bu_\ba_\bn_\bt_\bu_\bm] [_\ba_\br_\br_\ba_\by]
- Read lines from the standard input, or from file descriptor _\bf_\bd
- if the -\b-u\bu option is supplied, into the indexed array variable
- _\ba_\br_\br_\ba_\by. The variable M\bMA\bAP\bPF\bFI\bIL\bLE\bE is the default _\ba_\br_\br_\ba_\by. Options, if
+ Read lines from the standard input, or from file descriptor _\bf_\bd
+ if the -\b-u\bu option is supplied, into the indexed array variable
+ _\ba_\br_\br_\ba_\by. The variable M\bMA\bAP\bPF\bFI\bIL\bLE\bE is the default _\ba_\br_\br_\ba_\by. Options, if
supplied, have the following meanings:
- -\b-d\bd Use the first character of _\bd_\be_\bl_\bi_\bm to terminate each input
+ -\b-d\bd Use the first character of _\bd_\be_\bl_\bi_\bm to terminate each input
line, rather than newline. If _\bd_\be_\bl_\bi_\bm is the empty string,
m\bma\bap\bpf\bfi\bil\ble\be will terminate a line when it reads a NUL charac-
ter.
-\b-n\bn Copy at most _\bc_\bo_\bu_\bn_\bt lines. If _\bc_\bo_\bu_\bn_\bt is 0, copy all lines.
- -\b-O\bO Begin assigning to _\ba_\br_\br_\ba_\by at index _\bo_\br_\bi_\bg_\bi_\bn. The default
+ -\b-O\bO Begin assigning to _\ba_\br_\br_\ba_\by at index _\bo_\br_\bi_\bg_\bi_\bn. The default
index is 0.
-\b-s\bs Discard the first _\bc_\bo_\bu_\bn_\bt lines read.
- -\b-t\bt Remove a trailing _\bd_\be_\bl_\bi_\bm (default newline) from each line
+ -\b-t\bt Remove a trailing _\bd_\be_\bl_\bi_\bm (default newline) from each line
read.
- -\b-u\bu Read lines from file descriptor _\bf_\bd instead of the stan-
+ -\b-u\bu Read lines from file descriptor _\bf_\bd instead of the stan-
dard input.
- -\b-C\bC Evaluate _\bc_\ba_\bl_\bl_\bb_\ba_\bc_\bk each time _\bq_\bu_\ba_\bn_\bt_\bu_\bm lines are read. The
+ -\b-C\bC Evaluate _\bc_\ba_\bl_\bl_\bb_\ba_\bc_\bk each time _\bq_\bu_\ba_\bn_\bt_\bu_\bm lines are read. The
-\b-c\bc option specifies _\bq_\bu_\ba_\bn_\bt_\bu_\bm.
- -\b-c\bc Specify the number of lines read between each call to
+ -\b-c\bc Specify the number of lines read between each call to
_\bc_\ba_\bl_\bl_\bb_\ba_\bc_\bk.
- If -\b-C\bC is specified without -\b-c\bc, the default quantum is 5000.
+ If -\b-C\bC is specified without -\b-c\bc, the default quantum is 5000.
When _\bc_\ba_\bl_\bl_\bb_\ba_\bc_\bk is evaluated, it is supplied the index of the next
array element to be assigned and the line to be assigned to that
- element as additional arguments. _\bc_\ba_\bl_\bl_\bb_\ba_\bc_\bk is evaluated after
+ element as additional arguments. _\bc_\ba_\bl_\bl_\bb_\ba_\bc_\bk is evaluated after
the line is read but before the array element is assigned.
- If not supplied with an explicit origin, m\bma\bap\bpf\bfi\bil\ble\be will clear _\ba_\br_\b-
+ If not supplied with an explicit origin, m\bma\bap\bpf\bfi\bil\ble\be will clear _\ba_\br_\b-
_\br_\ba_\by before assigning to it.
m\bma\bap\bpf\bfi\bil\ble\be returns zero unless an invalid option or option argument
- is supplied, _\ba_\br_\br_\ba_\by is invalid or unassignable, or if _\ba_\br_\br_\ba_\by is
+ is supplied, _\ba_\br_\br_\ba_\by is invalid or unassignable, or if _\ba_\br_\br_\ba_\by is
not an indexed array.
p\bpo\bop\bpd\bd [-n\bn] [+_\bn] [-_\bn]
- Remove entries from the directory stack. The elements are num-
- bered from 0 starting at the first directory listed by d\bdi\bir\brs\bs, so
- p\bpo\bop\bpd\bd is equivalent to "popd +0." With no arguments, p\bpo\bop\bpd\bd re-
- moves the top directory from the stack, and changes to the new
+ Remove entries from the directory stack. The elements are num-
+ bered from 0 starting at the first directory listed by d\bdi\bir\brs\bs, so
+ p\bpo\bop\bpd\bd is equivalent to "popd +0." With no arguments, p\bpo\bop\bpd\bd re-
+ moves the top directory from the stack, and changes to the new
top directory. Arguments, if supplied, have the following mean-
ings:
-\b-n\bn Suppress the normal change of directory when removing di-
rectories from the stack, only manipulate the stack.
- +\b+_\bn Remove the _\bnth entry counting from the left of the list
- shown by d\bdi\bir\brs\bs, starting with zero, from the stack. For
+ +\b+_\bn Remove the _\bnth entry counting from the left of the list
+ shown by d\bdi\bir\brs\bs, starting with zero, from the stack. For
example: "popd +0" removes the first directory, "popd +1"
the second.
- -\b-_\bn Remove the _\bnth entry counting from the right of the list
- shown by d\bdi\bir\brs\bs, starting with zero. For example: "popd
- -0" removes the last directory, "popd -1" the next to
+ -\b-_\bn Remove the _\bnth entry counting from the right of the list
+ shown by d\bdi\bir\brs\bs, starting with zero. For example: "popd
+ -0" removes the last directory, "popd -1" the next to
last.
- If the top element of the directory stack is modified, and the
- _\b-_\bn option was not supplied, p\bpo\bop\bpd\bd uses the c\bcd\bd builtin to change
+ If the top element of the directory stack is modified, and the
+ _\b-_\bn option was not supplied, p\bpo\bop\bpd\bd uses the c\bcd\bd builtin to change
to the directory at the top of the stack. If the c\bcd\bd fails, p\bpo\bop\bpd\bd
returns a non-zero value.
- Otherwise, p\bpo\bop\bpd\bd returns false if an invalid option is supplied,
- the directory stack is empty, or _\bn specifies a non-existent di-
+ Otherwise, p\bpo\bop\bpd\bd returns false if an invalid option is supplied,
+ the directory stack is empty, or _\bn specifies a non-existent di-
rectory stack entry.
- If the p\bpo\bop\bpd\bd command is successful, b\bba\bas\bsh\bh runs d\bdi\bir\brs\bs to show the
- final contents of the directory stack, and the return status is
+ If the p\bpo\bop\bpd\bd command is successful, b\bba\bas\bsh\bh runs d\bdi\bir\brs\bs to show the
+ final contents of the directory stack, and the return status is
0.
p\bpr\bri\bin\bnt\btf\bf [-\b-v\bv _\bv_\ba_\br] _\bf_\bo_\br_\bm_\ba_\bt [_\ba_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs]
- Write the formatted _\ba_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs to the standard output under the
- control of the _\bf_\bo_\br_\bm_\ba_\bt. The -\b-v\bv option assigns the output to the
+ Write the formatted _\ba_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs to the standard output under the
+ control of the _\bf_\bo_\br_\bm_\ba_\bt. The -\b-v\bv option assigns the output to the
variable _\bv_\ba_\br rather than printing it to the standard output.
- The _\bf_\bo_\br_\bm_\ba_\bt is a character string which contains three types of
- objects: plain characters, which are simply copied to standard
- output, character escape sequences, which are converted and
- copied to the standard output, and format specifications, each
- of which causes printing of the next successive _\ba_\br_\bg_\bu_\bm_\be_\bn_\bt. In
- addition to the standard _\bp_\br_\bi_\bn_\bt_\bf(3) format characters c\bcC\bCs\bsS\bS-\b-
+ The _\bf_\bo_\br_\bm_\ba_\bt is a character string which contains three types of
+ objects: plain characters, which are simply copied to standard
+ output, character escape sequences, which are converted and
+ copied to the standard output, and format specifications, each
+ of which causes printing of the next successive _\ba_\br_\bg_\bu_\bm_\be_\bn_\bt. In
+ addition to the standard _\bp_\br_\bi_\bn_\bt_\bf(3) format characters c\bcC\bCs\bsS\bS-\b-
n\bnd\bdi\bio\bou\bux\bxX\bXe\beE\bEf\bfF\bFg\bgG\bGa\baA\bA, p\bpr\bri\bin\bnt\btf\bf interprets the following additional for-
mat specifiers:
%\b%b\bb causes p\bpr\bri\bin\bnt\btf\bf to expand backslash escape sequences in the
corresponding _\ba_\br_\bg_\bu_\bm_\be_\bn_\bt in the same way as e\bec\bch\bho\bo -\b-e\be.
- %\b%q\bq causes p\bpr\bri\bin\bnt\btf\bf to output the corresponding _\ba_\br_\bg_\bu_\bm_\be_\bn_\bt in a
- format that can be reused as shell input. %\b%q\bq and %\b%Q\bQ use
- the $\b$'\b''\b' quoting style if any characters in the argument
- string require it, and backslash quoting otherwise. If
- the format string uses the _\bp_\br_\bi_\bn_\bt_\bf alternate form, these
+ %\b%q\bq causes p\bpr\bri\bin\bnt\btf\bf to output the corresponding _\ba_\br_\bg_\bu_\bm_\be_\bn_\bt in a
+ format that can be reused as shell input. %\b%q\bq and %\b%Q\bQ use
+ the $\b$'\b''\b' quoting style if any characters in the argument
+ string require it, and backslash quoting otherwise. If
+ the format string uses the _\bp_\br_\bi_\bn_\bt_\bf alternate form, these
two formats quote the argument string using single
quotes.
- %\b%Q\bQ like %\b%q\bq, but applies any supplied precision to the _\ba_\br_\bg_\bu_\b-
+ %\b%Q\bQ like %\b%q\bq, but applies any supplied precision to the _\ba_\br_\bg_\bu_\b-
_\bm_\be_\bn_\bt before quoting it.
%\b%(\b(_\bd_\ba_\bt_\be_\bf_\bm_\bt)\b)T\bT
- causes p\bpr\bri\bin\bnt\btf\bf to output the date-time string resulting
- from using _\bd_\ba_\bt_\be_\bf_\bm_\bt as a format string for _\bs_\bt_\br_\bf_\bt_\bi_\bm_\be(3).
+ causes p\bpr\bri\bin\bnt\btf\bf to output the date-time string resulting
+ from using _\bd_\ba_\bt_\be_\bf_\bm_\bt as a format string for _\bs_\bt_\br_\bf_\bt_\bi_\bm_\be(3).
The corresponding _\ba_\br_\bg_\bu_\bm_\be_\bn_\bt is an integer representing the
number of seconds since the epoch. This format specifier
recognizes two special argument values: -1 represents the
- current time, and -2 represents the time the shell was
+ current time, and -2 represents the time the shell was
invoked. If no argument is specified, conversion behaves
- as if -1 had been supplied. This is an exception to the
+ as if -1 had been supplied. This is an exception to the
usual p\bpr\bri\bin\bnt\btf\bf behavior.
The %b, %q, and %T format specifiers all use the field width and
precision arguments from the format specification and write that
- many bytes from (or use that wide a field for) the expanded ar-
- gument, which usually contains more characters than the origi-
+ many bytes from (or use that wide a field for) the expanded ar-
+ gument, which usually contains more characters than the origi-
nal.
The %n format specifier accepts a corresponding argument that is
treated as a shell variable name.
- The %s and %c format specifiers accept an l (long) modifier,
+ The %s and %c format specifiers accept an l (long) modifier,
which forces them to convert the argument string to a wide-char-
acter string and apply any supplied field width and precision in
terms of characters, not bytes. The %S and %C format specifiers
are equivalent to %ls and %lc, respectively.
- Arguments to non-string format specifiers are treated as C con-
+ Arguments to non-string format specifiers are treated as C con-
stants, except that a leading plus or minus sign is allowed, and
- if the leading character is a single or double quote, the value
- is the numeric value of the following character, using the cur-
+ if the leading character is a single or double quote, the value
+ is the numeric value of the following character, using the cur-
rent locale.
- The _\bf_\bo_\br_\bm_\ba_\bt is reused as necessary to consume all of the _\ba_\br_\bg_\bu_\b-
+ The _\bf_\bo_\br_\bm_\ba_\bt is reused as necessary to consume all of the _\ba_\br_\bg_\bu_\b-
_\bm_\be_\bn_\bt_\bs. If the _\bf_\bo_\br_\bm_\ba_\bt requires more _\ba_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs than are supplied,
- the extra format specifications behave as if a zero value or
- null string, as appropriate, had been supplied. The return
- value is zero on success, non-zero if an invalid option is sup-
+ the extra format specifications behave as if a zero value or
+ null string, as appropriate, had been supplied. The return
+ value is zero on success, non-zero if an invalid option is sup-
plied or a write or assignment error occurs.
p\bpu\bus\bsh\bhd\bd [-\b-n\bn] [+_\bn] [-_\bn]
p\bpu\bus\bsh\bhd\bd [-\b-n\bn] [_\bd_\bi_\br]
Add a directory to the top of the directory stack, or rotate the
- stack, making the new top of the stack the current working di-
- rectory. With no arguments, p\bpu\bus\bsh\bhd\bd exchanges the top two ele-
- ments of the directory stack. Arguments, if supplied, have the
+ stack, making the new top of the stack the current working di-
+ rectory. With no arguments, p\bpu\bus\bsh\bhd\bd exchanges the top two ele-
+ ments of the directory stack. Arguments, if supplied, have the
following meanings:
- -\b-n\bn Suppress the normal change of directory when rotating or
- adding directories to the stack, only manipulate the
+ -\b-n\bn Suppress the normal change of directory when rotating or
+ adding directories to the stack, only manipulate the
stack.
+\b+_\bn Rotate the stack so that the _\bnth directory (counting from
- the left of the list shown by d\bdi\bir\brs\bs, starting with zero)
+ the left of the list shown by d\bdi\bir\brs\bs, starting with zero)
is at the top.
- -\b-_\bn Rotates the stack so that the _\bnth directory (counting
- from the right of the list shown by d\bdi\bir\brs\bs, starting with
+ -\b-_\bn Rotates the stack so that the _\bnth directory (counting
+ from the right of the list shown by d\bdi\bir\brs\bs, starting with
zero) is at the top.
_\bd_\bi_\br Adds _\bd_\bi_\br to the directory stack at the top.
After the stack has been modified, if the -\b-n\bn option was not sup-
- plied, p\bpu\bus\bsh\bhd\bd uses the c\bcd\bd builtin to change to the directory at
+ plied, p\bpu\bus\bsh\bhd\bd uses the c\bcd\bd builtin to change to the directory at
the top of the stack. If the c\bcd\bd fails, p\bpu\bus\bsh\bhd\bd returns a non-zero
value.
- Otherwise, if no arguments are supplied, p\bpu\bus\bsh\bhd\bd returns zero un-
- less the directory stack is empty. When rotating the directory
+ Otherwise, if no arguments are supplied, p\bpu\bus\bsh\bhd\bd returns zero un-
+ less the directory stack is empty. When rotating the directory
stack, p\bpu\bus\bsh\bhd\bd returns zero unless the directory stack is empty or
_\bn specifies a non-existent directory stack element.
- If the p\bpu\bus\bsh\bhd\bd command is successful, b\bba\bas\bsh\bh runs d\bdi\bir\brs\bs to show the
+ If the p\bpu\bus\bsh\bhd\bd command is successful, b\bba\bas\bsh\bh runs d\bdi\bir\brs\bs to show the
final contents of the directory stack.
p\bpw\bwd\bd [-\b-L\bLP\bP]
- Print the absolute pathname of the current working directory.
+ Print the absolute pathname of the current working directory.
The pathname printed contains no symbolic links if the -\b-P\bP option
is supplied or the -\b-o\bo p\bph\bhy\bys\bsi\bic\bca\bal\bl option to the s\bse\bet\bt builtin command
- is enabled. If the -\b-L\bL option is used, the pathname printed may
- contain symbolic links. The return status is 0 unless an error
+ is enabled. If the -\b-L\bL option is used, the pathname printed may
+ contain symbolic links. The return status is 0 unless an error
occurs while reading the name of the current directory or an in-
valid option is supplied.
r\bre\bea\bad\bd [-\b-E\bEe\ber\brs\bs] [-\b-a\ba _\ba_\bn_\ba_\bm_\be] [-\b-d\bd _\bd_\be_\bl_\bi_\bm] [-\b-i\bi _\bt_\be_\bx_\bt] [-\b-n\bn _\bn_\bc_\bh_\ba_\br_\bs] [-\b-N\bN _\bn_\bc_\bh_\ba_\br_\bs]
[-\b-p\bp _\bp_\br_\bo_\bm_\bp_\bt] [-\b-t\bt _\bt_\bi_\bm_\be_\bo_\bu_\bt] [-\b-u\bu _\bf_\bd] [_\bn_\ba_\bm_\be ...]
Read one line from the standard input, or from the file descrip-
- tor _\bf_\bd supplied as an argument to the -\b-u\bu option, split it into
- words as described above under W\bWo\bor\brd\bd S\bSp\bpl\bli\bit\btt\bti\bin\bng\bg, and assign the
- first word to the first _\bn_\ba_\bm_\be, the second word to the second
- _\bn_\ba_\bm_\be, and so on. If there are more words than names, the re-
- maining words and their intervening delimiters are assigned to
- the last _\bn_\ba_\bm_\be. If there are fewer words read from the input
- stream than names, the remaining names are assigned empty val-
- ues. The characters in the value of the I\bIF\bFS\bS variable are used
+ tor _\bf_\bd supplied as an argument to the -\b-u\bu option, split it into
+ words as described above under W\bWo\bor\brd\bd S\bSp\bpl\bli\bit\btt\bti\bin\bng\bg, and assign the
+ first word to the first _\bn_\ba_\bm_\be, the second word to the second
+ _\bn_\ba_\bm_\be, and so on. If there are more words than names, the re-
+ maining words and their intervening delimiters are assigned to
+ the last _\bn_\ba_\bm_\be. If there are fewer words read from the input
+ stream than names, the remaining names are assigned empty val-
+ ues. The characters in the value of the I\bIF\bFS\bS variable are used
to split the line into words using the same rules the shell uses
for expansion (described above under W\bWo\bor\brd\bd S\bSp\bpl\bli\bit\btt\bti\bin\bng\bg). The back-
- slash character (\\b\) removes any special meaning for the next
+ slash character (\\b\) removes any special meaning for the next
character read and is used for line continuation.
Options, if supplied, have the following meanings:
-\b-a\ba _\ba_\bn_\ba_\bm_\be
The words are assigned to sequential indices of the array
variable _\ba_\bn_\ba_\bm_\be, starting at 0. _\ba_\bn_\ba_\bm_\be is unset before any
- new values are assigned. Other _\bn_\ba_\bm_\be arguments are ig-
+ new values are assigned. Other _\bn_\ba_\bm_\be arguments are ig-
nored.
-\b-d\bd _\bd_\be_\bl_\bi_\bm
- The first character of _\bd_\be_\bl_\bi_\bm terminates the input line,
- rather than newline. If _\bd_\be_\bl_\bi_\bm is the empty string, r\bre\bea\bad\bd
+ The first character of _\bd_\be_\bl_\bi_\bm terminates the input line,
+ rather than newline. If _\bd_\be_\bl_\bi_\bm is the empty string, r\bre\bea\bad\bd
will terminate a line when it reads a NUL character.
- -\b-e\be If the standard input is coming from a terminal, r\bre\bea\bad\bd
- uses r\bre\bea\bad\bdl\bli\bin\bne\be (see R\bRE\bEA\bAD\bDL\bLI\bIN\bNE\bE above) to obtain the line.
- R\bRe\bea\bad\bdl\bli\bin\bne\be uses the current (or default, if line editing
- was not previously active) editing settings, but uses
+ -\b-e\be If the standard input is coming from a terminal, r\bre\bea\bad\bd
+ uses r\bre\bea\bad\bdl\bli\bin\bne\be (see R\bRE\bEA\bAD\bDL\bLI\bIN\bNE\bE above) to obtain the line.
+ R\bRe\bea\bad\bdl\bli\bin\bne\be uses the current (or default, if line editing
+ was not previously active) editing settings, but uses
r\bre\bea\bad\bdl\bli\bin\bne\be's default filename completion.
- -\b-E\bE If the standard input is coming from a terminal, r\bre\bea\bad\bd
- uses r\bre\bea\bad\bdl\bli\bin\bne\be (see R\bRE\bEA\bAD\bDL\bLI\bIN\bNE\bE above) to obtain the line.
- R\bRe\bea\bad\bdl\bli\bin\bne\be uses the current (or default, if line editing
- was not previously active) editing settings, but uses
+ -\b-E\bE If the standard input is coming from a terminal, r\bre\bea\bad\bd
+ uses r\bre\bea\bad\bdl\bli\bin\bne\be (see R\bRE\bEA\bAD\bDL\bLI\bIN\bNE\bE above) to obtain the line.
+ R\bRe\bea\bad\bdl\bli\bin\bne\be uses the current (or default, if line editing
+ was not previously active) editing settings, but uses
bash's default completion, including programmable comple-
tion.
-\b-i\bi _\bt_\be_\bx_\bt
- If r\bre\bea\bad\bdl\bli\bin\bne\be is being used to read the line, r\bre\bea\bad\bd places
+ If r\bre\bea\bad\bdl\bli\bin\bne\be is being used to read the line, r\bre\bea\bad\bd places
_\bt_\be_\bx_\bt into the editing buffer before editing begins.
-\b-n\bn _\bn_\bc_\bh_\ba_\br_\bs
- r\bre\bea\bad\bd returns after reading _\bn_\bc_\bh_\ba_\br_\bs characters rather than
- waiting for a complete line of input, unless it encoun-
- ters EOF or r\bre\bea\bad\bd times out, but honors a delimiter if it
+ r\bre\bea\bad\bd returns after reading _\bn_\bc_\bh_\ba_\br_\bs characters rather than
+ waiting for a complete line of input, unless it encoun-
+ ters EOF or r\bre\bea\bad\bd times out, but honors a delimiter if it
reads fewer than _\bn_\bc_\bh_\ba_\br_\bs characters before the delimiter.
-\b-N\bN _\bn_\bc_\bh_\ba_\br_\bs
- r\bre\bea\bad\bd returns after reading exactly _\bn_\bc_\bh_\ba_\br_\bs characters
- rather than waiting for a complete line of input, unless
+ r\bre\bea\bad\bd returns after reading exactly _\bn_\bc_\bh_\ba_\br_\bs characters
+ rather than waiting for a complete line of input, unless
it encounters EOF or r\bre\bea\bad\bd times out. Any delimiter char-
- acters in the input are not treated specially and do not
+ acters in the input are not treated specially and do not
cause r\bre\bea\bad\bd to return until it has read _\bn_\bc_\bh_\ba_\br_\bs characters.
The result is not split on the characters in I\bIF\bFS\bS; the in-
tent is that the variable is assigned exactly the charac-
- ters read (with the exception of backslash; see the -\b-r\br
+ ters read (with the exception of backslash; see the -\b-r\br
option below).
-\b-p\bp _\bp_\br_\bo_\bm_\bp_\bt
Display _\bp_\br_\bo_\bm_\bp_\bt on standard error, without a trailing new-
- line, before attempting to read any input, but only if
+ line, before attempting to read any input, but only if
input is coming from a terminal.
-\b-r\br Backslash does not act as an escape character. The back-
- slash is considered to be part of the line. In particu-
- lar, a backslash-newline pair may not then be used as a
+ slash is considered to be part of the line. In particu-
+ lar, a backslash-newline pair may not then be used as a
line continuation.
-\b-s\bs Silent mode. If input is coming from a terminal, charac-
ters are not echoed.
-\b-t\bt _\bt_\bi_\bm_\be_\bo_\bu_\bt
- Cause r\bre\bea\bad\bd to time out and return failure if it does not
- read a complete line of input (or a specified number of
- characters) within _\bt_\bi_\bm_\be_\bo_\bu_\bt seconds. _\bt_\bi_\bm_\be_\bo_\bu_\bt may be a
- decimal number with a fractional portion following the
- decimal point. This option is only effective if r\bre\bea\bad\bd is
- reading input from a terminal, pipe, or other special
- file; it has no effect when reading from regular files.
- If r\bre\bea\bad\bd times out, it saves any partial input read into
- the specified variable _\bn_\ba_\bm_\be, and the exit status is
- greater than 128. If _\bt_\bi_\bm_\be_\bo_\bu_\bt is 0, r\bre\bea\bad\bd returns immedi-
- ately, without trying to read any data. In this case,
- the exit status is 0 if input is available on the speci-
- fied file descriptor, or the read will return EOF, non-
+ Cause r\bre\bea\bad\bd to time out and return failure if it does not
+ read a complete line of input (or a specified number of
+ characters) within _\bt_\bi_\bm_\be_\bo_\bu_\bt seconds. _\bt_\bi_\bm_\be_\bo_\bu_\bt may be a
+ decimal number with a fractional portion following the
+ decimal point. This option is only effective if r\bre\bea\bad\bd is
+ reading input from a terminal, pipe, or other special
+ file; it has no effect when reading from regular files.
+ If r\bre\bea\bad\bd times out, it saves any partial input read into
+ the specified variable _\bn_\ba_\bm_\be, and the exit status is
+ greater than 128. If _\bt_\bi_\bm_\be_\bo_\bu_\bt is 0, r\bre\bea\bad\bd returns immedi-
+ ately, without trying to read any data. In this case,
+ the exit status is 0 if input is available on the speci-
+ fied file descriptor, or the read will return EOF, non-
zero otherwise.
- -\b-u\bu _\bf_\bd Read input from file descriptor _\bf_\bd instead of the stan-
+ -\b-u\bu _\bf_\bd Read input from file descriptor _\bf_\bd instead of the stan-
dard input.
- Other than the case where _\bd_\be_\bl_\bi_\bm is the empty string, r\bre\bea\bad\bd ig-
+ Other than the case where _\bd_\be_\bl_\bi_\bm is the empty string, r\bre\bea\bad\bd ig-
nores any NUL characters in the input.
- If no _\bn_\ba_\bm_\be_\bs are supplied, r\bre\bea\bad\bd assigns the line read, without
- the ending delimiter but otherwise unmodified, to the variable
+ If no _\bn_\ba_\bm_\be_\bs are supplied, r\bre\bea\bad\bd assigns the line read, without
+ the ending delimiter but otherwise unmodified, to the variable
R\bRE\bEP\bPL\bLY\bY.
The exit status is zero, unless end-of-file is encountered, r\bre\bea\bad\bd
- times out (in which case the status is greater than 128), a
+ times out (in which case the status is greater than 128), a
variable assignment error (such as assigning to a readonly vari-
- able) occurs, or an invalid file descriptor is supplied as the
+ able) occurs, or an invalid file descriptor is supplied as the
argument to -\b-u\bu.
r\bre\bea\bad\bdo\bon\bnl\bly\by [-\b-a\baA\bAf\bf] [-\b-p\bp] [_\bn_\ba_\bm_\be[=_\bw_\bo_\br_\bd] ...]
- The given _\bn_\ba_\bm_\be_\bs are marked readonly; the values of these _\bn_\ba_\bm_\be_\bs
+ The given _\bn_\ba_\bm_\be_\bs are marked readonly; the values of these _\bn_\ba_\bm_\be_\bs
may not be changed by subsequent assignment or unset. If the -\b-f\bf
- option is supplied, each _\bn_\ba_\bm_\be refers to a shell function. The
- -\b-a\ba option restricts the variables to indexed arrays; the -\b-A\bA op-
+ option is supplied, each _\bn_\ba_\bm_\be refers to a shell function. The
+ -\b-a\ba option restricts the variables to indexed arrays; the -\b-A\bA op-
tion restricts the variables to associative arrays. If both op-
- tions are supplied, -\b-A\bA takes precedence. If no _\bn_\ba_\bm_\be arguments
- are supplied, or if the -\b-p\bp option is supplied, print a list of
- all readonly names. The other options may be used to restrict
+ tions are supplied, -\b-A\bA takes precedence. If no _\bn_\ba_\bm_\be arguments
+ are supplied, or if the -\b-p\bp option is supplied, print a list of
+ all readonly names. The other options may be used to restrict
the output to a subset of the set of readonly names. The -\b-p\bp op-
tion displays output in a format that may be reused as input.
- r\bre\bea\bad\bdo\bon\bnl\bly\by allows the value of a variable to be set at the same
+ r\bre\bea\bad\bdo\bon\bnl\bly\by allows the value of a variable to be set at the same
time the readonly attribute is changed by following the variable
- name with =_\bv_\ba_\bl_\bu_\be. This sets the value of the variable is to
+ name with =_\bv_\ba_\bl_\bu_\be. This sets the value of the variable is to
_\bv_\ba_\bl_\bu_\be while modifying the readonly attribute.
- The return status is 0 unless an invalid option is encountered,
- one of the _\bn_\ba_\bm_\be_\bs is not a valid shell variable name, or -\b-f\bf is
+ The return status is 0 unless an invalid option is encountered,
+ one of the _\bn_\ba_\bm_\be_\bs is not a valid shell variable name, or -\b-f\bf is
supplied with a _\bn_\ba_\bm_\be that is not a function.
r\bre\bet\btu\bur\brn\bn [_\bn]
- Stop executing a shell function or sourced file and return the
+ Stop executing a shell function or sourced file and return the
value specified by _\bn to its caller. If _\bn is omitted, the return
- status is that of the last command executed. If r\bre\bet\btu\bur\brn\bn is exe-
- cuted by a trap handler, the last command used to determine the
+ status is that of the last command executed. If r\bre\bet\btu\bur\brn\bn is exe-
+ cuted by a trap handler, the last command used to determine the
status is the last command executed before the trap handler. If
r\bre\bet\btu\bur\brn\bn is executed during a D\bDE\bEB\bBU\bUG\bG trap, the last command used to
- determine the status is the last command executed by the trap
+ determine the status is the last command executed by the trap
handler before r\bre\bet\btu\bur\brn\bn was invoked.
When r\bre\bet\btu\bur\brn\bn is used to terminate execution of a script being ex-
- ecuted by the .\b. (s\bso\bou\bur\brc\bce\be) command, it causes the shell to stop
- executing that script and return either _\bn or the exit status of
- the last command executed within the script as the exit status
- of the script. If _\bn is supplied, the return value is its least
+ ecuted by the .\b. (s\bso\bou\bur\brc\bce\be) command, it causes the shell to stop
+ executing that script and return either _\bn or the exit status of
+ the last command executed within the script as the exit status
+ of the script. If _\bn is supplied, the return value is its least
significant 8 bits.
- Any command associated with the R\bRE\bET\bTU\bUR\bRN\bN trap is executed before
+ Any command associated with the R\bRE\bET\bTU\bUR\bRN\bN trap is executed before
execution resumes after the function or script.
- The return status is non-zero if r\bre\bet\btu\bur\brn\bn is supplied a non-nu-
+ The return status is non-zero if r\bre\bet\btu\bur\brn\bn is supplied a non-nu-
meric argument, or is used outside a function and not during ex-
ecution of a script by .\b. or s\bso\bou\bur\brc\bce\be.
s\bse\bet\bt [-\b-a\bab\bbe\bef\bfh\bhk\bkm\bmn\bnp\bpt\btu\buv\bvx\bxB\bBC\bCE\bEH\bHP\bPT\bT] [-\b-o\bo _\bo_\bp_\bt_\bi_\bo_\bn_\b-_\bn_\ba_\bm_\be] [-\b--\b-] [-\b-] [_\ba_\br_\bg ...]
s\bse\bet\bt [+\b+a\bab\bbe\bef\bfh\bhk\bkm\bmn\bnp\bpt\btu\buv\bvx\bxB\bBC\bCE\bEH\bHP\bPT\bT] [+\b+o\bo _\bo_\bp_\bt_\bi_\bo_\bn_\b-_\bn_\ba_\bm_\be] [-\b--\b-] [-\b-] [_\ba_\br_\bg ...]
s\bse\bet\bt -\b-o\bo
- s\bse\bet\bt +\b+o\bo Without options, display the name and value of each shell vari-
- able in a format that can be reused as input for setting or re-
+ s\bse\bet\bt +\b+o\bo Without options, display the name and value of each shell vari-
+ able in a format that can be reused as input for setting or re-
setting the currently-set variables. Read-only variables cannot
- be reset. In posix mode, only shell variables are listed. The
- output is sorted according to the current locale. When options
- are specified, they set or unset shell attributes. Any argu-
- ments remaining after option processing are treated as values
+ be reset. In posix mode, only shell variables are listed. The
+ output is sorted according to the current locale. When options
+ are specified, they set or unset shell attributes. Any argu-
+ ments remaining after option processing are treated as values
for the positional parameters and are assigned, in order, to $\b$1\b1,
- $\b$2\b2, ..., $\b$_\bn. Options, if specified, have the following mean-
+ $\b$2\b2, ..., $\b$_\bn. Options, if specified, have the following mean-
ings:
-\b-a\ba Each variable or function that is created or modified is
- given the export attribute and marked for export to the
+ given the export attribute and marked for export to the
environment of subsequent commands.
- -\b-b\bb Report the status of terminated background jobs immedi-
+ -\b-b\bb Report the status of terminated background jobs immedi-
ately, rather than before the next primary prompt or af-
- ter a foreground command terminates. This is effective
+ ter a foreground command terminates. This is effective
only when job control is enabled.
- -\b-e\be Exit immediately if a _\bp_\bi_\bp_\be_\bl_\bi_\bn_\be (which may consist of a
- single _\bs_\bi_\bm_\bp_\bl_\be _\bc_\bo_\bm_\bm_\ba_\bn_\bd), a _\bl_\bi_\bs_\bt, or a _\bc_\bo_\bm_\bp_\bo_\bu_\bn_\bd _\bc_\bo_\bm_\bm_\ba_\bn_\bd
+ -\b-e\be Exit immediately if a _\bp_\bi_\bp_\be_\bl_\bi_\bn_\be (which may consist of a
+ single _\bs_\bi_\bm_\bp_\bl_\be _\bc_\bo_\bm_\bm_\ba_\bn_\bd), a _\bl_\bi_\bs_\bt, or a _\bc_\bo_\bm_\bp_\bo_\bu_\bn_\bd _\bc_\bo_\bm_\bm_\ba_\bn_\bd
(see S\bSH\bHE\bEL\bLL\bL G\bGR\bRA\bAM\bMM\bMA\bAR\bR above), exits with a non-zero status.
- The shell does not exit if the command that fails is
- part of the command list immediately following a w\bwh\bhi\bil\ble\be
- or u\bun\bnt\bti\bil\bl keyword, part of the test following the i\bif\bf or
- e\bel\bli\bif\bf reserved words, part of any command executed in a
- &\b&&\b& or |\b||\b| list except the command following the final &\b&&\b&
- or |\b||\b|, any command in a pipeline but the last (subject
- to the state of the p\bpi\bip\bpe\bef\bfa\bai\bil\bl shell option), or if the
- command's return value is being inverted with !\b!. If a
- compound command other than a subshell returns a non-
- zero status because a command failed while -\b-e\be was being
- ignored, the shell does not exit. A trap on E\bER\bRR\bR, if
- set, is executed before the shell exits. This option
+ The shell does not exit if the command that fails is
+ part of the command list immediately following a w\bwh\bhi\bil\ble\be
+ or u\bun\bnt\bti\bil\bl keyword, part of the test following the i\bif\bf or
+ e\bel\bli\bif\bf reserved words, part of any command executed in a
+ &\b&&\b& or |\b||\b| list except the command following the final &\b&&\b&
+ or |\b||\b|, any command in a pipeline but the last (subject
+ to the state of the p\bpi\bip\bpe\bef\bfa\bai\bil\bl shell option), or if the
+ command's return value is being inverted with !\b!. If a
+ compound command other than a subshell returns a non-
+ zero status because a command failed while -\b-e\be was being
+ ignored, the shell does not exit. A trap on E\bER\bRR\bR, if
+ set, is executed before the shell exits. This option
applies to the shell environment and each subshell envi-
- ronment separately (see C\bCO\bOM\bMM\bMA\bAN\bND\bD E\bEX\bXE\bEC\bCU\bUT\bTI\bIO\bON\bN E\bEN\bNV\bVI\bIR\bRO\bON\bNM\bME\bEN\bNT\bT
+ ronment separately (see C\bCO\bOM\bMM\bMA\bAN\bND\bD E\bEX\bXE\bEC\bCU\bUT\bTI\bIO\bON\bN E\bEN\bNV\bVI\bIR\bRO\bON\bNM\bME\bEN\bNT\bT
above), and may cause subshells to exit before executing
all the commands in the subshell.
- If a compound command or shell function executes in a
- context where -\b-e\be is being ignored, none of the commands
- executed within the compound command or function body
- will be affected by the -\b-e\be setting, even if -\b-e\be is set
- and a command returns a failure status. If a compound
- command or shell function sets -\b-e\be while executing in a
- context where -\b-e\be is ignored, that setting will not have
- any effect until the compound command or the command
+ If a compound command or shell function executes in a
+ context where -\b-e\be is being ignored, none of the commands
+ executed within the compound command or function body
+ will be affected by the -\b-e\be setting, even if -\b-e\be is set
+ and a command returns a failure status. If a compound
+ command or shell function sets -\b-e\be while executing in a
+ context where -\b-e\be is ignored, that setting will not have
+ any effect until the compound command or the command
containing the function call completes.
-\b-f\bf Disable pathname expansion.
- -\b-h\bh Remember the location of commands as they are looked up
+ -\b-h\bh Remember the location of commands as they are looked up
for execution. This is enabled by default.
- -\b-k\bk All arguments in the form of assignment statements are
- placed in the environment for a command, not just those
+ -\b-k\bk All arguments in the form of assignment statements are
+ placed in the environment for a command, not just those
that precede the command name.
- -\b-m\bm Monitor mode. Job control is enabled. This option is
- on by default for interactive shells on systems that
- support it (see J\bJO\bOB\bB C\bCO\bON\bNT\bTR\bRO\bOL\bL above). All processes run
+ -\b-m\bm Monitor mode. Job control is enabled. This option is
+ on by default for interactive shells on systems that
+ support it (see J\bJO\bOB\bB C\bCO\bON\bNT\bTR\bRO\bOL\bL above). All processes run
in a separate process group. When a background job com-
pletes, the shell prints a line containing its exit sta-
tus.
-\b-n\bn Read commands but do not execute them. This may be used
- to check a shell script for syntax errors. This is ig-
+ to check a shell script for syntax errors. This is ig-
nored by interactive shells.
-\b-o\bo _\bo_\bp_\bt_\bi_\bo_\bn_\b-_\bn_\ba_\bm_\be
The _\bo_\bp_\bt_\bi_\bo_\bn_\b-_\bn_\ba_\bm_\be can be one of the following:
Same as -\b-a\ba.
b\bbr\bra\bac\bce\bee\bex\bxp\bpa\ban\bnd\bd
Same as -\b-B\bB.
- e\bem\bma\bac\bcs\bs Use an emacs-style command line editing inter-
+ e\bem\bma\bac\bcs\bs Use an emacs-style command line editing inter-
face. This is enabled by default when the shell
is interactive, unless the shell is started with
- the -\b--\b-n\bno\boe\bed\bdi\bit\bti\bin\bng\bg option. This also affects the
+ the -\b--\b-n\bno\boe\bed\bdi\bit\bti\bin\bng\bg option. This also affects the
editing interface used for r\bre\bea\bad\bd -\b-e\be.
e\ber\brr\bre\bex\bxi\bit\bt Same as -\b-e\be.
e\ber\brr\brt\btr\bra\bac\bce\be
H\bHI\bIS\bST\bTO\bOR\bRY\bY. This option is on by default in inter-
active shells.
i\big\bgn\bno\bor\bre\bee\beo\bof\bf
- The effect is as if the shell command
+ The effect is as if the shell command
"IGNOREEOF=10" had been executed (see S\bSh\bhe\bel\bll\bl
V\bVa\bar\bri\bia\bab\bbl\ble\bes\bs above).
k\bke\bey\byw\bwo\bor\brd\bd Same as -\b-k\bk.
p\bph\bhy\bys\bsi\bic\bca\bal\bl
Same as -\b-P\bP.
p\bpi\bip\bpe\bef\bfa\bai\bil\bl
- If set, the return value of a pipeline is the
- value of the last (rightmost) command to exit
- with a non-zero status, or zero if all commands
- in the pipeline exit successfully. This option
+ If set, the return value of a pipeline is the
+ value of the last (rightmost) command to exit
+ with a non-zero status, or zero if all commands
+ in the pipeline exit successfully. This option
is disabled by default.
- p\bpo\bos\bsi\bix\bx Change the behavior of b\bba\bas\bsh\bh where the default
- operation differs from the POSIX standard to
- match the standard (_\bp_\bo_\bs_\bi_\bx _\bm_\bo_\bd_\be). See S\bSE\bEE\bE A\bAL\bLS\bSO\bO
+ p\bpo\bos\bsi\bix\bx Change the behavior of b\bba\bas\bsh\bh where the default
+ operation differs from the POSIX standard to
+ match the standard (_\bp_\bo_\bs_\bi_\bx _\bm_\bo_\bd_\be). See S\bSE\bEE\bE A\bAL\bLS\bSO\bO
below for a reference to a document that details
how posix mode affects bash's behavior.
p\bpr\bri\biv\bvi\bil\ble\beg\bge\bed\bd
Same as -\b-p\bp.
v\bve\ber\brb\bbo\bos\bse\be Same as -\b-v\bv.
- v\bvi\bi Use a vi-style command line editing interface.
+ v\bvi\bi Use a vi-style command line editing interface.
This also affects the editing interface used for
r\bre\bea\bad\bd -\b-e\be.
x\bxt\btr\bra\bac\bce\be Same as -\b-x\bx.
- If -\b-o\bo is supplied with no _\bo_\bp_\bt_\bi_\bo_\bn_\b-_\bn_\ba_\bm_\be, s\bse\bet\bt prints the
- current shell option settings. If +\b+o\bo is supplied with
- no _\bo_\bp_\bt_\bi_\bo_\bn_\b-_\bn_\ba_\bm_\be, s\bse\bet\bt prints a series of s\bse\bet\bt commands to
- recreate the current option settings on the standard
+ If -\b-o\bo is supplied with no _\bo_\bp_\bt_\bi_\bo_\bn_\b-_\bn_\ba_\bm_\be, s\bse\bet\bt prints the
+ current shell option settings. If +\b+o\bo is supplied with
+ no _\bo_\bp_\bt_\bi_\bo_\bn_\b-_\bn_\ba_\bm_\be, s\bse\bet\bt prints a series of s\bse\bet\bt commands to
+ recreate the current option settings on the standard
output.
- -\b-p\bp Turn on _\bp_\br_\bi_\bv_\bi_\bl_\be_\bg_\be_\bd mode. In this mode, the shell does
- not read the $\b$E\bEN\bNV\bV and $\b$B\bBA\bAS\bSH\bH_\b_E\bEN\bNV\bV files, shell functions
- are not inherited from the environment, and the S\bSH\bHE\bEL\bL-\b-
- L\bLO\bOP\bPT\bTS\bS, B\bBA\bAS\bSH\bHO\bOP\bPT\bTS\bS, C\bCD\bDP\bPA\bAT\bTH\bH, and G\bGL\bLO\bOB\bBI\bIG\bGN\bNO\bOR\bRE\bE variables, if
- they appear in the environment, are ignored. If the
- shell is started with the effective user (group) id not
- equal to the real user (group) id, and the -\b-p\bp option is
- not supplied, these actions are taken and the effective
+ -\b-p\bp Turn on _\bp_\br_\bi_\bv_\bi_\bl_\be_\bg_\be_\bd mode. In this mode, the shell does
+ not read the $\b$E\bEN\bNV\bV and $\b$B\bBA\bAS\bSH\bH_\b_E\bEN\bNV\bV files, shell functions
+ are not inherited from the environment, and the S\bSH\bHE\bEL\bL-\b-
+ L\bLO\bOP\bPT\bTS\bS, B\bBA\bAS\bSH\bHO\bOP\bPT\bTS\bS, C\bCD\bDP\bPA\bAT\bTH\bH, and G\bGL\bLO\bOB\bBI\bIG\bGN\bNO\bOR\bRE\bE variables, if
+ they appear in the environment, are ignored. If the
+ shell is started with the effective user (group) id not
+ equal to the real user (group) id, and the -\b-p\bp option is
+ not supplied, these actions are taken and the effective
user id is set to the real user id. If the -\b-p\bp option is
supplied at startup, the effective user id is not reset.
- Turning this option off causes the effective user and
+ Turning this option off causes the effective user and
group ids to be set to the real user and group ids.
-\b-r\br Enable restricted shell mode. This option cannot be un-
set once it has been set.
-\b-t\bt Exit after reading and executing one command.
-\b-u\bu Treat unset variables and parameters other than the spe-
- cial parameters "@" and "*", or array variables sub-
- scripted with "@" or "*", as an error when performing
- parameter expansion. If expansion is attempted on an
- unset variable or parameter, the shell prints an error
- message, and, if not interactive, exits with a non-zero
+ cial parameters "@" and "*", or array variables sub-
+ scripted with "@" or "*", as an error when performing
+ parameter expansion. If expansion is attempted on an
+ unset variable or parameter, the shell prints an error
+ message, and, if not interactive, exits with a non-zero
status.
-\b-v\bv Print shell input lines as they are read.
- -\b-x\bx After expanding each _\bs_\bi_\bm_\bp_\bl_\be _\bc_\bo_\bm_\bm_\ba_\bn_\bd, f\bfo\bor\br command, c\bca\bas\bse\be
+ -\b-x\bx After expanding each _\bs_\bi_\bm_\bp_\bl_\be _\bc_\bo_\bm_\bm_\ba_\bn_\bd, f\bfo\bor\br command, c\bca\bas\bse\be
command, s\bse\bel\ble\bec\bct\bt command, or arithmetic f\bfo\bor\br command, dis-
- play the expanded value of P\bPS\bS4\b4, followed by the command
- and its expanded arguments or associated word list, to
+ play the expanded value of P\bPS\bS4\b4, followed by the command
+ and its expanded arguments or associated word list, to
the standard error.
- -\b-B\bB The shell performs brace expansion (see B\bBr\bra\bac\bce\be E\bEx\bxp\bpa\ban\bns\bsi\bio\bon\bn
+ -\b-B\bB The shell performs brace expansion (see B\bBr\bra\bac\bce\be E\bEx\bxp\bpa\ban\bns\bsi\bio\bon\bn
above). This is on by default.
- -\b-C\bC If set, b\bba\bas\bsh\bh does not overwrite an existing file with
- the >\b>, >\b>&\b&, and <\b<>\b> redirection operators. Using the
- redirection operator >\b>|\b| instead of >\b> will override this
+ -\b-C\bC If set, b\bba\bas\bsh\bh does not overwrite an existing file with
+ the >\b>, >\b>&\b&, and <\b<>\b> redirection operators. Using the
+ redirection operator >\b>|\b| instead of >\b> will override this
and force the creation of an output file.
-\b-E\bE If set, any trap on E\bER\bRR\bR is inherited by shell functions,
- command substitutions, and commands executed in a sub-
- shell environment. The E\bER\bRR\bR trap is normally not inher-
+ command substitutions, and commands executed in a sub-
+ shell environment. The E\bER\bRR\bR trap is normally not inher-
ited in such cases.
-\b-H\bH Enable !\b! style history substitution. This option is on
by default when the shell is interactive.
- -\b-P\bP If set, the shell does not resolve symbolic links when
- executing commands such as c\bcd\bd that change the current
+ -\b-P\bP If set, the shell does not resolve symbolic links when
+ executing commands such as c\bcd\bd that change the current
working directory. It uses the physical directory
structure instead. By default, b\bba\bas\bsh\bh follows the logical
- chain of directories when performing commands which
+ chain of directories when performing commands which
change the current directory.
- -\b-T\bT If set, any traps on D\bDE\bEB\bBU\bUG\bG and R\bRE\bET\bTU\bUR\bRN\bN are inherited by
+ -\b-T\bT If set, any traps on D\bDE\bEB\bBU\bUG\bG and R\bRE\bET\bTU\bUR\bRN\bN are inherited by
shell functions, command substitutions, and commands ex-
- ecuted in a subshell environment. The D\bDE\bEB\bBU\bUG\bG and R\bRE\bET\bTU\bUR\bRN\bN
+ ecuted in a subshell environment. The D\bDE\bEB\bBU\bUG\bG and R\bRE\bET\bTU\bUR\bRN\bN
traps are normally not inherited in such cases.
-\b--\b- If no arguments follow this option, unset the positional
parameters. Otherwise, set the positional parameters to
the _\ba_\br_\bgs, even if some of them begin with a -\b-.
-\b- Signal the end of options, and assign all remaining _\ba_\br_\bgs
to the positional parameters. The -\b-x\bx and -\b-v\bv options are
- turned off. If there are no _\ba_\br_\bgs, the positional para-
+ turned off. If there are no _\ba_\br_\bgs, the positional para-
meters remain unchanged.
- The options are off by default unless otherwise noted. Using +
- rather than - causes these options to be turned off. The op-
+ The options are off by default unless otherwise noted. Using +
+ rather than - causes these options to be turned off. The op-
tions can also be specified as arguments to an invocation of the
- shell. The current set of options may be found in $\b$-\b-. The re-
- turn status is always zero unless an invalid option is encoun-
+ shell. The current set of options may be found in $\b$-\b-. The re-
+ turn status is always zero unless an invalid option is encoun-
tered.
s\bsh\bhi\bif\bft\bt [_\bn]
Rename positional parameters from _\bn+1 ... to $\b$1\b1 .\b..\b..\b..\b. Parameters
- represented by the numbers $\b$#\b# down to $\b$#\b#-_\bn+1 are unset. _\bn must
- be a non-negative number less than or equal to $\b$#\b#. If _\bn is 0,
- no parameters are changed. If _\bn is not given, it is assumed to
- be 1. If _\bn is greater than $\b$#\b#, the positional parameters are
- not changed. The return status is greater than zero if _\bn is
+ represented by the numbers $\b$#\b# down to $\b$#\b#-_\bn+1 are unset. _\bn must
+ be a non-negative number less than or equal to $\b$#\b#. If _\bn is 0,
+ no parameters are changed. If _\bn is not given, it is assumed to
+ be 1. If _\bn is greater than $\b$#\b#, the positional parameters are
+ not changed. The return status is greater than zero if _\bn is
greater than $\b$#\b# or less than zero; otherwise 0.
s\bsh\bho\bop\bpt\bt [-\b-p\bpq\bqs\bsu\bu] [-\b-o\bo] [_\bo_\bp_\bt_\bn_\ba_\bm_\be ...]
- Toggle the values of settings controlling optional shell behav-
- ior. The settings can be either those listed below, or, if the
+ Toggle the values of settings controlling optional shell behav-
+ ior. The settings can be either those listed below, or, if the
-\b-o\bo option is used, those available with the -\b-o\bo option to the s\bse\bet\bt
builtin command.
- With no options, or with the -\b-p\bp option, display a list of all
- settable options, with an indication of whether or not each is
- set; if any _\bo_\bp_\bt_\bn_\ba_\bm_\be_\bs are supplied, the output is restricted to
+ With no options, or with the -\b-p\bp option, display a list of all
+ settable options, with an indication of whether or not each is
+ set; if any _\bo_\bp_\bt_\bn_\ba_\bm_\be_\bs are supplied, the output is restricted to
those options. The -\b-p\bp option displays output in a form that may
be reused as input.
Other options have the following meanings:
-\b-s\bs Enable (set) each _\bo_\bp_\bt_\bn_\ba_\bm_\be.
-\b-u\bu Disable (unset) each _\bo_\bp_\bt_\bn_\ba_\bm_\be.
- -\b-q\bq Suppresses normal output (quiet mode); the return status
+ -\b-q\bq Suppresses normal output (quiet mode); the return status
indicates whether the _\bo_\bp_\bt_\bn_\ba_\bm_\be is set or unset. If multi-
- ple _\bo_\bp_\bt_\bn_\ba_\bm_\be arguments are supplied with -\b-q\bq, the return
+ ple _\bo_\bp_\bt_\bn_\ba_\bm_\be arguments are supplied with -\b-q\bq, the return
status is zero if all _\bo_\bp_\bt_\bn_\ba_\bm_\be_\bs are enabled; non-zero oth-
erwise.
- -\b-o\bo Restricts the values of _\bo_\bp_\bt_\bn_\ba_\bm_\be to be those defined for
+ -\b-o\bo Restricts the values of _\bo_\bp_\bt_\bn_\ba_\bm_\be to be those defined for
the -\b-o\bo option to the s\bse\bet\bt builtin.
- If either -\b-s\bs or -\b-u\bu is used with no _\bo_\bp_\bt_\bn_\ba_\bm_\be arguments, s\bsh\bho\bop\bpt\bt
- shows only those options which are set or unset, respectively.
- Unless otherwise noted, the s\bsh\bho\bop\bpt\bt options are disabled (unset)
+ If either -\b-s\bs or -\b-u\bu is used with no _\bo_\bp_\bt_\bn_\ba_\bm_\be arguments, s\bsh\bho\bop\bpt\bt
+ shows only those options which are set or unset, respectively.
+ Unless otherwise noted, the s\bsh\bho\bop\bpt\bt options are disabled (unset)
by default.
- The return status when listing options is zero if all _\bo_\bp_\bt_\bn_\ba_\bm_\be_\bs
- are enabled, non-zero otherwise. When setting or unsetting op-
- tions, the return status is zero unless an _\bo_\bp_\bt_\bn_\ba_\bm_\be is not a
+ The return status when listing options is zero if all _\bo_\bp_\bt_\bn_\ba_\bm_\be_\bs
+ are enabled, non-zero otherwise. When setting or unsetting op-
+ tions, the return status is zero unless an _\bo_\bp_\bt_\bn_\ba_\bm_\be is not a
valid shell option.
The list of s\bsh\bho\bop\bpt\bt options is:
a\bar\brr\bra\bay\by_\b_e\bex\bxp\bpa\ban\bnd\bd_\b_o\bon\bnc\bce\be
- If set, the shell suppresses multiple evaluation of as-
+ If set, the shell suppresses multiple evaluation of as-
sociative and indexed array subscripts during arithmetic
expression evaluation, while executing builtins that can
- perform variable assignments, and while executing
+ perform variable assignments, and while executing
builtins that perform array dereferencing.
a\bas\bss\bso\boc\bc_\b_e\bex\bxp\bpa\ban\bnd\bd_\b_o\bon\bnc\bce\be
Deprecated; a synonym for a\bar\brr\bra\bay\by_\b_e\bex\bxp\bpa\ban\bnd\bd_\b_o\bon\bnc\bce\be.
- a\bau\but\bto\boc\bcd\bd If set, a command name that is the name of a directory
- is executed as if it were the argument to the c\bcd\bd com-
+ a\bau\but\bto\boc\bcd\bd If set, a command name that is the name of a directory
+ is executed as if it were the argument to the c\bcd\bd com-
mand. This option is only used by interactive shells.
b\bba\bas\bsh\bh_\b_s\bso\bou\bur\brc\bce\be_\b_f\bfu\bul\bll\blp\bpa\bat\bth\bh
- If set, filenames added to the B\bBA\bAS\bSH\bH_\b_S\bSO\bOU\bUR\bRC\bCE\bE array vari-
- able are converted to full pathnames (see S\bSh\bhe\bel\bll\bl V\bVa\bar\bri\bi-\b-
+ If set, filenames added to the B\bBA\bAS\bSH\bH_\b_S\bSO\bOU\bUR\bRC\bCE\bE array vari-
+ able are converted to full pathnames (see S\bSh\bhe\bel\bll\bl V\bVa\bar\bri\bi-\b-
a\bab\bbl\ble\bes\bs above).
c\bcd\bda\bab\bbl\ble\be_\b_v\bva\bar\brs\bs
- If set, an argument to the c\bcd\bd builtin command that is
- not a directory is assumed to be the name of a variable
+ If set, an argument to the c\bcd\bd builtin command that is
+ not a directory is assumed to be the name of a variable
whose value is the directory to change to.
- c\bcd\bds\bsp\bpe\bel\bll\bl If set, the c\bcd\bd command attempts to correct minor errors
- in the spelling of a directory component. Minor errors
- include transposed characters, a missing character, and
+ c\bcd\bds\bsp\bpe\bel\bll\bl If set, the c\bcd\bd command attempts to correct minor errors
+ in the spelling of a directory component. Minor errors
+ include transposed characters, a missing character, and
one extra character. If c\bcd\bd corrects the directory name,
- it prints the corrected filename, and the command pro-
+ it prints the corrected filename, and the command pro-
ceeds. This option is only used by interactive shells.
c\bch\bhe\bec\bck\bkh\bha\bas\bsh\bh
If set, b\bba\bas\bsh\bh checks that a command found in the hash ta-
- ble exists before trying to execute it. If a hashed
- command no longer exists, b\bba\bas\bsh\bh performs a normal path
+ ble exists before trying to execute it. If a hashed
+ command no longer exists, b\bba\bas\bsh\bh performs a normal path
search.
c\bch\bhe\bec\bck\bkj\bjo\bob\bbs\bs
If set, b\bba\bas\bsh\bh lists the status of any stopped and running
- jobs before exiting an interactive shell. If any jobs
+ jobs before exiting an interactive shell. If any jobs
are running, b\bba\bas\bsh\bh defers the exit until a second exit is
- attempted without an intervening command (see J\bJO\bOB\bB C\bCO\bON\bN-\b-
- T\bTR\bRO\bOL\bL above). The shell always postpones exiting if any
+ attempted without an intervening command (see J\bJO\bOB\bB C\bCO\bON\bN-\b-
+ T\bTR\bRO\bOL\bL above). The shell always postpones exiting if any
jobs are stopped.
c\bch\bhe\bec\bck\bkw\bwi\bin\bns\bsi\biz\bze\be
- If set, b\bba\bas\bsh\bh checks the window size after each external
- (non-builtin) command and, if necessary, updates the
- values of L\bLI\bIN\bNE\bES\bS and C\bCO\bOL\bLU\bUM\bMN\bNS\bS, using the file descriptor
- associated with the standard error if it is a terminal.
+ If set, b\bba\bas\bsh\bh checks the window size after each external
+ (non-builtin) command and, if necessary, updates the
+ values of L\bLI\bIN\bNE\bES\bS and C\bCO\bOL\bLU\bUM\bMN\bNS\bS, using the file descriptor
+ associated with the standard error if it is a terminal.
This option is enabled by default.
- c\bcm\bmd\bdh\bhi\bis\bst\bt If set, b\bba\bas\bsh\bh attempts to save all lines of a multiple-
- line command in the same history entry. This allows
- easy re-editing of multi-line commands. This option is
- enabled by default, but only has an effect if command
+ c\bcm\bmd\bdh\bhi\bis\bst\bt If set, b\bba\bas\bsh\bh attempts to save all lines of a multiple-
+ line command in the same history entry. This allows
+ easy re-editing of multi-line commands. This option is
+ enabled by default, but only has an effect if command
history is enabled, as described above under H\bHI\bIS\bST\bTO\bOR\bRY\bY.
c\bco\bom\bmp\bpa\bat\bt3\b31\b1
c\bco\bom\bmp\bpa\bat\bt3\b32\b2
c\bco\bom\bmp\bpa\bat\bt4\b43\b3
c\bco\bom\bmp\bpa\bat\bt4\b44\b4
c\bco\bom\bmp\bpa\bat\bt5\b50\b0
- These control aspects of the shell's compatibility mode
+ These control aspects of the shell's compatibility mode
(see S\bSH\bHE\bEL\bLL\bL C\bCO\bOM\bMP\bPA\bAT\bTI\bIB\bBI\bIL\bLI\bIT\bTY\bY M\bMO\bOD\bDE\bE below).
c\bco\bom\bmp\bpl\ble\bet\bte\be_\b_f\bfu\bul\bll\blq\bqu\buo\bot\bte\be
- If set, b\bba\bas\bsh\bh quotes all shell metacharacters in file-
- names and directory names when performing completion.
+ If set, b\bba\bas\bsh\bh quotes all shell metacharacters in file-
+ names and directory names when performing completion.
If not set, b\bba\bas\bsh\bh removes metacharacters such as the dol-
- lar sign from the set of characters that will be quoted
- in completed filenames when these metacharacters appear
- in shell variable references in words to be completed.
- This means that dollar signs in variable names that ex-
- pand to directories will not be quoted; however, any
- dollar signs appearing in filenames will not be quoted,
- either. This is active only when bash is using back-
- slashes to quote completed filenames. This variable is
- set by default, which is the default bash behavior in
+ lar sign from the set of characters that will be quoted
+ in completed filenames when these metacharacters appear
+ in shell variable references in words to be completed.
+ This means that dollar signs in variable names that ex-
+ pand to directories will not be quoted; however, any
+ dollar signs appearing in filenames will not be quoted,
+ either. This is active only when bash is using back-
+ slashes to quote completed filenames. This variable is
+ set by default, which is the default bash behavior in
versions through 4.2.
d\bdi\bir\bre\bex\bxp\bpa\ban\bnd\bd
- If set, b\bba\bas\bsh\bh replaces directory names with the results
- of word expansion when performing filename completion.
+ If set, b\bba\bas\bsh\bh replaces directory names with the results
+ of word expansion when performing filename completion.
This changes the contents of the r\bre\bea\bad\bdl\bli\bin\bne\be editing
- buffer. If not set, b\bba\bas\bsh\bh attempts to preserve what the
+ buffer. If not set, b\bba\bas\bsh\bh attempts to preserve what the
user typed.
d\bdi\bir\brs\bsp\bpe\bel\bll\bl
- If set, b\bba\bas\bsh\bh attempts spelling correction on directory
- names during word completion if the directory name ini-
+ If set, b\bba\bas\bsh\bh attempts spelling correction on directory
+ names during word completion if the directory name ini-
tially supplied does not exist.
- d\bdo\bot\btg\bgl\blo\bob\bb If set, b\bba\bas\bsh\bh includes filenames beginning with a "." in
- the results of pathname expansion. The filenames _\b. and
+ d\bdo\bot\btg\bgl\blo\bob\bb If set, b\bba\bas\bsh\bh includes filenames beginning with a "." in
+ the results of pathname expansion. The filenames _\b. and
_\b._\b. must always be matched explicitly, even if d\bdo\bot\btg\bgl\blo\bob\bb is
set.
e\bex\bxe\bec\bcf\bfa\bai\bil\bl
If set, a non-interactive shell will not exit if it can-
- not execute the file specified as an argument to the
- e\bex\bxe\bec\bc builtin. An interactive shell does not exit if
+ not execute the file specified as an argument to the
+ e\bex\bxe\bec\bc builtin. An interactive shell does not exit if
e\bex\bxe\bec\bc fails.
e\bex\bxp\bpa\ban\bnd\bd_\b_a\bal\bli\bia\bas\bse\bes\bs
- If set, aliases are expanded as described above under
+ If set, aliases are expanded as described above under
A\bAL\bLI\bIA\bAS\bSE\bES\bS. This option is enabled by default for interac-
tive shells.
e\bex\bxt\btd\bde\beb\bbu\bug\bg
- If set at shell invocation, or in a shell startup file,
+ If set at shell invocation, or in a shell startup file,
arrange to execute the debugger profile before the shell
- starts, identical to the -\b--\b-d\bde\beb\bbu\bug\bgg\bge\ber\br option. If set af-
- ter invocation, behavior intended for use by debuggers
+ starts, identical to the -\b--\b-d\bde\beb\bbu\bug\bgg\bge\ber\br option. If set af-
+ ter invocation, behavior intended for use by debuggers
is enabled:
1\b1.\b. The -\b-F\bF option to the d\bde\bec\bcl\bla\bar\bre\be builtin displays the
source file name and line number corresponding to
each function name supplied as an argument.
- 2\b2.\b. If the command run by the D\bDE\bEB\bBU\bUG\bG trap returns a
- non-zero value, the next command is skipped and
+ 2\b2.\b. If the command run by the D\bDE\bEB\bBU\bUG\bG trap returns a
+ non-zero value, the next command is skipped and
not executed.
- 3\b3.\b. If the command run by the D\bDE\bEB\bBU\bUG\bG trap returns a
- value of 2, and the shell is executing in a sub-
- routine (a shell function or a shell script exe-
- cuted by the .\b. or s\bso\bou\bur\brc\bce\be builtins), the shell
+ 3\b3.\b. If the command run by the D\bDE\bEB\bBU\bUG\bG trap returns a
+ value of 2, and the shell is executing in a sub-
+ routine (a shell function or a shell script exe-
+ cuted by the .\b. or s\bso\bou\bur\brc\bce\be builtins), the shell
simulates a call to r\bre\bet\btu\bur\brn\bn.
- 4\b4.\b. B\bBA\bAS\bSH\bH_\b_A\bAR\bRG\bGC\bC and B\bBA\bAS\bSH\bH_\b_A\bAR\bRG\bGV\bV are updated as described
+ 4\b4.\b. B\bBA\bAS\bSH\bH_\b_A\bAR\bRG\bGC\bC and B\bBA\bAS\bSH\bH_\b_A\bAR\bRG\bGV\bV are updated as described
in their descriptions above).
- 5\b5.\b. Function tracing is enabled: command substitu-
+ 5\b5.\b. Function tracing is enabled: command substitu-
tion, shell functions, and subshells invoked with
(\b( _\bc_\bo_\bm_\bm_\ba_\bn_\bd )\b) inherit the D\bDE\bEB\bBU\bUG\bG and R\bRE\bET\bTU\bUR\bRN\bN traps.
- 6\b6.\b. Error tracing is enabled: command substitution,
- shell functions, and subshells invoked with (\b(
+ 6\b6.\b. Error tracing is enabled: command substitution,
+ shell functions, and subshells invoked with (\b(
_\bc_\bo_\bm_\bm_\ba_\bn_\bd )\b) inherit the E\bER\bRR\bR trap.
- e\bex\bxt\btg\bgl\blo\bob\bb If set, enable the extended pattern matching features
+ e\bex\bxt\btg\bgl\blo\bob\bb If set, enable the extended pattern matching features
described above under P\bPa\bat\bth\bhn\bna\bam\bme\be E\bEx\bxp\bpa\ban\bns\bsi\bio\bon\bn.
e\bex\bxt\btq\bqu\buo\bot\bte\be
- If set, $\b$'_\bs_\bt_\br_\bi_\bn_\bg' and $\b$"_\bs_\bt_\br_\bi_\bn_\bg" quoting is performed
- within $\b${\b{_\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br}\b} expansions enclosed in double
+ If set, $\b$'_\bs_\bt_\br_\bi_\bn_\bg' and $\b$"_\bs_\bt_\br_\bi_\bn_\bg" quoting is performed
+ within $\b${\b{_\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br}\b} expansions enclosed in double
quotes. This option is enabled by default.
f\bfa\bai\bil\blg\bgl\blo\bob\bb
- If set, patterns which fail to match filenames during
+ If set, patterns which fail to match filenames during
pathname expansion result in an expansion error.
f\bfo\bor\brc\bce\be_\b_f\bfi\big\bgn\bno\bor\bre\be
- If set, the suffixes specified by the F\bFI\bIG\bGN\bNO\bOR\bRE\bE shell
- variable cause words to be ignored when performing word
+ If set, the suffixes specified by the F\bFI\bIG\bGN\bNO\bOR\bRE\bE shell
+ variable cause words to be ignored when performing word
completion even if the ignored words are the only possi-
- ble completions. See S\bSh\bhe\bel\bll\bl V\bVa\bar\bri\bia\bab\bbl\ble\bes\bs above for a de-
- scription of F\bFI\bIG\bGN\bNO\bOR\bRE\bE. This option is enabled by de-
+ ble completions. See S\bSh\bhe\bel\bll\bl V\bVa\bar\bri\bia\bab\bbl\ble\bes\bs above for a de-
+ scription of F\bFI\bIG\bGN\bNO\bOR\bRE\bE. This option is enabled by de-
fault.
g\bgl\blo\bob\bba\bas\bsc\bci\bii\bir\bra\ban\bng\bge\bes\bs
- If set, range expressions used in pattern matching
- bracket expressions (see P\bPa\bat\btt\bte\ber\brn\bn M\bMa\bat\btc\bch\bhi\bin\bng\bg above) behave
- as if in the traditional C locale when performing com-
- parisons. That is, pattern matching does not take the
- current locale's collating sequence into account, so b\bb
- will not collate between A\bA and B\bB, and upper-case and
+ If set, range expressions used in pattern matching
+ bracket expressions (see P\bPa\bat\btt\bte\ber\brn\bn M\bMa\bat\btc\bch\bhi\bin\bng\bg above) behave
+ as if in the traditional C locale when performing com-
+ parisons. That is, pattern matching does not take the
+ current locale's collating sequence into account, so b\bb
+ will not collate between A\bA and B\bB, and upper-case and
lower-case ASCII characters will collate together.
g\bgl\blo\bob\bbs\bsk\bki\bip\bpd\bdo\bot\bts\bs
- If set, pathname expansion will never match the file-
- names _\b. and _\b._\b., even if the pattern begins with a ".".
+ If set, pathname expansion will never match the file-
+ names _\b. and _\b._\b., even if the pattern begins with a ".".
This option is enabled by default.
g\bgl\blo\bob\bbs\bst\bta\bar\br
If set, the pattern *\b**\b* used in a pathname expansion con-
- text will match all files and zero or more directories
- and subdirectories. If the pattern is followed by a /\b/,
+ text will match all files and zero or more directories
+ and subdirectories. If the pattern is followed by a /\b/,
only directories and subdirectories match.
g\bgn\bnu\bu_\b_e\ber\brr\brf\bfm\bmt\bt
If set, shell error messages are written in the standard
GNU error message format.
h\bhi\bis\bst\bta\bap\bpp\bpe\ben\bnd\bd
- If set, the history list is appended to the file named
+ If set, the history list is appended to the file named
by the value of the H\bHI\bIS\bST\bTF\bFI\bIL\bLE\bE variable when the shell ex-
its, rather than overwriting the file.
h\bhi\bis\bst\btr\bre\bee\bed\bdi\bit\bt
- If set, and r\bre\bea\bad\bdl\bli\bin\bne\be is being used, the user is given
- the opportunity to re-edit a failed history substitu-
+ If set, and r\bre\bea\bad\bdl\bli\bin\bne\be is being used, the user is given
+ the opportunity to re-edit a failed history substitu-
tion.
h\bhi\bis\bst\btv\bve\ber\bri\bif\bfy\by
- If set, and r\bre\bea\bad\bdl\bli\bin\bne\be is being used, the results of his-
- tory substitution are not immediately passed to the
- shell parser. Instead, the resulting line is loaded
+ If set, and r\bre\bea\bad\bdl\bli\bin\bne\be is being used, the results of his-
+ tory substitution are not immediately passed to the
+ shell parser. Instead, the resulting line is loaded
into the r\bre\bea\bad\bdl\bli\bin\bne\be editing buffer, allowing further modi-
fication.
h\bho\bos\bst\btc\bco\bom\bmp\bpl\ble\bet\bte\be
If set, and r\bre\bea\bad\bdl\bli\bin\bne\be is being used, b\bba\bas\bsh\bh will attempt to
- perform hostname completion when a word containing a @\b@
- is being completed (see C\bCo\bom\bmp\bpl\ble\bet\bti\bin\bng\bg under R\bRE\bEA\bAD\bDL\bLI\bIN\bNE\bE
+ perform hostname completion when a word containing a @\b@
+ is being completed (see C\bCo\bom\bmp\bpl\ble\bet\bti\bin\bng\bg under R\bRE\bEA\bAD\bDL\bLI\bIN\bNE\bE
above). This is enabled by default.
h\bhu\bup\bpo\bon\bne\bex\bxi\bit\bt
If set, b\bba\bas\bsh\bh will send S\bSI\bIG\bGH\bHU\bUP\bP to all jobs when an inter-
active login shell exits.
i\bin\bnh\bhe\ber\bri\bit\bt_\b_e\ber\brr\bre\bex\bxi\bit\bt
- If set, command substitution inherits the value of the
- e\ber\brr\bre\bex\bxi\bit\bt option, instead of unsetting it in the subshell
- environment. This option is enabled when posix mode is
+ If set, command substitution inherits the value of the
+ e\ber\brr\bre\bex\bxi\bit\bt option, instead of unsetting it in the subshell
+ environment. This option is enabled when posix mode is
enabled.
i\bin\bnt\bte\ber\bra\bac\bct\bti\biv\bve\be_\b_c\bco\bom\bmm\bme\ben\bnt\bts\bs
- In an interactive shell, a word beginning with #\b# causes
- that word and all remaining characters on that line to
- be ignored, as in a non-interactive shell (see C\bCO\bOM\bMM\bME\bEN\bNT\bTS\bS
+ In an interactive shell, a word beginning with #\b# causes
+ that word and all remaining characters on that line to
+ be ignored, as in a non-interactive shell (see C\bCO\bOM\bMM\bME\bEN\bNT\bTS\bS
above). This option is enabled by default.
l\bla\bas\bst\btp\bpi\bip\bpe\be
- If set, and job control is not active, the shell runs
+ If set, and job control is not active, the shell runs
the last command of a pipeline not executed in the back-
ground in the current shell environment.
- l\bli\bit\bth\bhi\bis\bst\bt If set, and the c\bcm\bmd\bdh\bhi\bis\bst\bt option is enabled, multi-line
+ l\bli\bit\bth\bhi\bis\bst\bt If set, and the c\bcm\bmd\bdh\bhi\bis\bst\bt option is enabled, multi-line
commands are saved to the history with embedded newlines
rather than using semicolon separators where possible.
l\blo\boc\bca\bal\blv\bva\bar\br_\b_i\bin\bnh\bhe\ber\bri\bit\bt
scope before any new value is assigned. The nameref at-
tribute is not inherited.
l\blo\boc\bca\bal\blv\bva\bar\br_\b_u\bun\bns\bse\bet\bt
- If set, calling u\bun\bns\bse\bet\bt on local variables in previous
- function scopes marks them so subsequent lookups find
+ If set, calling u\bun\bns\bse\bet\bt on local variables in previous
+ function scopes marks them so subsequent lookups find
them unset until that function returns. This is identi-
- cal to the behavior of unsetting local variables at the
+ cal to the behavior of unsetting local variables at the
current function scope.
l\blo\bog\bgi\bin\bn_\b_s\bsh\bhe\bel\bll\bl
- The shell sets this option if it is started as a login
- shell (see I\bIN\bNV\bVO\bOC\bCA\bAT\bTI\bIO\bON\bN above). The value may not be
+ The shell sets this option if it is started as a login
+ shell (see I\bIN\bNV\bVO\bOC\bCA\bAT\bTI\bIO\bON\bN above). The value may not be
changed.
m\bma\bai\bil\blw\bwa\bar\brn\bn
- If set, and a file that b\bba\bas\bsh\bh is checking for mail has
- been accessed since the last time it was checked, b\bba\bas\bsh\bh
- displays the message "The mail in _\bm_\ba_\bi_\bl_\bf_\bi_\bl_\be has been
+ If set, and a file that b\bba\bas\bsh\bh is checking for mail has
+ been accessed since the last time it was checked, b\bba\bas\bsh\bh
+ displays the message "The mail in _\bm_\ba_\bi_\bl_\bf_\bi_\bl_\be has been
read".
n\bno\bo_\b_e\bem\bmp\bpt\bty\by_\b_c\bcm\bmd\bd_\b_c\bco\bom\bmp\bpl\ble\bet\bti\bio\bon\bn
If set, and r\bre\bea\bad\bdl\bli\bin\bne\be is being used, b\bba\bas\bsh\bh does not search
- P\bPA\bAT\bTH\bH for possible completions when completion is at-
+ P\bPA\bAT\bTH\bH for possible completions when completion is at-
tempted on an empty line.
n\bno\boc\bca\bas\bse\beg\bgl\blo\bob\bb
- If set, b\bba\bas\bsh\bh matches filenames in a case-insensitive
+ If set, b\bba\bas\bsh\bh matches filenames in a case-insensitive
fashion when performing pathname expansion (see P\bPa\bat\bth\bhn\bna\bam\bme\be
E\bEx\bxp\bpa\ban\bns\bsi\bio\bon\bn above).
n\bno\boc\bca\bas\bse\bem\bma\bat\btc\bch\bh
- If set, b\bba\bas\bsh\bh matches patterns in a case-insensitive
+ If set, b\bba\bas\bsh\bh matches patterns in a case-insensitive
fashion when performing matching while executing c\bca\bas\bse\be or
[\b[[\b[ conditional commands, when performing pattern substi-
- tution word expansions, or when filtering possible com-
+ tution word expansions, or when filtering possible com-
pletions as part of programmable completion.
n\bno\boe\bex\bxp\bpa\ban\bnd\bd_\b_t\btr\bra\ban\bns\bsl\bla\bat\bti\bio\bon\bn
- If set, b\bba\bas\bsh\bh encloses the translated results of $\b$"\b"..."\b"
- quoting in single quotes instead of double quotes. If
+ If set, b\bba\bas\bsh\bh encloses the translated results of $\b$"\b"..."\b"
+ quoting in single quotes instead of double quotes. If
the string is not translated, this has no effect.
n\bnu\bul\bll\blg\bgl\blo\bob\bb
If set, pathname expansion patterns which match no files
removed, rather than expanding to themselves.
p\bpa\bat\bts\bsu\bub\bb_\b_r\bre\bep\bpl\bla\bac\bce\bem\bme\ben\bnt\bt
If set, b\bba\bas\bsh\bh expands occurrences of &\b& in the replacement
- string of pattern substitution to the text matched by
- the pattern, as described under P\bPa\bar\bra\bam\bme\bet\bte\ber\br E\bEx\bxp\bpa\ban\bns\bsi\bio\bon\bn
+ string of pattern substitution to the text matched by
+ the pattern, as described under P\bPa\bar\bra\bam\bme\bet\bte\ber\br E\bEx\bxp\bpa\ban\bns\bsi\bio\bon\bn
above. This option is enabled by default.
p\bpr\bro\bog\bgc\bco\bom\bmp\bp
- If set, enable the programmable completion facilities
+ If set, enable the programmable completion facilities
(see P\bPr\bro\bog\bgr\bra\bam\bmm\bma\bab\bbl\ble\be C\bCo\bom\bmp\bpl\ble\bet\bti\bio\bon\bn above). This option is en-
abled by default.
p\bpr\bro\bog\bgc\bco\bom\bmp\bp_\b_a\bal\bli\bia\bas\bs
- If set, and programmable completion is enabled, b\bba\bas\bsh\bh
- treats a command name that doesn't have any completions
+ If set, and programmable completion is enabled, b\bba\bas\bsh\bh
+ treats a command name that doesn't have any completions
as a possible alias and attempts alias expansion. If it
- has an alias, b\bba\bas\bsh\bh attempts programmable completion us-
+ has an alias, b\bba\bas\bsh\bh attempts programmable completion us-
ing the command word resulting from the expanded alias.
p\bpr\bro\bom\bmp\bpt\btv\bva\bar\brs\bs
If set, prompt strings undergo parameter expansion, com-
- mand substitution, arithmetic expansion, and quote re-
- moval after being expanded as described in P\bPR\bRO\bOM\bMP\bPT\bTI\bIN\bNG\bG
+ mand substitution, arithmetic expansion, and quote re-
+ moval after being expanded as described in P\bPR\bRO\bOM\bMP\bPT\bTI\bIN\bNG\bG
above. This option is enabled by default.
r\bre\bes\bst\btr\bri\bic\bct\bte\bed\bd_\b_s\bsh\bhe\bel\bll\bl
- The shell sets this option if it is started in re-
- stricted mode (see R\bRE\bES\bST\bTR\bRI\bIC\bCT\bTE\bED\bD S\bSH\bHE\bEL\bLL\bL below). The value
- may not be changed. This is not reset when the startup
- files are executed, allowing the startup files to dis-
+ The shell sets this option if it is started in re-
+ stricted mode (see R\bRE\bES\bST\bTR\bRI\bIC\bCT\bTE\bED\bD S\bSH\bHE\bEL\bLL\bL below). The value
+ may not be changed. This is not reset when the startup
+ files are executed, allowing the startup files to dis-
cover whether or not a shell is restricted.
s\bsh\bhi\bif\bft\bt_\b_v\bve\ber\brb\bbo\bos\bse\be
- If set, the s\bsh\bhi\bif\bft\bt builtin prints an error message when
+ If set, the s\bsh\bhi\bif\bft\bt builtin prints an error message when
the shift count exceeds the number of positional parame-
ters.
s\bso\bou\bur\brc\bce\bep\bpa\bat\bth\bh
If set, the .\b. (s\bso\bou\bur\brc\bce\be) builtin uses the value of P\bPA\bAT\bTH\bH to
- find the directory containing the file supplied as an
- argument when the -\b-p\bp option is not supplied. This op-
+ find the directory containing the file supplied as an
+ argument when the -\b-p\bp option is not supplied. This op-
tion is enabled by default.
v\bva\bar\brr\bre\bed\bdi\bir\br_\b_c\bcl\blo\bos\bse\be
- If set, the shell automatically closes file descriptors
- assigned using the _\b{_\bv_\ba_\br_\bn_\ba_\bm_\be_\b} redirection syntax (see
+ If set, the shell automatically closes file descriptors
+ assigned using the _\b{_\bv_\ba_\br_\bn_\ba_\bm_\be_\b} redirection syntax (see
R\bRE\bED\bDI\bIR\bRE\bEC\bCT\bTI\bIO\bON\bN above) instead of leaving them open when the
command completes.
x\bxp\bpg\bg_\b_e\bec\bch\bho\bo
- If set, the e\bec\bch\bho\bo builtin expands backslash-escape se-
- quences by default. If the p\bpo\bos\bsi\bix\bx shell option is also
+ If set, the e\bec\bch\bho\bo builtin expands backslash-escape se-
+ quences by default. If the p\bpo\bos\bsi\bix\bx shell option is also
enabled, e\bec\bch\bho\bo does not interpret any options.
s\bsu\bus\bsp\bpe\ben\bnd\bd [-\b-f\bf]
- Suspend the execution of this shell until it receives a S\bSI\bIG\bGC\bCO\bON\bNT\bT
- signal. A login shell, or a shell without job control enabled,
- cannot be suspended; the -\b-f\bf option will override this and force
- the suspension. The return status is 0 unless the shell is a
- login shell or job control is not enabled and -\b-f\bf is not sup-
+ Suspend the execution of this shell until it receives a S\bSI\bIG\bGC\bCO\bON\bNT\bT
+ signal. A login shell, or a shell without job control enabled,
+ cannot be suspended; the -\b-f\bf option will override this and force
+ the suspension. The return status is 0 unless the shell is a
+ login shell or job control is not enabled and -\b-f\bf is not sup-
plied.
t\bte\bes\bst\bt _\be_\bx_\bp_\br
[\b[ _\be_\bx_\bp_\br ]\b]
Return a status of 0 (true) or 1 (false) depending on the evalu-
- ation of the conditional expression _\be_\bx_\bp_\br. Each operator and
- operand must be a separate argument. Expressions are composed
- of the primaries described above under C\bCO\bON\bND\bDI\bIT\bTI\bIO\bON\bNA\bAL\bL E\bEX\bXP\bPR\bRE\bES\bSS\bSI\bIO\bON\bNS\bS.
- t\bte\bes\bst\bt does not accept any options, nor does it accept and ignore
+ ation of the conditional expression _\be_\bx_\bp_\br. Each operator and
+ operand must be a separate argument. Expressions are composed
+ of the primaries described above under C\bCO\bON\bND\bDI\bIT\bTI\bIO\bON\bNA\bAL\bL E\bEX\bXP\bPR\bRE\bES\bSS\bSI\bIO\bON\bNS\bS.
+ t\bte\bes\bst\bt does not accept any options, nor does it accept and ignore
an argument of -\b--\b- as signifying the end of options.
- Expressions may be combined using the following operators,
- listed in decreasing order of precedence. The evaluation de-
+ Expressions may be combined using the following operators,
+ listed in decreasing order of precedence. The evaluation de-
pends on the number of arguments; see below. t\bte\bes\bst\bt uses operator
precedence when there are five or more arguments.
!\b! _\be_\bx_\bp_\br True if _\be_\bx_\bp_\br is false.
(\b( _\be_\bx_\bp_\br )\b)
- Returns the value of _\be_\bx_\bp_\br. This may be used to override
+ Returns the value of _\be_\bx_\bp_\br. This may be used to override
normal operator precedence.
_\be_\bx_\bp_\br_\b1 -a\ba _\be_\bx_\bp_\br_\b2
True if both _\be_\bx_\bp_\br_\b1 and _\be_\bx_\bp_\br_\b2 are true.
null.
2 arguments
If the first argument is !\b!, the expression is true if and
- only if the second argument is null. If the first argu-
- ment is one of the unary conditional operators listed
- above under C\bCO\bON\bND\bDI\bIT\bTI\bIO\bON\bNA\bAL\bL E\bEX\bXP\bPR\bRE\bES\bSS\bSI\bIO\bON\bNS\bS, the expression is
+ only if the second argument is null. If the first argu-
+ ment is one of the unary conditional operators listed
+ above under C\bCO\bON\bND\bDI\bIT\bTI\bIO\bON\bNA\bAL\bL E\bEX\bXP\bPR\bRE\bES\bSS\bSI\bIO\bON\bNS\bS, the expression is
true if the unary test is true. If the first argument is
not a valid unary conditional operator, the expression is
false.
3 arguments
The following conditions are applied in the order listed.
- If the second argument is one of the binary conditional
+ If the second argument is one of the binary conditional
operators listed above under C\bCO\bON\bND\bDI\bIT\bTI\bIO\bON\bNA\bAL\bL E\bEX\bXP\bPR\bRE\bES\bSS\bSI\bIO\bON\bNS\bS, the
result of the expression is the result of the binary test
- using the first and third arguments as operands. The -\b-a\ba
- and -\b-o\bo operators are considered binary operators when
- there are three arguments. If the first argument is !\b!,
- the value is the negation of the two-argument test using
+ using the first and third arguments as operands. The -\b-a\ba
+ and -\b-o\bo operators are considered binary operators when
+ there are three arguments. If the first argument is !\b!,
+ the value is the negation of the two-argument test using
the second and third arguments. If the first argument is
exactly (\b( and the third argument is exactly )\b), the result
- is the one-argument test of the second argument. Other-
+ is the one-argument test of the second argument. Other-
wise, the expression is false.
4 arguments
The following conditions are applied in the order listed.
If the first argument is !\b!, the result is the negation of
- the three-argument expression composed of the remaining
- arguments. If the first argument is exactly (\b( and the
+ the three-argument expression composed of the remaining
+ arguments. If the first argument is exactly (\b( and the
fourth argument is exactly )\b), the result is the two-argu-
- ment test of the second and third arguments. Otherwise,
- the expression is parsed and evaluated according to
+ ment test of the second and third arguments. Otherwise,
+ the expression is parsed and evaluated according to
precedence using the rules listed above.
5 or more arguments
- The expression is parsed and evaluated according to
+ The expression is parsed and evaluated according to
precedence using the rules listed above.
When the shell is in posix mode, or if the expression is part of
the [\b[[\b[ command, the <\b< and >\b> operators sort using the current lo-
- cale. If the shell is not in posix mode, the t\bte\bes\bst\bt and [\b[ com-
+ cale. If the shell is not in posix mode, the t\bte\bes\bst\bt and [\b[ com-
mands sort lexicographically using ASCII ordering.
- The historical operator-precedence parsing with 4 or more argu-
- ments can lead to ambiguities when it encounters strings that
- look like primaries. The POSIX standard has deprecated the -\b-a\ba
- and -\b-o\bo primaries and enclosing expressions within parentheses.
- Scripts should no longer use them. It's much more reliable to
- restrict test invocations to a single primary, and to replace
+ The historical operator-precedence parsing with 4 or more argu-
+ ments can lead to ambiguities when it encounters strings that
+ look like primaries. The POSIX standard has deprecated the -\b-a\ba
+ and -\b-o\bo primaries and enclosing expressions within parentheses.
+ Scripts should no longer use them. It's much more reliable to
+ restrict test invocations to a single primary, and to replace
uses of -\b-a\ba and -\b-o\bo with the shell's &\b&&\b& and |\b||\b| list operators.
- t\bti\bim\bme\bes\bs Print the accumulated user and system times for the shell and
+ t\bti\bim\bme\bes\bs Print the accumulated user and system times for the shell and
for processes run from the shell. The return status is 0.
t\btr\bra\bap\bp [-\b-l\blp\bpP\bP] [[_\ba_\bc_\bt_\bi_\bo_\bn] _\bs_\bi_\bg_\bs_\bp_\be_\bc ...]
The _\ba_\bc_\bt_\bi_\bo_\bn is a command that is read and executed when the shell
- receives any of the signals _\bs_\bi_\bg_\bs_\bp_\be_\bc. If _\ba_\bc_\bt_\bi_\bo_\bn is absent (and
+ receives any of the signals _\bs_\bi_\bg_\bs_\bp_\be_\bc. If _\ba_\bc_\bt_\bi_\bo_\bn is absent (and
there is a single _\bs_\bi_\bg_\bs_\bp_\be_\bc) or -\b-, each specified _\bs_\bi_\bg_\bs_\bp_\be_\bc is reset
- to the value it had when the shell was started. If _\ba_\bc_\bt_\bi_\bo_\bn is
- the null string the signal specified by each _\bs_\bi_\bg_\bs_\bp_\be_\bc is ignored
+ to the value it had when the shell was started. If _\ba_\bc_\bt_\bi_\bo_\bn is
+ the null string the signal specified by each _\bs_\bi_\bg_\bs_\bp_\be_\bc is ignored
by the shell and by the commands it invokes.
- If no arguments are supplied, t\btr\bra\bap\bp displays the actions associ-
+ If no arguments are supplied, t\btr\bra\bap\bp displays the actions associ-
ated with each trapped signal as a set of t\btr\bra\bap\bp commands that can
- be reused as shell input to restore the current signal disposi-
- tions. If -\b-p\bp is given, and _\ba_\bc_\bt_\bi_\bo_\bn is not present, then t\btr\bra\bap\bp
- displays the actions associated with each _\bs_\bi_\bg_\bs_\bp_\be_\bc or, if none
+ be reused as shell input to restore the current signal disposi-
+ tions. If -\b-p\bp is given, and _\ba_\bc_\bt_\bi_\bo_\bn is not present, then t\btr\bra\bap\bp
+ displays the actions associated with each _\bs_\bi_\bg_\bs_\bp_\be_\bc or, if none
are supplied, for all trapped signals, as a set of t\btr\bra\bap\bp commands
- that can be reused as shell input to restore the current signal
- dispositions. The -\b-P\bP option behaves similarly, but displays
- only the actions associated with each _\bs_\bi_\bg_\bs_\bp_\be_\bc argument. -\b-P\bP re-
- quires at least one _\bs_\bi_\bg_\bs_\bp_\be_\bc argument. The -\b-P\bP or -\b-p\bp options may
- be used in a subshell environment (e.g., command substitution)
- and, as long as they are used before t\btr\bra\bap\bp is used to change a
+ that can be reused as shell input to restore the current signal
+ dispositions. The -\b-P\bP option behaves similarly, but displays
+ only the actions associated with each _\bs_\bi_\bg_\bs_\bp_\be_\bc argument. -\b-P\bP re-
+ quires at least one _\bs_\bi_\bg_\bs_\bp_\be_\bc argument. The -\b-P\bP or -\b-p\bp options may
+ be used in a subshell environment (e.g., command substitution)
+ and, as long as they are used before t\btr\bra\bap\bp is used to change a
signal's handling, will display the state of its parent's traps.
- The -\b-l\bl option prints a list of signal names and their corre-
- sponding numbers. Each _\bs_\bi_\bg_\bs_\bp_\be_\bc is either a signal name defined
+ The -\b-l\bl option prints a list of signal names and their corre-
+ sponding numbers. Each _\bs_\bi_\bg_\bs_\bp_\be_\bc is either a signal name defined
in <_\bs_\bi_\bg_\bn_\ba_\bl_\b._\bh>, or a signal number. Signal names are case insen-
- sitive and the S\bSI\bIG\bG prefix is optional. If -\b-l\bl is supplied with
+ sitive and the S\bSI\bIG\bG prefix is optional. If -\b-l\bl is supplied with
no _\bs_\bi_\bg_\bs_\bp_\be_\bc arguments, it prints a list of valid signal names.
- If a _\bs_\bi_\bg_\bs_\bp_\be_\bc is E\bEX\bXI\bIT\bT (0), _\ba_\bc_\bt_\bi_\bo_\bn is executed on exit from the
- shell. If a _\bs_\bi_\bg_\bs_\bp_\be_\bc is D\bDE\bEB\bBU\bUG\bG, _\ba_\bc_\bt_\bi_\bo_\bn is executed before every
- _\bs_\bi_\bm_\bp_\bl_\be _\bc_\bo_\bm_\bm_\ba_\bn_\bd, _\bf_\bo_\br command, _\bc_\ba_\bs_\be command, _\bs_\be_\bl_\be_\bc_\bt command, ((
- arithmetic command, [[ conditional command, arithmetic _\bf_\bo_\br com-
- mand, and before the first command executes in a shell function
- (see S\bSH\bHE\bEL\bLL\bL G\bGR\bRA\bAM\bMM\bMA\bAR\bR above). Refer to the description of the
- e\bex\bxt\btd\bde\beb\bbu\bug\bg shell option (see s\bsh\bho\bop\bpt\bt above) for details of its ef-
- fect on the D\bDE\bEB\bBU\bUG\bG trap. If a _\bs_\bi_\bg_\bs_\bp_\be_\bc is R\bRE\bET\bTU\bUR\bRN\bN, _\ba_\bc_\bt_\bi_\bo_\bn is exe-
+ If a _\bs_\bi_\bg_\bs_\bp_\be_\bc is E\bEX\bXI\bIT\bT (0), _\ba_\bc_\bt_\bi_\bo_\bn is executed on exit from the
+ shell. If a _\bs_\bi_\bg_\bs_\bp_\be_\bc is D\bDE\bEB\bBU\bUG\bG, _\ba_\bc_\bt_\bi_\bo_\bn is executed before every
+ _\bs_\bi_\bm_\bp_\bl_\be _\bc_\bo_\bm_\bm_\ba_\bn_\bd, _\bf_\bo_\br command, _\bc_\ba_\bs_\be command, _\bs_\be_\bl_\be_\bc_\bt command, ((
+ arithmetic command, [[ conditional command, arithmetic _\bf_\bo_\br com-
+ mand, and before the first command executes in a shell function
+ (see S\bSH\bHE\bEL\bLL\bL G\bGR\bRA\bAM\bMM\bMA\bAR\bR above). Refer to the description of the
+ e\bex\bxt\btd\bde\beb\bbu\bug\bg shell option (see s\bsh\bho\bop\bpt\bt above) for details of its ef-
+ fect on the D\bDE\bEB\bBU\bUG\bG trap. If a _\bs_\bi_\bg_\bs_\bp_\be_\bc is R\bRE\bET\bTU\bUR\bRN\bN, _\ba_\bc_\bt_\bi_\bo_\bn is exe-
cuted each time a shell function or a script executed with the .\b.
or s\bso\bou\bur\brc\bce\be builtins finishes executing.
- If a _\bs_\bi_\bg_\bs_\bp_\be_\bc is E\bER\bRR\bR, _\ba_\bc_\bt_\bi_\bo_\bn is executed whenever a pipeline
- (which may consist of a single simple command), a list, or a
- compound command returns a non-zero exit status, subject to the
- following conditions. The E\bER\bRR\bR trap is not executed if the
+ If a _\bs_\bi_\bg_\bs_\bp_\be_\bc is E\bER\bRR\bR, _\ba_\bc_\bt_\bi_\bo_\bn is executed whenever a pipeline
+ (which may consist of a single simple command), a list, or a
+ compound command returns a non-zero exit status, subject to the
+ following conditions. The E\bER\bRR\bR trap is not executed if the
failed command is part of the command list immediately following
- a w\bwh\bhi\bil\ble\be or u\bun\bnt\bti\bil\bl keyword, part of the test in an _\bi_\bf statement,
+ a w\bwh\bhi\bil\ble\be or u\bun\bnt\bti\bil\bl keyword, part of the test in an _\bi_\bf statement,
part of a command executed in a &\b&&\b& or |\b||\b| list except the command
- following the final &\b&&\b& or |\b||\b|, any command in a pipeline but the
- last (subject to the state of the p\bpi\bip\bpe\bef\bfa\bai\bil\bl shell option), or if
+ following the final &\b&&\b& or |\b||\b|, any command in a pipeline but the
+ last (subject to the state of the p\bpi\bip\bpe\bef\bfa\bai\bil\bl shell option), or if
the command's return value is being inverted using !\b!. These are
the same conditions obeyed by the e\ber\brr\bre\bex\bxi\bit\bt (-\b-e\be) option.
When the shell is not interactive, signals ignored upon entry to
the shell cannot be trapped or reset. Interactive shells permit
trapping signals ignored on entry. Trapped signals that are not
- being ignored are reset to their original values in a subshell
- or subshell environment when one is created. The return status
+ being ignored are reset to their original values in a subshell
+ or subshell environment when one is created. The return status
is false if any _\bs_\bi_\bg_\bs_\bp_\be_\bc is invalid; otherwise t\btr\bra\bap\bp returns true.
t\btr\bru\bue\be Does nothing, returns a 0 status.
Indicate how each _\bn_\ba_\bm_\be would be interpreted if used as a command
name.
- If the -\b-t\bt option is used, t\bty\byp\bpe\be prints a string which is one of
- _\ba_\bl_\bi_\ba_\bs, _\bk_\be_\by_\bw_\bo_\br_\bd, _\bf_\bu_\bn_\bc_\bt_\bi_\bo_\bn, _\bb_\bu_\bi_\bl_\bt_\bi_\bn, or _\bf_\bi_\bl_\be if _\bn_\ba_\bm_\be is an alias,
- shell reserved word, function, builtin, or executable file, re-
- spectively. If the _\bn_\ba_\bm_\be is not found, t\bty\byp\bpe\be prints nothing and
+ If the -\b-t\bt option is used, t\bty\byp\bpe\be prints a string which is one of
+ _\ba_\bl_\bi_\ba_\bs, _\bk_\be_\by_\bw_\bo_\br_\bd, _\bf_\bu_\bn_\bc_\bt_\bi_\bo_\bn, _\bb_\bu_\bi_\bl_\bt_\bi_\bn, or _\bf_\bi_\bl_\be if _\bn_\ba_\bm_\be is an alias,
+ shell reserved word, function, builtin, or executable file, re-
+ spectively. If the _\bn_\ba_\bm_\be is not found, t\bty\byp\bpe\be prints nothing and
returns a non-zero exit status.
- If the -\b-p\bp option is used, t\bty\byp\bpe\be either returns the pathname of
- the executable file that would be found by searching $\b$P\bPA\bAT\bTH\bH for
+ If the -\b-p\bp option is used, t\bty\byp\bpe\be either returns the pathname of
+ the executable file that would be found by searching $\b$P\bPA\bAT\bTH\bH for
_\bn_\ba_\bm_\be or nothing if "type -t name" would not return _\bf_\bi_\bl_\be. The -\b-P\bP
- option forces a P\bPA\bAT\bTH\bH search for each _\bn_\ba_\bm_\be, even if "type -t
+ option forces a P\bPA\bAT\bTH\bH search for each _\bn_\ba_\bm_\be, even if "type -t
name" would not return _\bf_\bi_\bl_\be. If _\bn_\ba_\bm_\be is present in the table of
- hashed commands, -\b-p\bp and -\b-P\bP print the hashed value, which is not
+ hashed commands, -\b-p\bp and -\b-P\bP print the hashed value, which is not
necessarily the file that appears first in P\bPA\bAT\bTH\bH.
- If the -\b-a\ba option is used, t\bty\byp\bpe\be prints all of the places that
- contain a command named _\bn_\ba_\bm_\be. This includes aliases, reserved
- words, functions, and builtins, but the path search options (-\b-p\bp
- and -\b-P\bP) can be supplied to restrict the output to executable
- files. t\bty\byp\bpe\be does not consult the table of hashed commands when
+ If the -\b-a\ba option is used, t\bty\byp\bpe\be prints all of the places that
+ contain a command named _\bn_\ba_\bm_\be. This includes aliases, reserved
+ words, functions, and builtins, but the path search options (-\b-p\bp
+ and -\b-P\bP) can be supplied to restrict the output to executable
+ files. t\bty\byp\bpe\be does not consult the table of hashed commands when
using -\b-a\ba with -\b-p\bp, and only performs a P\bPA\bAT\bTH\bH search for _\bn_\ba_\bm_\be.
The -\b-f\bf option suppresses shell function lookup, as with the c\bco\bom\bm-\b-
- m\bma\ban\bnd\bd builtin. t\bty\byp\bpe\be returns true if all of the arguments are
+ m\bma\ban\bnd\bd builtin. t\bty\byp\bpe\be returns true if all of the arguments are
found, false if any are not found.
u\bul\bli\bim\bmi\bit\bt [-\b-H\bHS\bS] -\b-a\ba
u\bul\bli\bim\bmi\bit\bt [-\b-H\bHS\bS] [-\b-b\bbc\bcd\bde\bef\bfi\bik\bkl\blm\bmn\bnp\bpq\bqr\brs\bst\btu\buv\bvx\bxP\bPR\bRT\bT [_\bl_\bi_\bm_\bi_\bt]]
- Provides control over the resources available to the shell and
+ Provides control over the resources available to the shell and
to processes it starts, on systems that allow such control.
- The -\b-H\bH and -\b-S\bS options specify whether the hard or soft limit is
+ The -\b-H\bH and -\b-S\bS options specify whether the hard or soft limit is
set for the given resource. A hard limit cannot be increased by
a non-root user once it is set; a soft limit may be increased up
- to the value of the hard limit. If neither -\b-H\bH nor -\b-S\bS is speci-
+ to the value of the hard limit. If neither -\b-H\bH nor -\b-S\bS is speci-
fied, u\bul\bli\bim\bmi\bit\bt sets both the soft and hard limits.
The value of _\bl_\bi_\bm_\bi_\bt can be a number in the unit specified for the
- resource or one of the special values h\bha\bar\brd\bd, s\bso\bof\bft\bt, or u\bun\bnl\bli\bim\bmi\bit\bte\bed\bd,
- which stand for the current hard limit, the current soft limit,
- and no limit, respectively. If _\bl_\bi_\bm_\bi_\bt is omitted, u\bul\bli\bim\bmi\bit\bt prints
- the current value of the soft limit of the resource, unless the
- -\b-H\bH option is given. When more than one resource is specified,
- the limit name and unit, if appropriate, are printed before the
+ resource or one of the special values h\bha\bar\brd\bd, s\bso\bof\bft\bt, or u\bun\bnl\bli\bim\bmi\bit\bte\bed\bd,
+ which stand for the current hard limit, the current soft limit,
+ and no limit, respectively. If _\bl_\bi_\bm_\bi_\bt is omitted, u\bul\bli\bim\bmi\bit\bt prints
+ the current value of the soft limit of the resource, unless the
+ -\b-H\bH option is given. When more than one resource is specified,
+ the limit name and unit, if appropriate, are printed before the
value. Other options are interpreted as follows:
-\b-a\ba Report all current limits; no limits are set.
-\b-b\bb The maximum socket buffer size.
-\b-c\bc The maximum size of core files created.
-\b-d\bd The maximum size of a process's data segment.
-\b-e\be The maximum scheduling priority ("nice").
- -\b-f\bf The maximum size of files written by the shell and its
+ -\b-f\bf The maximum size of files written by the shell and its
children.
-\b-i\bi The maximum number of pending signals.
-\b-k\bk The maximum number of kqueues that may be allocated.
-\b-l\bl The maximum size that may be locked into memory.
- -\b-m\bm The maximum resident set size (many systems do not honor
+ -\b-m\bm The maximum resident set size (many systems do not honor
this limit).
-\b-n\bn The maximum number of open file descriptors (most systems
do not allow this value to be set).
-\b-r\br The maximum real-time scheduling priority.
-\b-s\bs The maximum stack size.
-\b-t\bt The maximum amount of cpu time in seconds.
- -\b-u\bu The maximum number of processes available to a single
+ -\b-u\bu The maximum number of processes available to a single
user.
- -\b-v\bv The maximum amount of virtual memory available to the
+ -\b-v\bv The maximum amount of virtual memory available to the
shell and, on some systems, to its children.
-\b-x\bx The maximum number of file locks.
-\b-P\bP The maximum number of pseudoterminals.
- -\b-R\bR The maximum time a real-time process can run before
+ -\b-R\bR The maximum time a real-time process can run before
blocking, in microseconds.
-\b-T\bT The maximum number of threads.
- If _\bl_\bi_\bm_\bi_\bt is supplied, and the -\b-a\ba option is not used, _\bl_\bi_\bm_\bi_\bt is
- the new value of the specified resource. If no option is sup-
+ If _\bl_\bi_\bm_\bi_\bt is supplied, and the -\b-a\ba option is not used, _\bl_\bi_\bm_\bi_\bt is
+ the new value of the specified resource. If no option is sup-
plied, then -\b-f\bf is assumed.
- Values are in 1024-byte increments, except for -\b-t\bt, which is in
- seconds; -\b-R\bR, which is in microseconds; -\b-p\bp, which is in units of
- 512-byte blocks; -\b-P\bP, -\b-T\bT, -\b-b\bb, -\b-k\bk, -\b-n\bn, and -\b-u\bu, which are unscaled
- values; and, when in posix mode, -\b-c\bc and -\b-f\bf, which are in
- 512-byte increments. The return status is 0 unless an invalid
+ Values are in 1024-byte increments, except for -\b-t\bt, which is in
+ seconds; -\b-R\bR, which is in microseconds; -\b-p\bp, which is in units of
+ 512-byte blocks; -\b-P\bP, -\b-T\bT, -\b-b\bb, -\b-k\bk, -\b-n\bn, and -\b-u\bu, which are unscaled
+ values; and, when in posix mode, -\b-c\bc and -\b-f\bf, which are in
+ 512-byte increments. The return status is 0 unless an invalid
option or argument is supplied, or an error occurs while setting
a new limit.
u\bum\bma\bas\bsk\bk [-\b-p\bp] [-\b-S\bS] [_\bm_\bo_\bd_\be]
- Set the user file-creation mask to _\bm_\bo_\bd_\be. If _\bm_\bo_\bd_\be begins with a
+ Set the user file-creation mask to _\bm_\bo_\bd_\be. If _\bm_\bo_\bd_\be begins with a
digit, it is interpreted as an octal number; otherwise it is in-
- terpreted as a symbolic mode mask similar to that accepted by
+ terpreted as a symbolic mode mask similar to that accepted by
_\bc_\bh_\bm_\bo_\bd(1). If _\bm_\bo_\bd_\be is omitted, u\bum\bma\bas\bsk\bk prints the current value of
the mask. The -\b-S\bS option without a _\bm_\bo_\bd_\be argument prints the mask
in a symbolic format; the default output is an octal number. If
the -\b-p\bp option is supplied, and _\bm_\bo_\bd_\be is omitted, the output is in
- a form that may be reused as input. The return status is zero
- if the mode was successfully changed or if no _\bm_\bo_\bd_\be argument was
+ a form that may be reused as input. The return status is zero
+ if the mode was successfully changed or if no _\bm_\bo_\bd_\be argument was
supplied, and non-zero otherwise.
u\bun\bna\bal\bli\bia\bas\bs [-a\ba] [_\bn_\ba_\bm_\be ...]
- Remove each _\bn_\ba_\bm_\be from the list of defined aliases. If -\b-a\ba is
- supplied, remove all alias definitions. The return value is
+ Remove each _\bn_\ba_\bm_\be from the list of defined aliases. If -\b-a\ba is
+ supplied, remove all alias definitions. The return value is
true unless a supplied _\bn_\ba_\bm_\be is not a defined alias.
u\bun\bns\bse\bet\bt [-f\bfv\bv] [-n\bn] [_\bn_\ba_\bm_\be ...]
- For each _\bn_\ba_\bm_\be, remove the corresponding variable or function.
+ For each _\bn_\ba_\bm_\be, remove the corresponding variable or function.
If the -\b-v\bv option is given, each _\bn_\ba_\bm_\be refers to a shell variable,
- and that variable is removed. If -\b-f\bf is specified, each _\bn_\ba_\bm_\be
- refers to a shell function, and the function definition is re-
- moved. If the -\b-n\bn option is supplied, and _\bn_\ba_\bm_\be is a variable
- with the _\bn_\ba_\bm_\be_\br_\be_\bf attribute, _\bn_\ba_\bm_\be will be unset rather than the
- variable it references. -\b-n\bn has no effect if the -\b-f\bf option is
- supplied. Read-only variables and functions may not be unset.
- When variables or functions are removed, they are also removed
- from the environment passed to subsequent commands. If no op-
- tions are supplied, each _\bn_\ba_\bm_\be refers to a variable; if there is
- no variable by that name, a function with that name, if any, is
- unset. Some shell variables may not be unset. If any of
+ and that variable is removed. If -\b-f\bf is specified, each _\bn_\ba_\bm_\be
+ refers to a shell function, and the function definition is re-
+ moved. If the -\b-n\bn option is supplied, and _\bn_\ba_\bm_\be is a variable
+ with the _\bn_\ba_\bm_\be_\br_\be_\bf attribute, _\bn_\ba_\bm_\be will be unset rather than the
+ variable it references. -\b-n\bn has no effect if the -\b-f\bf option is
+ supplied. Read-only variables and functions may not be unset.
+ When variables or functions are removed, they are also removed
+ from the environment passed to subsequent commands. If no op-
+ tions are supplied, each _\bn_\ba_\bm_\be refers to a variable; if there is
+ no variable by that name, a function with that name, if any, is
+ unset. Some shell variables may not be unset. If any of
B\bBA\bAS\bSH\bH_\b_A\bAL\bLI\bIA\bAS\bSE\bES\bS, B\bBA\bAS\bSH\bH_\b_A\bAR\bRG\bGV\bV0\b0, B\bBA\bAS\bSH\bH_\b_C\bCM\bMD\bDS\bS, B\bBA\bAS\bSH\bH_\b_C\bCO\bOM\bMM\bMA\bAN\bND\bD, B\bBA\bAS\bSH\bH_\b_S\bSU\bUB\bB-\b-
- S\bSH\bHE\bEL\bLL\bL, B\bBA\bAS\bSH\bHP\bPI\bID\bD, C\bCO\bOM\bMP\bP_\b_W\bWO\bOR\bRD\bDB\bBR\bRE\bEA\bAK\bKS\bS, D\bDI\bIR\bRS\bST\bTA\bAC\bCK\bK, E\bEP\bPO\bOC\bCH\bHR\bRE\bEA\bAL\bLT\bTI\bIM\bME\bE,
- E\bEP\bPO\bOC\bCH\bHS\bSE\bEC\bCO\bON\bND\bDS\bS, F\bFU\bUN\bNC\bCN\bNA\bAM\bME\bE, G\bGR\bRO\bOU\bUP\bPS\bS, H\bHI\bIS\bST\bTC\bCM\bMD\bD, L\bLI\bIN\bNE\bEN\bNO\bO, R\bRA\bAN\bND\bDO\bOM\bM, S\bSE\bEC\bC-\b-
- O\bON\bND\bDS\bS, or S\bSR\bRA\bAN\bND\bDO\bOM\bM are unset, they lose their special properties,
- even if they are subsequently reset. The exit status is true
+ S\bSH\bHE\bEL\bLL\bL, B\bBA\bAS\bSH\bHP\bPI\bID\bD, C\bCO\bOM\bMP\bP_\b_W\bWO\bOR\bRD\bDB\bBR\bRE\bEA\bAK\bKS\bS, D\bDI\bIR\bRS\bST\bTA\bAC\bCK\bK, E\bEP\bPO\bOC\bCH\bHR\bRE\bEA\bAL\bLT\bTI\bIM\bME\bE,
+ E\bEP\bPO\bOC\bCH\bHS\bSE\bEC\bCO\bON\bND\bDS\bS, F\bFU\bUN\bNC\bCN\bNA\bAM\bME\bE, G\bGR\bRO\bOU\bUP\bPS\bS, H\bHI\bIS\bST\bTC\bCM\bMD\bD, L\bLI\bIN\bNE\bEN\bNO\bO, R\bRA\bAN\bND\bDO\bOM\bM, S\bSE\bEC\bC-\b-
+ O\bON\bND\bDS\bS, or S\bSR\bRA\bAN\bND\bDO\bOM\bM are unset, they lose their special properties,
+ even if they are subsequently reset. The exit status is true
unless a _\bn_\ba_\bm_\be is readonly or may not be unset.
w\bwa\bai\bit\bt [-\b-f\bfn\bn] [-\b-p\bp _\bv_\ba_\br_\bn_\ba_\bm_\be] [_\bi_\bd ...]
Wait for each specified child process _\bi_\bd and return the termina-
- tion status of the last _\bi_\bd. Each _\bi_\bd may be a process ID _\bp_\bi_\bd or
- a job specification _\bj_\bo_\bb_\bs_\bp_\be_\bc; if a jobspec is supplied, w\bwa\bai\bit\bt
+ tion status of the last _\bi_\bd. Each _\bi_\bd may be a process ID _\bp_\bi_\bd or
+ a job specification _\bj_\bo_\bb_\bs_\bp_\be_\bc; if a jobspec is supplied, w\bwa\bai\bit\bt
waits for all processes in the job.
- If no options or _\bi_\bds are supplied, w\bwa\bai\bit\bt waits for all running
- background jobs and the last-executed process substitution, if
+ If no options or _\bi_\bds are supplied, w\bwa\bai\bit\bt waits for all running
+ background jobs and the last-executed process substitution, if
its process id is the same as $\b$!\b!, and the return status is zero.
- If the -\b-n\bn option is supplied, w\bwa\bai\bit\bt waits for any one of the
+ If the -\b-n\bn option is supplied, w\bwa\bai\bit\bt waits for any one of the
given _\bi_\bds or, if no _\bi_\bds are supplied, any job or process substi-
tution, to complete and returns its exit status. If none of the
- supplied _\bi_\bds is a child of the shell, or if no _\bi_\bds are supplied
- and the shell has no unwaited-for children, the exit status is
+ supplied _\bi_\bds is a child of the shell, or if no _\bi_\bds are supplied
+ and the shell has no unwaited-for children, the exit status is
127.
- If the -\b-p\bp option is supplied, w\bwa\bai\bit\bt assigns the process or job
- identifier of the job for which the exit status is returned to
- the variable _\bv_\ba_\br_\bn_\ba_\bm_\be named by the option argument. The vari-
- able, which cannot be readonly, will be unset initially, before
- any assignment. This is useful only when used with the -\b-n\bn op-
+ If the -\b-p\bp option is supplied, w\bwa\bai\bit\bt assigns the process or job
+ identifier of the job for which the exit status is returned to
+ the variable _\bv_\ba_\br_\bn_\ba_\bm_\be named by the option argument. The vari-
+ able, which cannot be readonly, will be unset initially, before
+ any assignment. This is useful only when used with the -\b-n\bn op-
tion.
- Supplying the -\b-f\bf option, when job control is enabled, forces
- w\bwa\bai\bit\bt to wait for each _\bi_\bd to terminate before returning its sta-
+ Supplying the -\b-f\bf option, when job control is enabled, forces
+ w\bwa\bai\bit\bt to wait for each _\bi_\bd to terminate before returning its sta-
tus, instead of returning when it changes status.
- If none of the _\bi_\bds specify one of the shell's active child
- processes, the return status is 127. If w\bwa\bai\bit\bt is interrupted by
- a signal, any _\bv_\ba_\br_\bn_\ba_\bm_\be will remain unset, and the return status
- will be greater than 128, as described under S\bSI\bIG\bGN\bNA\bAL\bLS\bS above.
+ If none of the _\bi_\bds specify one of the shell's active child
+ processes, the return status is 127. If w\bwa\bai\bit\bt is interrupted by
+ a signal, any _\bv_\ba_\br_\bn_\ba_\bm_\be will remain unset, and the return status
+ will be greater than 128, as described under S\bSI\bIG\bGN\bNA\bAL\bLS\bS above.
Otherwise, the return status is the exit status of the last _\bi_\bd.
S\bSH\bHE\bEL\bLL\bL C\bCO\bOM\bMP\bPA\bAT\bTI\bIB\bBI\bIL\bLI\bIT\bTY\bY M\bMO\bOD\bDE\bE
- Bash-4.0 introduced the concept of a _\bs_\bh_\be_\bl_\bl _\bc_\bo_\bm_\bp_\ba_\bt_\bi_\bb_\bi_\bl_\bi_\bt_\by _\bl_\be_\bv_\be_\bl, speci-
+ Bash-4.0 introduced the concept of a _\bs_\bh_\be_\bl_\bl _\bc_\bo_\bm_\bp_\ba_\bt_\bi_\bb_\bi_\bl_\bi_\bt_\by _\bl_\be_\bv_\be_\bl, speci-
fied as a set of options to the shopt builtin (c\bco\bom\bmp\bpa\bat\bt3\b31\b1, c\bco\bom\bmp\bpa\bat\bt3\b32\b2, c\bco\bom\bm-\b-
- p\bpa\bat\bt4\b40\b0, c\bco\bom\bmp\bpa\bat\bt4\b41\b1, and so on). There is only one current compatibility
+ p\bpa\bat\bt4\b40\b0, c\bco\bom\bmp\bpa\bat\bt4\b41\b1, and so on). There is only one current compatibility
level -- each option is mutually exclusive. The compatibility level is
- intended to allow users to select behavior from previous versions that
- is incompatible with newer versions while they migrate scripts to use
- current features and behavior. It's intended to be a temporary solu-
+ intended to allow users to select behavior from previous versions that
+ is incompatible with newer versions while they migrate scripts to use
+ current features and behavior. It's intended to be a temporary solu-
tion.
- This section does not mention behavior that is standard for a particu-
- lar version (e.g., setting c\bco\bom\bmp\bpa\bat\bt3\b32\b2 means that quoting the right hand
- side of the regexp matching operator quotes special regexp characters
- in the word, which is default behavior in bash-3.2 and subsequent ver-
+ This section does not mention behavior that is standard for a particu-
+ lar version (e.g., setting c\bco\bom\bmp\bpa\bat\bt3\b32\b2 means that quoting the right hand
+ side of the regexp matching operator quotes special regexp characters
+ in the word, which is default behavior in bash-3.2 and subsequent ver-
sions).
- If a user enables, say, c\bco\bom\bmp\bpa\bat\bt3\b32\b2, it may affect the behavior of other
- compatibility levels up to and including the current compatibility
- level. The idea is that each compatibility level controls behavior
- that changed in that version of b\bba\bas\bsh\bh, but that behavior may have been
- present in earlier versions. For instance, the change to use locale-
- based comparisons with the [\b[[\b[ command came in bash-4.1, and earlier
+ If a user enables, say, c\bco\bom\bmp\bpa\bat\bt3\b32\b2, it may affect the behavior of other
+ compatibility levels up to and including the current compatibility
+ level. The idea is that each compatibility level controls behavior
+ that changed in that version of b\bba\bas\bsh\bh, but that behavior may have been
+ present in earlier versions. For instance, the change to use locale-
+ based comparisons with the [\b[[\b[ command came in bash-4.1, and earlier
versions used ASCII-based comparisons, so enabling c\bco\bom\bmp\bpa\bat\bt3\b32\b2 will enable
- ASCII-based comparisons as well. That granularity may not be suffi-
- cient for all uses, and as a result users should employ compatibility
- levels carefully. Read the documentation for a particular feature to
+ ASCII-based comparisons as well. That granularity may not be suffi-
+ cient for all uses, and as a result users should employ compatibility
+ levels carefully. Read the documentation for a particular feature to
find out the current behavior.
- Bash-4.3 introduced a new shell variable: B\bBA\bAS\bSH\bH_\b_C\bCO\bOM\bMP\bPA\bAT\bT. The value as-
+ Bash-4.3 introduced a new shell variable: B\bBA\bAS\bSH\bH_\b_C\bCO\bOM\bMP\bPA\bAT\bT. The value as-
signed to this variable (a decimal version number like 4.2, or an inte-
- ger corresponding to the c\bco\bom\bmp\bpa\bat\bt_\bN_\bN option, like 42) determines the com-
+ ger corresponding to the c\bco\bom\bmp\bpa\bat\bt_\bN_\bN option, like 42) determines the com-
patibility level.
Starting with bash-4.4, b\bba\bas\bsh\bh began deprecating older compatibility lev-
els. Eventually, the options will be removed in favor of B\bBA\bAS\bSH\bH_\b_C\bCO\bOM\bMP\bPA\bAT\bT.
- Bash-5.0 was the final version for which there was an individual shopt
- option for the previous version. B\bBA\bAS\bSH\bH_\b_C\bCO\bOM\bMP\bPA\bAT\bT is the only mechanism to
+ Bash-5.0 was the final version for which there was an individual shopt
+ option for the previous version. B\bBA\bAS\bSH\bH_\b_C\bCO\bOM\bMP\bPA\bAT\bT is the only mechanism to
control the compatibility level in versions newer than bash-5.0.
- The following table describes the behavior changes controlled by each
+ The following table describes the behavior changes controlled by each
compatibility level setting. The c\bco\bom\bmp\bpa\bat\bt_\bN_\bN tag is used as shorthand for
setting the compatibility level to _\bN_\bN using one of the following mecha-
- nisms. For versions prior to bash-5.0, the compatibility level may be
- set using the corresponding c\bco\bom\bmp\bpa\bat\bt_\bN_\bN shopt option. For bash-4.3 and
- later versions, the B\bBA\bAS\bSH\bH_\b_C\bCO\bOM\bMP\bPA\bAT\bT variable is preferred, and it is re-
+ nisms. For versions prior to bash-5.0, the compatibility level may be
+ set using the corresponding c\bco\bom\bmp\bpa\bat\bt_\bN_\bN shopt option. For bash-4.3 and
+ later versions, the B\bBA\bAS\bSH\bH_\b_C\bCO\bOM\bMP\bPA\bAT\bT variable is preferred, and it is re-
quired for bash-5.1 and later versions.
c\bco\bom\bmp\bpa\bat\bt3\b31\b1
ator (=~) has no special effect.
c\bco\bom\bmp\bpa\bat\bt3\b32\b2
- +\bo The <\b< and >\b> operators to the [\b[[\b[ command do not consider
+ +\bo The <\b< and >\b> operators to the [\b[[\b[ command do not consider
the current locale when comparing strings; they use ASCII
ordering.
c\bco\bom\bmp\bpa\bat\bt4\b40\b0
- +\bo The <\b< and >\b> operators to the [\b[[\b[ command do not consider
+ +\bo The <\b< and >\b> operators to the [\b[[\b[ command do not consider
the current locale when comparing strings; they use ASCII
ordering. B\bBa\bas\bsh\bh versions prior to bash-4.1 use ASCII col-
- lation and _\bs_\bt_\br_\bc_\bm_\bp(3); bash-4.1 and later use the current
+ lation and _\bs_\bt_\br_\bc_\bm_\bp(3); bash-4.1 and later use the current
locale's collation sequence and _\bs_\bt_\br_\bc_\bo_\bl_\bl(3).
c\bco\bom\bmp\bpa\bat\bt4\b41\b1
- +\bo In _\bp_\bo_\bs_\bi_\bx mode, t\bti\bim\bme\be may be followed by options and still
+ +\bo In _\bp_\bo_\bs_\bi_\bx mode, t\bti\bim\bme\be may be followed by options and still
be recognized as a reserved word (this is POSIX interpre-
tation 267).
+\bo In _\bp_\bo_\bs_\bi_\bx mode, the parser requires that an even number of
- single quotes occur in the _\bw_\bo_\br_\bd portion of a double-
- quoted parameter expansion and treats them specially, so
- that characters within the single quotes are considered
+ single quotes occur in the _\bw_\bo_\br_\bd portion of a double-
+ quoted parameter expansion and treats them specially, so
+ that characters within the single quotes are considered
quoted (this is POSIX interpretation 221).
c\bco\bom\bmp\bpa\bat\bt4\b42\b2
+\bo The replacement string in double-quoted pattern substitu-
- tion does not undergo quote removal, as it does in ver-
+ tion does not undergo quote removal, as it does in ver-
sions after bash-4.2.
- +\bo In posix mode, single quotes are considered special when
- expanding the _\bw_\bo_\br_\bd portion of a double-quoted parameter
- expansion and can be used to quote a closing brace or
- other special character (this is part of POSIX interpre-
- tation 221); in later versions, single quotes are not
+ +\bo In posix mode, single quotes are considered special when
+ expanding the _\bw_\bo_\br_\bd portion of a double-quoted parameter
+ expansion and can be used to quote a closing brace or
+ other special character (this is part of POSIX interpre-
+ tation 221); in later versions, single quotes are not
special within double-quoted word expansions.
c\bco\bom\bmp\bpa\bat\bt4\b43\b3
- +\bo Word expansion errors are considered non-fatal errors
- that cause the current command to fail, even in posix
- mode (the default behavior is to make them fatal errors
+ +\bo Word expansion errors are considered non-fatal errors
+ that cause the current command to fail, even in posix
+ mode (the default behavior is to make them fatal errors
that cause the shell to exit).
- +\bo When executing a shell function, the loop state
+ +\bo When executing a shell function, the loop state
(while/until/etc.) is not reset, so b\bbr\bre\bea\bak\bk or c\bco\bon\bnt\bti\bin\bnu\bue\be in
that function will break or continue loops in the calling
context. Bash-4.4 and later reset the loop state to pre-
vent this.
c\bco\bom\bmp\bpa\bat\bt4\b44\b4
- +\bo The shell sets up the values used by B\bBA\bAS\bSH\bH_\b_A\bAR\bRG\bGV\bV and
- B\bBA\bAS\bSH\bH_\b_A\bAR\bRG\bGC\bC so they can expand to the shell's positional
- parameters even if extended debugging mode is not en-
+ +\bo The shell sets up the values used by B\bBA\bAS\bSH\bH_\b_A\bAR\bRG\bGV\bV and
+ B\bBA\bAS\bSH\bH_\b_A\bAR\bRG\bGC\bC so they can expand to the shell's positional
+ parameters even if extended debugging mode is not en-
abled.
- +\bo A subshell inherits loops from its parent context, so
- b\bbr\bre\bea\bak\bk or c\bco\bon\bnt\bti\bin\bnu\bue\be will cause the subshell to exit.
- Bash-5.0 and later reset the loop state to prevent the
+ +\bo A subshell inherits loops from its parent context, so
+ b\bbr\bre\bea\bak\bk or c\bco\bon\bnt\bti\bin\bnu\bue\be will cause the subshell to exit.
+ Bash-5.0 and later reset the loop state to prevent the
exit
- +\bo Variable assignments preceding builtins like e\bex\bxp\bpo\bor\brt\bt and
+ +\bo Variable assignments preceding builtins like e\bex\bxp\bpo\bor\brt\bt and
r\bre\bea\bad\bdo\bon\bnl\bly\by that set attributes continue to affect variables
with the same name in the calling environment even if the
shell is not in posix mode.
c\bco\bom\bmp\bpa\bat\bt5\b50\b0
- +\bo Bash-5.1 changed the way $\b$R\bRA\bAN\bND\bDO\bOM\bM is generated to intro-
- duce slightly more randomness. If the shell compatibil-
+ +\bo Bash-5.1 changed the way $\b$R\bRA\bAN\bND\bDO\bOM\bM is generated to intro-
+ duce slightly more randomness. If the shell compatibil-
ity level is set to 50 or lower, it reverts to the method
- from bash-5.0 and previous versions, so seeding the ran-
- dom number generator by assigning a value to R\bRA\bAN\bND\bDO\bOM\bM will
+ from bash-5.0 and previous versions, so seeding the ran-
+ dom number generator by assigning a value to R\bRA\bAN\bND\bDO\bOM\bM will
produce the same sequence as in bash-5.0.
- +\bo If the command hash table is empty, bash versions prior
- to bash-5.1 printed an informational message to that ef-
- fect, even when producing output that can be reused as
- input. Bash-5.1 suppresses that message when the -\b-l\bl op-
+ +\bo If the command hash table is empty, bash versions prior
+ to bash-5.1 printed an informational message to that ef-
+ fect, even when producing output that can be reused as
+ input. Bash-5.1 suppresses that message when the -\b-l\bl op-
tion is supplied.
c\bco\bom\bmp\bpa\bat\bt5\b51\b1
- +\bo The u\bun\bns\bse\bet\bt builtin treats attempts to unset array sub-
- scripts @\b@ and *\b* differently depending on whether the ar-
- ray is indexed or associative, and differently than in
+ +\bo The u\bun\bns\bse\bet\bt builtin treats attempts to unset array sub-
+ scripts @\b@ and *\b* differently depending on whether the ar-
+ ray is indexed or associative, and differently than in
previous versions.
+\bo Arithmetic commands ( (\b((\b(...)\b))\b) ) and the expressions in an
arithmetic for statement can be expanded more than once.
- +\bo Expressions used as arguments to arithmetic operators in
- the [\b[[\b[ conditional command can be expanded more than
+ +\bo Expressions used as arguments to arithmetic operators in
+ the [\b[[\b[ conditional command can be expanded more than
once.
- +\bo The expressions in substring parameter brace expansion
+ +\bo The expressions in substring parameter brace expansion
can be expanded more than once.
+\bo The expressions in the $\b$(\b((\b(...)\b))\b) word expansion can be ex-
panded more than once.
- +\bo Arithmetic expressions used as indexed array subscripts
+ +\bo Arithmetic expressions used as indexed array subscripts
can be expanded more than once.
- +\bo t\bte\bes\bst\bt -\b-v\bv, when given an argument of A\bA[\b[@\b@]\b], where A\bA is an
+ +\bo t\bte\bes\bst\bt -\b-v\bv, when given an argument of A\bA[\b[@\b@]\b], where A\bA is an
existing associative array, will return true if the array
- has any set elements. Bash-5.2 will look for and report
+ has any set elements. Bash-5.2 will look for and report
on a key named @\b@.
+\bo The ${_\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br[\b[:\b:]\b]=\b=_\bv_\ba_\bl_\bu_\be} word expansion will return
- _\bv_\ba_\bl_\bu_\be, before any variable-specific transformations have
+ _\bv_\ba_\bl_\bu_\be, before any variable-specific transformations have
been performed (e.g., converting to lowercase). Bash-5.2
will return the final value assigned to the variable.
- +\bo Parsing command substitutions will behave as if extended
+ +\bo Parsing command substitutions will behave as if extended
globbing (see the description of the s\bsh\bho\bop\bpt\bt builtin above)
- is enabled, so that parsing a command substitution con-
+ is enabled, so that parsing a command substitution con-
taining an extglob pattern (say, as part of a shell func-
- tion) will not fail. This assumes the intent is to en-
- able extglob before the command is executed and word ex-
- pansions are performed. It will fail at word expansion
- time if extglob hasn't been enabled by the time the com-
+ tion) will not fail. This assumes the intent is to en-
+ able extglob before the command is executed and word ex-
+ pansions are performed. It will fail at word expansion
+ time if extglob hasn't been enabled by the time the com-
mand is executed.
c\bco\bom\bmp\bpa\bat\bt5\b52\b2
- +\bo The t\bte\bes\bst\bt builtin uses its historical algorithm to parse
- parenthesized subexpressions when given five or more ar-
+ +\bo The t\bte\bes\bst\bt builtin uses its historical algorithm to parse
+ parenthesized subexpressions when given five or more ar-
guments.
- +\bo If the -\b-p\bp or -\b-P\bP option is supplied to the b\bbi\bin\bnd\bd builtin,
+ +\bo If the -\b-p\bp or -\b-P\bP option is supplied to the b\bbi\bin\bnd\bd builtin,
b\bbi\bin\bnd\bd treats any arguments remaining after option process-
- ing as bindable command names, and displays any key se-
- quences bound to those commands, instead of treating the
+ ing as bindable command names, and displays any key se-
+ quences bound to those commands, instead of treating the
arguments as key sequences to bind.
R\bRE\bES\bST\bTR\bRI\bIC\bCT\bTE\bED\bD S\bSH\bHE\bEL\bLL\bL
If b\bba\bas\bsh\bh is started with the name r\brb\bba\bas\bsh\bh, or the -\b-r\br option is supplied at
- invocation, the shell becomes _\br_\be_\bs_\bt_\br_\bi_\bc_\bt_\be_\bd. A restricted shell is used
- to set up an environment more controlled than the standard shell. It
- behaves identically to b\bba\bas\bsh\bh with the exception that the following are
+ invocation, the shell becomes _\br_\be_\bs_\bt_\br_\bi_\bc_\bt_\be_\bd. A restricted shell is used
+ to set up an environment more controlled than the standard shell. It
+ behaves identically to b\bba\bas\bsh\bh with the exception that the following are
disallowed or not performed:
+\bo Changing directories with c\bcd\bd.
- +\bo Setting or unsetting the values of S\bSH\bHE\bEL\bLL\bL, P\bPA\bAT\bTH\bH, H\bHI\bIS\bST\bTF\bFI\bIL\bLE\bE, E\bEN\bNV\bV,
+ +\bo Setting or unsetting the values of S\bSH\bHE\bEL\bLL\bL, P\bPA\bAT\bTH\bH, H\bHI\bIS\bST\bTF\bFI\bIL\bLE\bE, E\bEN\bNV\bV,
or B\bBA\bAS\bSH\bH_\b_E\bEN\bNV\bV.
+\bo Specifying command names containing /\b/.
- +\bo Specifying a filename containing a /\b/ as an argument to the .\b.
+ +\bo Specifying a filename containing a /\b/ as an argument to the .\b.
builtin command.
- +\bo Using the -\b-p\bp option to the .\b. builtin command to specify a
+ +\bo Using the -\b-p\bp option to the .\b. builtin command to specify a
search path.
- +\bo Specifying a filename containing a slash as an argument to the
+ +\bo Specifying a filename containing a slash as an argument to the
h\bhi\bis\bst\bto\bor\bry\by builtin command.
- +\bo Specifying a filename containing a slash as an argument to the
+ +\bo Specifying a filename containing a slash as an argument to the
-\b-p\bp option to the h\bha\bas\bsh\bh builtin command.
- +\bo Importing function definitions from the shell environment at
+ +\bo Importing function definitions from the shell environment at
startup.
- +\bo Parsing the value of S\bSH\bHE\bEL\bLL\bLO\bOP\bPT\bTS\bS from the shell environment at
+ +\bo Parsing the value of S\bSH\bHE\bEL\bLL\bLO\bOP\bPT\bTS\bS from the shell environment at
startup.
- +\bo Redirecting output using the >, >|, <>, >&, &>, and >> redirec-
+ +\bo Redirecting output using the >, >|, <>, >&, &>, and >> redirec-
tion operators.
+\bo Using the e\bex\bxe\bec\bc builtin command to replace the shell with another
command.
- +\bo Adding or deleting builtin commands with the -\b-f\bf and -\b-d\bd options
+ +\bo Adding or deleting builtin commands with the -\b-f\bf and -\b-d\bd options
to the e\ben\bna\bab\bbl\ble\be builtin command.
- +\bo Using the e\ben\bna\bab\bbl\ble\be builtin command to enable disabled shell
+ +\bo Using the e\ben\bna\bab\bbl\ble\be builtin command to enable disabled shell
builtins.
+\bo Specifying the -\b-p\bp option to the c\bco\bom\bmm\bma\ban\bnd\bd builtin command.
- +\bo Turning off restricted mode with s\bse\bet\bt +\b+r\br or s\bsh\bho\bop\bpt\bt -\b-u\bu r\bre\be-\b-
+ +\bo Turning off restricted mode with s\bse\bet\bt +\b+r\br or s\bsh\bho\bop\bpt\bt -\b-u\bu r\bre\be-\b-
s\bst\btr\bri\bic\bct\bte\bed\bd_\b_s\bsh\bhe\bel\bll\bl.
These restrictions are enforced after any startup files are read.
When a command that is found to be a shell script is executed (see C\bCO\bOM\bM-\b-
- M\bMA\bAN\bND\bD E\bEX\bXE\bEC\bCU\bUT\bTI\bIO\bON\bN above), r\brb\bba\bas\bsh\bh turns off any restrictions in the shell
+ M\bMA\bAN\bND\bD E\bEX\bXE\bEC\bCU\bUT\bTI\bIO\bON\bN above), r\brb\bba\bas\bsh\bh turns off any restrictions in the shell
spawned to execute the script.
S\bSE\bEE\bE A\bAL\bLS\bSO\bO
_\b~_\b/_\b._\bb_\ba_\bs_\bh_\br_\bc
The individual per-interactive-shell startup file
_\b~_\b/_\b._\bb_\ba_\bs_\bh_\b__\bl_\bo_\bg_\bo_\bu_\bt
- The individual login shell cleanup file, executed when a login
+ The individual login shell cleanup file, executed when a login
shell exits
_\b~_\b/_\b._\bb_\ba_\bs_\bh_\b__\bh_\bi_\bs_\bt_\bo_\br_\by
- The default value of H\bHI\bIS\bST\bTF\bFI\bIL\bLE\bE, the file in which bash saves the
+ The default value of H\bHI\bIS\bST\bTF\bFI\bIL\bLE\bE, the file in which bash saves the
command history
_\b~_\b/_\b._\bi_\bn_\bp_\bu_\bt_\br_\bc
Individual _\br_\be_\ba_\bd_\bl_\bi_\bn_\be initialization file
B\bBU\bUG\bG R\bRE\bEP\bPO\bOR\bRT\bTS\bS
If you find a bug in b\bba\bas\bsh\bh, you should report it. But first, you should
- make sure that it really is a bug, and that it appears in the latest
- version of b\bba\bas\bsh\bh. The latest version is always available from
+ make sure that it really is a bug, and that it appears in the latest
+ version of b\bba\bas\bsh\bh. The latest version is always available from
_\bf_\bt_\bp_\b:_\b/_\b/_\bf_\bt_\bp_\b._\bg_\bn_\bu_\b._\bo_\br_\bg_\b/_\bp_\bu_\bb_\b/_\bg_\bn_\bu_\b/_\bb_\ba_\bs_\bh_\b/ and _\bh_\bt_\bt_\bp_\b:_\b/_\b/_\bg_\bi_\bt_\b._\bs_\ba_\bv_\ba_\bn_\b-
_\bn_\ba_\bh_\b._\bg_\bn_\bu_\b._\bo_\br_\bg_\b/_\bc_\bg_\bi_\bt_\b/_\bb_\ba_\bs_\bh_\b._\bg_\bi_\bt_\b/_\bs_\bn_\ba_\bp_\bs_\bh_\bo_\bt_\b/_\bb_\ba_\bs_\bh_\b-_\bm_\ba_\bs_\bt_\be_\br_\b._\bt_\ba_\br_\b._\bg_\bz.
- Once you have determined that a bug actually exists, use the _\bb_\ba_\bs_\bh_\bb_\bu_\bg
- command to submit a bug report. If you have a fix, you are encouraged
+ Once you have determined that a bug actually exists, use the _\bb_\ba_\bs_\bh_\bb_\bu_\bg
+ command to submit a bug report. If you have a fix, you are encouraged
to mail that as well! You may send suggestions and "philosophical" bug
- reports to _\bb_\bu_\bg_\b-_\bb_\ba_\bs_\bh_\b@_\bg_\bn_\bu_\b._\bo_\br_\bg or post them to the Usenet newsgroup
+ reports to _\bb_\bu_\bg_\b-_\bb_\ba_\bs_\bh_\b@_\bg_\bn_\bu_\b._\bo_\br_\bg or post them to the Usenet newsgroup
g\bgn\bnu\bu.\b.b\bba\bas\bsh\bh.\b.b\bbu\bug\bg.
ALL bug reports should include:
A description of the bug behaviour
A short script or "recipe" which exercises the bug
- _\bb_\ba_\bs_\bh_\bb_\bu_\bg inserts the first three items automatically into the template
+ _\bb_\ba_\bs_\bh_\bb_\bu_\bg inserts the first three items automatically into the template
it provides for filing a bug report.
Comments and bug reports concerning this manual page should be directed
Shell builtin commands and functions are not stoppable/restartable.
- Compound commands and command sequences of the form "a ; b ; c" are not
- handled gracefully when process suspension is attempted. When a
+ Compound commands and command lists of the form "a ; b ; c" are not
+ handled gracefully when combined with process suspension. When a
process is stopped, the shell immediately executes the next command in
- the sequence. It suffices to place the sequence of commands between
- parentheses to force it into a subshell, which may be stopped as a
- unit, or to start the command in the background and immediately bring
- it into the foreground.
+ the list or breaks out of any existing loops. It suffices to enclose
+ the command in parentheses to force it into a subshell, which may be
+ stopped as a unit, or to start the command in the background and imme-
+ diately bring it into the foreground.
Array variables may not (yet) be exported.
-GNU Bash 5.3 2024 November 15 _\bB_\bA_\bS_\bH(1)
+GNU Bash 5.3 2024 November 29 _\bB_\bA_\bS_\bH(1)
.\" Case Western Reserve University
.\" chet.ramey@case.edu
.\"
-.\" Last Change: Fri Nov 15 17:55:48 EST 2024
+.\" Last Change: Fri Nov 29 18:17:43 EST 2024
.\"
-.\" bash_builtins, strip all but Built-Ins section
-.\" avoid a warning about an undefined register
-.\" .if !rzY .nr zY 0
+.\" bash_builtins, strip all but Builtins section
+.\"
+.\" Ensure the registers are initialized to avoid groff warnings.
+.nr zZ +0
+.nr zY +0
+.\" Ensure the macros/strings are initialized to avoid groff warnings.
+.ds zZ \" empty
+.ds zY \" empty
.if \n(zZ=1 .ig zZ
.if \n(zY=1 .ig zY
-.TH BASH 1 "2024 November 15" "GNU Bash 5.3"
+.TH BASH 1 "2024 November 29" "GNU Bash 5.3"
.\"
.ie \n(.g \{\
.ds ' \(aq
.\}
.el \{\
.ds ' '
-.\" not usable in macro arguments on AT&T troff (DWB, Solaris 10)
+.\" \*" is not usable in macro arguments on AT&T troff (DWB, Solaris 10)
.ds " ""\" two adjacent quotes and no space before this comment
.ds ^ ^
.ds ~ ~
reads and executes commands from
.FN \*~/.bashrc ,
if that file exists.
-This may be inhibited by using the
+The
.B \-\-norc
-option.
+option inhibits this behavior.
The \fB\-\-rcfile\fP \fIfile\fP option causes
.B bash
to use \fIfile\fP instead of
in that order.
The
.B \-\-noprofile
-option will inhibit this behavior.
+option inhibits this behavior.
When invoked as an interactive shell with the name
.BR sh ,
.B bash
it reads and executes commands from
.FN \*~/.bashrc ,
if that file exists and is readable.
-It will not do this if invoked as \fBsh\fP.
+.B Bash
+does not read this file if invoked as \fBsh\fP.
The
.B \-\-norc
-option will inhibit this behavior, and the
+option inhibits this behavior, and the
.B \-\-rcfile
-option will make \fBbash\fP use a different file instead of
+option makes \fBbash\fP use a different file instead of
.FN \*~/.bashrc ,
but neither
\fIrshd\fP nor \fIsshd\fP generally invoke the shell with those options
since normal quoting and pattern characters lose their meanings
between brackets.
.IP
-The pattern will match if it matches any part of the string.
+The match succeeds if the pattern matches any part of the string.
Anchor the pattern using the \fB\*^\fP and \fB$\fP regular expression
operators to force it to match the entire string.
.IP
not been present.
.SS "Translating Strings"
A double-quoted string preceded by a dollar sign (\fB$\fP\*"\fIstring\fP\*")
-will cause the string to be translated according to the current locale.
+causes the string to be translated according to the current locale.
The \fIgettext\fP infrastructure performs the lookup and
translation, using the \fBLC_MESSAGES\fP, \fBTEXTDOMAINDIR\fP,
and \fBTEXTDOMAIN\fP shell variables.
.BR alias ,
.BR declare ,
.BR typeset ,
-.BR export ,
+.BR \%export ,
.BR readonly ,
and
.B local
assignment statement properties.
.PP
In the context where an assignment statement is assigning a value
-to a shell variable or array index, the += operator will
-append to or add to the variable's previous value.
+to a shell variable or array index,
+the += operator appends to or adds to
+the variable's previous value.
This includes arguments to \fIdeclaration\fP commands such as
\fBdeclare\fP that accept assignment statements.
-When += is applied to a variable for which the \fBinteger\fP attribute
-has been set,
+When += is applied to a variable
+for which the \fBinteger\fP attribute has been set,
the variable's current value and \fIvalue\fP are each evaluated as
arithmetic expressions,
and the sum of the results is assigned as the variable's value.
The current value is usually an integer constant, but may be an expression.
-When += is applied to an array variable using compound assignment (see
+When += is applied to an array variable using compound assignment
+(see
.B Arrays
below), the
-variable's value is not unset (as it is when using =), and new values are
-appended to the array beginning at one greater than the array's maximum index
-(for indexed arrays) or added as additional key\-value pairs in an
-associative array.
+variable's value is not unset (as it is when using =), and new
+values are appended to the array beginning at one greater than the array's
+maximum index (for indexed arrays) or added as additional key\-value pairs
+in an associative array.
When applied to a string-valued variable, \fIvalue\fP is expanded and
appended to the variable's value.
.PP
to the variable whose name was passed as \fB$1\fP.
If the control variable in a \fBfor\fP loop has the nameref attribute,
the list of words can be a list of shell variables, and a name reference
-will be established for each word in the list, in turn, when the loop is
+is established for each word in the list, in turn, when the loop is
executed.
Array variables cannot be given the \fBnameref\fP attribute.
However, nameref variables can reference array variables and subscripted
array variables.
Namerefs can be unset using the \fB\-n\fP option to the \fBunset\fP builtin.
Otherwise, if \fBunset\fP is executed with the name of a nameref variable
-as an argument, the variable referenced by the nameref variable will be unset.
+as an argument, the variable referenced by the nameref variable is unset.
.SS Positional Parameters
A
.I positional parameter
.B BASHPID
have no effect.
If
+.SM
.B BASHPID
is unset, it loses its special properties, even if it is
subsequently reset.
unsetting array elements currently does not remove aliases
from the alias list.
If
+.SM
.B BASH_ALIASES
is unset, it loses its special properties, even if it is
subsequently reset.
.BR $0 ;
see the description of special parameter 0 above).
Assigning a value to
+.SM
.B BASH_ARGV0
-assigns the same value to \fB$0\fP.
+sets \fB$0\fP to the same value.
If
+.SM
.B BASH_ARGV0
is unset, it loses its special properties, even if it is
subsequently reset.
unsetting array elements currently does not remove command names
from the hash table.
If
+.SM
.B BASH_CMDS
is unset, it loses its special properties, even if it is
subsequently reset.
unless the shell is executing a command as the result of a trap,
in which case it is the command executing at the time of the trap.
If
+.SM
.B BASH_COMMAND
is unset, it loses its special properties, even if it is
subsequently reset.
.SM
.B FUNCNAME
was invoked.
-\fB${BASH_LINENO[\fP\fI$i\fP\fB]}\fP is the line number in the source
-file (\fB${BASH_SOURCE[\fP\fI$i+1\fP\fB]}\fP) where
-\fB${FUNCNAME[\fP\fI$i\fP\fB]}\fP was called
+\fB${BASH_LINENO[\fP\fI$i\fP\fB]}\fP
+is the line number in the source file
+(\fB${BASH_SOURCE[\fP\fI$i+1\fP\fB]}\fP)
+where
+\fB${FUNCNAME[\fP\fI$i\fP\fB]}\fP
+was called
(or \fB${BASH_LINENO[\fP\fI$i\-1\fP\fB]}\fP if referenced within another
shell function).
Use
by the system's monotonic clock, if one is available.
If there is no monotonic clock, this is equivalent to \fBEPOCHSECONDS\fP.
If
+.SM
.B BASH_MONOSECONDS
is unset, it loses its special properties, even if it is
subsequently reset.
the shell begins executing in that environment.
The initial value is 0.
If
+.SM
.B BASH_SUBSHELL
is unset, it loses its special properties, even if it is
subsequently reset.
and
.B popd
builtins must be used to add and remove directories.
-Assignment to this variable will not change the current directory.
+Assigning to this variable does not change the current directory.
If
.SM
.B DIRSTACK
is unset, it loses its special properties, even if it is
subsequently reset.
.IP
-This variable can be used with \fBBASH_LINENO\fP and \fBBASH_SOURCE\fP.
-Each element of \fBFUNCNAME\fP has corresponding elements in
-\fBBASH_LINENO\fP and \fBBASH_SOURCE\fP to describe the call stack.
-For instance, \fB${FUNCNAME[\fP\fI$i\fP\fB]}\fP was called from the file
-\fB${BASH_SOURCE[\fP\fI$i+1\fP\fB]}\fP at line number
+This variable can be used with
+.SM
+.B BASH_LINENO
+and
+.SM
+.BR BASH_SOURCE .
+Each element of
+.SM
+.B \%FUNCNAME
+has corresponding elements in
+.SM
+.B BASH_LINENO
+and
+.SM
+.B BASH_SOURCE
+to describe the call stack.
+For instance,
+\fB\%${FUNCNAME[\fP\fI$i\fP\fB]}\fP
+was called from the file
+\fB${BASH_SOURCE[\fP\fI$i+1\fP\fB]}\fP
+at line number
\fB${BASH_LINENO[\fP\fI$i\fP\fB]}\fP.
The \fBcaller\fP builtin displays the current call stack using this
information.
Assignments to
.SM
.B HISTCMD
-are ignored.
+have no effect.
If
.SM
.B HISTCMD
in the most-recently-executed foreground pipeline, which may
consist of only a simple command
(see
+.SM
.B "SHELL GRAMMAR"
above).
.TP
.B RANDOM
Each time this parameter is referenced, it expands to a random integer
between 0 and 32767.
-Assigning
-a value to
+Assigning a value to
.SM
.B RANDOM
initializes (seeds) the sequence of random numbers.
-Seeding the random number generator with the same constant value will
-produce the same sequence of values.
+Seeding the random number generator with the same constant value
+produces the same sequence of values.
If
.SM
.B RANDOM
levels and their effects.
The value may be a decimal number (e.g., 4.2) or an integer (e.g., 42)
corresponding to the desired compatibility level.
-If \fBBASH_COMPAT\fP is unset or set to the empty string, the compatibility
+If
+.SM
+.B BASH_COMPAT
+is unset or set to the empty string, the compatibility
level is set to the default for the current version.
-If \fBBASH_COMPAT\fP is set to a value that is not one of the valid
+If
+.SM
+.B BASH_COMPAT
+is set to a value that is not one of the valid
compatibility levels, the shell prints an error message and sets the
compatibility level to the default for the current version.
A subset of the valid values correspond to the compatibility levels
is not used to search for the resultant filename.
.TP
.B BASH_XTRACEFD
-If set to an integer corresponding to a valid file descriptor, \fBbash\fP
-will write the trace output generated when
+If set to an integer corresponding to a valid file descriptor,
+\fBbash\fP writes the trace output generated when
.Q "set \-x"
is enabled to that file descriptor,
instead of the standard error.
Expanded and executed similarly to
.SM
.B BASH_ENV
-(see \fBINVOCATION\fP above)
-when an interactive shell is invoked in posix mode.
+(see
+.SM
+.B INVOCATION
+above) when an interactive shell is invoked in posix mode.
.TP
.B EXECIGNORE
A colon-separated list of shell patterns (see \fBPattern Matching\fP)
defining the set of filenames to be ignored by command search using
-\fBPATH\fP.
+.SM
+.BR PATH .
Files whose full pathnames match one of these patterns are not considered
executable files for the purposes of completion and command execution
-via \fBPATH\fP lookup.
+via
+.SM
+.B PATH
+lookup.
This does not affect the behavior of the \fB[\fP, \fBtest\fP, and \fB[[\fP
commands.
-Full pathnames in the command hash table are not subject to \fBEXECIGNORE\fP.
+Full pathnames in the command hash table are not subject to
+.SM
+.BR EXECIGNORE .
Use this variable to ignore shared library files that have the executable
bit set, but are not executable files.
The pattern matching honors the setting of the \fBextglob\fP shell
If set to a numeric value greater than 0, defines a maximum function
nesting level.
Function invocations that exceed this nesting level
-will cause the current command to abort.
+cause the current command to abort.
.TP
.B GLOBIGNORE
A colon-separated list of patterns defining the set of file names to
If this variable is unset or set to the null string, pathname expansion
uses the historical behavior of sorting by name,
in ascending lexicographic order as determined by the
+.SM
.B \%LC_COLLATE
shell variable.
.IP
order by modification time (newest first).
.IP
The \fInumeric\fP specifier treats names consisting solely of digits as
-numbers and sorts them using their numeric value (so
+numbers and sorts them using their numeric value
+(so
.Q 2
-will sort before
+sorts before
.Q 10 ,
for example).
When using \fInumeric\fP, names containing non-digits sort after all
.SM
.B HISTCONTROL
is unset, or does not include a valid value,
-all lines read by the shell parser are saved on the history list,
+\fBbash\fP saves all lines read by the shell parser on the history list,
subject to the value of
.SM
.BR HISTIGNORE .
-The second and subsequent lines of a multi-line compound command are
-not tested, and are added to the history regardless of the value of
+If the first line of a multi-line compound command was saved,
+the second and subsequent lines are not tested,
+and are added to the history regardless of the value of
.SM
-.B HISTCONTROL
-if the first line of the command was saved.
+.BR HISTCONTROL .
If the first line was not saved, the second and subsequent lines of
the command are not saved either.
.TP
below).
\fBBash\fP assigns a default value of
.FN \*~/.bash_history .
-If \fBHISTFILE\fP is unset or null,
+If
+.SM
+.B HISTFILE
+is unset or null,
the shell does not save the command history when it exits.
.TP
.B HISTFILESIZE
writing it when a shell exits or by the \fBhistory\fP builtin.
If the value is 0, the history file is truncated to zero size.
Non-numeric values and numeric values less than zero inhibit truncation.
-The shell sets the default value to the value of \fBHISTSIZE\fP
+The shell sets the default value to the value of
+.SM
+.B HISTSIZE
after reading any startup files.
.TP
.B HISTIGNORE
it is not saved on the history list.
Each pattern is anchored at the
beginning of the line and must match the complete line
-(\fBbash\fP will not implicitly append a
+(\fBbash\fP does not implicitly append a
.Q \fB*\fP ).
Each pattern is tested against the line
after the checks specified by
In addition to the normal shell pattern matching characters,
.Q \fB&\fP
matches the previous history line.
-A backslash will escape the
+A backslash escapes the
.Q \fB&\fP ;
the backslash is removed before attempting a match.
-The second and subsequent lines of a multi-line compound command are
-not tested, and are added to the history regardless of the value of
+If the first line of a multi-line compound command was saved,
+the second and subsequent lines are not tested,
+and are added to the history regardless of the value of
.SM
.BR HISTIGNORE .
If the first line was not saved, the second and subsequent lines of
When
.SM
.B HOSTFILE
-is unset, the hostname list is cleared.
+is unset, \fBbash\fP clears the the hostname list.
.TP
.B IFS
The
.B INSIDE_EMACS
If this variable appears in the environment when the shell starts,
\fBbash\fP assumes that it is running inside an Emacs shell buffer
-and may disable line editing, depending on the value of \fBTERM\fP.
+and may disable line editing, depending on the value of
+.SM
+.BR TERM .
.TP
.B LANG
Used to determine the locale category for any category not specifically
.Q ? .
When used in the text of the message, \fB$_\fP expands to the name of
the current mailfile.
-Example:
+For example:
.RS
.PP
.EX
The optional \fIp\fP is a digit specifying the \fIprecision\fP,
the number of fractional digits after a decimal point.
A value of 0 causes no decimal point or fraction to be output.
-\fBtime\fP will print at most six digits after the decimal point;
+\fBtime\fP prints at most six digits after the decimal point;
values of \fIp\fP greater than 6 are changed to 6.
If \fIp\fP is not specified,
\fBtime\fP prints three digits after the decimal point.
this provides functionality analogous to the \fB%\fP\fIstring\fP job identifier.
.TP
.B histchars
-The two or three characters which control history expansion
-and tokenization (see
+The two or three characters which control history expansion,
+quick substitution, and tokenization
+(see
.SM
.B "HISTORY EXPANSION"
below).
provides one-dimensional indexed and associative array variables.
Any variable may be used as an indexed array; the
.B declare
-builtin will explicitly declare an array.
+builtin explicitly declares an array.
There is no maximum
limit on the size of an array, nor any requirement that members
be indexed or assigned contiguously.
-Indexed arrays are referenced using integers (including arithmetic
-expressions) and are zero-based; associative arrays are referenced
-using arbitrary strings.
+Indexed arrays are referenced using arithmetic expressions
+that must expand to an integer and are zero-based;
+associative arrays are referenced using arbitrary strings.
Unless otherwise noted, indexed array indices must be non-negative integers.
.PP
An indexed array is created automatically if any variable is assigned to
-using the syntax \fIname\fP[\fIsubscript\fP]=\fIvalue\fP. The
+using the syntax
+\fIname\fP[\fIsubscript\fP]=\fIvalue\fP.
+The
.I subscript
is treated as an arithmetic expression that must evaluate to a number
greater than or equal to zero.
\fIname\fP, so negative indices count back from the end of the
array, and an index of \-1 references the last element.
.PP
-The += operator will append to an array variable when assigning
+The += operator appends to an array variable when assigning
using the compound assignment syntax; see
.SM
.B PARAMETERS
.PP
Referencing an array variable without a subscript is equivalent to
referencing the array with a subscript of 0.
-Any reference to a variable using a valid subscript is valid, and
+Any reference to a variable using a valid subscript is valid;
.B bash
-will create an array if necessary.
+creates an array if necessary.
.PP
An array variable is considered set if a subscript has been assigned a
value.
and \fIincr\fP, an optional increment, is an integer.
When integers are supplied, the expression expands to each number between
\fIx\fP and \fIy\fP, inclusive.
-If the supplied integers are prefixed with \fI0\fP, each term will
-have the same width, zero-padding if necessary.
+If either \fIx\fP or \fIy\fP begins with \fI0\fP,
+each generated term will contain the same number of digits,
+zero-padding where necessary.
When either \fIx\fP or \fPy\fP begins with a zero, the shell
attempts to force all generated terms to contain the same number of digits,
zero-padding where necessary.
Quoting any part of \fIstring\fP inhibits replacement in the
expansion of the quoted portion, including replacement strings stored
in shell variables.
-Backslash will escape \fB&\fP in \fIstring\fP; the backslash is removed
+Backslash escapes \fB&\fP in \fIstring\fP; the backslash is removed
in order to permit a literal \fB&\fP in the replacement string.
Backslash can also be used to escape a backslash; \fB\e\e\fP results in
a literal backslash in the replacement.
.B A
The expansion is a string in the form of
an assignment statement or \fBdeclare\fP command that, if
-evaluated, will recreate \fIparameter\fP with its attributes and value.
+evaluated, recreates \fIparameter\fP with its attributes and value.
.TP
.B K
Produces a possibly-quoted version of the value of \fIparameter\fP,
Any side effects of \fIcommand\fP take effect immediately
in the current execution environment and persist in the current
environment after the command completes (e.g., the \fBexit\fP builtin
-will exit the shell).
+exits the shell).
.PP
This type of command substitution superficially resembles executing an
unnamed shell function: local variables are created as when a shell
expansion.
.PP
If the \fB>(\fP\fIlist\^\fP\fB)\fP form is used, writing to
-the file will provide input for \fIlist\fP.
+the file provides input for \fIlist\fP.
If the
\fB<(\fP\fIlist\^\fP\fB)\fP form is used, reading the file
-will obtain the output of \fIlist\fP.
+obtains the output of \fIlist\fP.
No space may appear between the \fB<\fP or \fB>\fP
and the left parenthesis, otherwise the construct would be interpreted
as a redirection.
and passed to commands as empty strings.
Unquoted implicit null arguments, resulting from the expansion of
parameters that have no values, are removed.
-Expanding a parameter with no value within double quotes
+Expanding a parameter with no value within double quotes
produces a null field,
which is retained and passed to a command as an empty string.
.PP
.B dotglob
shell option, so all other filenames beginning with a
.Q .\&
-will match.
+match.
To get the old behavior of ignoring filenames beginning with a
.Q .\& ,
make
Matches any string, including the null string.
When the \fBglobstar\fP shell option is enabled, and \fB*\fP is used in
a pathname expansion context, two adjacent \fB*\fPs used as a single
-pattern will match all files and zero or more directories and
+pattern match all files and zero or more directories and
subdirectories.
-If followed by a \fB/\fP, two adjacent \fB*\fPs will match only directories
+If followed by a \fB/\fP, two adjacent \fB*\fPs match only directories
and subdirectories.
.TP
.B ?
and \^\fB\*"\fP\^ that did not result from one of the above
expansions are removed.
.SH REDIRECTION
-Before a command is executed, its input and output
-may be
+Before a command is executed, its input and output may be
.I redirected
using a special notation interpreted by the shell.
\fIRedirection\fP allows commands' file handles to be
Each redirection that may be preceded by a file descriptor number
may instead be preceded by a word of the form {\fIvarname\fP}.
In this case, for each redirection operator except
->&- and <&-, the shell will allocate a file descriptor greater
-than or equal to 10 and assign it to \fIvarname\fP.
-If {\fIvarname\fP} precedes >&- or <&-,
+.B >&\-
+and
+.BR <&\- ,
+the shell allocates a file descriptor greater
+than or equal to 10 and assigns it to \fIvarname\fP.
+If {\fIvarname\fP} precedes
+.B >&\-
+or
+.BR <&\- ,
the value of \fIvarname\fP defines the file descriptor to close.
If {\fIvarname\fP} is supplied, the redirection persists beyond
-the scope of the command, which allows the shell programmer to manage
-the file descriptor's lifetime manually
-without using the \fBexec\fP builtin.
+the scope of the command, which allows the shell programmer to
+manage the file descriptor's lifetime manually without using
+the \fBexec\fP builtin.
The \fBvarredir_close\fP shell option manages this behavior.
.PP
In the following descriptions, if the file descriptor number is
omitted, and the first character of the redirection operator is
-.BR < ,
-the redirection refers to the standard input (file descriptor
-0). If the first character of the redirection operator is
-.BR > ,
-the redirection refers to the standard output (file descriptor
-1).
+.Q < ,
+the redirection refers to the standard input (file descriptor 0).
+If the first character of the redirection operator is
+.Q > ,
+the redirection refers to the standard output (file descriptor 1).
.PP
The \fIword\fP following the redirection operator in the following
descriptions, unless otherwise noted, is subjected to
\fBBash\fP handles several filenames specially when they are used in
redirections, as described in the following table.
If the operating system on which \fBbash\fP is running provides these
-special files, \fBbash\fP will use them; otherwise it will emulate them
+special files, \fBbash\fP uses them; otherwise it emulates them
internally with the behavior described below.
.RS
.PP
.B noclobber
option to the
.B set
-builtin has been enabled, the redirection will fail if the file
+builtin has been enabled, the redirection fails if the file
whose name results from the expansion of \fIword\fP exists and is
a regular file.
If the redirection operator is
.PP
For example, if a variable \fIvar\fP is declared as local in function
\fIfunc1\fP, and \fIfunc1\fP calls another function \fIfunc2\fP,
-references to \fIvar\fP made from within \fIfunc2\fP will resolve to the
+references to \fIvar\fP made from within \fIfunc2\fP resolve to the
local variable \fIvar\fP from \fIfunc1\fP, shadowing any global variable
named \fIvar\fP.
.PP
The \fBunset\fP builtin also acts using the same dynamic scope: if a
-variable is local to the current scope, \fBunset\fP will unset it;
+variable is local to the current scope, \fBunset\fP unsets it;
otherwise the unset will refer to the variable found in any calling scope
as described above.
-If a variable at the current local scope is unset, it will remain so
+If a variable at the current local scope is unset, it remains so
(appearing as unset)
until it is reset in that scope or until the function returns.
Once the function returns, any instance of the variable at a previous
-scope will become visible.
+scope becomes visible.
If the unset acts on a variable at a previous scope, any instance of a
-variable with that name that had been shadowed will become visible
+variable with that name that had been shadowed becomes visible
(see below how the \fBlocalvar_unset\fP shell option changes this behavior).
.PP
-The \fBFUNCNEST\fP variable, if set to a numeric value greater
+The
+.SM
+.B FUNCNEST
+variable, if set to a numeric value greater
than 0, defines a maximum function nesting level.
Function invocations that exceed the limit cause the entire command to
abort.
or
.B typeset
builtin commands
-will list function names and definitions.
+lists function names and definitions.
The
.B \-F
option to
.B declare
or
.B typeset
-will list the function names only
+lists the function names only
(and optionally the source file and line number, if the \fBextdebug\fP
shell option is enabled).
Functions may be exported so that child shell processes
The \fB\-f\fP option to
the
.B unset
-builtin will delete a function definition.
+builtin deletes a function definition.
.PP
Functions may be recursive.
The \fBFUNCNEST\fP variable may be used to limit the depth of the
.FN /dev/fd/n ,
then \fBbash\fP checks file descriptor \fIn\fP.
If the \fIfile\fP argument to one of the primaries is one of
-.FN \*/dev/stdin ,
-.FN \*/dev/stdout ,
+.FN /dev/stdin ,
+.FN /dev/stdout ,
or
-.FN \*/dev/stderr ,
+.FN /dev/stderr ,
\fBbash\fP checks file descriptor 0, 1, or 2, respectively.
.PP
Unless otherwise specified, primaries that operate on files follow symbolic
.I x
key, in sequence.
This makes ESC the \fImeta prefix\fP.
-The combination M\-C\-\fIx\fP means ESC\-Control\-\fIx\fP:
+The combination M\-C\-\fIx\fP means ESC Control\-\fIx\fP:
press and release the Escape key,
then press and hold the Control key while pressing the
.I x
file (the \fIinputrc\fP file).
The name of this file is taken from the value of the
.SM
-.B INPUTRC
+.B \%INPUTRC
shell variable.
If that variable is unset, the default is
.FN \*~/.inputrc .
If that file does not exist or cannot be read, \fBreadline\fP looks for
.FN /etc/inputrc .
-When a program which uses the \fBreadline\fP library starts up,
+When a program that uses the \fBreadline\fP library starts up,
\fBreadline\fP reads the initialization file
and sets the key bindings and variables found there,
before reading any user input.
.IR NEWLINE ,
.IR RET ,
.IR RETURN ,
-.IR RUBOUT (a destructive backspace),
+.I RUBOUT
+(a destructive backspace),
.IR SPACE ,
.IR SPC ,
and
When entering the text of a macro, single or double quotes must
be used to indicate a macro definition.
Unquoted text is assumed to be a function name.
-Tthe backslash escapes described above are expanded
+The backslash escapes described above are expanded
in the macro body.
-Backslash will quote any other character in the macro text,
+Backslash quotes any other character in the macro text,
including \*" and \*'.
.PP
.B Bash
.SM
.B "SHELL BUILTIN COMMANDS"
below)
-will change the editing mode during interactive use.
+change the editing mode during interactive use.
.SS "Readline Variables"
\fBReadline\fP has variables that can be used to further customize its
behavior.
\fBOff\fP.
.PP
The \fBbind \-V\fP command lists the current \fBreadline\fP variable names
-and values (see
+and values (see
.SM
.B "SHELL BUILTIN COMMANDS"
below).
when performing completion.
The value is ignored if it is less than 0 or greater than the terminal
screen width.
-A value of 0 will cause matches to be displayed one per line.
+A value of 0 causes matches to be displayed one per line.
The default value is \-1.
.TP
.B completion\-ignore\-case (Off)
It may be set to any integer value greater than or equal to zero.
If the number of possible completions is greater than
or equal to the value of this variable,
-\fBreadline\fP will ask whether or not the user wishes to view them;
+\fBreadline\fP asks whether or not the user wishes to view them;
otherwise \fBreadline\fP simply lists them on the terminal.
A zero value means \fBreadline\fP should never ask; negative values are
treated as zero.
.TP
.B convert\-meta (On)
-If set to \fBOn\fP, \fBreadline\fP will convert characters it reads
+If set to \fBOn\fP, \fBreadline\fP converts characters it reads
that have the eighth bit set to an ASCII key sequence by
clearing the eighth bit and prefixing it with an escape character
(converting the character to have the meta prefix).
-The default is \fIOn\fP, but \fBreadline\fP will set it to \fIOff\fP
+The default is \fIOn\fP, but \fBreadline\fP sets it to \fIOff\fP
if the locale contains
characters whose encodings may include bytes with the eighth bit set.
This variable is dependent on the \fBLC_CTYPE\fP locale category, and
\fBforce\-meta\-prefix\fP below.
.TP
.B disable\-completion (Off)
-If set to \fBOn\fP, \fBreadline\fP will inhibit word completion.
-Completion characters will be inserted into the line as if they
+If set to \fBOn\fP, \fBreadline\fP inhibits word completion.
+Completion characters are inserted into the line as if they
had been mapped to \fBself-insert\fP.
.TP
.B echo\-control\-characters (On)
.B enable\-active\-region (On)
When this variable is set to \fIOn\fP, \fBreadline\fP allows certain commands
to designate the region as \fIactive\fP.
-When the region is active, \fBreadline\fP highlights
-the text in the region using
-the value of the \fBactive\-region\-start\-color\fP, which defaults to the
-string that enables the terminal's standout mode.
+When the region is active, \fBreadline\fP
+highlights the text in the region using the value of the
+.B active\-region\-start\-color
+variable, which defaults to the string that enables
+the terminal's standout mode.
The active region shows the text inserted by bracketed-paste and any
matching text found by incremental and non-incremental history searches.
.TP
sequences appearing in the pasted text.
.TP
.B enable\-keypad (Off)
-When set to \fBOn\fP, \fBreadline\fP will try to enable the application
+When set to \fBOn\fP, \fBreadline\fP tries to enable the application
keypad when it is called.
Some systems need this to enable the arrow keys.
.TP
.B enable\-meta\-key (On)
-When set to \fBOn\fP, \fBreadline\fP will try to enable any meta modifier
+When set to \fBOn\fP, \fBreadline\fP tries to enable any meta modifier
key the terminal claims to support.
On many terminals, the Meta key is used to send eight-bit characters;
this variable checks for the terminal capability that indicates the
This setting is automatically enabled for terminals of height 1.
.TP
.B input\-meta (Off)
-If set to \fBOn\fP, \fBreadline\fP will enable eight-bit input (that is, it
-will not clear the eighth bit in the characters it reads),
+If set to \fBOn\fP, \fBreadline\fP enables eight-bit input (that is, it
+does not clear the eighth bit in the characters it reads),
regardless of what the terminal claims it can support.
-The default is \fIOff\fP, but \fBreadline\fP will set it to \fIOn\fP
+The default is \fIOff\fP, but \fBreadline\fP sets it to \fIOn\fP
if the locale contains characters whose encodings may include bytes
with the eighth bit set.
This variable is dependent on the \fBLC_CTYPE\fP locale category, and
The name \fBmeta\-flag\fP is a synonym for \fBinput\-meta\fP.
.TP
.BR isearch\-terminators\ ( \c
-.Q \fBC\-[C\-J\fP \fB)\fP
+.Q \fBC\-[C\-j\fP \fB)\fP
The string of characters that should terminate an incremental
search without subsequently executing the character as a command.
If this variable has not been given a value, the characters
-\fIESC\fP and \fIC\-J\fP will terminate an incremental search.
+\fIESC\fP and \fBC\-j\fP terminate an incremental search.
.TP
.B keymap (emacs)
Set the current \fBreadline\fP keymap.
(one that can form a complete key sequence using the input read so far,
or can take additional input to complete a longer key sequence).
If \fBreadline\fP does not receive any input within the timeout,
-it will use the shorter but complete key sequence.
+it uses the shorter but complete key sequence.
The value is specified in milliseconds, so a value of 1000 means that
\fBreadline\fP will wait one second for additional input.
If this variable is set to a value less than or equal to zero, or to a
-non-numeric value, \fBreadline\fP will wait until another key is pressed to
+non-numeric value, \fBreadline\fP waits until another key is pressed to
decide which key sequence to complete.
.TP
.B mark\-directories (On)
the list.
.TP
.B output\-meta (Off)
-If set to \fBOn\fP, \fBreadline\fP will display characters with the
+If set to \fBOn\fP, \fBreadline\fP displays characters with the
eighth bit set directly rather than as a meta-prefixed escape
sequence.
-The default is \fIOff\fP, but \fBreadline\fP will set it to \fIOn\fP
+The default is \fIOff\fP, but \fBreadline\fP sets it to \fIOn\fP
if the locale contains characters whose encodings may include
bytes with the eighth bit set.
This variable is dependent on the \fBLC_CTYPE\fP locale category, and
its value may change if the locale changes.
.TP
.B page\-completions (On)
-If set to \fBOn\fP, \fBreadline\fP uses an internal \fImore\fP-like pager
+If set to \fBOn\fP, \fBreadline\fP uses an internal pager resembling
+.IR more (1)
to display a screenful of possible completions at a time.
.TP
.B prefer\-visible\-bell
See \fBbell\-style\fP.
.TP
.B print\-completions\-horizontally (Off)
-If set to \fBOn\fP, \fBreadline\fP will display completions with matches
+If set to \fBOn\fP, \fBreadline\fP displays completions with matches
sorted horizontally in alphabetical order, rather than down the screen.
.TP
.B revert\-all\-at\-newline (Off)
The characters present in the value of the \fBisearch-terminators\fP
variable are used to terminate an incremental search.
If that variable has not been assigned a value,
-\fIESC\fP and \fIC\-J\fP will terminate an incremental search.
-\fIC\-g\fP will abort an incremental search and restore the original line.
+\fIESC\fP and \fBC\-j\fP terminate an incremental search.
+\fBC\-g\fP aborts an incremental search and restores the original line.
When the search is terminated, the history entry containing the
search string becomes the current line.
.PP
To find other matching entries in the history list, type \fBC\-r\fP or
\fBC\-s\fP as appropriate.
-This will search backward or forward in the history for the next
+This searches backward or forward in the history for the next
entry matching the search string typed so far.
-Any other key sequence bound to a \fBreadline\fP command will terminate
-the search and execute that command.
-For instance, a newline will terminate the search and accept
+Any other key sequence bound to a \fBreadline\fP command terminates
+the search and executes that command.
+For instance, a newline terminates the search and accepts
the line, thereby executing the command from the history list.
A movement command will terminate the search, make the last line found
the current line, and begin editing.
The text between the point and mark is referred to as the \fIregion\fP.
.B Readline
has the concept of an \fIactive region\fP:
-when the region is active, \fBreadline\fP redisplay uses the
-value of the \fBactive\-region\-start\-color variable
-to denote the region.
+when the region is active, \fBreadline\fP redisplay
+highlights the region using the value of the
+.B active\-region\-start\-color
+variable.
+The \fBenable\-active\-region\fP \fBreadline\fP variable turns this on and off.
Several commands set the region to active; those are noted below.
.SS Commands for Moving
.PD 0
.TP
.B forward\-char (C\-f)
Move forward a character.
+This may also be bound to the right arrow key on some keyboards.
.TP
.B backward\-char (C\-b)
Move back a character.
+This may also be bound to the left arrow key on some keyboards.
.TP
.B forward\-word (M\-f)
Move forward to the end of the next word.
.B previous\-history (C\-p)
Fetch the previous command from the history list, moving back in
the list.
+This may also be bound to the up arrow key on some keyboards.
.TP
.B next\-history (C\-n)
Fetch the next command from the history list, moving forward in the
list.
+This may also be bound to the down arrow key on some keyboards.
.TP
.B beginning\-of\-history (M\-<)
Move to the first line in the history.
Perform completion on the word before point as described above
and write the list of possible completions to \fBreadline\fP's output
stream using the following format, writing information on separate lines:
-.sp
-.IP
.RS
-.nf
-The number of matches;
-The word being completed;
-S:E, where S and E are the start and end offsets of the word
-in the readline line buffer; then
-Each match, one per line
-.fi
+.PD
+.IP \(bu
+.PD 0
+the number of matches \fIN\fP;
+.IP \(bu
+the word being completed;
+.IP \(bu
+\fIS\fP:\fIE\fP,
+where S and E are the start and end offsets of the word
+in the \fBreadline\fP line buffer; then
+.IP \(bu
+each match, one per line
.RE
-.sp
+.PD
.IP
-If there are no matches, the first line will be 0, and this command will
-not print any output after the S:E.
+If there are no matches, the first line will be
+.Q 0 ,
+and this command does not print any output after the \fIS\fP:\fIE\fP.
If there is only a single match, this prints a single line containing it.
If there is more than one match, this prints the common prefix of the
-matches, which may be empty, on the first line after the S:E,
+matches, which may be empty, on the first line after the \fIS\fP:\fIE\fP,
then the matches on subsequent lines.
-In this case, N will include the first line with the common prefix.
-.PD
+In this case, \fIN\fP will include the first line with the common prefix.
.IP
-.PD 0
The user or application
should be able to accommodate the possibility of a blank line.
-The intent is that the user or application reads N lines after the line
-containing S:E to obtain the match list.
+The intent is that the user or application reads \fIN\fP lines after
+the line containing \fIS\fP:\fIE\fP to obtain the match list.
This command is unbound by default.
.TP
.B delete\-char\-or\-list
.B skip\-csi\-sequence
Read enough characters to consume a multi-key sequence such as those
defined for keys like Home and End.
-CSI sequences begin with a Control Sequence Indicator (CSI), usually ESC\-[.
+CSI sequences begin with a Control Sequence Indicator (CSI), usually
+.IR "ESC [" .
If this sequence is bound to
.Q \ee[ ,
-keys producing CSI sequences will have no effect
-unless explicitly bound to a \fBreadline\fP command, instead of inserting
-stray characters into the editing buffer.
-This is unbound by default, but usually bound to ESC\-[.
+keys producing CSI sequences have no effect
+unless explicitly bound to a \fBreadline\fP command,
+instead of inserting stray characters into the editing buffer.
+This is unbound by default, but usually bound to
+.IR "ESC [" .
.TP
.B insert\-comment (M\-#)
Without a numeric argument, insert the value of the \fBreadline\fP
Display version information about the current instance of
.BR bash .
.PD
-.SS Programmable Completion
-When a user attempts word completion for an argument to a command for
+.SS "Programmable Completion"
+When a user attempts word completion
+for a command or an argument to a command for
which a completion specification (a \fIcompspec\fP) has been defined
-using the \fBcomplete\fP builtin (see
+using the \fBcomplete\fP builtin
+(see
.SM
.B "SHELL BUILTIN COMMANDS"
-below), \fBreadline\fP invokes the programmable completion facilities.
+below),
+\fBreadline\fP invokes the programmable completion facilities.
.PP
First, \fBbash\fP identifies the command name.
If a compspec has been defined for that command, the
If the command word is the empty string (completion attempted at the
beginning of an empty line), \fBbash\fP uses any compspec defined with
the \fB\-E\fP option to \fBcomplete\fP.
+The \fB\-I\fP option to \fBcomplete\fP
+indicates that the command word is the first non-assignment word
+on the line, or after a command delimiter such as
+\fB;\fP or \fB|\fP.
+This usually indicates command name completion.
+.PP
If the command word is a full pathname, \fBbash\fP
searches for a compspec for the full pathname first.
If there is no compspec for the full pathname, \fBbash\fP attempts to
find a compspec for the portion following the final slash.
-If those searches do not result in a compspec, any compspec defined with
-the \fB\-D\fP option to \fBcomplete\fP is used as the default.
-If there is no default compspec, \fBbash\fP attempts alias expansion
-on the command word as a final resort, and attempts to find a compspec
-for the command word from any successful expansion.
+If those searches do not result in a compspec,
+or if there is no compspec for the command word,
+\fBbash\fP uses any compspec defined with
+the \fB\-D\fP option to \fBcomplete\fP as the default.
+If there is no default compspec, \fBbash\fP performs alias expansion
+on the command word as a final resort,
+and attempts to find a compspec for the command word
+resulting from any successful expansion.
.PP
If a compspec is not found, \fBbash\fP performs its default completion as
described above under \fBCompleting\fP.
the list of matching words.
.PP
First, \fBbash\fP performs the \fIactions\fP specified by the compspec.
-Only matches which are prefixed by the word being completed are
-returned.
+This only returns matches which are prefixes
+of the word being completed.
When the
.B \-f
or
.B FIGNORE
to filter the matches.
.PP
-Any completions specified by a pathname expansion pattern to the
-\fB\-G\fP option are generated next.
+Next, programmable completion generates matches
+specified by a pathname expansion pattern
+supplied as an argument to the
+\fB\-G\fP option.
The words generated by the pattern need not match the word
being completed.
\fBBash\fP
.SM
.B IFS
special variable as delimiters.
-Shell quoting is honored.
+This honors shell quoting within the string, in order to provide a
+mechanism for the words to contain shell metacharacters or characters
+in the value of
+.SM
+.BR IFS .
Each word is then expanded using
brace expansion, tilde expansion, parameter and variable expansion,
command substitution, and arithmetic expansion,
After these matches have been generated,
\fBbash\fP executes any shell function or command
specified with the \fB\-F\fP and \fB\-C\fP options.
-When the command or function is invoked, the
+When the command or function is invoked, \fBbash\fP
+assigns values to the
.SM
.BR COMP_LINE ,
.SM
and
.SM
.B COMP_TYPE
-variables are assigned values as described above under
-\fBShell Variables\fP.
-If a shell function is being invoked, the
+variables as described above
+under \fBShell Variables\fP.
+If a shell function is being invoked, \fBbash\fP
+also sets the
.SM
.B COMP_WORDS
and
.SM
.B COMP_CWORD
-variables are also set.
+variables.
When the function or command is invoked,
the first argument (\fB$1\fP) is the name of the command whose arguments
are being completed,
completed on the current command line.
There is no filtering of the generated completions against the
word being completed;
-the function or command has complete freedom in generating the matches.
+the function or command has complete freedom in generating the matches
+and they do not need to match a prefix of the word.
.PP
Any function specified with \fB\-F\fP is invoked first.
The function may use any of the shell facilities, including the
in an environment equivalent to command substitution.
It should print a list of completions, one per line, to the
standard output.
-Backslash may be used to escape a newline, if necessary.
+Backslash will escape a newline, if necessary.
These are added to the set of possible completions.
.PP
-After all of the possible completions are generated, any filter
-specified with the \fB\-X\fP option is applied to the list.
+After generating all of the possible completions,
+\fBbash\fP applies any filter
+specified with the \fB\-X\fP option to the completions in the list.
The filter is a pattern as used for pathname expansion; a \fB&\fP
in the pattern is replaced with the text of the word being completed.
A literal \fB&\fP may be escaped with a backslash; the backslash
is removed before attempting a match.
-Any completion that matches the pattern will be removed from the list.
-A leading \fB!\fP negates the pattern; in this case any completion
-not matching the pattern will be removed.
+Any completion that matches the pattern is removed from the list.
+A leading \fB!\fP negates the pattern;
+in this case \fBbash\fP removes
+any completion that does not match the pattern.
If the
.B nocasematch
-shell option is enabled, the match is performed without regard to the case
+shell option is enabled,
+\fBbash\fP performs the match without regard to the case
of alphabetic characters.
.PP
-Finally, any prefix and suffix specified with the \fB\-P\fP and \fB\-S\fP
-options are added to each member of the completion list, and the result is
-returned to \fBreadline\fP as the list of possible completions.
+Finally, programmable completion adds
+any prefix and suffix specified with the
+\fB\-P\fP and \fB\-S\fP
+options, respectively, to each completion,
+and returns the result
+to \fBreadline\fP as the list of possible completions.
.PP
If the previously-applied actions do not generate any matches, and the
\fB\-o dirnames\fP option was supplied to \fBcomplete\fP when the
default of filename completion are disabled.
If the \fB\-o bashdefault\fP option was supplied to \fBcomplete\fP when
the compspec was defined,
-if the compspec generates no matches,
+and the compspec generates no matches,
\fBbash\fP attempts its default completions.
-If the \fB\-o default\fP option was supplied to \fBcomplete\fP when the
-compspec was defined, programmable completion will perform
-\fBreadline\fP's default completion
-if the compspec (and, if attempted, the default \fBbash\fP completions)
-generate no matches.
-.PP
-When a compspec indicates that directory name completion is desired,
-the programmable completion functions force \fBreadline\fP to append a slash
-to completed names which are symbolic links to directories, subject to
-the value of the \fBmark\-directories\fP \fBreadline\fP variable, regardless
-of the setting of the \fBmark-symlinked\-directories\fP \fBreadline\fP variable.
+If the compspec and, if attempted, the default \fBbash\fP completions
+generate no matches,
+and the \fB\-o default\fP option was supplied to
+\fBcomplete\fP when the compspec was defined,
+programmable completion performs \fBreadline\fP's default completion.
+.PP
+The options supplied to \fBcomplete\fP and \fBcompopt\fP
+can control how \fBreadline\fP treats the completions.
+For instance, the \fI\-o fullquote\fP option tells \fBreadline\fP
+to quote the matches as if they were filenames.
+See the description of \fBcomplete\fP below
+for details.
+.PP
+When a compspec indicates that it wants directory name completion,
+the programmable completion functions force \fBreadline\fP
+to append a slash to completed names which are symbolic links
+to directories, subject to the value of the
+\fBmark\-directories\fP \fBreadline\fP variable,
+regardless of the setting of the
+\fBmark-symlinked\-directories\fP \fBreadline\fP variable.
.PP
There is some support for dynamically modifying completions.
This is most useful when used in combination with a default completion
attempted (supplied as the first argument when the function is executed),
programmable completion restarts from the beginning, with an
attempt to find a new compspec for that command.
-This allows a set of completions to be built dynamically as completion
-is attempted, rather than being loaded all at once.
+This can be used to build a set of completions dynamically
+as completion is attempted, rather than loading them all at once.
.PP
For instance, assuming that there is a library of compspecs, each kept in a
file corresponding to the name of the command, the following default
.SM
.B HISTFILESIZE
variable.
-If \fBHISTFILESIZE\fP is unset, or set to null, a non-numeric value,
+If
+.SM
+.B HISTFILESIZE
+is unset, or set to null, a non-numeric value,
or a numeric value less than zero, the history file is not truncated.
.PP
When the history file is read,
Any character may be used as the delimiter in place of /.
The final delimiter is optional if it is the last character of the
event line.
-A single backslash will quote the delimiter in
+A single backslash quotes the delimiter in
.I old
and
.IR new .
.IR new ,
it is replaced with
.IR old .
-A single backslash will quote the &.
+A single backslash quotes the &.
If
.I old
is null, it is set to the last
call stack.
.TP
.PD 0
-\fBcd\fP [\fB\-L\fP] [\-@] [\fIdir\fP]
+\fBcd\fP [\fB\-L\fP] [\fB\-@\fP] [\fIdir\fP]
.TP
-\fBcd\fP \fB\-P\fP [\fB\-e\fP] [\-@] [\fIdir\fP]
+\fBcd\fP \fB\-P\fP [\fB\-e\fP] [\fB\-@\fP] [\fIdir\fP]
.PD
Change the current directory to \fIdir\fP.
if \fIdir\fP is not supplied, the value of the
option is supplied with
.BR \-P ,
and \fBcd\fP cannot successfully determine the current working directory
-after a successful directory change, it will return a non-zero status.
+after a successful directory change, it returns a non-zero status.
.IP
On systems that support it, the \fB\-@\fP option presents the extended
attributes associated with a file as a directory.
May also be specified as \fB\-e\fP.
.TP 8
.B file
-File names.
+File and directory names, similar to \fBreadline\fP's filename completion.
May also be specified as \fB\-f\fP.
.TP 8
.B function
If the variable
.SM
.B OPTERR
-is set to 0, no error messages will be displayed, even if the first
-character of
+is set to 0,
+.B getopts
+does not display any error messages,
+even if the first character of
.I optstring
is not a colon.
.IP
</HEAD>
<BODY><TABLE WIDTH=100%>
<TR>
-<TH ALIGN=LEFT width=33%>BASH(1)<TH ALIGN=CENTER width=33%>2024 October 23<TH ALIGN=RIGHT width=33%>BASH(1)
+<TH ALIGN=LEFT width=33%>BASH(1)<TH ALIGN=CENTER width=33%>2024 November 29<TH ALIGN=RIGHT width=33%>BASH(1)
</TR>
</TABLE>
<BR><A HREF="#index">Index</A>
<A HREF="file:~/.bashrc"><I>~/.bashrc</I></A>,
if that file exists.
-This may be inhibited by using the
+The
<B>--norc</B>
-option.
+option inhibits this behavior.
The <B>--rcfile</B> <I>file</I> option causes
<B>bash</B>
The
<B>--noprofile</B>
-option will inhibit this behavior.
+option inhibits this behavior.
When invoked as an interactive shell with the name
<B>sh</B>,
<A HREF="file:~/.bashrc"><I>~/.bashrc</I></A>,
if that file exists and is readable.
-It will not do this if invoked as <B>sh</B>.
+<B>Bash</B>
+
+does not read this file if invoked as <B>sh</B>.
The
<B>--norc</B>
-option will inhibit this behavior, and the
+option inhibits this behavior, and the
<B>--rcfile</B>
-option will make <B>bash</B> use a different file instead of
+option makes <B>bash</B> use a different file instead of
<A HREF="file:~/.bashrc"><I>~/.bashrc</I></A>,
since normal quoting and pattern characters lose their meanings
between brackets.
<DT><DD>
-The pattern will match if it matches any part of the string.
+The match succeeds if the pattern matches any part of the string.
Anchor the pattern using the <B>^</B> and <B>$</B> regular expression
operators to force it to match the entire string.
<DT><DD>
A double-quoted string preceded by a dollar sign (<B>$</B>"
<I>string</I>"
)
-will cause the string to be translated according to the current locale.
+causes the string to be translated according to the current locale.
The <I>gettext</I> infrastructure performs the lookup and
translation, using the <B>LC_MESSAGES</B>, <B>TEXTDOMAINDIR</B>,
and <B>TEXTDOMAIN</B> shell variables.
<P>
In the context where an assignment statement is assigning a value
-to a shell variable or array index, the += operator will
-append to or add to the variable's previous value.
+to a shell variable or array index,
+the += operator appends to or adds to
+the variable's previous value.
This includes arguments to <I>declaration</I> commands such as
<B>declare</B> that accept assignment statements.
-When += is applied to a variable for which the <B>integer</B> attribute
-has been set,
+When += is applied to a variable
+for which the <B>integer</B> attribute has been set,
the variable's current value and <I>value</I> are each evaluated as
arithmetic expressions,
and the sum of the results is assigned as the variable's value.
The current value is usually an integer constant, but may be an expression.
-When += is applied to an array variable using compound assignment (see
+When += is applied to an array variable using compound assignment
+(see
<B>Arrays</B>
below), the
-variable's value is not unset (as it is when using =), and new values are
-appended to the array beginning at one greater than the array's maximum index
-(for indexed arrays) or added as additional key-value pairs in an
-associative array.
+variable's value is not unset (as it is when using =), and new
+values are appended to the array beginning at one greater than the array's
+maximum index (for indexed arrays) or added as additional key-value pairs
+in an associative array.
When applied to a string-valued variable, <I>value</I> is expanded and
appended to the variable's value.
<P>
to the variable whose name was passed as <B>$1</B>.
If the control variable in a <B>for</B> loop has the nameref attribute,
the list of words can be a list of shell variables, and a name reference
-will be established for each word in the list, in turn, when the loop is
+is established for each word in the list, in turn, when the loop is
executed.
Array variables cannot be given the <B>nameref</B> attribute.
However, nameref variables can reference array variables and subscripted
array variables.
Namerefs can be unset using the <B>-n</B> option to the <B>unset</B> builtin.
Otherwise, if <B>unset</B> is executed with the name of a nameref variable
-as an argument, the variable referenced by the nameref variable will be unset.
+as an argument, the variable referenced by the nameref variable is unset.
<A NAME="lbAV"> </A>
<H4>Positional Parameters</H4>
</FONT>
have no effect.
If
-<B>BASHPID</B>
+<FONT SIZE=-1><B>BASHPID</B>
+</FONT>
is unset, it loses its special properties, even if it is
subsequently reset.
<DT><B>BASH_ALIASES</B>
unsetting array elements currently does not remove aliases
from the alias list.
If
-<B>BASH_ALIASES</B>
+<FONT SIZE=-1><B>BASH_ALIASES</B>
+</FONT>
is unset, it loses its special properties, even if it is
subsequently reset.
<DT><B>BASH_ARGC</B>
see the description of special parameter 0 above).
Assigning a value to
-<B>BASH_ARGV0</B>
+<FONT SIZE=-1><B>BASH_ARGV0</B>
-assigns the same value to <B>$0</B>.
+</FONT>
+sets <B>$0</B> to the same value.
If
-<B>BASH_ARGV0</B>
+<FONT SIZE=-1><B>BASH_ARGV0</B>
+</FONT>
is unset, it loses its special properties, even if it is
subsequently reset.
<DT><B>BASH_CMDS</B>
unsetting array elements currently does not remove command names
from the hash table.
If
-<B>BASH_CMDS</B>
+<FONT SIZE=-1><B>BASH_CMDS</B>
+</FONT>
is unset, it loses its special properties, even if it is
subsequently reset.
<DT><B>BASH_COMMAND</B>
unless the shell is executing a command as the result of a trap,
in which case it is the command executing at the time of the trap.
If
-<B>BASH_COMMAND</B>
+<FONT SIZE=-1><B>BASH_COMMAND</B>
+</FONT>
is unset, it loses its special properties, even if it is
subsequently reset.
<DT><B>BASH_EXECUTION_STRING</B>
</FONT>
was invoked.
-<B>${BASH_LINENO[</B><I>$i</I><B>]}</B> is the line number in the source
-file (<B>${BASH_SOURCE[</B><I>$i+1</I><B>]}</B>) where
-<B>${FUNCNAME[</B><I>$i</I><B>]}</B> was called
+<B>${BASH_LINENO[</B><I>$i</I><B>]}</B>
+is the line number in the source file
+(<B>${BASH_SOURCE[</B><I>$i+1</I><B>]}</B>)
+where
+<B>${FUNCNAME[</B><I>$i</I><B>]}</B>
+was called
(or <B>${BASH_LINENO[</B><I>$i-1</I><B>]}</B> if referenced within another
shell function).
Use
by the system's monotonic clock, if one is available.
If there is no monotonic clock, this is equivalent to <B>EPOCHSECONDS</B>.
If
-<B>BASH_MONOSECONDS</B>
+<FONT SIZE=-1><B>BASH_MONOSECONDS</B>
+</FONT>
is unset, it loses its special properties, even if it is
subsequently reset.
<DT><B>BASH_REMATCH</B>
the shell begins executing in that environment.
The initial value is 0.
If
-<B>BASH_SUBSHELL</B>
+<FONT SIZE=-1><B>BASH_SUBSHELL</B>
+</FONT>
is unset, it loses its special properties, even if it is
subsequently reset.
<DT><B>BASH_TRAPSIG</B>
<B>popd</B>
builtins must be used to add and remove directories.
-Assignment to this variable will not change the current directory.
+Assigning to this variable does not change the current directory.
If
<FONT SIZE=-1><B>DIRSTACK</B>
is unset, it loses its special properties, even if it is
subsequently reset.
<DT><DD>
-This variable can be used with <B>BASH_LINENO</B> and <B>BASH_SOURCE</B>.
-Each element of <B>FUNCNAME</B> has corresponding elements in
-<B>BASH_LINENO</B> and <B>BASH_SOURCE</B> to describe the call stack.
-For instance, <B>${FUNCNAME[</B><I>$i</I><B>]}</B> was called from the file
-<B>${BASH_SOURCE[</B><I>$i+1</I><B>]}</B> at line number
+This variable can be used with
+<FONT SIZE=-1><B>BASH_LINENO</B>
+
+</FONT>
+and
+<FONT SIZE=-1><B>BASH_SOURCE</B>.
+
+</FONT>
+Each element of
+<FONT SIZE=-1><B>FUNCNAME</B>
+
+</FONT>
+has corresponding elements in
+<FONT SIZE=-1><B>BASH_LINENO</B>
+
+</FONT>
+and
+<FONT SIZE=-1><B>BASH_SOURCE</B>
+
+</FONT>
+to describe the call stack.
+For instance,
+<B>${FUNCNAME[</B><I>$i</I><B>]}</B>
+was called from the file
+<B>${BASH_SOURCE[</B><I>$i+1</I><B>]}</B>
+at line number
<B>${BASH_LINENO[</B><I>$i</I><B>]}</B>.
The <B>caller</B> builtin displays the current call stack using this
information.
<FONT SIZE=-1><B>HISTCMD</B>
</FONT>
-are ignored.
+have no effect.
If
<FONT SIZE=-1><B>HISTCMD</B>
in the most-recently-executed foreground pipeline, which may
consist of only a simple command
(see
-<B>SHELL GRAMMAR</B>
+<FONT SIZE=-1><B>SHELL GRAMMAR</B>
+</FONT>
above).
<DT><B>PPID</B>
<DD>
Each time this parameter is referenced, it expands to a random integer
between 0 and 32767.
-Assigning
-a value to
+Assigning a value to
<FONT SIZE=-1><B>RANDOM</B>
</FONT>
initializes (seeds) the sequence of random numbers.
-Seeding the random number generator with the same constant value will
-produce the same sequence of values.
+Seeding the random number generator with the same constant value
+produces the same sequence of values.
If
<FONT SIZE=-1><B>RANDOM</B>
levels and their effects.
The value may be a decimal number (e.g., 4.2) or an integer (e.g., 42)
corresponding to the desired compatibility level.
-If <B>BASH_COMPAT</B> is unset or set to the empty string, the compatibility
+If
+<FONT SIZE=-1><B>BASH_COMPAT</B>
+
+</FONT>
+is unset or set to the empty string, the compatibility
level is set to the default for the current version.
-If <B>BASH_COMPAT</B> is set to a value that is not one of the valid
+If
+<FONT SIZE=-1><B>BASH_COMPAT</B>
+
+</FONT>
+is set to a value that is not one of the valid
compatibility levels, the shell prints an error message and sets the
compatibility level to the default for the current version.
A subset of the valid values correspond to the compatibility levels
<DT><B>BASH_XTRACEFD</B>
<DD>
-If set to an integer corresponding to a valid file descriptor, <B>bash</B>
-will write the trace output generated when
+If set to an integer corresponding to a valid file descriptor,
+<B>bash</B> writes the trace output generated when
is enabled to that file descriptor,
instead of the standard error.
<FONT SIZE=-1><B>BASH_ENV</B>
</FONT>
-(see <B>INVOCATION</B> above)
-when an interactive shell is invoked in posix mode.
+(see
+<FONT SIZE=-1><B>INVOCATION</B>
+
+</FONT>
+above) when an interactive shell is invoked in posix mode.
<DT><B>EXECIGNORE</B>
<DD>
A colon-separated list of shell patterns (see <B>Pattern Matching</B>)
defining the set of filenames to be ignored by command search using
-<B>PATH</B>.
+<FONT SIZE=-1><B>PATH</B>.
+
+</FONT>
Files whose full pathnames match one of these patterns are not considered
executable files for the purposes of completion and command execution
-via <B>PATH</B> lookup.
+via
+<FONT SIZE=-1><B>PATH</B>
+
+</FONT>
+lookup.
This does not affect the behavior of the <B>[</B>, <B>test</B>, and <B>[[</B>
commands.
-Full pathnames in the command hash table are not subject to <B>EXECIGNORE</B>.
+Full pathnames in the command hash table are not subject to
+<FONT SIZE=-1><B>EXECIGNORE</B>.
+
+</FONT>
Use this variable to ignore shared library files that have the executable
bit set, but are not executable files.
The pattern matching honors the setting of the <B>extglob</B> shell
If set to a numeric value greater than 0, defines a maximum function
nesting level.
Function invocations that exceed this nesting level
-will cause the current command to abort.
+cause the current command to abort.
<DT><B>GLOBIGNORE</B>
<DD>
If this variable is unset or set to the null string, pathname expansion
uses the historical behavior of sorting by name,
in ascending lexicographic order as determined by the
-<B>LC_COLLATE</B>
+<FONT SIZE=-1><B>LC_COLLATE</B>
+</FONT>
shell variable.
<DT><DD>
If set, a valid value begins with an optional <I>+</I>, which is ignored,
order by modification time (newest first).
<DT><DD>
The <I>numeric</I> specifier treats names consisting solely of digits as
-numbers and sorts them using their numeric value (so
+numbers and sorts them using their numeric value
+(so
-will sort before
+sorts before
for example).
When using <I>numeric</I>, names containing non-digits sort after all
</FONT>
is unset, or does not include a valid value,
-all lines read by the shell parser are saved on the history list,
+<B>bash</B> saves all lines read by the shell parser on the history list,
subject to the value of
<FONT SIZE=-1><B>HISTIGNORE</B>.
</FONT>
-The second and subsequent lines of a multi-line compound command are
-not tested, and are added to the history regardless of the value of
-<FONT SIZE=-1><B>HISTCONTROL</B>
+If the first line of a multi-line compound command was saved,
+the second and subsequent lines are not tested,
+and are added to the history regardless of the value of
+<FONT SIZE=-1><B>HISTCONTROL</B>.
</FONT>
-if the first line of the command was saved.
If the first line was not saved, the second and subsequent lines of
the command are not saved either.
<DT><B>HISTFILE</B>
<A HREF="file:~/.bash_history"><I>~/.bash_history</I></A>.
-If <B>HISTFILE</B> is unset or null,
+If
+<FONT SIZE=-1><B>HISTFILE</B>
+
+</FONT>
+is unset or null,
the shell does not save the command history when it exits.
<DT><B>HISTFILESIZE</B>
writing it when a shell exits or by the <B>history</B> builtin.
If the value is 0, the history file is truncated to zero size.
Non-numeric values and numeric values less than zero inhibit truncation.
-The shell sets the default value to the value of <B>HISTSIZE</B>
+The shell sets the default value to the value of
+<FONT SIZE=-1><B>HISTSIZE</B>
+
+</FONT>
after reading any startup files.
<DT><B>HISTIGNORE</B>
it is not saved on the history list.
Each pattern is anchored at the
beginning of the line and must match the complete line
-(<B>bash</B> will not implicitly append a
+(<B>bash</B> does not implicitly append a
Each pattern is tested against the line
after the checks specified by
In addition to the normal shell pattern matching characters,
matches the previous history line.
-A backslash will escape the
+A backslash escapes the
the backslash is removed before attempting a match.
-The second and subsequent lines of a multi-line compound command are
-not tested, and are added to the history regardless of the value of
+If the first line of a multi-line compound command was saved,
+the second and subsequent lines are not tested,
+and are added to the history regardless of the value of
<FONT SIZE=-1><B>HISTIGNORE</B>.
</FONT>
<FONT SIZE=-1><B>HOSTFILE</B>
</FONT>
-is unset, the hostname list is cleared.
+is unset, <B>bash</B> clears the the hostname list.
<DT><B>IFS</B>
<DD>
<DD>
If this variable appears in the environment when the shell starts,
<B>bash</B> assumes that it is running inside an Emacs shell buffer
-and may disable line editing, depending on the value of <B>TERM</B>.
+and may disable line editing, depending on the value of
+<FONT SIZE=-1><B>TERM</B>.
+
+</FONT>
<DT><B>LANG</B>
<DD>
When used in the text of the message, <B>$_</B> expands to the name of
the current mailfile.
-Example:
+For example:
<DL COMPACT><DT><DD>
<P>
The optional <I>p</I> is a digit specifying the <I>precision</I>,
the number of fractional digits after a decimal point.
A value of 0 causes no decimal point or fraction to be output.
-<B>time</B> will print at most six digits after the decimal point;
+<B>time</B> prints at most six digits after the decimal point;
values of <I>p</I> greater than 6 are changed to 6.
If <I>p</I> is not specified,
<B>time</B> prints three digits after the decimal point.
<DT><B>histchars</B>
<DD>
-The two or three characters which control history expansion
-and tokenization (see
+The two or three characters which control history expansion,
+quick substitution, and tokenization
+(see
<FONT SIZE=-1><B>HISTORY EXPANSION</B>
</FONT>
Any variable may be used as an indexed array; the
<B>declare</B>
-builtin will explicitly declare an array.
+builtin explicitly declares an array.
There is no maximum
limit on the size of an array, nor any requirement that members
be indexed or assigned contiguously.
-Indexed arrays are referenced using integers (including arithmetic
-expressions) and are zero-based; associative arrays are referenced
-using arbitrary strings.
+Indexed arrays are referenced using arithmetic expressions
+that must expand to an integer and are zero-based;
+associative arrays are referenced using arbitrary strings.
Unless otherwise noted, indexed array indices must be non-negative integers.
<P>
An indexed array is created automatically if any variable is assigned to
-using the syntax <I>name</I>[<I>subscript</I>]=<I>value</I>. The
+using the syntax
+<I>name</I>[<I>subscript</I>]=<I>value</I>.
+The
<I>subscript</I>
is treated as an arithmetic expression that must evaluate to a number
array, and an index of -1 references the last element.
<P>
-The += operator will append to an array variable when assigning
+The += operator appends to an array variable when assigning
using the compound assignment syntax; see
<FONT SIZE=-1><B>PARAMETERS</B>
Referencing an array variable without a subscript is equivalent to
referencing the array with a subscript of 0.
-Any reference to a variable using a valid subscript is valid, and
+Any reference to a variable using a valid subscript is valid;
<B>bash</B>
-will create an array if necessary.
+creates an array if necessary.
<P>
An array variable is considered set if a subscript has been assigned a
and <I>incr</I>, an optional increment, is an integer.
When integers are supplied, the expression expands to each number between
<I>x</I> and <I>y</I>, inclusive.
-If the supplied integers are prefixed with <I>0</I>, each term will
-have the same width, zero-padding if necessary.
+If either <I>x</I> or <I>y</I> begins with <I>0</I>,
+each generated term will contain the same number of digits,
+zero-padding where necessary.
When either <I>x</I> or y begins with a zero, the shell
attempts to force all generated terms to contain the same number of digits,
zero-padding where necessary.
Quoting any part of <I>string</I> inhibits replacement in the
expansion of the quoted portion, including replacement strings stored
in shell variables.
-Backslash will escape <B>&</B> in <I>string</I>; the backslash is removed
+Backslash escapes <B>&</B> in <I>string</I>; the backslash is removed
in order to permit a literal <B>&</B> in the replacement string.
Backslash can also be used to escape a backslash; <B>\\</B> results in
a literal backslash in the replacement.
<DD>
The expansion is a string in the form of
an assignment statement or <B>declare</B> command that, if
-evaluated, will recreate <I>parameter</I> with its attributes and value.
+evaluated, recreates <I>parameter</I> with its attributes and value.
<DT><B>K</B>
<DD>
Any side effects of <I>command</I> take effect immediately
in the current execution environment and persist in the current
environment after the command completes (e.g., the <B>exit</B> builtin
-will exit the shell).
+exits the shell).
<P>
This type of command substitution superficially resembles executing an
<P>
If the <B>>(</B><I>list</I><B>)</B> form is used, writing to
-the file will provide input for <I>list</I>.
+the file provides input for <I>list</I>.
If the
<B><(</B><I>list</I><B>)</B> form is used, reading the file
-will obtain the output of <I>list</I>.
+obtains the output of <I>list</I>.
No space may appear between the <B><</B> or <B>></B>
and the left parenthesis, otherwise the construct would be interpreted
as a redirection.
and passed to commands as empty strings.
Unquoted implicit null arguments, resulting from the expansion of
parameters that have no values, are removed.
-Expanding a parameter with no value within double quotes
+Expanding a parameter with no value within double quotes
produces a null field,
which is retained and passed to a command as an empty string.
<P>
shell option, so all other filenames beginning with a
-will match.
+match.
To get the old behavior of ignoring filenames beginning with a
make
Matches any string, including the null string.
When the <B>globstar</B> shell option is enabled, and <B>*</B> is used in
a pathname expansion context, two adjacent <B>*</B>s used as a single
-pattern will match all files and zero or more directories and
+pattern match all files and zero or more directories and
subdirectories.
-If followed by a <B>/</B>, two adjacent <B>*</B>s will match only directories
+If followed by a <B>/</B>, two adjacent <B>*</B>s match only directories
and subdirectories.
<DT><B>?</B>
<DD>
-Matches any one of the enclosed characters.
+Matches any one of the characters enclosed between the brackets.
+This is known as a <I>bracket expression</I>
+and matches a single character.
A pair of characters separated by a hyphen denotes a
<I>range expression</I>;
any character that falls between those two characters, inclusive,
<B>^</B>
then any character not within the range matches.
-A
-<B>-</B>
+To match a
+<B>-</B>,
-may be matched by including it as the first or last character
-in the set.
-A
-<B>]</B>
+include it as the first or last character in the set.
+To match a
+<B>]</B>,
-may be matched by including it as the first character
-in the set.
+include it as the first character in the set.
<DT><DD>
The sorting order of characters in range expressions,
and the characters included in the range,
shell option.
<DT><DD>
-Within
-<B>[</B>
-
-and
-<B>]</B>,
-
+Within a bracket expression,
<I>character classes</I> can be specified using the syntax
<B>[:</B><I>class</I><B>:]</B>, where <I>class</I> is one of the
following classes defined in the POSIX standard:
A character class matches any character belonging to that class.
The <B>word</B> character class matches letters, digits, and the character _.
<DT><DD>
-Within
-<B>[</B>
-
-and
-<B>]</B>,
-
+Within a bracket expression,
an <I>equivalence class</I> can be specified using the syntax
<B>[=</B><I>c</I><B>=]</B>, which matches all characters with the
same collation weight (as defined by the current locale) as
the character <I>c</I>.
<DT><DD>
-Within
-<B>[</B>
-
-and
-<B>]</B>,
-
+Within a bracket expression,
the syntax <B>[.</B><I>symbol</I><B>.]</B> matches the collating symbol
<I>symbol</I>.
</DL></DL>
<A NAME="lbBJ"> </A>
<H3>REDIRECTION</H3>
-Before a command is executed, its input and output
-may be
+Before a command is executed, its input and output may be
<I>redirected</I>
using a special notation interpreted by the shell.
Each redirection that may be preceded by a file descriptor number
may instead be preceded by a word of the form {<I>varname</I>}.
In this case, for each redirection operator except
->&- and <&-, the shell will allocate a file descriptor greater
-than or equal to 10 and assign it to <I>varname</I>.
-If {<I>varname</I>} precedes >&- or <&-,
+<B>>&-</B>
+
+and
+<B><&-</B>,
+
+the shell allocates a file descriptor greater
+than or equal to 10 and assigns it to <I>varname</I>.
+If {<I>varname</I>} precedes
+<B>>&-</B>
+
+or
+<B><&-</B>,
+
the value of <I>varname</I> defines the file descriptor to close.
If {<I>varname</I>} is supplied, the redirection persists beyond
-the scope of the command, which allows the shell programmer to manage
-the file descriptor's lifetime manually
-without using the <B>exec</B> builtin.
+the scope of the command, which allows the shell programmer to
+manage the file descriptor's lifetime manually without using
+the <B>exec</B> builtin.
The <B>varredir_close</B> shell option manages this behavior.
<P>
In the following descriptions, if the file descriptor number is
omitted, and the first character of the redirection operator is
-<B><</B>,
-the redirection refers to the standard input (file descriptor
-0). If the first character of the redirection operator is
-<B>></B>,
+the redirection refers to the standard input (file descriptor 0).
+If the first character of the redirection operator is
-the redirection refers to the standard output (file descriptor
-1).
+the redirection refers to the standard output (file descriptor 1).
<P>
The <I>word</I> following the redirection operator in the following
<B>Bash</B> handles several filenames specially when they are used in
redirections, as described in the following table.
If the operating system on which <B>bash</B> is running provides these
-special files, <B>bash</B> will use them; otherwise it will emulate them
+special files, <B>bash</B> uses them; otherwise it emulates them
internally with the behavior described below.
<DL COMPACT><DT><DD>
<P>
option to the
<B>set</B>
-builtin has been enabled, the redirection will fail if the file
+builtin has been enabled, the redirection fails if the file
whose name results from the expansion of <I>word</I> exists and is
a regular file.
If the redirection operator is
For example, if a variable <I>var</I> is declared as local in function
<I>func1</I>, and <I>func1</I> calls another function <I>func2</I>,
-references to <I>var</I> made from within <I>func2</I> will resolve to the
+references to <I>var</I> made from within <I>func2</I> resolve to the
local variable <I>var</I> from <I>func1</I>, shadowing any global variable
named <I>var</I>.
<P>
The <B>unset</B> builtin also acts using the same dynamic scope: if a
-variable is local to the current scope, <B>unset</B> will unset it;
+variable is local to the current scope, <B>unset</B> unsets it;
otherwise the unset will refer to the variable found in any calling scope
as described above.
-If a variable at the current local scope is unset, it will remain so
+If a variable at the current local scope is unset, it remains so
(appearing as unset)
until it is reset in that scope or until the function returns.
Once the function returns, any instance of the variable at a previous
-scope will become visible.
+scope becomes visible.
If the unset acts on a variable at a previous scope, any instance of a
-variable with that name that had been shadowed will become visible
+variable with that name that had been shadowed becomes visible
(see below how the <B>localvar_unset</B> shell option changes this behavior).
<P>
-The <B>FUNCNEST</B> variable, if set to a numeric value greater
+The
+<FONT SIZE=-1><B>FUNCNEST</B>
+
+</FONT>
+variable, if set to a numeric value greater
than 0, defines a maximum function nesting level.
Function invocations that exceed the limit cause the entire command to
abort.
<B>typeset</B>
builtin commands
-will list function names and definitions.
+lists function names and definitions.
The
<B>-F</B>
or
<B>typeset</B>
-will list the function names only
+lists the function names only
(and optionally the source file and line number, if the <B>extdebug</B>
shell option is enabled).
Functions may be exported so that child shell processes
the
<B>unset</B>
-builtin will delete a function definition.
+builtin deletes a function definition.
<P>
Functions may be recursive.
then <B>bash</B> checks file descriptor <I>n</I>.
If the <I>file</I> argument to one of the primaries is one of
-<I>dev/stdin</I>,
+<I>/dev/stdin</I>,
-<I>dev/stdout</I>,
+<I>/dev/stdout</I>,
or
-<I>dev/stderr</I>,
+<I>/dev/stderr</I>,
<B>bash</B> checks file descriptor 0, 1, or 2, respectively.
<P>
key, in sequence.
This makes ESC the <I>meta prefix</I>.
-The combination M-C-<I>x</I> means ESC-Control-<I>x</I>:
+The combination M-C-<I>x</I> means ESC Control-<I>x</I>:
press and release the Escape key,
then press and hold the Control key while pressing the
<I>x</I>
<A HREF="file:/etc/inputrc"><I>/etc/inputrc</I></A>.
-When a program which uses the <B>readline</B> library starts up,
+When a program that uses the <B>readline</B> library starts up,
<B>readline</B> reads the initialization file
and sets the key bindings and variables found there,
before reading any user input.
<I>RETURN</I>,
-<I>RUBOUT</I>(a<I>destructive</I>backspace),
+<I>RUBOUT</I>
+(a destructive backspace),
<I>SPACE</I>,
<I>SPC</I>,
When entering the text of a macro, single or double quotes must
be used to indicate a macro definition.
Unquoted text is assumed to be a function name.
-Tthe backslash escapes described above are expanded
+The backslash escapes described above are expanded
in the macro body.
-Backslash will quote any other character in the macro text,
+Backslash quotes any other character in the macro text,
including "
and '.
<P>
</FONT>
below)
-will change the editing mode during interactive use.
+change the editing mode during interactive use.
<A NAME="lbCK"> </A>
<H4>Readline Variables</H4>
<P>
The <B>bind -V</B> command lists the current <B>readline</B> variable names
-and values (see
+and values (see
<FONT SIZE=-1><B>SHELL BUILTIN COMMANDS</B>
</FONT>
when performing completion.
The value is ignored if it is less than 0 or greater than the terminal
screen width.
-A value of 0 will cause matches to be displayed one per line.
+A value of 0 causes matches to be displayed one per line.
The default value is -1.
<DT><B>completion-ignore-case (Off)</B>
It may be set to any integer value greater than or equal to zero.
If the number of possible completions is greater than
or equal to the value of this variable,
-<B>readline</B> will ask whether or not the user wishes to view them;
+<B>readline</B> asks whether or not the user wishes to view them;
otherwise <B>readline</B> simply lists them on the terminal.
A zero value means <B>readline</B> should never ask; negative values are
treated as zero.
<DT><B>convert-meta (On)</B>
<DD>
-If set to <B>On</B>, <B>readline</B> will convert characters it reads
+If set to <B>On</B>, <B>readline</B> converts characters it reads
that have the eighth bit set to an ASCII key sequence by
clearing the eighth bit and prefixing it with an escape character
(converting the character to have the meta prefix).
-The default is <I>On</I>, but <B>readline</B> will set it to <I>Off</I>
+The default is <I>On</I>, but <B>readline</B> sets it to <I>Off</I>
if the locale contains
characters whose encodings may include bytes with the eighth bit set.
This variable is dependent on the <B>LC_CTYPE</B> locale category, and
<DT><B>disable-completion (Off)</B>
<DD>
-If set to <B>On</B>, <B>readline</B> will inhibit word completion.
-Completion characters will be inserted into the line as if they
+If set to <B>On</B>, <B>readline</B> inhibits word completion.
+Completion characters are inserted into the line as if they
had been mapped to <B>self-insert</B>.
<DT><B>echo-control-characters (On)</B>
<DD>
When this variable is set to <I>On</I>, <B>readline</B> allows certain commands
to designate the region as <I>active</I>.
-When the region is active, <B>readline</B> highlights
-the text in the region using
-the value of the <B>active-region-start-color</B>, which defaults to the
-string that enables the terminal's standout mode.
+When the region is active, <B>readline</B>
+highlights the text in the region using the value of the
+<B>active-region-start-color</B>
+
+variable, which defaults to the string that enables
+the terminal's standout mode.
The active region shows the text inserted by bracketed-paste and any
matching text found by incremental and non-incremental history searches.
<DT><B>enable-bracketed-paste (On)</B>
<DT><B>enable-keypad (Off)</B>
<DD>
-When set to <B>On</B>, <B>readline</B> will try to enable the application
+When set to <B>On</B>, <B>readline</B> tries to enable the application
keypad when it is called.
Some systems need this to enable the arrow keys.
<DT><B>enable-meta-key (On)</B>
<DD>
-When set to <B>On</B>, <B>readline</B> will try to enable any meta modifier
+When set to <B>On</B>, <B>readline</B> tries to enable any meta modifier
key the terminal claims to support.
On many terminals, the Meta key is used to send eight-bit characters;
this variable checks for the terminal capability that indicates the
<DT><B>input-meta (Off)</B>
<DD>
-If set to <B>On</B>, <B>readline</B> will enable eight-bit input (that is, it
-will not clear the eighth bit in the characters it reads),
+If set to <B>On</B>, <B>readline</B> enables eight-bit input (that is, it
+does not clear the eighth bit in the characters it reads),
regardless of what the terminal claims it can support.
-The default is <I>Off</I>, but <B>readline</B> will set it to <I>On</I>
+The default is <I>Off</I>, but <B>readline</B> sets it to <I>On</I>
if the locale contains characters whose encodings may include bytes
with the eighth bit set.
This variable is dependent on the <B>LC_CTYPE</B> locale category, and
The string of characters that should terminate an incremental
search without subsequently executing the character as a command.
If this variable has not been given a value, the characters
-<I>ESC</I> and <I>C-J</I> will terminate an incremental search.
+<I>ESC</I> and <B>C-j</B> terminate an incremental search.
<DT><B>keymap (emacs)</B>
<DD>
(one that can form a complete key sequence using the input read so far,
or can take additional input to complete a longer key sequence).
If <B>readline</B> does not receive any input within the timeout,
-it will use the shorter but complete key sequence.
+it uses the shorter but complete key sequence.
The value is specified in milliseconds, so a value of 1000 means that
<B>readline</B> will wait one second for additional input.
If this variable is set to a value less than or equal to zero, or to a
-non-numeric value, <B>readline</B> will wait until another key is pressed to
+non-numeric value, <B>readline</B> waits until another key is pressed to
decide which key sequence to complete.
<DT><B>mark-directories (On)</B>
<DT><B>output-meta (Off)</B>
<DD>
-If set to <B>On</B>, <B>readline</B> will display characters with the
+If set to <B>On</B>, <B>readline</B> displays characters with the
eighth bit set directly rather than as a meta-prefixed escape
sequence.
-The default is <I>Off</I>, but <B>readline</B> will set it to <I>On</I>
+The default is <I>Off</I>, but <B>readline</B> sets it to <I>On</I>
if the locale contains characters whose encodings may include
bytes with the eighth bit set.
This variable is dependent on the <B>LC_CTYPE</B> locale category, and
<DT><B>page-completions (On)</B>
<DD>
-If set to <B>On</B>, <B>readline</B> uses an internal <I>more</I>-like pager
+If set to <B>On</B>, <B>readline</B> uses an internal pager resembling
+<I>more</I>(1)
+
to display a screenful of possible completions at a time.
<DT><B>prefer-visible-bell</B>
<DT><B>print-completions-horizontally (Off)</B>
<DD>
-If set to <B>On</B>, <B>readline</B> will display completions with matches
+If set to <B>On</B>, <B>readline</B> displays completions with matches
sorted horizontally in alphabetical order, rather than down the screen.
<DT><B>revert-all-at-newline (Off)</B>
The characters present in the value of the <B>isearch-terminators</B>
variable are used to terminate an incremental search.
If that variable has not been assigned a value,
-<I>ESC</I> and <I>C-J</I> will terminate an incremental search.
-<I>C-g</I> will abort an incremental search and restore the original line.
+<I>ESC</I> and <B>C-j</B> terminate an incremental search.
+<B>C-g</B> aborts an incremental search and restores the original line.
When the search is terminated, the history entry containing the
search string becomes the current line.
<P>
To find other matching entries in the history list, type <B>C-r</B> or
<B>C-s</B> as appropriate.
-This will search backward or forward in the history for the next
+This searches backward or forward in the history for the next
entry matching the search string typed so far.
-Any other key sequence bound to a <B>readline</B> command will terminate
-the search and execute that command.
-For instance, a newline will terminate the search and accept
+Any other key sequence bound to a <B>readline</B> command terminates
+the search and executes that command.
+For instance, a newline terminates the search and accepts
the line, thereby executing the command from the history list.
A movement command will terminate the search, make the last line found
the current line, and begin editing.
<B>Readline</B>
has the concept of an <I>active region</I>:
-when the region is active, <B>readline</B> redisplay uses the
-value of the <B>active-region-start-color variable
-to denote the region.
+when the region is active, <B>readline</B> redisplay
+highlights the region using the value of the
+<B>active-region-start-color</B>
+
+variable.
+The <B>enable-active-region</B> <B>readline</B> variable turns this on and off.
Several commands set the region to active; those are noted below.
-</B><A NAME="lbCO"> </A>
+<A NAME="lbCO"> </A>
<H4>Commands for Moving</H4>
<DD>
Move forward a character.
+This may also be bound to the right arrow key on some keyboards.
<DT><B>backward-char (C-b)</B>
<DD>
Move back a character.
+This may also be bound to the left arrow key on some keyboards.
<DT><B>forward-word (M-f)</B>
<DD>
<DD>
Fetch the previous command from the history list, moving back in
the list.
+This may also be bound to the up arrow key on some keyboards.
<DT><B>next-history (C-n)</B>
<DD>
Fetch the next command from the history list, moving forward in the
list.
+This may also be bound to the down arrow key on some keyboards.
<DT><B>beginning-of-history (M-<)</B>
<DD>
of possible completions, as if <B>menu-complete</B> had been given a
negative argument.
This command is unbound by default.
+<DT><B>export-completions</B>
+
+<DD>
+Perform completion on the word before point as described above
+and write the list of possible completions to <B>readline</B>'s output
+stream using the following format, writing information on separate lines:
+<DL COMPACT><DT><DD>
+
+<DL COMPACT>
+<DT>*<DD>
+
+the number of matches <I>N</I>;
+<DT>*<DD>
+the word being completed;
+<DT>*<DD>
+<I>S</I>:<I>E</I>,
+where S and E are the start and end offsets of the word
+in the <B>readline</B> line buffer; then
+<DT>*<DD>
+each match, one per line
+</DL></DL>
+
+
+<DT><DD>
+If there are no matches, the first line will be
+
+and this command does not print any output after the <I>S</I>:<I>E</I>.
+If there is only a single match, this prints a single line containing it.
+If there is more than one match, this prints the common prefix of the
+matches, which may be empty, on the first line after the <I>S</I>:<I>E</I>,
+then the matches on subsequent lines.
+In this case, <I>N</I> will include the first line with the common prefix.
+<DT><DD>
+The user or application
+should be able to accommodate the possibility of a blank line.
+The intent is that the user or application reads <I>N</I> lines after
+the line containing <I>S</I>:<I>E</I> to obtain the match list.
+This command is unbound by default.
<DT><B>delete-char-or-list</B>
<DD>
<DD>
Read enough characters to consume a multi-key sequence such as those
defined for keys like Home and End.
-CSI sequences begin with a Control Sequence Indicator (CSI), usually ESC-[.
+CSI sequences begin with a Control Sequence Indicator (CSI), usually
+<I>ESC [</I>.
+
If this sequence is bound to
-keys producing CSI sequences will have no effect
-unless explicitly bound to a <B>readline</B> command, instead of inserting
-stray characters into the editing buffer.
-This is unbound by default, but usually bound to ESC-[.
+keys producing CSI sequences have no effect
+unless explicitly bound to a <B>readline</B> command,
+instead of inserting stray characters into the editing buffer.
+This is unbound by default, but usually bound to
+<I>ESC [</I>.
+
<DT><B>insert-comment (M-#)</B>
<DD>
<A NAME="lbCW"> </A>
<H4>Programmable Completion</H4>
-When a user attempts word completion for an argument to a command for
+When a user attempts word completion
+for a command or an argument to a command for
which a completion specification (a <I>compspec</I>) has been defined
-using the <B>complete</B> builtin (see
+using the <B>complete</B> builtin
+(see
<FONT SIZE=-1><B>SHELL BUILTIN COMMANDS</B>
</FONT>
-below), <B>readline</B> invokes the programmable completion facilities.
+below),
+<B>readline</B> invokes the programmable completion facilities.
<P>
First, <B>bash</B> identifies the command name.
If the command word is the empty string (completion attempted at the
beginning of an empty line), <B>bash</B> uses any compspec defined with
the <B>-E</B> option to <B>complete</B>.
+The <B>-I</B> option to <B>complete</B>
+indicates that the command word is the first non-assignment word
+on the line, or after a command delimiter such as
+<B>;</B> or <B>|</B>.
+This usually indicates command name completion.
+<P>
+
If the command word is a full pathname, <B>bash</B>
searches for a compspec for the full pathname first.
If there is no compspec for the full pathname, <B>bash</B> attempts to
find a compspec for the portion following the final slash.
-If those searches do not result in a compspec, any compspec defined with
-the <B>-D</B> option to <B>complete</B> is used as the default.
-If there is no default compspec, <B>bash</B> attempts alias expansion
-on the command word as a final resort, and attempts to find a compspec
-for the command word from any successful expansion.
+If those searches do not result in a compspec,
+or if there is no compspec for the command word,
+<B>bash</B> uses any compspec defined with
+the <B>-D</B> option to <B>complete</B> as the default.
+If there is no default compspec, <B>bash</B> performs alias expansion
+on the command word as a final resort,
+and attempts to find a compspec for the command word
+resulting from any successful expansion.
<P>
If a compspec is not found, <B>bash</B> performs its default completion as
<P>
First, <B>bash</B> performs the <I>actions</I> specified by the compspec.
-Only matches which are prefixed by the word being completed are
-returned.
+This only returns matches which are prefixes
+of the word being completed.
When the
<B>-f</B>
to filter the matches.
<P>
-Any completions specified by a pathname expansion pattern to the
-<B>-G</B> option are generated next.
+Next, programmable completion generates matches
+specified by a pathname expansion pattern
+supplied as an argument to the
+<B>-G</B> option.
The words generated by the pattern need not match the word
being completed.
<B>Bash</B>
</FONT>
special variable as delimiters.
-Shell quoting is honored.
+This honors shell quoting within the string, in order to provide a
+mechanism for the words to contain shell metacharacters or characters
+in the value of
+<FONT SIZE=-1><B>IFS</B>.
+
+</FONT>
Each word is then expanded using
brace expansion, tilde expansion, parameter and variable expansion,
command substitution, and arithmetic expansion,
After these matches have been generated,
<B>bash</B> executes any shell function or command
specified with the <B>-F</B> and <B>-C</B> options.
-When the command or function is invoked, the
+When the command or function is invoked, <B>bash</B>
+assigns values to the
<FONT SIZE=-1><B>COMP_LINE</B>,
</FONT>
<FONT SIZE=-1><B>COMP_TYPE</B>
</FONT>
-variables are assigned values as described above under
-<B>Shell Variables</B>.
-If a shell function is being invoked, the
+variables as described above
+under <B>Shell Variables</B>.
+If a shell function is being invoked, <B>bash</B>
+also sets the
<FONT SIZE=-1><B>COMP_WORDS</B>
</FONT>
<FONT SIZE=-1><B>COMP_CWORD</B>
</FONT>
-variables are also set.
+variables.
When the function or command is invoked,
the first argument (<B>$1</B>) is the name of the command whose arguments
are being completed,
completed on the current command line.
There is no filtering of the generated completions against the
word being completed;
-the function or command has complete freedom in generating the matches.
+the function or command has complete freedom in generating the matches
+and they do not need to match a prefix of the word.
<P>
Any function specified with <B>-F</B> is invoked first.
in an environment equivalent to command substitution.
It should print a list of completions, one per line, to the
standard output.
-Backslash may be used to escape a newline, if necessary.
+Backslash will escape a newline, if necessary.
These are added to the set of possible completions.
<P>
-After all of the possible completions are generated, any filter
-specified with the <B>-X</B> option is applied to the list.
+After generating all of the possible completions,
+<B>bash</B> applies any filter
+specified with the <B>-X</B> option to the completions in the list.
The filter is a pattern as used for pathname expansion; a <B>&</B>
in the pattern is replaced with the text of the word being completed.
A literal <B>&</B> may be escaped with a backslash; the backslash
is removed before attempting a match.
-Any completion that matches the pattern will be removed from the list.
-A leading <B>!</B> negates the pattern; in this case any completion
-not matching the pattern will be removed.
+Any completion that matches the pattern is removed from the list.
+A leading <B>!</B> negates the pattern;
+in this case <B>bash</B> removes
+any completion that does not match the pattern.
If the
<B>nocasematch</B>
-shell option is enabled, the match is performed without regard to the case
+shell option is enabled,
+<B>bash</B> performs the match without regard to the case
of alphabetic characters.
<P>
-Finally, any prefix and suffix specified with the <B>-P</B> and <B>-S</B>
-options are added to each member of the completion list, and the result is
-returned to <B>readline</B> as the list of possible completions.
+Finally, programmable completion adds
+any prefix and suffix specified with the
+<B>-P</B> and <B>-S</B>
+options, respectively, to each completion,
+and returns the result
+to <B>readline</B> as the list of possible completions.
<P>
If the previously-applied actions do not generate any matches, and the
default of filename completion are disabled.
If the <B>-o bashdefault</B> option was supplied to <B>complete</B> when
the compspec was defined,
-if the compspec generates no matches,
+and the compspec generates no matches,
<B>bash</B> attempts its default completions.
-If the <B>-o default</B> option was supplied to <B>complete</B> when the
-compspec was defined, programmable completion will perform
-<B>readline</B>'s default completion
-if the compspec (and, if attempted, the default <B>bash</B> completions)
-generate no matches.
+If the compspec and, if attempted, the default <B>bash</B> completions
+generate no matches,
+and the <B>-o default</B> option was supplied to
+<B>complete</B> when the compspec was defined,
+programmable completion performs <B>readline</B>'s default completion.
+<P>
+
+The options supplied to <B>complete</B> and <B>compopt</B>
+can control how <B>readline</B> treats the completions.
+For instance, the <I>-o fullquote</I> option tells <B>readline</B>
+to quote the matches as if they were filenames.
+See the description of <B>complete</B> below
+for details.
<P>
-When a compspec indicates that directory name completion is desired,
-the programmable completion functions force <B>readline</B> to append a slash
-to completed names which are symbolic links to directories, subject to
-the value of the <B>mark-directories</B> <B>readline</B> variable, regardless
-of the setting of the <B>mark-symlinked-directories</B> <B>readline</B> variable.
+When a compspec indicates that it wants directory name completion,
+the programmable completion functions force <B>readline</B>
+to append a slash to completed names which are symbolic links
+to directories, subject to the value of the
+<B>mark-directories</B> <B>readline</B> variable,
+regardless of the setting of the
+<B>mark-symlinked-directories</B> <B>readline</B> variable.
<P>
There is some support for dynamically modifying completions.
attempted (supplied as the first argument when the function is executed),
programmable completion restarts from the beginning, with an
attempt to find a new compspec for that command.
-This allows a set of completions to be built dynamically as completion
-is attempted, rather than being loaded all at once.
+This can be used to build a set of completions dynamically
+as completion is attempted, rather than loading them all at once.
<P>
For instance, assuming that there is a library of compspecs, each kept in a
</FONT>
variable.
-If <B>HISTFILESIZE</B> is unset, or set to null, a non-numeric value,
+If
+<FONT SIZE=-1><B>HISTFILESIZE</B>
+
+</FONT>
+is unset, or set to null, a non-numeric value,
or a numeric value less than zero, the history file is not truncated.
<P>
Any character may be used as the delimiter in place of /.
The final delimiter is optional if it is the last character of the
event line.
-A single backslash will quote the delimiter in
+A single backslash quotes the delimiter in
<I>old</I>
and
it is replaced with
<I>old</I>.
-A single backslash will quote the &.
+A single backslash quotes the &.
If
<I>old</I>
call stack.
<DT>
<DD>
-<B>cd</B> [<B>-L</B>] [-@] [<I>dir</I>]
-<DT><B>cd</B> <B>-P</B> [<B>-e</B>] [-@] [<I>dir</I>]<DD>
+<B>cd</B> [<B>-L</B>] [<B>-@</B>] [<I>dir</I>]
+<DT><B>cd</B> <B>-P</B> [<B>-e</B>] [<B>-@</B>] [<I>dir</I>]<DD>
Change the current directory to <I>dir</I>.
if <I>dir</I> is not supplied, the value of the
<B>-P</B>,
and <B>cd</B> cannot successfully determine the current working directory
-after a successful directory change, it will return a non-zero status.
+after a successful directory change, it returns a non-zero status.
<DT><DD>
On systems that support it, the <B>-@</B> option presents the extended
attributes associated with a file as a directory.
<DT><B>file</B>
<DD>
-File names.
+File and directory names, similar to <B>readline</B>'s filename completion.
May also be specified as <B>-f</B>.
<DT><B>function</B>
<FONT SIZE=-1><B>OPTERR</B>
</FONT>
-is set to 0, no error messages will be displayed, even if the first
-character of
+is set to 0,
+<B>getopts</B>
+
+does not display any error messages,
+even if the first character of
<I>optstring</I>
is not a colon.
Shell builtin commands and functions are not stoppable/restartable.
<P>
-Compound commands and command sequences of the form
+Compound commands and command lists of the form
-are not handled gracefully when process suspension is attempted.
+are not handled gracefully when combined with process suspension.
When a process is stopped, the shell immediately executes the next
-command in the sequence.
-It suffices to place the sequence of commands between parentheses to
+command in the list or breaks out of any existing loops.
+It suffices to enclose the command in parentheses to
force it into a subshell, which may be stopped as a unit,
or to start the command in the background and immediately
bring it into the foreground.
<HR>
<TABLE WIDTH=100%>
<TR>
-<TH ALIGN=LEFT width=33%>GNU Bash 5.3<TH ALIGN=CENTER width=33%>2024 October 23<TH ALIGN=RIGHT width=33%>BASH(1)
+<TH ALIGN=LEFT width=33%>GNU Bash 5.3<TH ALIGN=CENTER width=33%>2024 November 29<TH ALIGN=RIGHT width=33%>BASH(1)
</TR>
</TABLE>
<HR>
<DT><A HREF="#lbDJ">BUGS</A><DD>
</DL>
<HR>
-This document was created by man2html from /usr/local/src/bash/bash-20241104/doc/bash.1.<BR>
-Time: 04 November 2024 18:15:00 EST
+This document was created by man2html from /usr/local/src/bash/bash-20241126/doc/bash.1.<BR>
+Time: 07 December 2024 09:58:26 PST
</BODY>
</HTML>
This is bash.info, produced by makeinfo version 7.1 from bashref.texi.
This text is a brief description of the features that are present in the
-Bash shell (version 5.3, 23 October 2024).
+Bash shell (version 5.3, 29 November 2024).
- This is Edition 5.3, last updated 23 October 2024, of ‘The GNU Bash
+ This is Edition 5.3, last updated 29 November 2024, of ‘The GNU Bash
Reference Manual’, for ‘Bash’, Version 5.3.
Copyright © 1988-2024 Free Software Foundation, Inc.
*************
This text is a brief description of the features that are present in the
-Bash shell (version 5.3, 23 October 2024). The Bash home page is
+Bash shell (version 5.3, 29 November 2024). The Bash home page is
<http://www.gnu.org/software/bash/>.
- This is Edition 5.3, last updated 23 October 2024, of ‘The GNU Bash
+ This is Edition 5.3, last updated 29 November 2024, of ‘The GNU Bash
Reference Manual’, for ‘Bash’, Version 5.3.
Bash contains features that appear in other popular shells, and some
languages in your scripts.
Prefixing a double-quoted string with a dollar sign (‘$’), such as
-$"hello, world", will cause the string to be translated according to the
+$"hello, world", causes the string to be translated according to the
current locale. The ‘gettext’ infrastructure performs the lookup and
translation, using the ‘LC_MESSAGES’, ‘TEXTDOMAINDIR’, and ‘TEXTDOMAIN’
shell variables, as explained below. See the gettext documentation for
variable expansion forces the entire pattern to be matched
literally.
- The pattern will match if it matches any part of the string. If
- you want to force the pattern to match the entire string, anchor
+ The match succeeds if the pattern matches any part of the string.
+ If you want to force the pattern to match the entire string, anchor
the pattern using the ‘^’ and ‘$’ regular expression operators.
For example, the following will match a line (stored in the shell
For example, if a variable ‘var’ is declared as local in function
‘func1’, and ‘func1’ calls another function ‘func2’, references to ‘var’
-made from within ‘func2’ will resolve to the local variable ‘var’ from
+made from within ‘func2’ resolve to the local variable ‘var’ from
‘func1’, shadowing any global variable named ‘var’.
The following script demonstrates this behavior. When executed, the
func1
The ‘unset’ builtin also acts using the same dynamic scope: if a
-variable is local to the current scope, ‘unset’ will unset it; otherwise
-the unset will refer to the variable found in any calling scope as
-described above. If a variable at the current local scope is unset, it
-will remain so (appearing as unset) until it is reset in that scope or
-until the function returns. Once the function returns, any instance of
-the variable at a previous scope will become visible. If the unset acts
-on a variable at a previous scope, any instance of a variable with that
-name that had been shadowed will become visible (see below how
+variable is local to the current scope, ‘unset’ unsets it; otherwise the
+unset will refer to the variable found in any calling scope as described
+above. If a variable at the current local scope is unset, it remains so
+(appearing as unset) until it is reset in that scope or until the
+function returns. Once the function returns, any instance of the
+variable at a previous scope becomes visible. If the unset acts on a
+variable at a previous scope, any instance of a variable with that name
+that had been shadowed will become visible (see below how the
‘localvar_unset’ shell option changes this behavior).
The ‘-f’ option to the ‘declare’ (‘typeset’) builtin command (*note
-Bash Builtins::) will list function names and definitions. The ‘-F’
-option to ‘declare’ or ‘typeset’ will list the function names only (and
-optionally the source file and line number, if the ‘extdebug’ shell
-option is enabled). Functions may be exported so that child shell
-processes (those created when executing a separate shell invocation)
-automatically have them defined with the ‘-f’ option to the ‘export’
-builtin (*note Bourne Shell Builtins::). The ‘-f’ option to the ‘unset’
-builtin (*note Bourne Shell Builtins::) will delete a function
-definition.
+Bash Builtins::) lists function names and definitions. The ‘-F’ option
+to ‘declare’ or ‘typeset’ lists the function names only (and optionally
+the source file and line number, if the ‘extdebug’ shell option is
+enabled). Functions may be exported so that child shell processes
+(those created when executing a separate shell invocation) automatically
+have them defined with the ‘-f’ option to the ‘export’ builtin (*note
+Bourne Shell Builtins::). The ‘-f’ option to the ‘unset’ builtin (*note
+Bourne Shell Builtins::) deletes a function definition.
Functions may be recursive. The ‘FUNCNEST’ variable may be used to
limit the depth of the function call stack and restrict the number of
command export var=value
In the context where an assignment statement is assigning a value to
-a shell variable or array index (*note Arrays::), the ‘+=’ operator will
-append to or add to the variable's previous value. This includes
+a shell variable or array index (*note Arrays::), the ‘+=’ operator
+appends to or adds to the variable's previous value. This includes
arguments to declaration commands such as ‘declare’ that accept
assignment statements. When ‘+=’ is applied to a variable for which the
‘integer’ attribute has been set, the variable's current value and VALUE
If the control variable in a ‘for’ loop has the nameref attribute,
the list of words can be a list of shell variables, and a name reference
-will be established for each word in the list, in turn, when the loop is
+is established for each word in the list, in turn, when the loop is
executed. Array variables cannot be given the nameref attribute.
However, nameref variables can reference array variables and subscripted
array variables. Namerefs can be unset using the ‘-n’ option to the
‘unset’ builtin (*note Bourne Shell Builtins::). Otherwise, if ‘unset’
is executed with the name of a nameref variable as an argument, the
-variable referenced by the nameref variable will be unset.
+variable referenced by the nameref variable is unset.
\1f
File: bash.info, Node: Positional Parameters, Next: Special Parameters, Up: Shell Parameters
A sequence expression takes the form ‘{X..Y[..INCR]}’, where X and Y
are either integers or letters, and INCR, an optional increment, is an
integer. When integers are supplied, the expression expands to each
-number between X and Y, inclusive. When either X or Y begins with a
-zero, the shell attempts to force all generated terms to contain the
-same number of digits, zero-padding where necessary. When letters are
-supplied, the expression expands to each character lexicographically
-between X and Y, inclusive, using the default C locale. Note that both
-X and Y must be of the same type (integer or letter). When the
-increment is supplied, it is used as the difference between each term.
-The default increment is 1 or -1 as appropriate.
+number between X and Y, inclusive. If either X or Y begins with a zero,
+each generated term will contain the same number of digits, zero-padding
+where necessary. When letters are supplied, the expression expands to
+each character lexicographically between X and Y, inclusive, using the
+default C locale. Note that both X and Y must be of the same type
+(integer or letter). When the increment is supplied, it is used as the
+difference between each term. The default increment is 1 or -1 as
+appropriate.
Brace expansion is performed before any other expansions, and any
characters special to other expansions are preserved in the result. It
Quoting any part of STRING inhibits replacement in the expansion of
the quoted portion, including replacement strings stored in shell
- variables. Backslash will escape ‘&’ in STRING; the backslash is
+ variables. Backslash escapes ‘&’ in STRING; the backslash is
removed in order to permit a literal ‘&’ in the replacement string.
Users should take care if STRING is double-quoted to avoid unwanted
interactions between the backslash and double-quoting, since
Controlling the Prompt::).
‘A’
The expansion is a string in the form of an assignment
- statement or ‘declare’ command that, if evaluated, will
- recreate PARAMETER with its attributes and value.
+ statement or ‘declare’ command that, if evaluated, recreates
+ PARAMETER with its attributes and value.
‘K’
Produces a possibly-quoted version of the value of PARAMETER,
except that it prints the values of indexed and associative
Any side effects of COMMAND take effect immediately in the current
execution environment and persist in the current environment after the
-command completes (e.g., the ‘exit’ builtin will exit the shell).
+command completes (e.g., the ‘exit’ builtin exits the shell).
This type of command substitution superficially resembles executing
an unnamed shell function: local variables are created as when a shell
as a filename. This filename is passed as an argument to the current
command as the result of the expansion.
- If the ‘>(LIST)’ form is used, writing to the file will provide input
-for LIST. If the ‘<(LIST)’ form is used, reading the file will obtain
-the output of LIST. Note that no space may appear between the ‘<’ or
-‘>’ and the left parenthesis, otherwise the construct would be
-interpreted as a redirection.
+ If the ‘>(LIST)’ form is used, writing to the file provides input for
+LIST. If the ‘<(LIST)’ form is used, reading the file obtains the
+output of LIST. Note that no space may appear between the ‘<’ or ‘>’
+and the left parenthesis, otherwise the construct would be interpreted
+as a redirection.
Process substitution is supported on systems that support named pipes
(FIFOs) or the ‘/dev/fd’ method of naming open files.
regard to case. The filenames ‘.’ and ‘..’ are always ignored when
‘GLOBIGNORE’ is set and not null. However, setting ‘GLOBIGNORE’ to a
non-null value has the effect of enabling the ‘dotglob’ shell option, so
-all other filenames beginning with a ‘.’ will match. To get the old
-behavior of ignoring filenames beginning with a ‘.’, make ‘.*’ one of
-the patterns in ‘GLOBIGNORE’. The ‘dotglob’ option is disabled when
+all other filenames beginning with a ‘.’ match. To get the old behavior
+of ignoring filenames beginning with a ‘.’, make ‘.*’ one of the
+patterns in ‘GLOBIGNORE’. The ‘dotglob’ option is disabled when
‘GLOBIGNORE’ is unset. The ‘GLOBIGNORE’ pattern matching honors the
setting of the ‘extglob’ shell option.
‘*’
Matches any string, including the null string. When the ‘globstar’
shell option is enabled, and ‘*’ is used in a filename expansion
- context, two adjacent ‘*’s used as a single pattern will match all
- files and zero or more directories and subdirectories. If followed
- by a ‘/’, two adjacent ‘*’s will match only directories and
- subdirectories.
+ context, two adjacent ‘*’s used as a single pattern match all files
+ and zero or more directories and subdirectories. If followed by a
+ ‘/’, two adjacent ‘*’s match only directories and subdirectories.
‘?’
Matches any single character.
‘[...]’
- Matches any one of the enclosed characters. A pair of characters
- separated by a hyphen denotes a “range expression”; any character
- that falls between those two characters, inclusive, using the
- current locale's collating sequence and character set, matches. If
- the first character following the ‘[’ is a ‘!’ or a ‘^’ then any
- character not within the range matches. To match a ‘−’, include it
- as the first or last character in the set. To match a ‘]’, include
- it as the first character in the set.
+ Matches any one of the characters enclosed between the brackets.
+ This is known as a “bracket expression” and matches a single
+ character. A pair of characters separated by a hyphen denotes a
+ “range expression”; any character that falls between those two
+ characters, inclusive, using the current locale's collating
+ sequence and character set, matches. If the first character
+ following the ‘[’ is a ‘!’ or a ‘^’ then any character not within
+ the range matches. To match a ‘−’, include it as the first or last
+ character in the set. To match a ‘]’, include it as the first
+ character in the set.
The sorting order of characters in range expressions, and the
characters included in the range, are determined by the current
setting the ‘LC_COLLATE’ or ‘LC_ALL’ environment variable to the
value ‘C’, or enable the ‘globasciiranges’ shell option.
- Within ‘[’ and ‘]’, “character classes” can be specified using the
- syntax ‘[:’CLASS‘:]’, where CLASS is one of the following classes
- defined in the POSIX standard:
+ Within a bracket expression, “character classes” can be specified
+ using the syntax ‘[:’CLASS‘:]’, where CLASS is one of the following
+ classes defined in the POSIX standard:
alnum alpha ascii blank cntrl digit graph lower
print punct space upper word xdigit
A character class matches any character belonging to that class.
The ‘word’ character class matches letters, digits, and the
character ‘_’.
- Within ‘[’ and ‘]’, an “equivalence class” can be specified using
- the syntax ‘[=’C‘=]’, which matches all characters with the same
- collation weight (as defined by the current locale) as the
- character C.
+ For instance, the following pattern will match any character
+ belonging to the ‘space’ character class in the current locale,
+ then any upper case letter or ‘!’, a dot, and finally any lower
+ case letter or a hyphen.
- Within ‘[’ and ‘]’, the syntax ‘[.’SYMBOL‘.]’ matches the collating
- symbol SYMBOL.
+ [[:space:]][[:upper:]!].[-[:lower:]]
+
+ Within a bracket expression, an “equivalence class” can be
+ specified using the syntax ‘[=’C‘=]’, which matches all characters
+ with the same collation weight (as defined by the current locale)
+ as the character C.
+
+ Within a bracket expression, the syntax ‘[.’SYMBOL‘.]’ matches the
+ collating symbol SYMBOL.
If the ‘extglob’ shell option is enabled using the ‘shopt’ builtin,
the shell recognizes several extended pattern matching operators. In
Each redirection that may be preceded by a file descriptor number may
instead be preceded by a word of the form {VARNAME}. In this case, for
-each redirection operator except >&- and <&-, the shell will allocate a
-file descriptor greater than 10 and assign it to {VARNAME}. If
-{VARNAME} precedes >&- or <&-, the value of VARNAME defines the file
-descriptor to close. If {VARNAME} is supplied, the redirection persists
-beyond the scope of the command, which allows the shell programmer to
-manage the file descriptor's lifetime manually without using the ‘exec’
-builtin. The ‘varredir_close’ shell option manages this behavior (*note
-The Shopt Builtin::).
+each redirection operator except ‘>&-’ and ‘<&-’, the shell allocates a
+file descriptor greater than or equal to 10 and assigns it to {VARNAME}.
+If {VARNAME} precedes ‘>&-’ or ‘<&-’, the value of VARNAME defines the
+file descriptor to close. If {VARNAME} is supplied, the redirection
+persists beyond the scope of the command, which allows the shell
+programmer to manage the file descriptor's lifetime manually without
+using the ‘exec’ builtin. The ‘varredir_close’ shell option manages
+this behavior (*note The Shopt Builtin::).
In the following descriptions, if the file descriptor number is
omitted, and the first character of the redirection operator is ‘<’, the
Bash handles several filenames specially when they are used in
redirections, as described in the following table. If the operating
-system on which Bash is running provides these special files, Bash will
-use them; otherwise it will emulate them internally with the behavior
-described below.
+system on which Bash is running provides these special files, Bash uses
+them; otherwise it emulates them internally with the behavior described
+below.
‘/dev/fd/FD’
If FD is a valid integer, duplicate file descriptor FD.
[N]>[|]WORD
If the redirection operator is ‘>’, and the ‘noclobber’ option to the
-‘set’ builtin has been enabled, the redirection will fail if the file
-whose name results from the expansion of WORD exists and is a regular
-file. If the redirection operator is ‘>|’, or the redirection operator
-is ‘>’ and the ‘noclobber’ option is not enabled, Bash attemps the
-redirection even if the file named by WORD exists.
+‘set’ builtin has been enabled, the redirection fails if the file whose
+name results from the expansion of WORD exists and is a regular file.
+If the redirection operator is ‘>|’, or the redirection operator is ‘>’
+and the ‘noclobber’ option is not enabled, Bash attemps the redirection
+even if the file named by WORD exists.
3.6.3 Appending Redirected Output
---------------------------------
If the ‘-e’ option is supplied with ‘-P’ and ‘cd’ cannot
successfully determine the current working directory after a
- successful directory change, it will return a non-zero status.
+ successful directory change, it returns a non-zero status.
On systems that support it, the ‘-@’ option presents the extended
attributes associated with a file as a directory.
OPTSTRING is a colon, ‘getopts’ uses _silent_ error reporting. In
normal operation, ‘getopts’ prints diagnostic messages when it
encounters invalid options or missing option arguments. If the
- variable ‘OPTERR’ is set to 0, no error messages will be displayed,
- even if the first character of ‘optstring’ is not a colon.
+ variable ‘OPTERR’ is set to 0, ‘getopts’ does not display any error
+ messages, even if the first character of ‘optstring’ is not a
+ colon.
If ‘getopts’ detects an invalid option, it places ‘?’ into NAME
and, if not silent, prints an error message and unsets ‘OPTARG’.
When referenced, this variable expands to the name of the shell or
shell script (identical to ‘$0’; *Note Special Parameters::, for
the description of special parameter 0). Assigning a value to
- ‘BASH_ARGV0’ assigns the same value to ‘$0’. If ‘BASH_ARGV0’ is
+ ‘BASH_ARGV0’ sets ‘$0’ to the same value. If ‘BASH_ARGV0’ is
unset, it loses its special properties, even if it is subsequently
reset.
‘BASH_XTRACEFD’
If set to an integer corresponding to a valid file descriptor, Bash
- will write the trace output generated when ‘set -x’ is enabled to
- that file descriptor instead of the standard error. This allows
+ writes the trace output generated when ‘set -x’ is enabled to that
+ file descriptor, instead of the standard error. This allows
tracing output to be separated from diagnostic and error messages.
The file descriptor is closed when ‘BASH_XTRACEFD’ is unset or
assigned a new value. Unsetting ‘BASH_XTRACEFD’ or assigning it
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 current directory. If ‘DIRSTACK’ is unset, it loses its
- special properties, even if it is subsequently reset.
+ remove directories. Assigning to this variable does not change the
+ current 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
‘FUNCNEST’
A numeric value greater than 0 defines a maximum function nesting
- level. Function invocations that exceed this nesting level will
- cause the current command to abort.
+ level. Function invocations that exceed this nesting level cause
+ the current command to abort.
‘GLOBIGNORE’
A colon-separated list of patterns defining the set of file names
order by modification time (newest first).
The ‘numeric’ specifier treats names consisting solely of digits as
- numbers and sorts them using their numeric value (so "2" will sort
+ numbers and sorts them using their numeric value (so "2" sorts
before "10", for example). When using ‘numeric’, names containing
non-digits sort after all the all-digit names and are sorted by
name using the traditional behavior.
is subsequently reset.
‘histchars’
- Up to three characters which control history expansion, quick
+ The two or three characters which control history expansion, quick
substitution, and tokenization (*note History Interaction::). The
first character is the “history expansion” character, the character
which begins a history expansion, normally ‘!’. The second
- character is the character which signifies "quick substitution"
- when seen as the first character on a line, normally ‘^’. The
- optional third character is the character which indicates that the
- remainder of the line is a comment when found as the first
- character of a word, usually ‘#’. The history comment character
- disables history substitution for the remaining words on the line.
- It does not necessarily cause the shell parser to treat the rest of
- the line as a comment.
+ character is the "quick substitution" character, normally ‘^’.
+ When it appears as the first character on the line, history
+ substitution repeats the previous command, replacing one string
+ with another. The optional third character is the character which
+ indicates that the remainder of the line is a comment when found as
+ the first character of a word, usually ‘#’. The history comment
+ character disables history substitution for the remaining words on
+ the line. It does not necessarily cause the shell parser to treat
+ the rest of the line as a comment.
‘HISTCMD’
The history number, or index in the history list, of the current
- command. Assignments to ‘HISTCMD’ are ignored. If ‘HISTCMD’ is
+ command. Assignments to ‘HISTCMD’ have no effect. If ‘HISTCMD’ is
unset, it loses its special properties, even if it is subsequently
reset.
‘erasedups’ causes all previous lines matching the current line to
be removed from the history list before that line is saved. Any
value not in the above list is ignored. If ‘HISTCONTROL’ is unset,
- or does not include a valid value, all lines read by the shell
- parser are saved on the history list, subject to the value of
- ‘HISTIGNORE’. The second and subsequent lines of a multi-line
- compound command are not tested, and are added to the history
- regardless of the value of ‘HISTCONTROL’ if the first line of the
- command was saved. If the first line was not saved, the second and
- subsequent lines of the command are not saved, either.
+ or does not include a valid value, Bash saves all lines read by the
+ shell parser on the history list, subject to the value of
+ ‘HISTIGNORE’. If the first line of a multi-line compound command
+ was saved, the second and subsequent lines are not tested, and are
+ added to the history regardless of the value of ‘HISTCONTROL’. If
+ the first line was not saved, the second and subsequent lines of
+ the command are not saved either.
‘HISTFILE’
The name of the file to which the command history is saved. Bash
lines should be saved on the history list. If a command line
matches one of the patterns in the value of ‘HISTIGNORE’, it is not
saved on the history list. Each pattern is anchored at the
- beginning of the line and must match the complete line (Bash will
+ beginning of the line and must match the complete line (Bash does
not implicitly append a ‘*’). Each pattern is tested against the
line after the checks specified by ‘HISTCONTROL’ are applied. In
addition to the normal shell pattern matching characters, ‘&’
- matches the previous history line. ‘&’ may be escaped using a
- backslash; the backslash is removed before attempting a match. The
- second and subsequent lines of a multi-line compound command are
- not tested, and are added to the history regardless of the value of
- ‘HISTIGNORE’, if the first line was saved. If the first line was
- not saved, the second and subsequent lines of the command are not
- saved, either. The pattern matching honors the setting of the
- ‘extglob’ shell option.
+ matches the previous history line. A backslash escapes the ‘&’;
+ the backslash is removed before attempting a match. If the first
+ line of a multi-line compound command was saved, the second and
+ subsequent lines are not tested, and are added to the history
+ regardless of the value of ‘HISTIGNORE’. If the first line was not
+ saved, the second and subsequent lines of the command are not saved
+ either. The pattern matching honors the setting of the ‘extglob’
+ shell option.
‘HISTIGNORE’ subsumes some of the function of ‘HISTCONTROL’. A
pattern of ‘&’ is identical to ‘ignoredups’, and a pattern of ‘[
to the existing list. If ‘HOSTFILE’ is set, but has no value, or
does not name a readable file, Bash attempts to read ‘/etc/hosts’
to obtain the list of possible hostname completions. When
- ‘HOSTFILE’ is unset, the hostname list is cleared.
+ ‘HOSTFILE’ is unset, Bash clears the hostname list.
‘HOSTNAME’
The name of the current host.
‘RANDOM’
Each time this parameter is referenced, it expands to a random
- integer between 0 and 32767. Assigning a value to this variable
- initializes (seeds) the random number generator. Seeding the
- random number generator with the same constant value will produce
- the same sequence of values. If ‘RANDOM’ is unset, it loses its
+ integer between 0 and 32767. Assigning a value to ‘RANDOM’
+ initializes (seeds) the sequence of random numbers. Seeding the
+ random number generator with the same constant value produces the
+ same sequence of values. If ‘RANDOM’ is unset, it loses its
special properties, even if it is subsequently reset.
‘READLINE_ARGUMENT’
The optional P is a digit specifying the precision, the number of
fractional digits after a decimal point. A value of 0 causes no
- decimal point or fraction to be output. ‘time’ will print at most
- six digits after the decimal point; values of P greater than 6 are
+ decimal point or fraction to be output. ‘time’ prints at most six
+ digits after the decimal point; values of P greater than 6 are
changed to 6. If P is not specified, ‘time’ prints three digits
after the decimal point.
After reading that file, it looks for ‘~/.bash_profile’,
‘~/.bash_login’, and ‘~/.profile’, in that order, and reads and executes
commands from the first one that exists and is readable. The
-‘--noprofile’ option may be used when the shell is started to inhibit
-this behavior.
+‘--noprofile’ option inhibits this behavior.
When an interactive login shell exits, or a non-interactive login
shell executes the ‘exit’ builtin command, Bash reads and executes
.........................................
When Bash runs as an interactive shell that is not a login shell, it
-reads and executes commands from ‘~/.bashrc’, if that file exists. This
-may be inhibited by using the ‘--norc’ option. The ‘--rcfile FILE’
-option causes Bash to use FILE instead of ‘~/.bashrc’.
+reads and executes commands from ‘~/.bashrc’, if that file exists. The
+‘--norc’ option inhibits this behavior. The ‘--rcfile FILE’ option
+causes Bash to use FILE instead of ‘~/.bashrc’.
So, typically, your ‘~/.bash_profile’ contains the line
if [ -f ~/.bashrc ]; then . ~/.bashrc; fi
When invoked as an interactive login shell, or as a non-interactive
shell with the ‘--login’ option, it first attempts to read and execute
commands from ‘/etc/profile’ and ‘~/.profile’, in that order. The
-‘--noprofile’ option will inhibit this behavior.
+‘--noprofile’ option inhibits this behavior.
When invoked as an interactive shell with the name ‘sh’, Bash looks
for the variable ‘ENV’, expands its value if it is defined, and uses the
and rarely-seen remote shell daemon, usually ‘rshd’, or the secure shell
daemon ‘sshd’. If Bash determines it is being run non-interactively in
this fashion, it reads and executes commands from ‘~/.bashrc’, if that
-file exists and is readable. It will not do this if invoked as ‘sh’.
-The ‘--norc’ option will inhibit this behavior, and the ‘--rcfile’
-option will make Bash use a different file instead of ‘~/.bashrc’, but
+file exists and is readable. Bash does not read this file if invoked as
+‘sh’. The ‘--norc’ option inhibits this behavior, and the ‘--rcfile’
+option makes Bash use a different file instead of ‘~/.bashrc’, but
neither ‘rshd’ nor ‘sshd’ generally invoke the shell with those options
or allow them to be specified.
Bash handles several filenames specially when they are used in
expressions. If the operating system on which Bash is running provides
-these special files, Bash will use them; otherwise it will emulate them
+these special files, Bash uses them; otherwise it emulates them
internally with this behavior: If the FILE argument to one of the
primaries is of the form ‘/dev/fd/N’, then Bash checks file descriptor
N. If the FILE argument to one of the primaries is one of ‘/dev/stdin’,
safe, always put alias definitions on a separate line, and do not use
‘alias’ in compound commands.
- For almost every purpose, shell functions are preferred over aliases.
+ For almost every purpose, shell functions are preferable to aliases.
\1f
File: bash.info, Node: Arrays, Next: The Directory Stack, Prev: Aliases, Up: Bash Features
==========
Bash provides one-dimensional indexed and associative array variables.
-Any variable may be used as an indexed array; the ‘declare’ builtin will
-explicitly declare an array. There is no maximum limit on the size of
+Any variable may be used as an indexed array; the ‘declare’ builtin
+explicitly declares an array. There is no maximum limit on the size of
an array, nor any requirement that members be indexed or assigned
-contiguously. Indexed arrays are referenced using integers (including
-arithmetic expressions (*note Shell Arithmetic::)) and are zero-based;
-associative arrays use arbitrary strings. Unless otherwise noted,
-indexed array indices must be non-negative integers.
+contiguously. Indexed arrays are referenced using arithmetic
+expressions that must expand to an integer (*note Shell Arithmetic::))
+and are zero-based; associative arrays use arbitrary strings. Unless
+otherwise noted, indexed array indices must be non-negative integers.
An indexed array is created automatically if any variable is assigned
to using the syntax
to a number greater than or equal to zero. To explicitly declare an
array, use
declare -a NAME
-The syntax
+(*note Bash Builtins::). The syntax
declare -a NAME[SUBSCRIPT]
is also accepted; the SUBSCRIPT is ignored.
than the maximum index of NAME, so negative indices count back from the
end of the array, and an index of -1 references the last element.
- The ‘+=’ operator will append to an array variable when assigning
-using the compound assignment syntax; see *note Shell Parameters::
-above.
+ The ‘+=’ operator appends to an array variable when assigning using
+the compound assignment syntax; see *note Shell Parameters:: above.
An array element is referenced using ‘${NAME[SUBSCRIPT]}’. The
braces are required to avoid conflicts with the shell's filename
Referencing an array variable without a subscript is equivalent to
referencing with a subscript of 0. Any reference to a variable using a
-valid subscript is valid, and Bash will create an array if necessary.
+valid subscript is valid; Bash creates an array if necessary.
An array variable is considered set if a subscript has been assigned
a value. The null string is a valid value.
‘\\’
A backslash.
‘\[’
- Begin a sequence of non-printing characters. This could be used to
- embed a terminal control sequence into the prompt.
+ Begin a sequence of non-printing characters. Thiss could be used
+ to embed a terminal control sequence into the prompt.
‘\]’
End a sequence of non-printing characters.
string. Typing ‘C-s’ searches forward through the history. The
characters present in the value of the ‘isearch-terminators’ variable
are used to terminate an incremental search. If that variable has not
-been assigned a value, the <ESC> and ‘C-J’ characters will terminate an
-incremental search. ‘C-g’ will abort an incremental search and restore
-the original line. When the search is terminated, the history entry
+been assigned a value, the <ESC> and ‘C-j’ characters terminate an
+incremental search. ‘C-g’ aborts an incremental search and restores the
+original line. When the search is terminated, the history entry
containing the search string becomes the current line.
To find other matching entries in the history list, type ‘C-r’ or
-‘C-s’ as appropriate. This will search backward or forward in the
-history for the next entry matching the search string typed so far. Any
-other key sequence bound to a Readline command will terminate the search
-and execute that command. For instance, a <RET> will terminate the
-search and accept the line, thereby executing the command from the
-history list. A movement command will terminate the search, make the
-last line found the current line, and begin editing.
+‘C-s’ as appropriate. This searches backward or forward in the history
+for the next entry matching the search string typed so far. Any other
+key sequence bound to a Readline command terminates the search and
+executes that command. For instance, a <RET> terminates the search and
+accepts the line, thereby executing the command from the history list.
+A movement command will terminate the search, make the last line found
+the current line, and begin editing.
Readline remembers the last incremental search string. If two ‘C-r’s
are typed without any intervening characters defining a new search
looks for ‘/etc/inputrc’. The ‘bind’ builtin command can also be used
to set Readline keybindings and variables. *Note Bash Builtins::.
- When a program which uses the Readline library starts up, Readline
+ When a program that uses the Readline library starts up, Readline
reads the init file and sets any variables and key bindings it contains.
In addition, the ‘C-x C-r’ command re-reads this init file, thus
The number of screen columns used to display possible matches
when performing completion. The value is ignored if it is
less than 0 or greater than the terminal screen width. A
- value of 0 will cause matches to be displayed one per line.
- The default value is -1.
+ value of 0 causes matches to be displayed one per line. The
+ default value is -1.
‘completion-ignore-case’
If set to ‘on’, Readline performs filename matching and
The number of possible completions that determines when the
user is asked whether the list of possibilities should be
displayed. If the number of possible completions is greater
- than or equal to this value, Readline will ask whether or not
- the user wishes to view them; otherwise, Readline simply lists
- the completions. This variable must be set to an integer
- value greater than or equal to zero. A zero value means
- Readline should never ask; negative values are treated as
- zero. The default limit is ‘100’.
+ than or equal to this value, Readline asks whether or not the
+ user wishes to view them; otherwise, Readline simply lists the
+ completions. This variable must be set to an integer value
+ greater than or equal to zero. A zero value means Readline
+ should never ask; negative values are treated as zero. The
+ default limit is ‘100’.
‘convert-meta’
- If set to ‘on’, Readline will convert characters it reads that
+ If set to ‘on’, Readline converts characters it reads that
have the eighth bit set to an ASCII key sequence by clearing
the eighth bit and prefixing an <ESC> character, converting
them to a meta-prefixed key sequence. The default value is
- ‘on’, but Readline will set it to ‘off’ if the locale contains
+ ‘on’, but Readline sets it to ‘off’ if the locale contains
characters whose encodings may include bytes with the eighth
bit set. This variable is dependent on the ‘LC_CTYPE’ locale
category, and may change if the locale changes. This variable
‘force-meta-prefix’ below.
‘disable-completion’
- If set to ‘On’, Readline will inhibit word completion.
- Completion characters will be inserted into the line as if
- they had been mapped to ‘self-insert’. The default is ‘off’.
+ If set to ‘On’, Readline inhibits word completion. Completion
+ characters are inserted into the line as if they had been
+ mapped to ‘self-insert’. The default is ‘off’.
‘echo-control-characters’
When set to ‘on’, on operating systems that indicate they
appearing in the pasted text. The default is ‘On’.
‘enable-keypad’
- When set to ‘on’, Readline will try to enable the application
+ When set to ‘on’, Readline tries to enable the application
keypad when it is called. Some systems need this to enable
the arrow keys. The default is ‘off’.
‘enable-meta-key’
- When set to ‘on’, Readline will try to enable any meta
- modifier key the terminal claims to support when it is called.
- On many terminals, the Meta key is used to send eight-bit
- characters; this variable checks for the terminal capability
- that indicates the terminal can enable and disable a mode that
- sets the eighth bit of a character (0200) if the Meta key is
- held down when the character is typed (a meta character). The
+ When set to ‘on’, Readline tries to enable any meta modifier
+ key the terminal claims to support when it is called. On many
+ terminals, the Meta key is used to send eight-bit characters;
+ this variable checks for the terminal capability that
+ indicates the terminal can enable and disable a mode that sets
+ the eighth bit of a character (0200) if the Meta key is held
+ down when the character is typed (a meta character). The
default is ‘on’.
‘expand-tilde’
default, this variable is set to ‘off’.
‘input-meta’
- If set to ‘on’, Readline will enable eight-bit input (that is,
- it will not clear the eighth bit in the characters it reads),
+ If set to ‘on’, Readline enables eight-bit input (that is, it
+ does not clear the eighth bit in the characters it reads),
regardless of what the terminal claims it can support. The
- default value is ‘off’, but Readline will set it to ‘on’ if
- the locale contains characters whose encodings may include
- bytes with the eighth bit set. This variable is dependent on
- the ‘LC_CTYPE’ locale category, and its value may change if
- the locale changes. The name ‘meta-flag’ is a synonym for
+ default value is ‘off’, but Readline sets it to ‘on’ if the
+ locale contains characters whose encodings may include bytes
+ with the eighth bit set. This variable is dependent on the
+ ‘LC_CTYPE’ locale category, and its value may change if the
+ locale changes. The name ‘meta-flag’ is a synonym for
‘input-meta’.
‘isearch-terminators’
The string of characters that should terminate an incremental
search without subsequently executing the character as a
command (*note Searching::). If this variable has not been
- given a value, the characters <ESC> and ‘C-J’ will terminate
- an incremental search.
+ given a value, the characters <ESC> and ‘C-j’ terminate an
+ incremental search.
‘keymap’
Sets Readline's idea of the current keymap for key binding
reading an ambiguous key sequence (one that can form a
complete key sequence using the input read so far, or can take
additional input to complete a longer key sequence). If
- Readline doesn't receive any input within the timeout, it will
- use the shorter but complete key sequence. Readline uses this
+ Readline doesn't receive any input within the timeout, it uses
+ the shorter but complete key sequence. Readline uses this
value to determine whether or not input is available on the
current input source (‘rl_instream’ by default). The value is
specified in milliseconds, so a value of 1000 means that
Readline will wait one second for additional input. If this
variable is set to a value less than or equal to zero, or to a
- non-numeric value, Readline will wait until another key is
- pressed to decide which key sequence to complete. The default
- value is ‘500’.
+ non-numeric value, Readline waits until another key is pressed
+ to decide which key sequence to complete. The default value
+ is ‘500’.
‘mark-directories’
If set to ‘on’, completed directory names have a slash
appended. The default is ‘on’.
‘mark-modified-lines’
- When this variable is set to ‘on’, Readline will to display an
+ When this variable is set to ‘on’, Readline displays an
asterisk (‘*’) at the start of history lines which have been
modified. This variable is ‘off’ by default.
cycling through the list. The default is ‘off’.
‘output-meta’
- If set to ‘on’, Readline will display characters with the
- eighth bit set directly rather than as a meta-prefixed escape
- sequence. The default is ‘off’, but Readline will set it to
- ‘on’ if the locale contains characters whose encodings may
- include bytes with the eighth bit set. This variable is
- dependent on the ‘LC_CTYPE’ locale category, and its value may
- change if the locale changes.
+ If set to ‘on’, Readline displays characters with the eighth
+ bit set directly rather than as a meta-prefixed escape
+ sequence. The default is ‘off’, but Readline sets it to ‘on’
+ if the locale contains characters whose encodings may include
+ bytes with the eighth bit set. This variable is dependent on
+ the ‘LC_CTYPE’ locale category, and its value may change if
+ the locale changes.
‘page-completions’
- If set to ‘on’, Readline uses an internal ‘more’-like pager to
- display a screenful of possible completions at a time. This
- variable is ‘on’ by default.
+ If set to ‘on’, Readline uses an internal pager resembling
+ more(1) to display a screenful of possible completions at a
+ time. This variable is ‘on’ by default.
‘prefer-visible-bell’
See ‘bell-style’.
‘print-completions-horizontally’
- If set to ‘on’, Readline will display completions with matches
+ If set to ‘on’, Readline displays completions with matches
sorted horizontally in alphabetical order, rather than down
the screen. The default is ‘off’.
on some keyboards.
‘forward-char (C-f)’
- Move forward a character.
+ Move forward a character. This may also be bound to the right
+ arrow key on some keyboards.
‘backward-char (C-b)’
- Move back a character.
+ Move back a character. This may also be bound to the left arrow
+ key on some keyboards.
‘forward-word (M-f)’
Move forward to the end of the next word. Words are composed of
‘previous-history (C-p)’
Move 'back' through the history list, fetching the previous
- command.
+ command. This may also be bound to the up arrow key on some
+ keyboards.
‘next-history (C-n)’
Move 'forward' through the history list, fetching the next command.
+ This may also be bound to the down arrow key on some keyboards.
‘beginning-of-history (M-<)’
Move to the first line in the history.
write the list of possible completions to Readline's output stream
using the following format, writing information on separate lines:
- The number of matches;
- The word being completed;
- S:E, where S and E are the start and end offsets of the word
- in the readline line buffer; then
- Each match, one per line
+ • the number of matches N;
+ • the word being completed;
+ • S:E, where S and E are the start and end offsets of the word
+ in the Readline line buffer; then
+ • each match, one per line
- If there are no matches, the first line will be 0, and this command
- will not print any output after the S:E. If there is only a single
- match, this prints a single line containing it. If there is more
- than one match, this prints the common prefix of the matches, which
- may be empty, on the first line after the S:E, then the matches on
- subsequent lines. In this case, N will include the first line with
- the common prefix.
+ If there are no matches, the first line will be "0", and this
+ command does not print any output after the S:E. If there is only
+ a single match, this prints a single line containing it. If there
+ is more than one match, this prints the common prefix of the
+ matches, which may be empty, on the first line after the S:E, then
+ the matches on subsequent lines. In this case, N will include the
+ first line with the common prefix.
The user or application should be able to accommodate the
possibility of a blank line. The intent is that the user or
‘skip-csi-sequence ()’
Read enough characters to consume a multi-key sequence such as
those defined for keys like Home and End. CSI sequences begin with
- a Control Sequence Indicator (CSI), usually ESC-[. If this
- sequence is bound to "\e[", keys producing CSI sequences will have
- no effect unless explicitly bound to a Readline command, instead of
+ a Control Sequence Indicator (CSI), usually ‘ESC [’. If this
+ sequence is bound to "\e[", keys producing CSI sequences have no
+ effect unless explicitly bound to a Readline command, instead of
inserting stray characters into the editing buffer. This is
- unbound by default, but usually bound to ESC-[.
+ unbound by default, but usually bound to ‘ESC [’.
‘insert-comment (M-#)’
Without a numeric argument, insert the value of the ‘comment-begin’
8.6 Programmable Completion
===========================
-When the user attempts word completion for an argument to a command for
-which a completion specification (a “compspec”) has been defined using
-the ‘complete’ builtin (*note Programmable Completion Builtins::),
-Readline invokes the programmable completion facilities.
+When the user attempts word completion for a command or an argument to a
+command for which a completion specification (a “compspec”) has been
+defined using the ‘complete’ builtin (*note Programmable Completion
+Builtins::), Readline invokes the programmable completion facilities.
First, Bash identifies the command name. If a compspec has been
defined for that command, the compspec is used to generate the list of
possible completions for the word. If the command word is the empty
string (completion attempted at the beginning of an empty line), Bash
-uses any compspec defined with the ‘-E’ option to ‘complete’. If the
-command word is a full pathname, Bash searches for a compspec for the
-full pathname first. If there is no compspec for the full pathname,
-Bash attempts to find a compspec for the portion following the final
-slash. If those searches do not result in a compspec, any compspec
-defined with the ‘-D’ option to ‘complete’ is used as the default. If
-there is no default compspec, Bash attempts alias expansion on the
-command word as a final resort, and attempts to find a compspec for the
-command word from any successful expansion.
+uses any compspec defined with the ‘-E’ option to ‘complete’. The ‘-I’
+option to ‘complete’ indicates that the command word is the first
+non-assignment word on the line, or after a command delimiter such as
+‘;’ or ‘|’. This usually indicates command name completion.
+
+ If the command word is a full pathname, Bash searches for a compspec
+for the full pathname first. If there is no compspec for the full
+pathname, Bash attempts to find a compspec for the portion following the
+final slash. If those searches do not result in a compspec, or if there
+is no compspec for the command word, Bash uses any compspec defined with
+the ‘-D’ option to ‘complete’ as the default. If there is no default
+compspec, Bash performs alias expansion on the command word as a final
+resort, and attempts to find a compspec for the command word resulting
+from any successful expansion.
If a compspec is not found, Bash performs its default completion
described above (*note Commands For Completion::). Otherwise, once a
compspec has been found, Bash uses it to generate the list of matching
words.
- First, Bash performs the ACTIONS specified by the compspec. Only
-matches which are prefixed by the word being completed are returned.
+ First, Bash performs the ACTIONS specified by the compspec. This
+only returns matches which are prefixes of the word being completed.
When the ‘-f’ or ‘-d’ option is used for filename or directory name
completion, Bash uses shell the variable ‘FIGNORE’ to filter the
matches. *Note Bash Variables::, for a description of ‘FIGNORE’.
- Any completions specified by a filename expansion pattern to the ‘-G’
-option are generated next. The words generated by the pattern need not
-match the word being completed. Bash uses the ‘FIGNORE’ variable to
-filter the matches, but does not use the ‘GLOBIGNORE’ shell variable.
+ Next, programmable completion generates matches specified by a
+pathname expansion pattern supplied as an argument to the ‘-G’ option.
+The words generated by the pattern need not match the word being
+completed. Bash uses the ‘FIGNORE’ variable to filter the matches, but
+does not use the ‘GLOBIGNORE’ shell variable.
Next, completion considers the string specified as the argument to
the ‘-W’ option. The string is first split using the characters in the
-‘IFS’ special variable as delimiters. Shell quoting is honored within
+‘IFS’ special variable as delimiters. This honors shell quoting within
the string, in order to provide a mechanism for the words to contain
shell metacharacters or characters in the value of ‘IFS’. Each word is
then expanded using brace expansion, tilde expansion, parameter and
matching words become possible completions.
After these matches have been generated, Bash executes any shell
-function or command any shell function or command specified with the
-‘-F’ and ‘-C’ options. When the command or function is invoked, the
-‘COMP_LINE’, ‘COMP_POINT’, ‘COMP_KEY’, and ‘COMP_TYPE’ variables are
-assigned values as described above (*note Bash Variables::). If a shell
-function is being invoked, the ‘COMP_WORDS’ and ‘COMP_CWORD’ variables
-are also set. When the function or command is invoked, the first
-argument ($1) is the name of the command whose arguments are being
-completed, the second argument ($2) is the word being completed, and the
-third argument ($3) is the word preceding the word being completed on
-the current command line. There is no filtering of the generated
-completions against the word being completed; the function or command
-has complete freedom in generating the matches.
+function or command specified with the ‘-F’ and ‘-C’ options. When the
+command or function is invoked, Bash assigns values to the ‘COMP_LINE’,
+‘COMP_POINT’, ‘COMP_KEY’, and ‘COMP_TYPE’ variables as described above
+(*note Bash Variables::). If a shell function is being invoked, Bash
+also sets the ‘COMP_WORDS’ and ‘COMP_CWORD’ variables. When the
+function or command is invoked, the first argument ($1) is the name of
+the command whose arguments are being completed, the second argument
+($2) is the word being completed, and the third argument ($3) is the
+word preceding the word being completed on the current command line.
+There is no filtering of the generated completions against the word
+being completed; the function or command has complete freedom in
+generating the matches and they do not need to match a prefix of the
+word.
Any function specified with ‘-F’ is invoked first. The function may
use any of the shell facilities, including the ‘compgen’ and ‘compopt’
Next, any command specified with the ‘-C’ option is invoked in an
environment equivalent to command substitution. It should print a list
-of completions, one per line, to the standard output. Backslash may be
-used to escape a newline, if necessary. These are added to the set of
-possible completions.
-
- After all of the possible completions are generated, any filter
-specified with the ‘-X’ option is applied to the list. The filter is a
-pattern as used for pathname expansion; a ‘&’ in the pattern is replaced
-with the text of the word being completed. A literal ‘&’ may be escaped
-with a backslash; the backslash is removed before attempting a match.
-Any completion that matches the pattern will be removed from the list.
-A leading ‘!’ negates the pattern; in this case any completion not
-matching the pattern will be removed. If the ‘nocasematch’ shell option
-(see the description of ‘shopt’ in *note The Shopt Builtin::) is
-enabled, the match is performed without regard to the case of alphabetic
-characters.
-
- Finally, any prefix and suffix specified with the ‘-P’ and ‘-S’
-options are added to each member of the completion list, and the result
-is returned to Readline as the list of possible completions.
+of completions, one per line, to the standard output. Backslash will
+escape a newline, if necessary. These are added to the set of possible
+completions.
+
+ After generating all of the possible completions, Bash applies any
+filter specified with the ‘-X’ option to the completions in the list.
+The filter is a pattern as used for pathname expansion; a ‘&’ in the
+pattern is replaced with the text of the word being completed. A
+literal ‘&’ may be escaped with a backslash; the backslash is removed
+before attempting a match. Any completion that matches the pattern is
+removed from the list. A leading ‘!’ negates the pattern; in this case
+Bash removes any completion that does not match the pattern. If the
+‘nocasematch’ shell option is enabled (see the description of ‘shopt’ in
+*note The Shopt Builtin::), Bash performs the match without regard to
+the case of alphabetic characters.
+
+ Finally, programmable completion adds any prefix and suffix specified
+with the ‘-P’ and ‘-S’ options, respectively, to each completion, and
+returns the result to Readline as the list of possible completions.
If the previously-applied actions do not generate any matches, and
the ‘-o dirnames’ option was supplied to ‘complete’ when the compspec
to the completion code as the full set of possible completions. The
default Bash completions and the Readline default of filename completion
are disabled. If the ‘-o bashdefault’ option was supplied to ‘complete’
-when the compspec was defined, if the compspec generates no matches,
-Bash attempts its default completions. If the ‘-o default’ option was
-supplied to ‘complete’ when the compspec was defined, programmable
-completion will perform Readline's default completion if the compspec
-(and, if attempted, the default Bash completions) generate no matches.
-
- When a compspec indicates that directory name completion is desired,
+when the compspec was defined, and the compspec generates no matches,
+Bash attempts its default completions. If the compspec and, if
+attempted, the default Bash completions generate no matches, and the ‘-o
+default’ option was supplied to ‘complete’ when the compspec was
+defined, programmable completion performs Readline's default completion.
+
+ The options supplied to ‘complete’ and ‘compopt’ can control how
+Readline treats the completions. For instance, the ‘-o fullquote’
+option tells Readline to quote the matches as if they were filenames.
+See the description of ‘complete’ (*note Programmable Completion
+Builtins::) for details.
+
+ When a compspec indicates that it wants directory name completion,
the programmable completion functions force Readline to append a slash
to completed names which are symbolic links to directories, subject to
the value of the MARK-DIRECTORIES Readline variable, regardless of the
compspec associated with the command on which completion is being
attempted (supplied as the first argument when the function is
executed), programmable completion restarts from the beginning, with an
-attempt to find a new compspec for that command. This allows a set of
-completions to be built dynamically as completion is attempted, rather
-than being loaded all at once.
+attempt to find a new compspec for that command. This can be used to
+build a set of completions dynamically as completion is attempted,
+rather than loading them all at once.
For instance, assuming that there is a library of compspecs, each
kept in a file corresponding to the name of the command, the following
as ‘-e’.
‘file’
- File names. May also be specified as ‘-f’.
+ File and directory names, similar to Readline's filename
+ completion. May also be specified as ‘-f’.
‘function’
Names of shell functions.
with the history expansion character.
Several shell options settable with the ‘shopt’ builtin (*note The
-Shopt Builtin::) will modify history expansion behavior If the
-‘histverify’ shell option is enabled, and Readline is being used,
-history substitutions are not immediately passed to the shell parser.
-Instead, the expanded line is reloaded into the Readline editing buffer
-for further modification. If Readline is being used, and the
-‘histreedit’ shell option is enabled, a failed history expansion is
-reloaded into the Readline editing buffer for correction.
+Shopt Builtin::) modify history expansion behavior If the ‘histverify’
+shell option is enabled, and Readline is being used, history
+substitutions are not immediately passed to the shell parser. Instead,
+the expanded line is reloaded into the Readline editing buffer for
+further modification. If Readline is being used, and the ‘histreedit’
+shell option is enabled, a failed history expansion is reloaded into the
+Readline editing buffer for correction.
The ‘-p’ option to the ‘history’ builtin command shows what a history
expansion will do before using it. The ‘-s’ option to the ‘history’
The first argument: word 1.
‘$’
- The last word. This is usually the last argument, but will expand
- to the zeroth word if there is only one word in the line.
+ The last word. This is usually the last argument, but expands to
+ the zeroth word if there is only one word in the line.
‘%’
The first word matched by the most recent ‘?STRING?’ search, if the
Any character may be used as the delimiter in place of ‘/’. The
delimiter may be quoted in OLD and NEW with a single backslash. If
‘&’ appears in NEW, it is replaced with OLD. A single backslash
- will quote the ‘&’ in OLD and NEW. If OLD is null, it is set to
- the last OLD substituted, or, if no previous history substitutions
- took place, the last STRING in a !?STRING‘[?]’ search. If NEW is
- null, each matching OLD is deleted. The final delimiter is
- optional if it is the last character on the input line.
+ quotes the ‘&’ in OLD and NEW. If OLD is null, it is set to the
+ last OLD substituted, or, if no previous history substitutions took
+ place, the last STRING in a !?STRING‘[?]’ search. If NEW is null,
+ each matching OLD is deleted. The final delimiter is optional if
+ it is the last character on the input line.
‘&’
Repeat the previous substitution.
* .: Bourne Shell Builtins.
(line 17)
* [: Bourne Shell Builtins.
- (line 337)
+ (line 338)
* alias: Bash Builtins. (line 11)
* bg: Job Control Builtins.
(line 7)
* complete: Programmable Completion Builtins.
(line 37)
* compopt: Programmable Completion Builtins.
- (line 257)
+ (line 258)
* continue: Bourne Shell Builtins.
(line 106)
* declare: Bash Builtins. (line 179)
* getopts: Bourne Shell Builtins.
(line 179)
* hash: Bourne Shell Builtins.
- (line 230)
+ (line 231)
* help: Bash Builtins. (line 374)
* history: Bash History Builtins.
(line 59)
* pushd: Directory Stack Builtins.
(line 70)
* pwd: Bourne Shell Builtins.
- (line 262)
+ (line 263)
* read: Bash Builtins. (line 548)
* readarray: Bash Builtins. (line 659)
* readonly: Bourne Shell Builtins.
- (line 274)
+ (line 275)
* return: Bourne Shell Builtins.
- (line 299)
+ (line 300)
* set: The Set Builtin. (line 11)
* shift: Bourne Shell Builtins.
- (line 324)
+ (line 325)
* shopt: The Shopt Builtin. (line 9)
* source: Bash Builtins. (line 668)
* suspend: Job Control Builtins.
(line 139)
* test: Bourne Shell Builtins.
- (line 337)
+ (line 338)
* times: Bourne Shell Builtins.
- (line 437)
+ (line 438)
* trap: Bourne Shell Builtins.
- (line 443)
+ (line 444)
* true: Bourne Shell Builtins.
- (line 509)
+ (line 510)
* type: Bash Builtins. (line 673)
* typeset: Bash Builtins. (line 710)
* ulimit: Bash Builtins. (line 716)
* umask: Bourne Shell Builtins.
- (line 514)
+ (line 515)
* unalias: Bash Builtins. (line 824)
* unset: Bourne Shell Builtins.
- (line 532)
+ (line 533)
* wait: Job Control Builtins.
(line 86)
* GLOBSORT: Bash Variables. (line 376)
* GROUPS: Bash Variables. (line 414)
* histchars: Bash Variables. (line 420)
-* HISTCMD: Bash Variables. (line 434)
-* HISTCONTROL: Bash Variables. (line 440)
-* HISTFILE: Bash Variables. (line 458)
-* HISTFILESIZE: Bash Variables. (line 464)
-* HISTIGNORE: Bash Variables. (line 475)
+* HISTCMD: Bash Variables. (line 435)
+* HISTCONTROL: Bash Variables. (line 441)
+* HISTFILE: Bash Variables. (line 459)
+* HISTFILESIZE: Bash Variables. (line 465)
+* HISTIGNORE: Bash Variables. (line 476)
* history-preserve-point: Readline Init File Syntax.
(line 232)
* history-size: Readline Init File Syntax.
(line 238)
-* HISTSIZE: Bash Variables. (line 499)
-* HISTTIMEFORMAT: Bash Variables. (line 506)
+* HISTSIZE: Bash Variables. (line 500)
+* HISTTIMEFORMAT: Bash Variables. (line 507)
* HOME: Bourne Shell Variables.
(line 13)
* horizontal-scroll-mode: Readline Init File Syntax.
(line 248)
-* HOSTFILE: Bash Variables. (line 515)
-* HOSTNAME: Bash Variables. (line 526)
-* HOSTTYPE: Bash Variables. (line 529)
+* HOSTFILE: Bash Variables. (line 516)
+* HOSTNAME: Bash Variables. (line 527)
+* HOSTTYPE: Bash Variables. (line 530)
* IFS: Bourne Shell Variables.
(line 18)
-* IGNOREEOF: Bash Variables. (line 532)
+* IGNOREEOF: Bash Variables. (line 533)
* input-meta: Readline Init File Syntax.
(line 256)
-* INPUTRC: Bash Variables. (line 541)
-* INSIDE_EMACS: Bash Variables. (line 545)
+* INPUTRC: Bash Variables. (line 542)
+* INSIDE_EMACS: Bash Variables. (line 546)
* isearch-terminators: Readline Init File Syntax.
(line 267)
* keymap: Readline Init File Syntax.
(line 274)
* LANG: Creating Internationalized Scripts.
(line 51)
-* LANG <1>: Bash Variables. (line 551)
-* LC_ALL: Bash Variables. (line 555)
-* LC_COLLATE: Bash Variables. (line 559)
-* LC_CTYPE: Bash Variables. (line 566)
+* LANG <1>: Bash Variables. (line 552)
+* LC_ALL: Bash Variables. (line 556)
+* LC_COLLATE: Bash Variables. (line 560)
+* LC_CTYPE: Bash Variables. (line 567)
* LC_MESSAGES: Creating Internationalized Scripts.
(line 51)
-* LC_MESSAGES <1>: Bash Variables. (line 571)
-* LC_NUMERIC: Bash Variables. (line 575)
-* LC_TIME: Bash Variables. (line 579)
-* LINENO: Bash Variables. (line 583)
-* LINES: Bash Variables. (line 590)
-* MACHTYPE: Bash Variables. (line 596)
+* LC_MESSAGES <1>: Bash Variables. (line 572)
+* LC_NUMERIC: Bash Variables. (line 576)
+* LC_TIME: Bash Variables. (line 580)
+* LINENO: Bash Variables. (line 584)
+* LINES: Bash Variables. (line 591)
+* MACHTYPE: Bash Variables. (line 597)
* MAIL: Bourne Shell Variables.
(line 24)
-* MAILCHECK: Bash Variables. (line 600)
+* MAILCHECK: Bash Variables. (line 601)
* MAILPATH: Bourne Shell Variables.
(line 29)
-* MAPFILE: Bash Variables. (line 608)
+* MAPFILE: Bash Variables. (line 609)
* mark-modified-lines: Readline Init File Syntax.
(line 304)
* mark-symlinked-directories: Readline Init File Syntax.
(line 321)
* meta-flag: Readline Init File Syntax.
(line 256)
-* OLDPWD: Bash Variables. (line 612)
+* OLDPWD: Bash Variables. (line 613)
* OPTARG: Bourne Shell Variables.
(line 36)
-* OPTERR: Bash Variables. (line 615)
+* OPTERR: Bash Variables. (line 616)
* OPTIND: Bourne Shell Variables.
(line 40)
-* OSTYPE: Bash Variables. (line 620)
+* OSTYPE: Bash Variables. (line 621)
* output-meta: Readline Init File Syntax.
(line 326)
* page-completions: Readline Init File Syntax.
(line 335)
* PATH: Bourne Shell Variables.
(line 44)
-* PIPESTATUS: Bash Variables. (line 623)
-* POSIXLY_CORRECT: Bash Variables. (line 629)
-* PPID: Bash Variables. (line 639)
-* PROMPT_COMMAND: Bash Variables. (line 643)
-* PROMPT_DIRTRIM: Bash Variables. (line 649)
-* PS0: Bash Variables. (line 655)
+* PIPESTATUS: Bash Variables. (line 624)
+* POSIXLY_CORRECT: Bash Variables. (line 630)
+* PPID: Bash Variables. (line 640)
+* PROMPT_COMMAND: Bash Variables. (line 644)
+* PROMPT_DIRTRIM: Bash Variables. (line 650)
+* PS0: Bash Variables. (line 656)
* PS1: Bourne Shell Variables.
(line 53)
* PS2: Bourne Shell Variables.
(line 58)
-* PS3: Bash Variables. (line 660)
-* PS4: Bash Variables. (line 665)
-* PWD: Bash Variables. (line 673)
-* RANDOM: Bash Variables. (line 676)
-* READLINE_ARGUMENT: Bash Variables. (line 684)
-* READLINE_LINE: Bash Variables. (line 688)
-* READLINE_MARK: Bash Variables. (line 692)
-* READLINE_POINT: Bash Variables. (line 698)
-* REPLY: Bash Variables. (line 702)
+* PS3: Bash Variables. (line 661)
+* PS4: Bash Variables. (line 666)
+* PWD: Bash Variables. (line 674)
+* RANDOM: Bash Variables. (line 677)
+* READLINE_ARGUMENT: Bash Variables. (line 685)
+* READLINE_LINE: Bash Variables. (line 689)
+* READLINE_MARK: Bash Variables. (line 693)
+* READLINE_POINT: Bash Variables. (line 699)
+* REPLY: Bash Variables. (line 703)
* revert-all-at-newline: Readline Init File Syntax.
(line 348)
* search-ignore-case: Readline Init File Syntax.
(line 355)
-* SECONDS: Bash Variables. (line 706)
-* SHELL: Bash Variables. (line 716)
-* SHELLOPTS: Bash Variables. (line 721)
-* SHLVL: Bash Variables. (line 730)
+* SECONDS: Bash Variables. (line 707)
+* SHELL: Bash Variables. (line 717)
+* SHELLOPTS: Bash Variables. (line 722)
+* SHLVL: Bash Variables. (line 731)
* show-all-if-ambiguous: Readline Init File Syntax.
(line 360)
* show-all-if-unmodified: Readline Init File Syntax.
(line 375)
* skip-completed-text: Readline Init File Syntax.
(line 381)
-* SRANDOM: Bash Variables. (line 735)
+* SRANDOM: Bash Variables. (line 736)
* TEXTDOMAIN: Creating Internationalized Scripts.
(line 51)
* TEXTDOMAINDIR: Creating Internationalized Scripts.
(line 51)
-* TIMEFORMAT: Bash Variables. (line 744)
-* TMOUT: Bash Variables. (line 783)
-* TMPDIR: Bash Variables. (line 795)
-* UID: Bash Variables. (line 799)
+* TIMEFORMAT: Bash Variables. (line 745)
+* TMOUT: Bash Variables. (line 784)
+* TMPDIR: Bash Variables. (line 796)
+* UID: Bash Variables. (line 800)
* vi-cmd-mode-string: Readline Init File Syntax.
(line 394)
* vi-ins-mode-string: Readline Init File Syntax.
(line 6)
* alias-expand-line (): Miscellaneous Commands.
(line 133)
-* backward-char (C-b): Commands For Moving. (line 17)
+* backward-char (C-b): Commands For Moving. (line 18)
* backward-delete-char (Rubout): Commands For Text. (line 18)
* backward-kill-line (C-x Rubout): Commands For Killing.
(line 11)
* backward-kill-word (M-<DEL>): Commands For Killing.
(line 28)
-* backward-word (M-b): Commands For Moving. (line 24)
+* backward-word (M-b): Commands For Moving. (line 26)
* beginning-of-history (M-<): Commands For History.
- (line 20)
+ (line 22)
* beginning-of-line (C-a): Commands For Moving. (line 6)
* bracketed-paste-begin (): Commands For Text. (line 35)
* call-last-kbd-macro (C-x e): Keyboard Macros. (line 13)
(line 41)
* character-search-backward (M-C-]): Miscellaneous Commands.
(line 45)
-* clear-display (M-C-l): Commands For Moving. (line 50)
-* clear-screen (C-l): Commands For Moving. (line 55)
+* clear-display (M-C-l): Commands For Moving. (line 52)
+* clear-screen (C-l): Commands For Moving. (line 57)
* complete (<TAB>): Commands For Completion.
(line 6)
* complete-command (M-!): Commands For Completion.
* end-kbd-macro (C-x )): Keyboard Macros. (line 9)
* end-of-file (usually C-d): Commands For Text. (line 6)
* end-of-history (M->): Commands For History.
- (line 23)
+ (line 25)
* end-of-line (C-e): Commands For Moving. (line 10)
* exchange-point-and-mark (C-x C-x): Miscellaneous Commands.
(line 37)
* export-completions (): Commands For Completion.
(line 44)
* fetch-history (): Commands For History.
- (line 106)
+ (line 108)
* forward-backward-delete-char (): Commands For Text. (line 23)
* forward-char (C-f): Commands For Moving. (line 14)
* forward-search-history (C-s): Commands For History.
- (line 33)
-* forward-word (M-f): Commands For Moving. (line 20)
+ (line 35)
+* forward-word (M-f): Commands For Moving. (line 22)
* glob-complete-word (M-g): Miscellaneous Commands.
(line 103)
* glob-expand-word (C-x *): Miscellaneous Commands.
* history-expand-line (M-^): Miscellaneous Commands.
(line 126)
* history-search-backward (): Commands For History.
- (line 51)
+ (line 53)
* history-search-forward (): Commands For History.
- (line 58)
+ (line 60)
* history-substring-search-backward (): Commands For History.
- (line 65)
+ (line 67)
* history-substring-search-forward (): Commands For History.
- (line 71)
+ (line 73)
* insert-comment (M-#): Miscellaneous Commands.
(line 59)
* insert-completions (M-*): Commands For Completion.
* menu-complete-backward (): Commands For Completion.
(line 39)
* next-history (C-n): Commands For History.
- (line 17)
-* next-screen-line (): Commands For Moving. (line 43)
+ (line 18)
+* next-screen-line (): Commands For Moving. (line 45)
* non-incremental-forward-search-history (M-n): Commands For History.
- (line 45)
+ (line 47)
* non-incremental-reverse-search-history (M-p): Commands For History.
- (line 39)
+ (line 41)
* operate-and-get-next (C-o): Commands For History.
- (line 99)
+ (line 101)
* overwrite-mode (): Commands For Text. (line 77)
* possible-command-completions (C-x !): Commands For Completion.
(line 111)
(line 19)
* previous-history (C-p): Commands For History.
(line 13)
-* previous-screen-line (): Commands For Moving. (line 36)
+* previous-screen-line (): Commands For Moving. (line 38)
* print-last-kbd-macro (): Keyboard Macros. (line 17)
* quoted-insert (C-q or C-v): Commands For Text. (line 28)
* re-read-init-file (C-x C-r): Miscellaneous Commands.
(line 6)
-* redraw-current-line (): Commands For Moving. (line 59)
+* redraw-current-line (): Commands For Moving. (line 61)
* reverse-search-history (C-r): Commands For History.
- (line 27)
+ (line 29)
* revert-line (M-r): Miscellaneous Commands.
(line 26)
* self-insert (a, b, A, 1, !, ...): Commands For Text. (line 32)
(line 33)
* shell-backward-kill-word (): Commands For Killing.
(line 37)
-* shell-backward-word (M-C-b): Commands For Moving. (line 32)
+* shell-backward-word (M-C-b): Commands For Moving. (line 34)
* shell-expand-line (M-C-e): Miscellaneous Commands.
(line 119)
-* shell-forward-word (M-C-f): Commands For Moving. (line 28)
+* shell-forward-word (M-C-f): Commands For Moving. (line 30)
* shell-kill-word (M-C-d): Commands For Killing.
(line 32)
* shell-transpose-words (M-C-t): Commands For Text. (line 58)
* yank (C-y): Commands For Killing.
(line 72)
* yank-last-arg (M-. or M-_): Commands For History.
- (line 87)
+ (line 89)
* yank-nth-arg (M-C-y): Commands For History.
- (line 77)
+ (line 79)
* yank-pop (M-y): Commands For Killing.
(line 75)
\1f
Tag Table:
-Node: Top\7f899
-Node: Introduction\7f2838
-Node: What is Bash?\7f3051
-Node: What is a shell?\7f4184
-Node: Definitions\7f6794
-Node: Basic Shell Features\7f10121
-Node: Shell Syntax\7f11345
-Node: Shell Operation\7f12372
-Node: Quoting\7f13663
-Node: Escape Character\7f15001
-Node: Single Quotes\7f15536
-Node: Double Quotes\7f15885
-Node: ANSI-C Quoting\7f17230
-Node: Locale Translation\7f18624
+Node: Top\7f901
+Node: Introduction\7f2842
+Node: What is Bash?\7f3055
+Node: What is a shell?\7f4188
+Node: Definitions\7f6798
+Node: Basic Shell Features\7f10125
+Node: Shell Syntax\7f11349
+Node: Shell Operation\7f12376
+Node: Quoting\7f13667
+Node: Escape Character\7f15005
+Node: Single Quotes\7f15540
+Node: Double Quotes\7f15889
+Node: ANSI-C Quoting\7f17234
+Node: Locale Translation\7f18628
Node: Creating Internationalized Scripts\7f20031
Node: Comments\7f24229
Node: Shell Commands\7f24996
Node: Compound Commands\7f32590
Node: Looping Constructs\7f33599
Node: Conditional Constructs\7f36118
-Node: Command Grouping\7f51050
-Node: Coprocesses\7f52542
-Node: GNU Parallel\7f55228
-Node: Shell Functions\7f56146
-Node: Shell Parameters\7f64623
-Node: Positional Parameters\7f69361
-Node: Special Parameters\7f70451
-Node: Shell Expansions\7f73912
-Node: Brace Expansion\7f76101
-Node: Tilde Expansion\7f78829
-Node: Shell Parameter Expansion\7f81784
-Node: Command Substitution\7f101552
-Node: Arithmetic Expansion\7f105085
-Node: Process Substitution\7f106098
-Node: Word Splitting\7f107214
-Node: Filename Expansion\7f109658
-Node: Pattern Matching\7f112926
-Node: Quote Removal\7f118263
-Node: Redirections\7f118567
-Node: Executing Commands\7f128776
-Node: Simple Command Expansion\7f129443
-Node: Command Search and Execution\7f131551
-Node: Command Execution Environment\7f133995
-Node: Environment\7f137443
-Node: Exit Status\7f139346
-Node: Signals\7f141404
-Node: Shell Scripts\7f146333
-Node: Shell Builtin Commands\7f149631
-Node: Bourne Shell Builtins\7f151742
-Node: Bash Builtins\7f178292
-Node: Modifying Shell Behavior\7f214740
-Node: The Set Builtin\7f215082
-Node: The Shopt Builtin\7f227036
-Node: Special Builtins\7f244088
-Node: Shell Variables\7f245077
-Node: Bourne Shell Variables\7f245511
-Node: Bash Variables\7f248019
-Node: Bash Features\7f286362
-Node: Invoking Bash\7f287376
-Node: Bash Startup Files\7f293802
-Node: Interactive Shells\7f299094
-Node: What is an Interactive Shell?\7f299502
-Node: Is this Shell Interactive?\7f300164
-Node: Interactive Shell Behavior\7f300988
-Node: Bash Conditional Expressions\7f304749
-Node: Shell Arithmetic\7f309968
-Node: Aliases\7f313297
-Node: Arrays\7f316432
-Node: The Directory Stack\7f323495
-Node: Directory Stack Builtins\7f324292
-Node: Controlling the Prompt\7f328737
-Node: The Restricted Shell\7f331621
-Node: Bash POSIX Mode\7f334503
-Node: Shell Compatibility Mode\7f352565
-Node: Job Control\7f361572
-Node: Job Control Basics\7f362029
-Node: Job Control Builtins\7f368307
-Node: Job Control Variables\7f374989
-Node: Command Line Editing\7f376220
-Node: Introduction and Notation\7f377923
-Node: Readline Interaction\7f380275
-Node: Readline Bare Essentials\7f381463
-Node: Readline Movement Commands\7f383271
-Node: Readline Killing Commands\7f384267
-Node: Readline Arguments\7f386290
-Node: Searching\7f387347
-Node: Readline Init File\7f389608
-Node: Readline Init File Syntax\7f390912
-Node: Conditional Init Constructs\7f417659
-Node: Sample Init File\7f422044
-Node: Bindable Readline Commands\7f425165
-Node: Commands For Moving\7f426703
-Node: Commands For History\7f428930
-Node: Commands For Text\7f434183
-Node: Commands For Killing\7f438308
-Node: Numeric Arguments\7f441096
-Node: Commands For Completion\7f442248
-Node: Keyboard Macros\7f447931
-Node: Miscellaneous Commands\7f448632
-Node: Readline vi Mode\7f455185
-Node: Programmable Completion\7f456162
-Node: Programmable Completion Builtins\7f464208
-Node: A Programmable Completion Example\7f475873
-Node: Using History Interactively\7f481218
-Node: Bash History Facilities\7f481899
-Node: Bash History Builtins\7f485634
-Node: History Interaction\7f492105
-Node: Event Designators\7f497059
-Node: Word Designators\7f498637
-Node: Modifiers\7f500945
-Node: Installing Bash\7f502886
-Node: Basic Installation\7f504002
-Node: Compilers and Options\7f507878
-Node: Compiling For Multiple Architectures\7f508628
-Node: Installation Names\7f510381
-Node: Specifying the System Type\7f512615
-Node: Sharing Defaults\7f513361
-Node: Operation Controls\7f514075
-Node: Optional Features\7f515094
-Node: Reporting Bugs\7f527474
-Node: Major Differences From The Bourne Shell\7f528832
-Node: GNU Free Documentation License\7f550252
-Node: Indexes\7f575429
-Node: Builtin Index\7f575880
-Node: Reserved Word Index\7f582978
-Node: Variable Index\7f585423
-Node: Function Index\7f602836
-Node: Concept Index\7f616831
+Node: Command Grouping\7f51054
+Node: Coprocesses\7f52546
+Node: GNU Parallel\7f55232
+Node: Shell Functions\7f56150
+Node: Shell Parameters\7f64602
+Node: Positional Parameters\7f69327
+Node: Special Parameters\7f70417
+Node: Shell Expansions\7f73878
+Node: Brace Expansion\7f76067
+Node: Tilde Expansion\7f78768
+Node: Shell Parameter Expansion\7f81723
+Node: Command Substitution\7f101483
+Node: Arithmetic Expansion\7f105012
+Node: Process Substitution\7f106025
+Node: Word Splitting\7f107133
+Node: Filename Expansion\7f109577
+Node: Pattern Matching\7f112840
+Node: Quote Removal\7f118563
+Node: Redirections\7f118867
+Node: Executing Commands\7f129095
+Node: Simple Command Expansion\7f129762
+Node: Command Search and Execution\7f131870
+Node: Command Execution Environment\7f134314
+Node: Environment\7f137762
+Node: Exit Status\7f139665
+Node: Signals\7f141723
+Node: Shell Scripts\7f146652
+Node: Shell Builtin Commands\7f149950
+Node: Bourne Shell Builtins\7f152061
+Node: Bash Builtins\7f178626
+Node: Modifying Shell Behavior\7f215074
+Node: The Set Builtin\7f215416
+Node: The Shopt Builtin\7f227370
+Node: Special Builtins\7f244422
+Node: Shell Variables\7f245411
+Node: Bourne Shell Variables\7f245845
+Node: Bash Variables\7f248353
+Node: Bash Features\7f286744
+Node: Invoking Bash\7f287758
+Node: Bash Startup Files\7f294184
+Node: Interactive Shells\7f299426
+Node: What is an Interactive Shell?\7f299834
+Node: Is this Shell Interactive?\7f300496
+Node: Interactive Shell Behavior\7f301320
+Node: Bash Conditional Expressions\7f305081
+Node: Shell Arithmetic\7f310292
+Node: Aliases\7f313621
+Node: Arrays\7f316755
+Node: The Directory Stack\7f323839
+Node: Directory Stack Builtins\7f324636
+Node: Controlling the Prompt\7f329081
+Node: The Restricted Shell\7f331966
+Node: Bash POSIX Mode\7f334848
+Node: Shell Compatibility Mode\7f352910
+Node: Job Control\7f361917
+Node: Job Control Basics\7f362374
+Node: Job Control Builtins\7f368652
+Node: Job Control Variables\7f375334
+Node: Command Line Editing\7f376565
+Node: Introduction and Notation\7f378268
+Node: Readline Interaction\7f380620
+Node: Readline Bare Essentials\7f381808
+Node: Readline Movement Commands\7f383616
+Node: Readline Killing Commands\7f384612
+Node: Readline Arguments\7f386635
+Node: Searching\7f387692
+Node: Readline Init File\7f389935
+Node: Readline Init File Syntax\7f391238
+Node: Conditional Init Constructs\7f417921
+Node: Sample Init File\7f422306
+Node: Bindable Readline Commands\7f425427
+Node: Commands For Moving\7f426965
+Node: Commands For History\7f429333
+Node: Commands For Text\7f434723
+Node: Commands For Killing\7f438848
+Node: Numeric Arguments\7f441636
+Node: Commands For Completion\7f442788
+Node: Keyboard Macros\7f448484
+Node: Miscellaneous Commands\7f449185
+Node: Readline vi Mode\7f455745
+Node: Programmable Completion\7f456722
+Node: Programmable Completion Builtins\7f465459
+Node: A Programmable Completion Example\7f477196
+Node: Using History Interactively\7f482541
+Node: Bash History Facilities\7f483222
+Node: Bash History Builtins\7f486957
+Node: History Interaction\7f493428
+Node: Event Designators\7f498378
+Node: Word Designators\7f499956
+Node: Modifiers\7f502260
+Node: Installing Bash\7f504197
+Node: Basic Installation\7f505313
+Node: Compilers and Options\7f509189
+Node: Compiling For Multiple Architectures\7f509939
+Node: Installation Names\7f511692
+Node: Specifying the System Type\7f513926
+Node: Sharing Defaults\7f514672
+Node: Operation Controls\7f515386
+Node: Optional Features\7f516405
+Node: Reporting Bugs\7f528785
+Node: Major Differences From The Bourne Shell\7f530143
+Node: GNU Free Documentation License\7f551563
+Node: Indexes\7f576740
+Node: Builtin Index\7f577191
+Node: Reserved Word Index\7f584289
+Node: Variable Index\7f586734
+Node: Function Index\7f604147
+Node: Concept Index\7f618142
\1f
End Tag Table
@xrdef{Executing Commands-snt}{Section@tie 3.7}
@xrdef{Simple Command Expansion-title}{Simple Command Expansion}
@xrdef{Simple Command Expansion-snt}{Section@tie 3.7.1}
-@xrdef{Command Search and Execution-title}{Command Search and Execution}
-@xrdef{Command Search and Execution-snt}{Section@tie 3.7.2}
@xrdef{Executing Commands-pg}{44}
@xrdef{Simple Command Expansion-pg}{44}
+@xrdef{Command Search and Execution-title}{Command Search and Execution}
+@xrdef{Command Search and Execution-snt}{Section@tie 3.7.2}
@xrdef{Command Execution Environment-title}{Command Execution Environment}
@xrdef{Command Execution Environment-snt}{Section@tie 3.7.3}
@xrdef{Command Search and Execution-pg}{45}
@xrdef{Environment-pg}{46}
@xrdef{Exit Status-title}{Exit Status}
@xrdef{Exit Status-snt}{Section@tie 3.7.5}
+@xrdef{Exit Status-pg}{47}
@xrdef{Signals-title}{Signals}
@xrdef{Signals-snt}{Section@tie 3.7.6}
-@xrdef{Exit Status-pg}{47}
@xrdef{Signals-pg}{48}
@xrdef{Shell Scripts-title}{Shell Scripts}
@xrdef{Shell Scripts-snt}{Section@tie 3.8}
@xrdef{Programmable Completion-pg}{156}
@xrdef{Programmable Completion Builtins-title}{Programmable Completion Builtins}
@xrdef{Programmable Completion Builtins-snt}{Section@tie 8.7}
-@xrdef{Programmable Completion Builtins-pg}{158}
+@xrdef{Programmable Completion Builtins-pg}{159}
@xrdef{A Programmable Completion Example-title}{A Programmable Completion Example}
@xrdef{A Programmable Completion Example-snt}{Section@tie 8.8}
-@xrdef{A Programmable Completion Example-pg}{162}
+@xrdef{A Programmable Completion Example-pg}{163}
@xrdef{Using History Interactively-title}{Using History Interactively}
@xrdef{Using History Interactively-snt}{Chapter@tie 9}
@xrdef{Bash History Facilities-title}{Bash History Facilities}
@xrdef{Bash History Facilities-snt}{Section@tie 9.1}
-@xrdef{Using History Interactively-pg}{165}
-@xrdef{Bash History Facilities-pg}{165}
+@xrdef{Using History Interactively-pg}{166}
+@xrdef{Bash History Facilities-pg}{166}
@xrdef{Bash History Builtins-title}{Bash History Builtins}
@xrdef{Bash History Builtins-snt}{Section@tie 9.2}
-@xrdef{Bash History Builtins-pg}{166}
+@xrdef{Bash History Builtins-pg}{167}
@xrdef{History Interaction-title}{History Expansion}
@xrdef{History Interaction-snt}{Section@tie 9.3}
-@xrdef{History Interaction-pg}{168}
+@xrdef{History Interaction-pg}{169}
@xrdef{Event Designators-title}{Event Designators}
@xrdef{Event Designators-snt}{Section@tie 9.3.1}
-@xrdef{Event Designators-pg}{169}
+@xrdef{Event Designators-pg}{170}
@xrdef{Word Designators-title}{Word Designators}
@xrdef{Word Designators-snt}{Section@tie 9.3.2}
@xrdef{Modifiers-title}{Modifiers}
@xrdef{Modifiers-snt}{Section@tie 9.3.3}
-@xrdef{Word Designators-pg}{170}
-@xrdef{Modifiers-pg}{171}
+@xrdef{Word Designators-pg}{171}
+@xrdef{Modifiers-pg}{172}
@xrdef{Installing Bash-title}{Installing Bash}
@xrdef{Installing Bash-snt}{Chapter@tie 10}
@xrdef{Basic Installation-title}{Basic Installation}
@xrdef{Basic Installation-snt}{Section@tie 10.1}
-@xrdef{Installing Bash-pg}{172}
-@xrdef{Basic Installation-pg}{172}
+@xrdef{Installing Bash-pg}{173}
+@xrdef{Basic Installation-pg}{173}
@xrdef{Compilers and Options-title}{Compilers and Options}
@xrdef{Compilers and Options-snt}{Section@tie 10.2}
@xrdef{Compiling For Multiple Architectures-title}{Compiling For Multiple Architectures}
@xrdef{Compiling For Multiple Architectures-snt}{Section@tie 10.3}
@xrdef{Installation Names-title}{Installation Names}
@xrdef{Installation Names-snt}{Section@tie 10.4}
-@xrdef{Compilers and Options-pg}{173}
-@xrdef{Compiling For Multiple Architectures-pg}{173}
+@xrdef{Compilers and Options-pg}{174}
+@xrdef{Compiling For Multiple Architectures-pg}{174}
@xrdef{Specifying the System Type-title}{Specifying the System Type}
@xrdef{Specifying the System Type-snt}{Section@tie 10.5}
@xrdef{Sharing Defaults-title}{Sharing Defaults}
@xrdef{Sharing Defaults-snt}{Section@tie 10.6}
@xrdef{Operation Controls-title}{Operation Controls}
@xrdef{Operation Controls-snt}{Section@tie 10.7}
-@xrdef{Installation Names-pg}{174}
-@xrdef{Specifying the System Type-pg}{174}
-@xrdef{Sharing Defaults-pg}{174}
+@xrdef{Installation Names-pg}{175}
+@xrdef{Specifying the System Type-pg}{175}
+@xrdef{Sharing Defaults-pg}{175}
@xrdef{Optional Features-title}{Optional Features}
@xrdef{Optional Features-snt}{Section@tie 10.8}
-@xrdef{Operation Controls-pg}{175}
-@xrdef{Optional Features-pg}{175}
+@xrdef{Operation Controls-pg}{176}
+@xrdef{Optional Features-pg}{176}
@xrdef{Reporting Bugs-title}{Reporting Bugs}
@xrdef{Reporting Bugs-snt}{Appendix@tie @char65{}}
-@xrdef{Reporting Bugs-pg}{181}
+@xrdef{Reporting Bugs-pg}{182}
@xrdef{Major Differences From The Bourne Shell-title}{Major Differences From The Bourne Shell}
@xrdef{Major Differences From The Bourne Shell-snt}{Appendix@tie @char66{}}
-@xrdef{Major Differences From The Bourne Shell-pg}{182}
+@xrdef{Major Differences From The Bourne Shell-pg}{183}
@xrdef{GNU Free Documentation License-title}{GNU Free Documentation License}
@xrdef{GNU Free Documentation License-snt}{Appendix@tie @char67{}}
-@xrdef{GNU Free Documentation License-pg}{189}
+@xrdef{GNU Free Documentation License-pg}{190}
@xrdef{Indexes-title}{Indexes}
@xrdef{Indexes-snt}{Appendix@tie @char68{}}
@xrdef{Builtin Index-title}{Index of Shell Builtin Commands}
@xrdef{Builtin Index-snt}{Section@tie @char68.1}
-@xrdef{Indexes-pg}{197}
-@xrdef{Builtin Index-pg}{197}
+@xrdef{Indexes-pg}{198}
+@xrdef{Builtin Index-pg}{198}
@xrdef{Reserved Word Index-title}{Index of Shell Reserved Words}
@xrdef{Reserved Word Index-snt}{Section@tie @char68.2}
@xrdef{Variable Index-title}{Parameter and Variable Index}
@xrdef{Variable Index-snt}{Section@tie @char68.3}
-@xrdef{Reserved Word Index-pg}{198}
-@xrdef{Variable Index-pg}{199}
+@xrdef{Reserved Word Index-pg}{199}
+@xrdef{Variable Index-pg}{200}
@xrdef{Function Index-title}{Function Index}
@xrdef{Function Index-snt}{Section@tie @char68.4}
-@xrdef{Function Index-pg}{201}
+@xrdef{Function Index-pg}{202}
@xrdef{Concept Index-title}{Concept Index}
@xrdef{Concept Index-snt}{Section@tie @char68.5}
-@xrdef{Concept Index-pg}{203}
+@xrdef{Concept Index-pg}{204}
\entry{wait}{126}{\code {wait}}
\entry{disown}{126}{\code {disown}}
\entry{suspend}{126}{\code {suspend}}
-\entry{compgen}{158}{\code {compgen}}
+\entry{compgen}{159}{\code {compgen}}
\entry{complete}{159}{\code {complete}}
\entry{compopt}{162}{\code {compopt}}
-\entry{fc}{166}{\code {fc}}
-\entry{history}{166}{\code {history}}
+\entry{fc}{167}{\code {fc}}
+\entry{history}{167}{\code {history}}
\entry{\code {caller}}{62}
\entry{\code {cd}}{52}
\entry{\code {command}}{62}
-\entry{\code {compgen}}{158}
+\entry{\code {compgen}}{159}
\entry{\code {complete}}{159}
\entry{\code {compopt}}{162}
\entry{\code {continue}}{53}
\entry{\code {export}}{53}
\initial {F}
\entry{\code {false}}{54}
-\entry{\code {fc}}{166}
+\entry{\code {fc}}{167}
\entry{\code {fg}}{125}
\initial {G}
\entry{\code {getopts}}{54}
\initial {H}
\entry{\code {hash}}{55}
\entry{\code {help}}{66}
-\entry{\code {history}}{166}
+\entry{\code {history}}{167}
\initial {J}
\entry{\code {jobs}}{125}
\initial {K}
\entry{initialization file, readline}{131}{initialization file, readline}
\entry{variables, readline}{132}{variables, readline}
\entry{programmable completion}{156}{programmable completion}
-\entry{completion builtins}{158}{completion builtins}
-\entry{History, how to use}{164}{History, how to use}
-\entry{command history}{165}{command history}
-\entry{history list}{165}{history list}
-\entry{history builtins}{166}{history builtins}
-\entry{history expansion}{168}{history expansion}
-\entry{event designators}{169}{event designators}
-\entry{history events}{169}{history events}
-\entry{installation}{172}{installation}
-\entry{configuration}{172}{configuration}
-\entry{Bash installation}{172}{Bash installation}
-\entry{Bash configuration}{172}{Bash configuration}
+\entry{completion builtins}{159}{completion builtins}
+\entry{History, how to use}{165}{History, how to use}
+\entry{command history}{166}{command history}
+\entry{history list}{166}{history list}
+\entry{history builtins}{167}{history builtins}
+\entry{history expansion}{169}{history expansion}
+\entry{event designators}{170}{event designators}
+\entry{history events}{170}{history events}
+\entry{installation}{173}{installation}
+\entry{configuration}{173}{configuration}
+\entry{Bash installation}{173}{Bash installation}
+\entry{Bash configuration}{173}{Bash configuration}
\entry{arrays}{109}
\initial {B}
\entry{background}{123}
-\entry{Bash configuration}{172}
-\entry{Bash installation}{172}
+\entry{Bash configuration}{173}
+\entry{Bash installation}{173}
\entry{binary arithmetic operators}{107}
\entry{bitwise arithmetic operators}{107}
\entry{Bourne shell}{5}
\entry{command editing}{129}
\entry{command execution}{45}
\entry{command expansion}{44}
-\entry{command history}{165}
+\entry{command history}{166}
\entry{command search}{45}
\entry{command substitution}{35}
\entry{command timing}{10}
\entry{comments, shell}{9}
\entry{Compatibility Level}{120}
\entry{Compatibility Mode}{120}
-\entry{completion builtins}{158}
+\entry{completion builtins}{159}
\entry{conditional arithmetic operator}{107}
-\entry{configuration}{172}
+\entry{configuration}{173}
\entry{control operator}{3}
\entry{coprocess}{18}
\initial {D}
\entry{editing command lines}{129}
\entry{environment}{46}
\entry{evaluation, arithmetic}{106}
-\entry{event designators}{169}
+\entry{event designators}{170}
\entry{execution environment}{45}
\entry{exit status}{3, 47}
\entry{expansion}{24}
\entry{foreground}{123}
\entry{functions, shell}{19}
\initial {H}
-\entry{history builtins}{166}
-\entry{history events}{169}
-\entry{history expansion}{168}
-\entry{history list}{165}
-\entry{History, how to use}{164}
+\entry{history builtins}{167}
+\entry{history events}{170}
+\entry{history expansion}{169}
+\entry{history list}{166}
+\entry{History, how to use}{165}
\initial {I}
\entry{identifier}{3}
\entry{initialization file, readline}{131}
-\entry{installation}{172}
+\entry{installation}{173}
\entry{interaction, readline}{128}
\entry{interactive shell}{101, 103}
\entry{internationalization}{7}
\entry{insert-completions (M-*)}{151}{\code {insert-completions (M-*)}}
\entry{menu-complete ()}{151}{\code {menu-complete ()}}
\entry{menu-complete-backward ()}{152}{\code {menu-complete-backward ()}}
+\entry{export-completions ()}{152}{\code {export-completions ()}}
\entry{delete-char-or-list ()}{152}{\code {delete-char-or-list ()}}
\entry{complete-filename (M-/)}{152}{\code {complete-filename (M-/)}}
\entry{possible-filename-completions (C-x /)}{152}{\code {possible-filename-completions (C-x /)}}
\entry{complete-variable (M-$)}{152}{\code {complete-variable (M-$)}}
\entry{possible-variable-completions (C-x $)}{152}{\code {possible-variable-completions (C-x $)}}
\entry{complete-hostname (M-@)}{152}{\code {complete-hostname (M-@)}}
-\entry{possible-hostname-completions (C-x @)}{152}{\code {possible-hostname-completions (C-x @)}}
-\entry{complete-command (M-!)}{152}{\code {complete-command (M-!)}}
-\entry{possible-command-completions (C-x !)}{152}{\code {possible-command-completions (C-x !)}}
-\entry{dynamic-complete-history (M-TAB)}{152}{\code {dynamic-complete-history (M-\key {TAB})}}
-\entry{dabbrev-expand ()}{152}{\code {dabbrev-expand ()}}
+\entry{possible-hostname-completions (C-x @)}{153}{\code {possible-hostname-completions (C-x @)}}
+\entry{complete-command (M-!)}{153}{\code {complete-command (M-!)}}
+\entry{possible-command-completions (C-x !)}{153}{\code {possible-command-completions (C-x !)}}
+\entry{dynamic-complete-history (M-TAB)}{153}{\code {dynamic-complete-history (M-\key {TAB})}}
+\entry{dabbrev-expand ()}{153}{\code {dabbrev-expand ()}}
\entry{complete-into-braces (M-{\indexlbrace })}{153}{\code {complete-into-braces (M-{\tt \char 123})}}
\entry{start-kbd-macro (C-x ()}{153}{\code {start-kbd-macro (C-x ()}}
\entry{end-kbd-macro (C-x ))}{153}{\code {end-kbd-macro (C-x ))}}
\entry{print-last-kbd-macro ()}{153}{\code {print-last-kbd-macro ()}}
\entry{re-read-init-file (C-x C-r)}{153}{\code {re-read-init-file (C-x C-r)}}
\entry{abort (C-g)}{153}{\code {abort (C-g)}}
-\entry{do-lowercase-version (M-A, M-B, M-x, ...{})}{153}{\code {do-lowercase-version (M-A, M-B, M-\var {x}, \dots {})}}
-\entry{prefix-meta (ESC)}{153}{\code {prefix-meta (\key {ESC})}}
-\entry{undo (C-_ or C-x C-u)}{153}{\code {undo (C-_ or C-x C-u)}}
-\entry{revert-line (M-r)}{153}{\code {revert-line (M-r)}}
-\entry{tilde-expand (M-&)}{153}{\code {tilde-expand (M-&)}}
-\entry{set-mark (C-@)}{153}{\code {set-mark (C-@)}}
-\entry{exchange-point-and-mark (C-x C-x)}{153}{\code {exchange-point-and-mark (C-x C-x)}}
+\entry{do-lowercase-version (M-A, M-B, M-x, ...{})}{154}{\code {do-lowercase-version (M-A, M-B, M-\var {x}, \dots {})}}
+\entry{prefix-meta (ESC)}{154}{\code {prefix-meta (\key {ESC})}}
+\entry{undo (C-_ or C-x C-u)}{154}{\code {undo (C-_ or C-x C-u)}}
+\entry{revert-line (M-r)}{154}{\code {revert-line (M-r)}}
+\entry{tilde-expand (M-&)}{154}{\code {tilde-expand (M-&)}}
+\entry{set-mark (C-@)}{154}{\code {set-mark (C-@)}}
+\entry{exchange-point-and-mark (C-x C-x)}{154}{\code {exchange-point-and-mark (C-x C-x)}}
\entry{character-search (C-])}{154}{\code {character-search (C-])}}
\entry{character-search-backward (M-C-])}{154}{\code {character-search-backward (M-C-])}}
\entry{skip-csi-sequence ()}{154}{\code {skip-csi-sequence ()}}
\entry{insert-comment (M-#)}{154}{\code {insert-comment (M-#)}}
-\entry{dump-functions ()}{154}{\code {dump-functions ()}}
-\entry{dump-variables ()}{154}{\code {dump-variables ()}}
-\entry{dump-macros ()}{154}{\code {dump-macros ()}}
-\entry{execute-named-command (M-x)}{154}{\code {execute-named-command (M-x)}}
+\entry{dump-functions ()}{155}{\code {dump-functions ()}}
+\entry{dump-variables ()}{155}{\code {dump-variables ()}}
+\entry{dump-macros ()}{155}{\code {dump-macros ()}}
+\entry{execute-named-command (M-x)}{155}{\code {execute-named-command (M-x)}}
\entry{spell-correct-word (C-x s)}{155}{\code {spell-correct-word (C-x s)}}
\entry{glob-complete-word (M-g)}{155}{\code {glob-complete-word (M-g)}}
\entry{glob-expand-word (C-x *)}{155}{\code {glob-expand-word (C-x *)}}
\entry{glob-list-expansions (C-x g)}{155}{\code {glob-list-expansions (C-x g)}}
\entry{shell-expand-line (M-C-e)}{155}{\code {shell-expand-line (M-C-e)}}
\entry{history-expand-line (M-^)}{155}{\code {history-expand-line (M-^)}}
-\entry{magic-space ()}{155}{\code {magic-space ()}}
-\entry{alias-expand-line ()}{155}{\code {alias-expand-line ()}}
-\entry{history-and-alias-expand-line ()}{155}{\code {history-and-alias-expand-line ()}}
-\entry{insert-last-argument (M-. or M-_)}{155}{\code {insert-last-argument (M-. or M-_)}}
-\entry{edit-and-execute-command (C-x C-e)}{155}{\code {edit-and-execute-command (C-x C-e)}}
-\entry{display-shell-version (C-x C-v)}{155}{\code {display-shell-version (C-x C-v)}}
+\entry{magic-space ()}{156}{\code {magic-space ()}}
+\entry{alias-expand-line ()}{156}{\code {alias-expand-line ()}}
+\entry{history-and-alias-expand-line ()}{156}{\code {history-and-alias-expand-line ()}}
+\entry{insert-last-argument (M-. or M-_)}{156}{\code {insert-last-argument (M-. or M-_)}}
+\entry{edit-and-execute-command (C-x C-e)}{156}{\code {edit-and-execute-command (C-x C-e)}}
+\entry{display-shell-version (C-x C-v)}{156}{\code {display-shell-version (C-x C-v)}}
\initial {A}
\entry{\code {abort (C-g)}}{153}
\entry{\code {accept-line (Newline or Return)}}{146}
-\entry{\code {alias-expand-line ()}}{155}
+\entry{\code {alias-expand-line ()}}{156}
\initial {B}
\entry{\code {backward-char (C-b)}}{145}
\entry{\code {backward-delete-char (Rubout)}}{148}
\entry{\code {clear-display (M-C-l)}}{146}
\entry{\code {clear-screen (C-l)}}{146}
\entry{\code {complete (\key {TAB})}}{151}
-\entry{\code {complete-command (M-!)}}{152}
+\entry{\code {complete-command (M-!)}}{153}
\entry{\code {complete-filename (M-/)}}{152}
\entry{\code {complete-hostname (M-@)}}{152}
\entry{\code {complete-into-braces (M-{\tt \char 123})}}{153}
\entry{\code {copy-forward-word ()}}{150}
\entry{\code {copy-region-as-kill ()}}{150}
\initial {D}
-\entry{\code {dabbrev-expand ()}}{152}
+\entry{\code {dabbrev-expand ()}}{153}
\entry{\code {delete-char (C-d)}}{148}
\entry{\code {delete-char-or-list ()}}{152}
\entry{\code {delete-horizontal-space ()}}{150}
\entry{\code {digit-argument (\kbd {M-0}, \kbd {M-1}, \dots {} \kbd {M--})}}{151}
-\entry{\code {display-shell-version (C-x C-v)}}{155}
-\entry{\code {do-lowercase-version (M-A, M-B, M-\var {x}, \dots {})}}{153}
+\entry{\code {display-shell-version (C-x C-v)}}{156}
+\entry{\code {do-lowercase-version (M-A, M-B, M-\var {x}, \dots {})}}{154}
\entry{\code {downcase-word (M-l)}}{149}
-\entry{\code {dump-functions ()}}{154}
-\entry{\code {dump-macros ()}}{154}
-\entry{\code {dump-variables ()}}{154}
-\entry{\code {dynamic-complete-history (M-\key {TAB})}}{152}
+\entry{\code {dump-functions ()}}{155}
+\entry{\code {dump-macros ()}}{155}
+\entry{\code {dump-variables ()}}{155}
+\entry{\code {dynamic-complete-history (M-\key {TAB})}}{153}
\initial {E}
-\entry{\code {edit-and-execute-command (C-x C-e)}}{155}
+\entry{\code {edit-and-execute-command (C-x C-e)}}{156}
\entry{\code {end-kbd-macro (C-x ))}}{153}
\entry{\code {\i {end-of-file} (usually C-d)}}{148}
\entry{\code {end-of-history (M->)}}{146}
\entry{\code {end-of-line (C-e)}}{145}
-\entry{\code {exchange-point-and-mark (C-x C-x)}}{153}
-\entry{\code {execute-named-command (M-x)}}{154}
+\entry{\code {exchange-point-and-mark (C-x C-x)}}{154}
+\entry{\code {execute-named-command (M-x)}}{155}
+\entry{\code {export-completions ()}}{152}
\initial {F}
\entry{\code {fetch-history ()}}{148}
\entry{\code {forward-backward-delete-char ()}}{148}
\entry{\code {glob-expand-word (C-x *)}}{155}
\entry{\code {glob-list-expansions (C-x g)}}{155}
\initial {H}
-\entry{\code {history-and-alias-expand-line ()}}{155}
+\entry{\code {history-and-alias-expand-line ()}}{156}
\entry{\code {history-expand-line (M-^)}}{155}
\entry{\code {history-search-backward ()}}{147}
\entry{\code {history-search-forward ()}}{147}
\initial {I}
\entry{\code {insert-comment (M-#)}}{154}
\entry{\code {insert-completions (M-*)}}{151}
-\entry{\code {insert-last-argument (M-. or M-_)}}{155}
+\entry{\code {insert-last-argument (M-. or M-_)}}{156}
\initial {K}
\entry{\code {kill-line (C-k)}}{149}
\entry{\code {kill-region ()}}{150}
\entry{\code {kill-whole-line ()}}{150}
\entry{\code {kill-word (M-d)}}{150}
\initial {M}
-\entry{\code {magic-space ()}}{155}
+\entry{\code {magic-space ()}}{156}
\entry{\code {menu-complete ()}}{151}
\entry{\code {menu-complete-backward ()}}{152}
\initial {N}
\entry{\code {operate-and-get-next (C-o)}}{148}
\entry{\code {overwrite-mode ()}}{149}
\initial {P}
-\entry{\code {possible-command-completions (C-x !)}}{152}
+\entry{\code {possible-command-completions (C-x !)}}{153}
\entry{\code {possible-completions (M-?)}}{151}
\entry{\code {possible-filename-completions (C-x /)}}{152}
-\entry{\code {possible-hostname-completions (C-x @)}}{152}
+\entry{\code {possible-hostname-completions (C-x @)}}{153}
\entry{\code {possible-username-completions (C-x ~)}}{152}
\entry{\code {possible-variable-completions (C-x $)}}{152}
-\entry{\code {prefix-meta (\key {ESC})}}{153}
+\entry{\code {prefix-meta (\key {ESC})}}{154}
\entry{\code {previous-history (C-p)}}{146}
\entry{\code {previous-screen-line ()}}{146}
\entry{\code {print-last-kbd-macro ()}}{153}
\entry{\code {re-read-init-file (C-x C-r)}}{153}
\entry{\code {redraw-current-line ()}}{146}
\entry{\code {reverse-search-history (C-r)}}{146}
-\entry{\code {revert-line (M-r)}}{153}
+\entry{\code {revert-line (M-r)}}{154}
\initial {S}
\entry{\code {self-insert (a, b, A, 1, !, \dots {})}}{148}
-\entry{\code {set-mark (C-@)}}{153}
+\entry{\code {set-mark (C-@)}}{154}
\entry{\code {shell-backward-kill-word ()}}{150}
\entry{\code {shell-backward-word (M-C-b)}}{145}
\entry{\code {shell-expand-line (M-C-e)}}{155}
\entry{\code {spell-correct-word (C-x s)}}{155}
\entry{\code {start-kbd-macro (C-x ()}}{153}
\initial {T}
-\entry{\code {tilde-expand (M-&)}}{153}
+\entry{\code {tilde-expand (M-&)}}{154}
\entry{\code {transpose-chars (C-t)}}{149}
\entry{\code {transpose-words (M-t)}}{149}
\initial {U}
-\entry{\code {undo (C-_ or C-x C-u)}}{153}
+\entry{\code {undo (C-_ or C-x C-u)}}{154}
\entry{\code {universal-argument ()}}{151}
\entry{\code {unix-filename-rubout ()}}{150}
\entry{\code {unix-line-discard (C-u)}}{149}
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- This text is a brief description of the features that are present in
-the Bash shell (version 5.3, 23 October 2024).
+the Bash shell (version 5.3, 29 November 2024).
-This is Edition 5.3, last updated 23 October 2024,
+This is Edition 5.3, last updated 29 November 2024,
of The GNU Bash Reference Manual,
for Bash, Version 5.3.
<h1 class="top" id="Bash-Features-1"><span>Bash Features<a class="copiable-link" href="#Bash-Features-1"> ¶</a></span></h1>
<p>This text is a brief description of the features that are present in
-the Bash shell (version 5.3, 23 October 2024).
+the Bash shell (version 5.3, 29 November 2024).
The Bash home page is <a class="url" href="http://www.gnu.org/software/bash/">http://www.gnu.org/software/bash/</a>.
</p>
-<p>This is Edition 5.3, last updated 23 October 2024,
+<p>This is Edition 5.3, last updated 29 November 2024,
of <cite class="cite">The GNU Bash Reference Manual</cite>,
for <code class="code">Bash</code>, Version 5.3.
</p>
<p>Bash contains features that appear in other popular shells, and some
-features that only appear in Bash. Some of the shells that Bash has
+features that only appear in Bash.
+Some of the shells that Bash has
borrowed concepts from are the Bourne Shell (<samp class="file">sh</samp>), the Korn Shell
(<samp class="file">ksh</samp>), and the C-shell (<samp class="file">csh</samp> and its successor,
-<samp class="file">tcsh</samp>). The following menu breaks the features up into
+<samp class="file">tcsh</samp>).
+The following menu breaks the features up into
categories, noting which features were inspired by other shells and
which are specific to Bash.
</p>
-<p>This manual is meant as a brief introduction to features found in
-Bash. The Bash manual page should be used as the definitive
+<p>This manual is meant as a brief introduction to features found in Bash.
+The Bash manual page should be used as the definitive
reference on shell behavior.
</p>
</p>
<p>A double quote may be quoted within double quotes by preceding it with
a backslash.
-If enabled, history expansion will be performed unless an ‘<samp class="samp">!</samp>’
+If enabled, history expansion will be performed unless an
+‘<samp class="samp">!</samp>’
appearing in double quotes is escaped using a backslash.
The backslash preceding the ‘<samp class="samp">!</samp>’ is not removed.
</p>
<p>Prefixing a double-quoted string with a dollar sign (‘<samp class="samp">$</samp>’), such
as <code class="verb">$"hello, world"</code>,
-will cause the string to be translated according to the current locale.
+causes the string to be translated according to the current locale.
The <code class="code">gettext</code> infrastructure performs the lookup and
translation, using the <code class="code">LC_MESSAGES</code>, <code class="code">TEXTDOMAINDIR</code>,
and <code class="code">TEXTDOMAIN</code> shell variables, as explained below.
If the pattern is stored in a shell variable, quoting the variable
expansion forces the entire pattern to be matched literally.
</p>
-<p>The pattern will match if it matches any part of the string.
+<p>The match succeeds if the pattern matches any part of the string.
If you want to force the pattern to match the entire string,
anchor the pattern using the ‘<samp class="samp">^</samp>’ and ‘<samp class="samp">$</samp>’ regular expression
operators.
</p>
<p>For example, if a variable <code class="env">var</code> is declared as local in function
<code class="code">func1</code>, and <code class="code">func1</code> calls another function <code class="code">func2</code>,
-references to <code class="env">var</code> made from within <code class="code">func2</code> will resolve to the
+references to <code class="env">var</code> made from within <code class="code">func2</code> resolve to the
local variable <code class="env">var</code> from <code class="code">func1</code>, shadowing any global variable
named <code class="env">var</code>.
</p>
func1
</pre></div>
-<p>The <code class="code">unset</code> builtin also acts using the same dynamic scope: if a
-variable is local to the current scope, <code class="code">unset</code> will unset it;
-otherwise the unset will refer to the variable found in any calling scope
+<p>The <code class="code">unset</code> builtin also acts using the same dynamic scope: if a
+variable is local to the current scope, <code class="code">unset</code> unsets it;
+otherwise the unset will refer to the variable found in any calling scope
as described above.
-If a variable at the current local scope is unset, it will remain so
+If a variable at the current local scope is unset, it remains so
(appearing as unset)
until it is reset in that scope or until the function returns.
Once the function returns, any instance of the variable at a previous
-scope will become visible.
-If the unset acts on a variable at a previous scope, any instance of a
+scope becomes visible.
+If the unset acts on a variable at a previous scope, any instance of a
variable with that name that had been shadowed will become visible
-(see below how <code class="code">localvar_unset</code> shell option changes this behavior).
+(see below how the <code class="code">localvar_unset</code> shell option changes this behavior).
</p>
<p>The <samp class="option">-f</samp> option to the <code class="code">declare</code> (<code class="code">typeset</code>)
builtin command (see <a class="pxref" href="#Bash-Builtins">Bash Builtin Commands</a>)
-will list function names and definitions.
+lists function names and definitions.
The <samp class="option">-F</samp> option to <code class="code">declare</code> or <code class="code">typeset</code>
-will list the function names only
+lists the function names only
(and optionally the source file and line number, if the <code class="code">extdebug</code>
shell option is enabled).
Functions may be exported so that child shell processes
The <samp class="option">-f</samp> option to
the <code class="code">unset</code> builtin
(see <a class="pxref" href="#Bourne-Shell-Builtins">Bourne Shell Builtins</a>)
-will delete a function definition.
+deletes a function definition.
</p>
<p>Functions may be recursive.
The <code class="code">FUNCNEST</code> variable may be used to limit the depth of the
</pre></div>
<p>In the context where an assignment statement is assigning a value
-to a shell variable or array index (see <a class="pxref" href="#Arrays">Arrays</a>), the ‘<samp class="samp">+=</samp>’
-operator will append to or add to the variable’s previous value.
-This includes arguments to declaration commands such as <code class="code">declare</code>
-that accept assignment statements.
-When ‘<samp class="samp">+=</samp>’ is applied to a variable for which the <code class="code">integer</code> attribute
-has been set,
+to a shell variable or array index (see <a class="pxref" href="#Arrays">Arrays</a>),
+the ‘<samp class="samp">+=</samp>’ operator appends to or adds to
+the variable’s previous value.
+This includes arguments to declaration commands such as
+<code class="code">declare</code> that accept assignment statements.
+When ‘<samp class="samp">+=</samp>’ is applied to a variable
+for which the <code class="code">integer</code> attribute has been set,
the variable’s current value and <var class="var">value</var> are each evaluated as
arithmetic expressions,
and the sum of the results is assigned as the variable’s value.
</p>
<p>If the control variable in a <code class="code">for</code> loop has the nameref attribute,
the list of words can be a list of shell variables, and a name reference
-will be established for each word in the list, in turn, when the loop is
+is established for each word in the list, in turn, when the loop is
executed.
Array variables cannot be given the nameref attribute.
However, nameref variables can reference array variables and subscripted
Namerefs can be unset using the <samp class="option">-n</samp> option to the <code class="code">unset</code> builtin
(see <a class="pxref" href="#Bourne-Shell-Builtins">Bourne Shell Builtins</a>).
Otherwise, if <code class="code">unset</code> is executed with the name of a nameref variable
-as an argument, the variable referenced by the nameref variable will be unset.
+as an argument, the variable referenced by the nameref variable is unset.
</p>
<ul class="mini-toc">
<li><a href="#Positional-Parameters" accesskey="1">Positional Parameters</a></li>
and <var class="var">incr</var>, an optional increment, is an integer.
When integers are supplied, the expression expands to each number between
<var class="var">x</var> and <var class="var">y</var>, inclusive.
-When either <var class="var">x</var> or <var class="var">y</var> begins with a zero, the shell
-attempts to force all generated terms to contain the same number of digits,
+If either <var class="var">x</var> or <var class="var">y</var> begins with a zero,
+each generated term will contain the same number of digits,
zero-padding where necessary.
When letters are supplied, the expression expands to each character
lexicographically between <var class="var">x</var> and <var class="var">y</var>, inclusive,
<p>Quoting any part of <var class="var">string</var> inhibits replacement in the
expansion of the quoted portion, including replacement strings stored
in shell variables.
-Backslash will escape ‘<samp class="samp">&</samp>’ in <var class="var">string</var>; the backslash is removed
+Backslash escapes ‘<samp class="samp">&</samp>’ in <var class="var">string</var>; the backslash is removed
in order to permit a literal ‘<samp class="samp">&</samp>’ in the replacement string.
Users should take care if <var class="var">string</var> is double-quoted to avoid
unwanted interactions between the backslash and double-quoting, since
<dt><code class="code">A</code></dt>
<dd><p>The expansion is a string in the form of
an assignment statement or <code class="code">declare</code> command that, if
-evaluated, will recreate <var class="var">parameter</var> with its attributes and value.
+evaluated, recreates <var class="var">parameter</var> with its attributes and value.
</p></dd>
<dt><code class="code">K</code></dt>
<dd><p>Produces a possibly-quoted version of the value of <var class="var">parameter</var>,
<p>Any side effects of <var class="var">command</var> take effect immediately
in the current execution environment and persist in the current
environment after the command completes (e.g., the <code class="code">exit</code> builtin
-will exit the shell).
+exits the shell).
</p>
<p>This type of command substitution superficially resembles executing an
unnamed shell function: local variables are created as when a shell
expansion.
</p>
<p>If the <code class="code">>(<var class="var">list</var>)</code> form is used, writing to
-the file will provide input for <var class="var">list</var>.
+the file provides input for <var class="var">list</var>.
If the
<code class="code"><(<var class="var">list</var>)</code> form is used, reading the file
-will obtain the output of <var class="var">list</var>.
+obtains the output of <var class="var">list</var>.
Note that no space may appear between the <code class="code"><</code> or <code class="code">></code>
and the left parenthesis, otherwise the construct would be interpreted
as a redirection.
and passed to commands as empty strings.
Unquoted implicit null arguments, resulting from the expansion of
parameters that have no values, are removed.
-Expanding a parameter with no value within double quotes
+Expanding a parameter with no value within double quotes
produces a null field,
which is retained and passed to a command as an empty string.
</p>
However, setting <code class="env">GLOBIGNORE</code> to a non-null value has the effect of
enabling the <code class="code">dotglob</code>
shell option, so all other filenames beginning with a
-‘<samp class="samp">.</samp>’ will match.
+‘<samp class="samp">.</samp>’
+match.
To get the old behavior of ignoring filenames beginning with a
‘<samp class="samp">.</samp>’, make ‘<samp class="samp">.*</samp>’ one of the patterns in <code class="env">GLOBIGNORE</code>.
The <code class="code">dotglob</code> option is disabled when <code class="env">GLOBIGNORE</code>
<dd><p>Matches any string, including the null string.
When the <code class="code">globstar</code> shell option is enabled, and ‘<samp class="samp">*</samp>’ is used in
a filename expansion context, two adjacent ‘<samp class="samp">*</samp>’s used as a single
-pattern will match all files and zero or more directories and
+pattern match all files and zero or more directories and
subdirectories.
-If followed by a ‘<samp class="samp">/</samp>’, two adjacent ‘<samp class="samp">*</samp>’s will match only
+If followed by a ‘<samp class="samp">/</samp>’, two adjacent ‘<samp class="samp">*</samp>’s match only
directories and subdirectories.
</p></dd>
<dt><code class="code">?</code></dt>
<dd><p>Matches any single character.
</p></dd>
<dt><code class="code">[…]</code></dt>
-<dd><p>Matches any one of the enclosed characters.
+<dd><p>Matches any one of the characters enclosed between the brackets.
+This is known as a <em class="dfn">bracket expression</em>
+and matches a single character.
A pair of characters separated by a hyphen denotes a <em class="dfn">range expression</em>;
any character that falls between those two characters, inclusive,
using the current locale’s collating sequence and character set, matches.
If the first character following the
-‘<samp class="samp">[</samp>’ is a ‘<samp class="samp">!</samp>’ or a ‘<samp class="samp">^</samp>’
+‘<samp class="samp">[</samp>’ is a ‘<samp class="samp">!</samp>’ or a ‘<samp class="samp">^</samp>’
then any character not within the range matches.
To match a ‘<samp class="samp">−</samp>’, include it as the first
or last character in the set.
<code class="env">LC_ALL</code> environment variable to the value ‘<samp class="samp">C</samp>’, or enable the
<code class="code">globasciiranges</code> shell option.
</p>
-<p>Within ‘<samp class="samp">[</samp>’ and ‘<samp class="samp">]</samp>’, <em class="dfn">character classes</em> can be specified
+<p>Within a bracket expression, <em class="dfn">character classes</em> can be specified
using the syntax
<code class="code">[:</code><var class="var">class</var><code class="code">:]</code>, where <var class="var">class</var> is one of the
following classes defined in the <small class="sc">POSIX</small> standard:
The <code class="code">word</code> character class matches letters, digits, and the character
‘<samp class="samp">_</samp>’.
</p>
-<p>Within ‘<samp class="samp">[</samp>’ and ‘<samp class="samp">]</samp>’, an <em class="dfn">equivalence class</em> can be
+<p>For instance, the following pattern will match any character belonging
+to the <code class="code">space</code> character class in the current locale, then any
+upper case letter or ‘<samp class="samp">!</samp>’, a dot, and finally any lower case letter
+or a hyphen.
+</p>
+<div class="example">
+<pre class="example-preformatted">[[:space:]][[:upper:]!].[-[:lower:]]
+</pre></div>
+
+<p>Within a bracket expression, an <em class="dfn">equivalence class</em> can be
specified using the syntax <code class="code">[=</code><var class="var">c</var><code class="code">=]</code>, which
matches all characters with the same collation weight (as defined
by the current locale) as the character <var class="var">c</var>.
</p>
-<p>Within ‘<samp class="samp">[</samp>’ and ‘<samp class="samp">]</samp>’, the syntax <code class="code">[.</code><var class="var">symbol</var><code class="code">.]</code>
+<p>Within a bracket expression, the syntax <code class="code">[.</code><var class="var">symbol</var><code class="code">.]</code>
matches the collating symbol <var class="var">symbol</var>.
</p></dd>
</dl>
<h3 class="section" id="Redirections-1"><span>3.6 Redirections<a class="copiable-link" href="#Redirections-1"> ¶</a></span></h3>
<a class="index-entry-id" id="index-redirection"></a>
-<p>Before a command is executed, its input and output
-may be <em class="dfn">redirected</em>
+<p>Before a command is executed, its input and output may be
+<em class="dfn">redirected</em>
using a special notation interpreted by the shell.
<em class="dfn">Redirection</em> allows commands’ file handles to be
duplicated, opened, closed, made to refer to different files,
<p>Each redirection that may be preceded by a file descriptor number
may instead be preceded by a word of the form {<var class="var">varname</var>}.
In this case, for each redirection operator except
->&- and <&-, the shell will allocate a file descriptor greater
-than 10 and assign it to {<var class="var">varname</var>}.
-If {<var class="var">varname</var>} precedes >&- or <&-,
-the value of <var class="var">varname</var> defines the file
-descriptor to close.
+<code class="code">>&-</code>
+and
+<code class="code"><&-</code>,
+the shell allocates a file descriptor greater
+than or equal to 10 and assigns it to {<var class="var">varname</var>}.
+If {<var class="var">varname</var>} precedes
+<code class="code">>&-</code>
+or
+<code class="code"><&-</code>,
+the value of <var class="var">varname</var> defines the file descriptor to close.
If {<var class="var">varname</var>} is supplied, the redirection persists beyond
-the scope of the command, which allows the shell programmer to manage
-the file descriptor’s lifetime manually without using
+the scope of the command, which allows the shell programmer to
+manage the file descriptor’s lifetime manually without using
the <code class="code">exec</code> builtin.
The <code class="code">varredir_close</code> shell option manages this behavior
(see <a class="pxref" href="#The-Shopt-Builtin">The Shopt Builtin</a>).
</p>
<p>In the following descriptions, if the file descriptor number is
omitted, and the first character of the redirection operator is
-‘<samp class="samp"><</samp>’, the redirection refers to the standard input (file
-descriptor 0).
-If the first character of the redirection operator
-is ‘<samp class="samp">></samp>’, the redirection refers to the standard output (file
-descriptor 1).
+‘<samp class="samp"><</samp>’,
+the redirection refers to the standard input (file descriptor 0).
+If the first character of the redirection operator is
+‘<samp class="samp">></samp>’,
+the redirection refers to the standard output (file descriptor 1).
</p>
<p>The <var class="var">word</var> following the redirection operator in the following
descriptions, unless otherwise noted, is subjected to
<p>Bash handles several filenames specially when they are used in
redirections, as described in the following table.
If the operating system on which Bash is running provides these
-special files, Bash will use them; otherwise it will emulate them
+special files, Bash uses them; otherwise it emulates them
internally with the behavior described below.
</p>
<dl class="table">
<pre class="example-preformatted">[<var class="var">n</var>]>[|]<var class="var">word</var>
</pre></div>
-<p>If the redirection operator is ‘<samp class="samp">></samp>’, and the <code class="code">noclobber</code>
-option to the <code class="code">set</code> builtin has been enabled, the redirection
-will fail if the file whose name results from the expansion of
-<var class="var">word</var> exists and is a regular file.
+<p>If the redirection operator is
+‘<samp class="samp">></samp>’,
+and the
+<code class="code">noclobber</code>
+option to the
+<code class="code">set</code>
+builtin has been enabled, the redirection fails if the file
+whose name results from the expansion of <var class="var">word</var> exists and is
+a regular file.
If the redirection operator is ‘<samp class="samp">>|</samp>’, or the redirection operator is
‘<samp class="samp">></samp>’ and the <code class="code">noclobber</code> option is not enabled,
Bash attemps the redirection
</p>
<p>If the <samp class="option">-e</samp> option is supplied with <samp class="option">-P</samp>
and <code class="code">cd</code> cannot successfully determine the current working directory
-after a successful directory change, it will return a non-zero status.
+after a successful directory change, it returns a non-zero status.
</p>
<p>On systems that support it, the <samp class="option">-@</samp> option presents the extended
attributes associated with a file as a directory.
In normal operation, <code class="code">getopts</code> prints diagnostic messages
when it encounters invalid options or missing option arguments.
If the variable <code class="env">OPTERR</code>
-is set to 0, no error messages will be displayed, even if the first
-character of <code class="code">optstring</code> is not a colon.
+is set to 0, <code class="code">getopts</code> does not display any error messages,
+even if the first character of <code class="code">optstring</code> is not a colon.
</p>
<p>If <code class="code">getopts</code> detects an invalid option, it
places ‘<samp class="samp">?</samp>’ into <var class="var">name</var> and, if not silent,
<dd><p>When referenced, this variable expands to the name of the shell or shell
script (identical to <code class="code">$0</code>; See <a class="xref" href="#Special-Parameters">Special Parameters</a>,
for the description of special parameter 0).
-Assigning a value to <code class="code">BASH_ARGV0</code>
-assigns the same value to <code class="code">$0</code>.
-If <code class="env">BASH_ARGV0</code>
+Assigning a value to
+<code class="code">BASH_ARGV0</code>
+sets <code class="code">$0</code> to the same value.
+If
+<code class="env">BASH_ARGV0</code>
is unset, it loses its special properties, even if it is
subsequently reset.
</p>
</p>
</dd>
<dt><a id="index-BASH_005fXTRACEFD"></a><span><code class="code">BASH_XTRACEFD</code><a class="copiable-link" href="#index-BASH_005fXTRACEFD"> ¶</a></span></dt>
-<dd><p>If set to an integer corresponding to a valid file descriptor, Bash
-will write the trace output generated when ‘<samp class="samp">set -x</samp>’
-is enabled to that file descriptor
+<dd><p>If set to an integer corresponding to a valid file descriptor,
+Bash writes the trace output generated when
+‘<samp class="samp">set -x</samp>’
+is enabled to that file descriptor,
instead of the standard error.
This allows tracing output to be separated from diagnostic and error
messages.
-The file descriptor is closed when <code class="code">BASH_XTRACEFD</code> is unset or assigned
-a new value.
-Unsetting <code class="code">BASH_XTRACEFD</code> or assigning it the empty string causes the
+The file descriptor is closed when
+<code class="code">BASH_XTRACEFD</code>
+is unset or assigned a new value.
+Unsetting
+<code class="code">BASH_XTRACEFD</code>
+or assigning it the empty string causes the
trace output to be sent to the standard error.
-Note that setting <code class="code">BASH_XTRACEFD</code> to 2 (the standard error file
+Note that setting
+<code class="code">BASH_XTRACEFD</code>
+to 2 (the standard error file
descriptor) and then unsetting it will result in the standard error
being closed.
</p>
Assigning to members of this array variable may be used to modify
directories already in the stack, but the <code class="code">pushd</code> and <code class="code">popd</code>
builtins must be used to add and remove directories.
-Assignment to this variable will not change the current directory.
+Assigning to this variable does not change the current directory.
If <code class="env">DIRSTACK</code>
is unset, it loses its special properties, even if
it is subsequently reset.
<p>This variable can be used with <code class="code">BASH_LINENO</code> and <code class="code">BASH_SOURCE</code>.
Each element of <code class="code">FUNCNAME</code> has corresponding elements in
<code class="code">BASH_LINENO</code> and <code class="code">BASH_SOURCE</code> to describe the call stack.
-For instance, <code class="code">${FUNCNAME[$i]}</code> was called from the file
-<code class="code">${BASH_SOURCE[$i+1]}</code> at line number <code class="code">${BASH_LINENO[$i]}</code>.
+For instance,
+<code class="code">${FUNCNAME[$i]}</code>
+was called from the file
+<code class="code">${BASH_SOURCE[$i+1]}</code>
+at line number
+<code class="code">${BASH_LINENO[$i]}</code>.
The <code class="code">caller</code> builtin displays the current call stack using this
information.
</p>
<dt><a id="index-FUNCNEST"></a><span><code class="code">FUNCNEST</code><a class="copiable-link" href="#index-FUNCNEST"> ¶</a></span></dt>
<dd><p>A numeric value greater than 0 defines a maximum function nesting level.
Function invocations that exceed this nesting level
-will cause the current command to abort.
+cause the current command to abort.
</p>
</dd>
<dt><a id="index-GLOBIGNORE"></a><span><code class="code">GLOBIGNORE</code><a class="copiable-link" href="#index-GLOBIGNORE"> ¶</a></span></dt>
</p>
<p>The ‘<samp class="samp">numeric</samp>’ specifier treats names consisting solely of digits as
numbers and sorts them using their numeric value
-(so "2" will sort before "10", for example).
+(so “2” sorts before “10”, for example).
When using ‘<samp class="samp">numeric</samp>’, names containing non-digits sort after all
the all-digit names and are sorted by name using the traditional behavior.
</p>
</p>
</dd>
<dt><a id="index-histchars"></a><span><code class="code">histchars</code><a class="copiable-link" href="#index-histchars"> ¶</a></span></dt>
-<dd><p>Up to three characters which control history expansion, quick
-substitution, and tokenization (see <a class="pxref" href="#History-Interaction">History Expansion</a>).
-The first character is the
-<em class="dfn">history expansion</em> character,
-the character which begins a history expansion, normally ‘<samp class="samp">!</samp>’.
-The second character is the
-character which signifies "quick substitution" when seen as the first
-character on a line, normally ‘<samp class="samp">^</samp>’.
-The optional third character is the
-character which indicates that the remainder of the line is a comment when
-found as the first character of a word, usually ‘<samp class="samp">#</samp>’.
-The history
-comment character disables history substitution for the
-remaining words on the line.
-It does not necessarily cause the shell
-parser to treat the rest of the line as a comment.
+<dd><p>The two or three characters which control history expansion,
+quick substitution, and tokenization
+(see <a class="pxref" href="#History-Interaction">History Expansion</a>).
+The first character is the <em class="dfn">history expansion</em> character,
+the character which begins a history expansion, normally
+‘<samp class="samp">!</samp>’.
+The second character is the “quick substitution” character, normally
+‘<samp class="samp">^</samp>’.
+When it appears as the first character on the line,
+history substitution repeats the previous command,
+replacing one string with another.
+The optional third character is the character which indicates that
+the remainder of the line is a comment when found as the first character
+of a word, usually ‘<samp class="samp">#</samp>’.
+The history comment character disables history substitution
+for the remaining words on the line.
+It does not necessarily cause the shell parser to treat the rest of the
+line as a comment.
</p>
</dd>
<dt><a id="index-HISTCMD"></a><span><code class="code">HISTCMD</code><a class="copiable-link" href="#index-HISTCMD"> ¶</a></span></dt>
<dd><p>The history number, or index in the history list, of the current
command.
-Assignments to <code class="env">HISTCMD</code> are ignored.
+Assignments to <code class="env">HISTCMD</code>
+have no effect.
If <code class="env">HISTCMD</code>
is unset, it loses its special properties,
even if it is subsequently reset.
current line to be removed from the history list before that line
is saved.
Any value not in the above list is ignored.
-If <code class="env">HISTCONTROL</code> is unset, or does not include a valid value,
-all lines read by the shell parser are saved on the history list,
+If <code class="env">HISTCONTROL</code> is unset, or does not include a valid value,
+Bash saves all lines read by the shell parser on the history list,
subject to the value of <code class="env">HISTIGNORE</code>.
-The second and subsequent lines of a multi-line compound command are
-not tested, and are added to the history regardless of the value of
-<code class="env">HISTCONTROL</code> if the first line of the command was saved.
+If the first line of a multi-line compound command was saved,
+the second and subsequent lines are not tested,
+and are added to the history regardless of the value of
+<code class="env">HISTCONTROL</code>.
If the first line was not saved, the second and subsequent lines of
-the command are not saved, either.
+the command are not saved either.
</p>
</dd>
<dt><a id="index-HISTFILE"></a><span><code class="code">HISTFILE</code><a class="copiable-link" href="#index-HISTFILE"> ¶</a></span></dt>
<dd><p>A colon-separated list of patterns used to decide which command
lines should be saved on the history list.
If a command line matches one of the patterns in the value of
-<code class="code">HISTIGNORE</code>, it is not saved on the history list.
-Each pattern is
-anchored at the beginning of the line and must match the complete
-line (Bash will not implicitly append a ‘<samp class="samp">*</samp>’).
-Each pattern is tested
-against the line after the checks specified by <code class="env">HISTCONTROL</code>
+<code class="code">HISTIGNORE</code>,
+it is not saved on the history list.
+Each pattern is anchored at the
+beginning of the line and must match the complete line
+(Bash does not implicitly append a
+‘<samp class="samp">*</samp>’).
+Each pattern is tested against the line
+after the checks specified by
+<code class="env">HISTCONTROL</code>
are applied.
-In addition to the normal shell pattern matching characters, ‘<samp class="samp">&</samp>’
+In addition to the normal shell pattern matching characters,
+‘<samp class="samp">&</samp>’
matches the previous history line.
-‘<samp class="samp">&</samp>’ may be escaped using a backslash; the backslash is removed
-before attempting a match.
-The second and subsequent lines of a multi-line compound command are
-not tested, and are added to the history regardless of the value of
-<code class="env">HISTIGNORE</code>, if the first line was saved.
+A backslash escapes the
+‘<samp class="samp">&</samp>’;
+the backslash is removed before attempting a match.
+If the first line of a multi-line compound command was saved,
+the second and subsequent lines are not tested,
+and are added to the history regardless of the value of
+<code class="env">HISTIGNORE</code>.
If the first line was not saved, the second and subsequent lines of
-the command are not saved, either.
+the command are not saved either.
The pattern matching honors the setting of the <code class="code">extglob</code> shell
option.
</p>
the next time hostname completion is attempted after the
value is changed, Bash adds the contents of the new file to the
existing list.
-If <code class="env">HOSTFILE</code> is set, but has no value, or does not name a readable file,
+If <code class="env">HOSTFILE</code>
+is set, but has no value, or does not name a readable file,
Bash attempts to read
-<samp class="file">/etc/hosts</samp> to obtain the list of possible hostname completions.
-When <code class="env">HOSTFILE</code> is unset, the hostname list is cleared.
+<samp class="file">/etc/hosts</samp>
+to obtain the list of possible hostname completions.
+When <code class="env">HOSTFILE</code> is unset,
+Bash clears the hostname list.
</p>
</dd>
<dt><a id="index-HOSTNAME"></a><span><code class="code">HOSTNAME</code><a class="copiable-link" href="#index-HOSTNAME"> ¶</a></span></dt>
</dd>
<dt><a id="index-RANDOM"></a><span><code class="code">RANDOM</code><a class="copiable-link" href="#index-RANDOM"> ¶</a></span></dt>
<dd><p>Each time this parameter is referenced, it expands to a random integer
-between 0 and 32767. Assigning a value to this
-variable initializes (seeds) the random number generator.
-Seeding the random number generator with the same constant value will
-produce the same sequence of values.
+between 0 and 32767.
+Assigning a value to
+<code class="env">RANDOM</code>
+initializes (seeds) the sequence of random numbers.
+Seeding the random number generator with the same constant value
+produces the same sequence of values.
If <code class="env">RANDOM</code>
is unset, it loses its special properties, even if it is
subsequently reset.
<p>The optional <var class="var">p</var> is a digit specifying the precision, the number of
fractional digits after a decimal point.
A value of 0 causes no decimal point or fraction to be output.
-<code class="code">time</code> will print at most six digits after the decimal point;
+<code class="code">time</code> prints at most six digits after the decimal point;
values of <var class="var">p</var> greater than 6 are changed to 6.
If <var class="var">p</var> is not specified,
<code class="code">time</code> prints three digits after the decimal point.
After reading that file, it looks for <samp class="file">~/.bash_profile</samp>,
<samp class="file">~/.bash_login</samp>, and <samp class="file">~/.profile</samp>, in that order, and reads
and executes commands from the first one that exists and is readable.
-The <samp class="option">--noprofile</samp> option may be used when the shell is started to
-inhibit this behavior.
+The
+<samp class="option">--noprofile</samp>
+option inhibits this behavior.
</p>
<p>When an interactive login shell exits,
or a non-interactive login shell executes the <code class="code">exit</code> builtin command,
<p>When Bash runs as an interactive shell that is not a login shell, it
reads and executes commands from <samp class="file">~/.bashrc</samp>, if that file exists.
-This may be inhibited by using the <samp class="option">--norc</samp> option.
+The <samp class="option">--norc</samp> option inhibits this behavior.
The <samp class="option">--rcfile <var class="var">file</var></samp> option
causes Bash to
use <var class="var">file</var> instead of <samp class="file">~/.bashrc</samp>.
shell with the <samp class="option">--login</samp> option, it first attempts to read
and execute commands from <samp class="file">/etc/profile</samp> and <samp class="file">~/.profile</samp>, in
that order.
-The <samp class="option">--noprofile</samp> option will inhibit this behavior.
+The <samp class="option">--noprofile</samp> option inhibits this behavior.
</p>
<p>When invoked as an interactive shell with the name <code class="code">sh</code>, Bash
looks for the variable <code class="env">ENV</code>, expands its value if it is defined,
determines it is being run non-interactively in this fashion,
it reads and executes commands from <samp class="file">~/.bashrc</samp>, if that
file exists and is readable.
-It will not do this if invoked as <code class="code">sh</code>.
-The <samp class="option">--norc</samp> option will inhibit this behavior, and the
-<samp class="option">--rcfile</samp> option
-will make Bash use a different file instead of
-<samp class="file">~/.bashrc</samp>, but neither
+Bash does not read this file if invoked as <code class="code">sh</code>.
+The
+<samp class="option">--norc</samp>
+option inhibits this behavior, and the
+<samp class="option">--rcfile</samp>
+option makes Bash use a different file instead of
+<samp class="file">~/.bashrc</samp>,
+but neither
<code class="code">rshd</code> nor <code class="code">sshd</code> generally invoke the shell with those
options or allow them to be specified.
</p>
<p>Bash handles several filenames specially when they are used in
expressions.
If the operating system on which Bash is running provides these
-special files, Bash will use them; otherwise it will emulate them
+special files, Bash uses them; otherwise it emulates them
internally with this behavior:
If the <var class="var">file</var> argument to one of the primaries is of the form
<samp class="file">/dev/fd/<var class="var">N</var></samp>, then Bash checks file descriptor <var class="var">N</var>.
alias definitions on a separate line, and do not use <code class="code">alias</code>
in compound commands.
</p>
-<p>For almost every purpose, shell functions are preferred over aliases.
+<p>For almost every purpose, shell functions are preferable to aliases.
</p>
<hr>
</div>
<h3 class="section" id="Arrays-1"><span>6.7 Arrays<a class="copiable-link" href="#Arrays-1"> ¶</a></span></h3>
<a class="index-entry-id" id="index-arrays"></a>
-<p>Bash provides one-dimensional indexed and associative array variables.
-Any variable may be used as an indexed array;
-the <code class="code">declare</code> builtin will explicitly declare an array.
+<p>Bash
+provides one-dimensional indexed and associative array variables.
+Any variable may be used as an indexed array; the
+<code class="code">declare</code>
+builtin explicitly declares an array.
There is no maximum
limit on the size of an array, nor any requirement that members
be indexed or assigned contiguously.
-Indexed arrays are referenced using integers (including arithmetic
-expressions (see <a class="pxref" href="#Shell-Arithmetic">Shell Arithmetic</a>)) and are zero-based;
+Indexed arrays are referenced using arithmetic expressions
+that must expand to an integer (see <a class="pxref" href="#Shell-Arithmetic">Shell Arithmetic</a>)) and are zero-based;
associative arrays use arbitrary strings.
Unless otherwise noted, indexed array indices must be non-negative integers.
</p>
</p><div class="example">
<pre class="example-preformatted">declare -a <var class="var">name</var>
</pre></div>
-<p>The syntax
+<p>(see <a class="pxref" href="#Bash-Builtins">Bash Builtin Commands</a>).
+The syntax
</p><div class="example">
<pre class="example-preformatted">declare -a <var class="var">name</var>[<var class="var">subscript</var>]
</pre></div>
<var class="var">name</var>, so negative indices count back from the end of the
array, and an index of -1 references the last element.
</p>
-<p>The ‘<samp class="samp">+=</samp>’ operator will append to an array variable when assigning
+<p>The ‘<samp class="samp">+=</samp>’ operator appends to an array variable when assigning
using the compound assignment syntax; see <a class="ref" href="#Shell-Parameters">Shell Parameters</a> above.
</p>
<p>An array element is referenced using
</p>
<p>Referencing an array variable without a subscript is equivalent to
referencing with a subscript of 0.
-Any reference to a variable using a valid subscript is valid, and
-Bash will create an array if necessary.
+Any reference to a variable using a valid subscript is valid;
+Bash creates an array if necessary.
</p>
<p>An array variable is considered set if a subscript has been assigned a
value.
<dd><p>A backslash.
</p></dd>
<dt><code class="code">\[</code></dt>
-<dd><p>Begin a sequence of non-printing characters. This could be used to
+<dd><p>Begin a sequence of non-printing characters.
+Thiss could be used to
embed a terminal control sequence into the prompt.
</p></dd>
<dt><code class="code">\]</code></dt>
The characters present in the value of the <code class="code">isearch-terminators</code> variable
are used to terminate an incremental search.
If that variable has not been assigned a value, the <kbd class="key">ESC</kbd> and
-<kbd class="kbd">C-J</kbd> characters will terminate an incremental search.
-<kbd class="kbd">C-g</kbd> will abort an incremental search and restore the original line.
+<kbd class="kbd">C-j</kbd> characters terminate an incremental search.
+<kbd class="kbd">C-g</kbd> aborts an incremental search and restores the original line.
When the search is terminated, the history entry containing the
search string becomes the current line.
</p>
<p>To find other matching entries in the history list, type <kbd class="kbd">C-r</kbd> or
<kbd class="kbd">C-s</kbd> as appropriate.
-This will search backward or forward in the history for the next
+This searches backward or forward in the history for the next
entry matching the search string typed so far.
-Any other key sequence bound to a Readline command will terminate
-the search and execute that command.
-For instance, a <kbd class="key">RET</kbd> will terminate the search and accept
+Any other key sequence bound to a Readline command terminates
+the search and executes that command.
+For instance, a <kbd class="key">RET</kbd> terminates the search and accepts
the line, thereby executing the command from the history list.
A movement command will terminate the search, make the last line found
the current line, and begin editing.
keybindings and variables.
See <a class="xref" href="#Bash-Builtins">Bash Builtin Commands</a>.
</p>
-<p>When a program which uses the Readline library starts up, Readline reads
+<p>When a program that uses the Readline library starts up, Readline reads
the init file and sets any variables and key bindings it contains.
</p>
<p>In addition, the <code class="code">C-x C-r</code> command re-reads this init file, thus
when performing completion.
The value is ignored if it is less than 0 or greater than the terminal
screen width.
-A value of 0 will cause matches to be displayed one per line.
+A value of 0 causes matches to be displayed one per line.
The default value is -1.
</p>
</dd>
<dd><p>The number of possible completions that determines when the user is asked
whether the list of possibilities should be displayed.
If the number of possible completions is greater than
-or equal to this value, Readline will ask whether or not
-the user wishes to view them;
+or equal to this value,
+Readline asks whether or not the user wishes to view them;
otherwise, Readline simply lists the completions.
This variable must be set to an integer value greater than or equal to zero.
A zero value means Readline should never ask; negative
</p>
</dd>
<dt><a id="index-convert_002dmeta"></a><span><code class="code">convert-meta</code><a class="copiable-link" href="#index-convert_002dmeta"> ¶</a></span></dt>
-<dd><p>If set to ‘<samp class="samp">on</samp>’, Readline will convert characters it reads
+<dd><p>If set to ‘<samp class="samp">on</samp>’, Readline converts characters it reads
that have the eighth bit set to an <small class="sc">ASCII</small> key sequence by
clearing the eighth bit and prefixing an <kbd class="key">ESC</kbd> character,
converting them to a meta-prefixed key sequence.
-The default value is ‘<samp class="samp">on</samp>’, but Readline will set it to ‘<samp class="samp">off</samp>’
+The default value is ‘<samp class="samp">on</samp>’, but Readline sets it to ‘<samp class="samp">off</samp>’
if the locale contains
characters whose encodings may include bytes with the eighth bit set.
This variable is dependent on the <code class="code">LC_CTYPE</code> locale category, and
</p>
</dd>
<dt><a id="index-disable_002dcompletion"></a><span><code class="code">disable-completion</code><a class="copiable-link" href="#index-disable_002dcompletion"> ¶</a></span></dt>
-<dd><p>If set to ‘<samp class="samp">On</samp>’, Readline will inhibit word completion.
-Completion characters will be inserted into the line as if they
+<dd><p>If set to ‘<samp class="samp">On</samp>’, Readline inhibits word completion.
+Completion characters are inserted into the line as if they
had been mapped to <code class="code">self-insert</code>.
The default is ‘<samp class="samp">off</samp>’.
</p>
</p>
</dd>
<dt><a id="index-enable_002dkeypad"></a><span><code class="code">enable-keypad</code><a class="copiable-link" href="#index-enable_002dkeypad"> ¶</a></span></dt>
-<dd><p>When set to ‘<samp class="samp">on</samp>’, Readline will try to enable the application
+<dd><p>When set to ‘<samp class="samp">on</samp>’, Readline tries to enable the application
keypad when it is called.
Some systems need this to enable the arrow keys.
The default is ‘<samp class="samp">off</samp>’.
</p>
</dd>
<dt><a id="index-enable_002dmeta_002dkey"></a><span><code class="code">enable-meta-key</code><a class="copiable-link" href="#index-enable_002dmeta_002dkey"> ¶</a></span></dt>
-<dd><p>When set to ‘<samp class="samp">on</samp>’, Readline will try to enable any meta
+<dd><p>When set to ‘<samp class="samp">on</samp>’, Readline tries to enable any meta
modifier key the terminal claims to support when it is called.
On many terminals, the Meta key is used to send eight-bit characters;
this variable checks for the terminal capability that indicates the
</dd>
<dt><a class="index-entry-id" id="index-meta_002dflag"></a>
<a id="index-input_002dmeta"></a><span><code class="code">input-meta</code><a class="copiable-link" href="#index-input_002dmeta"> ¶</a></span></dt>
-<dd><p>If set to ‘<samp class="samp">on</samp>’, Readline will enable eight-bit input (that is, it
-will not clear the eighth bit in the characters it reads),
+<dd><p>If set to ‘<samp class="samp">on</samp>’, Readline enables eight-bit input (that is, it
+does not clear the eighth bit in the characters it reads),
regardless of what the terminal claims it can support.
-The default value is ‘<samp class="samp">off</samp>’, but Readline will set it to ‘<samp class="samp">on</samp>’
+The default value is ‘<samp class="samp">off</samp>’, but Readline sets it to ‘<samp class="samp">on</samp>’
if the locale contains characters whose encodings may include bytes
with the eighth bit set.
This variable is dependent on the <code class="code">LC_CTYPE</code> locale category, and
<dd><p>The string of characters that should terminate an incremental search without
subsequently executing the character as a command (see <a class="pxref" href="#Searching">Searching for Commands in the History</a>).
If this variable has not been given a value, the characters <kbd class="key">ESC</kbd> and
-<kbd class="kbd">C-J</kbd> will terminate an incremental search.
+<kbd class="kbd">C-j</kbd> terminate an incremental search.
</p>
</dd>
<dt><a id="index-keymap"></a><span><code class="code">keymap</code><a class="copiable-link" href="#index-keymap"> ¶</a></span></dt>
reading an ambiguous key sequence
(one that can form a complete key sequence using the input read so far,
or can take additional input to complete a longer key sequence).
-If Readline doesn’t receive any input within the timeout, it will use the
+If Readline doesn’t receive any input within the timeout, it uses the
shorter but complete key sequence.
Readline uses this value to determine whether or not input is
available on the current input source (<code class="code">rl_instream</code> by default).
The value is specified in milliseconds, so a value of 1000 means that
Readline will wait one second for additional input.
If this variable is set to a value less than or equal to zero, or to a
-non-numeric value, Readline will wait until another key is pressed to
+non-numeric value, Readline waits until another key is pressed to
decide which key sequence to complete.
The default value is <code class="code">500</code>.
</p>
</p>
</dd>
<dt><a id="index-mark_002dmodified_002dlines"></a><span><code class="code">mark-modified-lines</code><a class="copiable-link" href="#index-mark_002dmodified_002dlines"> ¶</a></span></dt>
-<dd><p>When this variable is set to ‘<samp class="samp">on</samp>’, Readline will to display an
+<dd><p>When this variable is set to ‘<samp class="samp">on</samp>’, Readline displays an
asterisk (‘<samp class="samp">*</samp>’) at the start of history lines which have been modified.
This variable is ‘<samp class="samp">off</samp>’ by default.
</p>
</p>
</dd>
<dt><a id="index-output_002dmeta"></a><span><code class="code">output-meta</code><a class="copiable-link" href="#index-output_002dmeta"> ¶</a></span></dt>
-<dd><p>If set to ‘<samp class="samp">on</samp>’, Readline will display characters with the
+<dd><p>If set to ‘<samp class="samp">on</samp>’, Readline displays characters with the
eighth bit set directly rather than as a meta-prefixed escape
sequence.
-The default is ‘<samp class="samp">off</samp>’, but Readline will set it to ‘<samp class="samp">on</samp>’
+The default is ‘<samp class="samp">off</samp>’, but Readline sets it to ‘<samp class="samp">on</samp>’
if the locale contains characters whose encodings may include
bytes with the eighth bit set.
This variable is dependent on the <code class="code">LC_CTYPE</code> locale category, and
</p>
</dd>
<dt><a id="index-page_002dcompletions"></a><span><code class="code">page-completions</code><a class="copiable-link" href="#index-page_002dcompletions"> ¶</a></span></dt>
-<dd><p>If set to ‘<samp class="samp">on</samp>’, Readline uses an internal <code class="code">more</code>-like pager
+<dd><p>If set to ‘<samp class="samp">on</samp>’, Readline uses an internal pager resembling
+<i class="i">more</i>(1)
to display a screenful of possible completions at a time.
This variable is ‘<samp class="samp">on</samp>’ by default.
</p>
</p>
</dd>
<dt><code class="code">print-completions-horizontally</code></dt>
-<dd><p>If set to ‘<samp class="samp">on</samp>’, Readline will display completions with matches
+<dd><p>If set to ‘<samp class="samp">on</samp>’, Readline displays completions with matches
sorted horizontally in alphabetical order, rather than down the screen.
The default is ‘<samp class="samp">off</samp>’.
</p>
<var class="var">NEWLINE</var>,
<var class="var">RET</var>,
<var class="var">RETURN</var>,
-<var class="var">RUBOUT</var> (a destructive backspace),
+<var class="var">RUBOUT</var>
+(a destructive backspace),
<var class="var">SPACE</var>,
<var class="var">SPC</var>,
and
</dd>
<dt><a id="index-forward_002dchar-_0028C_002df_0029"></a><span><code class="code">forward-char (C-f)</code><a class="copiable-link" href="#index-forward_002dchar-_0028C_002df_0029"> ¶</a></span></dt>
<dd><p>Move forward a character.
+This may also be bound to the right arrow key on some keyboards.
</p>
</dd>
<dt><a id="index-backward_002dchar-_0028C_002db_0029"></a><span><code class="code">backward-char (C-b)</code><a class="copiable-link" href="#index-backward_002dchar-_0028C_002db_0029"> ¶</a></span></dt>
<dd><p>Move back a character.
+This may also be bound to the left arrow key on some keyboards.
</p>
</dd>
<dt><a id="index-forward_002dword-_0028M_002df_0029"></a><span><code class="code">forward-word (M-f)</code><a class="copiable-link" href="#index-forward_002dword-_0028M_002df_0029"> ¶</a></span></dt>
</dd>
<dt><a id="index-previous_002dhistory-_0028C_002dp_0029"></a><span><code class="code">previous-history (C-p)</code><a class="copiable-link" href="#index-previous_002dhistory-_0028C_002dp_0029"> ¶</a></span></dt>
<dd><p>Move ‘back’ through the history list, fetching the previous command.
+This may also be bound to the up arrow key on some keyboards.
</p>
</dd>
<dt><a id="index-next_002dhistory-_0028C_002dn_0029"></a><span><code class="code">next-history (C-n)</code><a class="copiable-link" href="#index-next_002dhistory-_0028C_002dn_0029"> ¶</a></span></dt>
<dd><p>Move ‘forward’ through the history list, fetching the next command.
+This may also be bound to the down arrow key on some keyboards.
</p>
</dd>
<dt><a id="index-beginning_002dof_002dhistory-_0028M_002d_003c_0029"></a><span><code class="code">beginning-of-history (M-<)</code><a class="copiable-link" href="#index-beginning_002dof_002dhistory-_0028M_002d_003c_0029"> ¶</a></span></dt>
This command is unbound by default.
</p>
</dd>
+<dt><a id="index-export_002dcompletions-_0028_0029"></a><span><code class="code">export-completions ()</code><a class="copiable-link" href="#index-export_002dcompletions-_0028_0029"> ¶</a></span></dt>
+<dd><p>Perform completion on the word before point as described above
+and write the list of possible completions to Readline’s output stream
+using the following format, writing information on separate lines:
+</p>
+<ul class="itemize mark-bullet">
+<li>the number of matches <var class="var">N</var>;
+</li><li>the word being completed;
+</li><li><var class="var">S</var>:<var class="var">E</var>,
+where S and E are the start and end offsets of the word
+in the Readline line buffer; then
+</li><li>each match, one per line
+</li></ul>
+
+<p>If there are no matches, the first line will be “0”,
+and this command does not print any output after the <var class="var">S</var>:<var class="var">E</var>.
+If there is only a single match, this prints a single line containing it.
+If there is more than one match, this prints the common prefix of the
+matches, which may be empty, on the first line after the <var class="var">S</var>:<var class="var">E</var>,
+then the matches on subsequent lines.
+In this case, <var class="var">N</var> will include the first line with the common prefix.
+</p>
+<p>The user or application
+should be able to accommodate the possibility of a blank line.
+The intent is that the user or application reads <var class="var">N</var> lines after
+the line containing <var class="var">S</var>:<var class="var">E</var> to obtain the match list.
+This command is unbound by default.
+</p>
+</dd>
<dt><a id="index-delete_002dchar_002dor_002dlist-_0028_0029"></a><span><code class="code">delete-char-or-list ()</code><a class="copiable-link" href="#index-delete_002dchar_002dor_002dlist-_0028_0029"> ¶</a></span></dt>
<dd><p>Deletes the character under the cursor if not at the beginning or
end of the line (like <code class="code">delete-char</code>).
<dt><a id="index-skip_002dcsi_002dsequence-_0028_0029"></a><span><code class="code">skip-csi-sequence ()</code><a class="copiable-link" href="#index-skip_002dcsi_002dsequence-_0028_0029"> ¶</a></span></dt>
<dd><p>Read enough characters to consume a multi-key sequence such as those
defined for keys like Home and End.
-CSI sequences begin with a Control Sequence Indicator (CSI), usually ESC-[.
+CSI sequences begin with a Control Sequence Indicator (CSI), usually
+<kbd class="kbd">ESC [</kbd>.
If this sequence is bound to "\e[",
-keys producing CSI sequences will have no effect
-unless explicitly bound to a Readline command, instead of inserting
-stray characters into the editing buffer.
-This is unbound by default, but usually bound to ESC-[.
+keys producing CSI sequences have no effect
+unless explicitly bound to a Readline command,
+instead of inserting stray characters into the editing buffer.
+This is unbound by default, but usually bound to
+<kbd class="kbd">ESC [</kbd>.
</p>
</dd>
<dt><a id="index-insert_002dcomment-_0028M_002d_0023_0029"></a><span><code class="code">insert-comment (M-#)</code><a class="copiable-link" href="#index-insert_002dcomment-_0028M_002d_0023_0029"> ¶</a></span></dt>
<h3 class="section" id="Programmable-Completion-1"><span>8.6 Programmable Completion<a class="copiable-link" href="#Programmable-Completion-1"> ¶</a></span></h3>
<a class="index-entry-id" id="index-programmable-completion"></a>
-<p>When the user attempts word completion for an argument to a command for
-which a completion specification (a <em class="dfn">compspec</em>) has been defined
-using the <code class="code">complete</code> builtin (see <a class="pxref" href="#Programmable-Completion-Builtins">Programmable Completion Builtins</a>),
+<p>When the user attempts word completion
+for a command or an argument to a command for which a
+completion specification (a <em class="dfn">compspec</em>) has been defined
+using the <code class="code">complete</code> builtin
+(see <a class="pxref" href="#Programmable-Completion-Builtins">Programmable Completion Builtins</a>),
Readline invokes the programmable completion facilities.
</p>
<p>First, Bash identifies the command name.
If the command word is the empty string (completion attempted at the
beginning of an empty line), Bash uses any compspec defined with
the <samp class="option">-E</samp> option to <code class="code">complete</code>.
-If the command word is a full pathname, Bash
+The <samp class="option">-I</samp> option to <code class="code">complete</code>
+indicates that the command word is the first non-assignment word
+on the line, or after a command delimiter such as
+‘<samp class="samp">;</samp>’ or ‘<samp class="samp">|</samp>’.
+This usually indicates command name completion.
+</p>
+<p>If the command word is a full pathname, Bash
searches for a compspec for the full pathname first.
If there is no compspec for the full pathname, Bash attempts to
find a compspec for the portion following the final slash.
-If those searches do not result in a compspec, any compspec defined with
-the <samp class="option">-D</samp> option to <code class="code">complete</code> is used as the default.
-If there is no default compspec, Bash attempts alias expansion
-on the command word as a final resort, and attempts to find a compspec
-for the command word from any successful expansion.
+If those searches do not result in a compspec,
+or if there is no compspec for the command word,
+Bash uses any compspec defined with
+the <samp class="option">-D</samp> option to <code class="code">complete</code> as the default.
+If there is no default compspec, Bash performs alias expansion
+on the command word as a final resort,
+and attempts to find a compspec for the command word
+resulting from any successful expansion.
</p>
<p>If a compspec is not found, Bash performs its default completion
described above (see <a class="pxref" href="#Commands-For-Completion">Letting Readline Type For You</a>).
the list of matching words.
</p>
<p>First, Bash performs the <var class="var">actions</var> specified by the compspec.
-Only matches which are prefixed by the word being completed are
-returned.
+This only returns matches which are prefixes
+of the word being completed.
When the <samp class="option">-f</samp> or <samp class="option">-d</samp> option is used for filename or
directory name completion, Bash uses shell the variable <code class="env">FIGNORE</code>
to filter the matches.
See <a class="xref" href="#Bash-Variables">Bash Variables</a>, for a description of <code class="env">FIGNORE</code>.
</p>
-<p>Any completions specified by a filename expansion pattern to the
-<samp class="option">-G</samp> option are generated next.
+<p>Next, programmable completion generates matches
+specified by a pathname expansion pattern
+supplied as an argument to the
+<samp class="option">-G</samp> option.
The words generated by the pattern need not match the word being completed.
Bash uses the <code class="env">FIGNORE</code>
variable to filter the matches, but does not use the
the string specified as the argument to the <samp class="option">-W</samp> option.
The string is first split using the characters in the <code class="env">IFS</code>
special variable as delimiters.
-Shell quoting is honored within the string, in order to provide a
+This honors shell quoting within the string, in order to provide a
mechanism for the words to contain shell metacharacters or characters
in the value of <code class="env">IFS</code>.
Each word is then expanded using
</p>
<p>After these matches have been generated,
Bash executes any shell function or command
-any shell function or command
specified with the <samp class="option">-F</samp> and <samp class="option">-C</samp> options.
-When the command or function is invoked, the <code class="env">COMP_LINE</code>,
-<code class="env">COMP_POINT</code>, <code class="env">COMP_KEY</code>, and <code class="env">COMP_TYPE</code> variables are
-assigned values as described above (see <a class="pxref" href="#Bash-Variables">Bash Variables</a>).
-If a shell function is being invoked, the <code class="env">COMP_WORDS</code> and
-<code class="env">COMP_CWORD</code> variables are also set.
+When the command or function is invoked, Bash
+assigns values to the
+<code class="env">COMP_LINE</code>,
+<code class="env">COMP_POINT</code>,
+<code class="env">COMP_KEY</code>,
+and
+<code class="env">COMP_TYPE</code>
+variables as described above
+(see <a class="pxref" href="#Bash-Variables">Bash Variables</a>).
+If a shell function is being invoked, Bash
+also sets the
+<code class="env">COMP_WORDS</code>
+and
+<code class="env">COMP_CWORD</code>
+variables.
When the function or command is invoked,
the first argument ($1) is the name of the command whose arguments
are being completed,
completed on the current command line.
There is no filtering of the generated completions against the
word being completed;
-the function or command has complete freedom in generating the matches.
+the function or command has complete freedom in generating the matches
+and they do not need to match a prefix of the word.
</p>
<p>Any function specified with <samp class="option">-F</samp> is invoked first.
The function may use any of the shell facilities, including the
in an environment equivalent to command substitution.
It should print a list of completions, one per line, to
the standard output.
-Backslash may be used to escape a newline, if necessary.
+Backslash will escape a newline, if necessary.
These are added to the set of possible completions.
</p>
-<p>After all of the possible completions are generated, any filter
-specified with the <samp class="option">-X</samp> option is applied to the list.
+<p>After generating all of the possible completions,
+Bash applies any filter
+specified with the <samp class="option">-X</samp> option to the completions in the list.
The filter is a pattern as used for pathname expansion; a ‘<samp class="samp">&</samp>’
in the pattern is replaced with the text of the word being completed.
A literal ‘<samp class="samp">&</samp>’ may be escaped with a backslash; the backslash
is removed before attempting a match.
-Any completion that matches the pattern will be removed from the list.
-A leading ‘<samp class="samp">!</samp>’ negates the pattern; in this case any completion
-not matching the pattern will be removed.
-If the <code class="code">nocasematch</code> shell option
-(see the description of <code class="code">shopt</code> in <a class="ref" href="#The-Shopt-Builtin">The Shopt Builtin</a>)
-is enabled, the match is performed without regard to the case
+Any completion that matches the pattern is removed from the list.
+A leading ‘<samp class="samp">!</samp>’ negates the pattern;
+in this case Bash removes
+any completion that does not match the pattern.
+If the <code class="code">nocasematch</code> shell option is enabled
+(see the description of <code class="code">shopt</code> in <a class="ref" href="#The-Shopt-Builtin">The Shopt Builtin</a>),
+Bash performs the match without regard to the case
of alphabetic characters.
</p>
-<p>Finally, any prefix and suffix specified with the <samp class="option">-P</samp> and <samp class="option">-S</samp>
-options are added to each member of the completion list, and the result is
-returned to Readline as the list of possible completions.
+<p>Finally, programmable completion adds
+any prefix and suffix specified with the
+<samp class="option">-P</samp> and <samp class="option">-S</samp>
+options, respectively, to each completion,
+and returns the result
+to Readline as the list of possible completions.
</p>
<p>If the previously-applied actions do not generate any matches, and the
<samp class="option">-o dirnames</samp> option was supplied to <code class="code">complete</code> when the
The default Bash completions and the Readline default
of filename completion are disabled.
If the <samp class="option">-o bashdefault</samp> option was supplied to <code class="code">complete</code> when
-the compspec was defined, if the compspec generates no matches,
+the compspec was defined, and the compspec generates no matches,
Bash attempts its default completions.
-If the <samp class="option">-o default</samp> option was supplied to <code class="code">complete</code> when the
-compspec was defined, programmable completion will perform
-Readline’s default completion
-if the compspec (and, if attempted, the default Bash completions)
-generate no matches.
-</p>
-<p>When a compspec indicates that directory name completion is desired,
-the programmable completion functions force Readline to append a slash
-to completed names which are symbolic links to directories, subject to
-the value of the <var class="var">mark-directories</var> Readline variable, regardless
-of the setting of the <var class="var">mark-symlinked-directories</var> Readline variable.
+If the compspec and, if attempted, the default Bash completions
+generate no matches,
+and the <samp class="option">-o default</samp> option was supplied to
+<code class="code">complete</code> when the compspec was defined,
+programmable completion performs Readline’s default completion.
+</p>
+<p>The options supplied to <code class="code">complete</code> and <code class="code">compopt</code>
+can control how Readline treats the completions.
+For instance, the <samp class="option">-o fullquote</samp> option tells Readline
+to quote the matches as if they were filenames.
+See the description of <code class="code">complete</code>
+(see <a class="pxref" href="#Programmable-Completion-Builtins">Programmable Completion Builtins</a>)
+for details.
+</p>
+<p>When a compspec indicates that it wants directory name completion,
+the programmable completion functions force Readline
+to append a slash to completed names which are symbolic links
+to directories, subject to the value of the
+<var class="var">mark-directories</var> Readline variable,
+regardless of the setting of the
+<var class="var">mark-symlinked-directories</var> Readline variable.
</p>
<p>There is some support for dynamically modifying completions.
This is most useful when used in combination with a default completion
attempted (supplied as the first argument when the function is executed),
programmable completion restarts from the beginning, with an
attempt to find a new compspec for that command.
-This allows a set of completions to be built dynamically as completion
-is attempted, rather than being loaded all at once.
+This can be used to build a set of completions dynamically
+as completion is attempted, rather than loading them all at once.
</p>
<p>For instance, assuming that there is a library of compspecs, each kept in a
file corresponding to the name of the command, the following default
</p>
</dd>
<dt><code class="code">file</code></dt>
-<dd><p>File names.
+<dd><p>File and directory names, similar to Readline’s filename completion.
May also be specified as <samp class="option">-f</samp>.
</p>
</dd>
</p>
<p>Several shell options settable with the <code class="code">shopt</code>
builtin (see <a class="pxref" href="#The-Shopt-Builtin">The Shopt Builtin</a>)
-will modify history expansion behavior
+modify history expansion behavior
If the <code class="code">histverify</code> shell option is enabled, and Readline
is being used, history substitutions are not immediately passed to
the shell parser.
</dd>
<dt><code class="code">$</code></dt>
<dd><p>The last word.
-This is usually the last argument, but will expand to the
+This is usually the last argument, but expands to the
zeroth word if there is only one word in the line.
</p>
</dd>
The delimiter may be quoted in <var class="var">old</var> and <var class="var">new</var>
with a single backslash.
If ‘<samp class="samp">&</samp>’ appears in <var class="var">new</var>, it is replaced with <var class="var">old</var>.
-A single backslash will quote the ‘<samp class="samp">&</samp>’ in <var class="var">old</var> and <var class="var">new</var>.
+A single backslash quotes the ‘<samp class="samp">&</samp>’ in <var class="var">old</var> and <var class="var">new</var>.
If <var class="var">old</var> is null, it is set to the last <var class="var">old</var>
substituted, or, if no previous history substitutions took place,
the last <var class="var">string</var>
<h3 class="appendixsec"><span>B.1 Implementation Differences From The SVR4.2 Shell<a class="copiable-link" href="#Implementation-Differences-From-The-SVR4_002e2-Shell"> ¶</a></span></h3>
<p>Since Bash is a completely new implementation, it does not suffer from
-many of the limitations of the SVR4.2 shell. For instance:
+many of the limitations of the SVR4.2 shell.
+For instance:
</p>
<ul class="itemize mark-bullet">
<li>Bash does not fork a subshell when redirecting into or out of
a shell control structure such as an <code class="code">if</code> or <code class="code">while</code>
statement.
-</li><li>Bash does not allow unbalanced quotes. The SVR4.2 shell will silently
+</li><li>Bash does not allow unbalanced quotes.
+The SVR4.2 shell will silently
insert a needed closing quote at <code class="code">EOF</code> under certain circumstances.
This can be the cause of some hard-to-find errors.
</li><li>The SVR4.2 shell uses a baroque memory management scheme based on
-trapping <code class="code">SIGSEGV</code>. If the shell is started from a process with
+trapping <code class="code">SIGSEGV</code>.
+If the shell is started from a process with
<code class="code">SIGSEGV</code> blocked (e.g., by using the <code class="code">system()</code> C library
function call), it misbehaves badly.
‘<samp class="samp">|</samp>’.
</li><li>Bash allows multiple option arguments when it is invoked (<code class="code">-x -v</code>);
-the SVR4.2 shell allows only one option argument (<code class="code">-xv</code>). In
-fact, some versions of the shell dump core if the second argument begins
+the SVR4.2 shell allows only one option argument (<code class="code">-xv</code>).
+In fact, some versions of the shell dump core if the second argument begins
with a ‘<samp class="samp">-</samp>’.
</li><li>The SVR4.2 shell exits a script if any builtin fails; Bash exits
<tr><td></td><td class="printindex-index-entry"><a href="#index-end_002dof_002dline-_0028C_002de_0029"><code>end-of-line (C-e)</code></a></td><td class="printindex-index-section"><a href="#Commands-For-Moving">Commands For Moving</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-exchange_002dpoint_002dand_002dmark-_0028C_002dx-C_002dx_0029"><code>exchange-point-and-mark (C-x C-x)</code></a></td><td class="printindex-index-section"><a href="#Miscellaneous-Commands">Miscellaneous Commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-execute_002dnamed_002dcommand-_0028M_002dx_0029"><code>execute-named-command (M-x)</code></a></td><td class="printindex-index-section"><a href="#Miscellaneous-Commands">Miscellaneous Commands</a></td></tr>
+<tr><td></td><td class="printindex-index-entry"><a href="#index-export_002dcompletions-_0028_0029"><code>export-completions ()</code></a></td><td class="printindex-index-section"><a href="#Commands-For-Completion">Commands For Completion</a></td></tr>
<tr><td colspan="3"><hr></td></tr>
<tr><th id="Function-Index_fn_letter-F">F</th></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-fetch_002dhistory-_0028_0029"><code>fetch-history ()</code></a></td><td class="printindex-index-section"><a href="#Commands-For-History">Commands For History</a></td></tr>
bashref.texi.
This text is a brief description of the features that are present in the
-Bash shell (version 5.3, 23 October 2024).
+Bash shell (version 5.3, 29 November 2024).
- This is Edition 5.3, last updated 23 October 2024, of ‘The GNU Bash
+ This is Edition 5.3, last updated 29 November 2024, of ‘The GNU Bash
Reference Manual’, for ‘Bash’, Version 5.3.
Copyright © 1988-2024 Free Software Foundation, Inc.
*************
This text is a brief description of the features that are present in the
-Bash shell (version 5.3, 23 October 2024). The Bash home page is
+Bash shell (version 5.3, 29 November 2024). The Bash home page is
<http://www.gnu.org/software/bash/>.
- This is Edition 5.3, last updated 23 October 2024, of ‘The GNU Bash
+ This is Edition 5.3, last updated 29 November 2024, of ‘The GNU Bash
Reference Manual’, for ‘Bash’, Version 5.3.
Bash contains features that appear in other popular shells, and some
languages in your scripts.
Prefixing a double-quoted string with a dollar sign (‘$’), such as
-$"hello, world", will cause the string to be translated according to the
+$"hello, world", causes the string to be translated according to the
current locale. The ‘gettext’ infrastructure performs the lookup and
translation, using the ‘LC_MESSAGES’, ‘TEXTDOMAINDIR’, and ‘TEXTDOMAIN’
shell variables, as explained below. See the gettext documentation for
variable expansion forces the entire pattern to be matched
literally.
- The pattern will match if it matches any part of the string. If
- you want to force the pattern to match the entire string, anchor
+ The match succeeds if the pattern matches any part of the string.
+ If you want to force the pattern to match the entire string, anchor
the pattern using the ‘^’ and ‘$’ regular expression operators.
For example, the following will match a line (stored in the shell
For example, if a variable ‘var’ is declared as local in function
‘func1’, and ‘func1’ calls another function ‘func2’, references to ‘var’
-made from within ‘func2’ will resolve to the local variable ‘var’ from
+made from within ‘func2’ resolve to the local variable ‘var’ from
‘func1’, shadowing any global variable named ‘var’.
The following script demonstrates this behavior. When executed, the
func1
The ‘unset’ builtin also acts using the same dynamic scope: if a
-variable is local to the current scope, ‘unset’ will unset it; otherwise
-the unset will refer to the variable found in any calling scope as
-described above. If a variable at the current local scope is unset, it
-will remain so (appearing as unset) until it is reset in that scope or
-until the function returns. Once the function returns, any instance of
-the variable at a previous scope will become visible. If the unset acts
-on a variable at a previous scope, any instance of a variable with that
-name that had been shadowed will become visible (see below how
+variable is local to the current scope, ‘unset’ unsets it; otherwise the
+unset will refer to the variable found in any calling scope as described
+above. If a variable at the current local scope is unset, it remains so
+(appearing as unset) until it is reset in that scope or until the
+function returns. Once the function returns, any instance of the
+variable at a previous scope becomes visible. If the unset acts on a
+variable at a previous scope, any instance of a variable with that name
+that had been shadowed will become visible (see below how the
‘localvar_unset’ shell option changes this behavior).
The ‘-f’ option to the ‘declare’ (‘typeset’) builtin command (*note
-Bash Builtins::) will list function names and definitions. The ‘-F’
-option to ‘declare’ or ‘typeset’ will list the function names only (and
-optionally the source file and line number, if the ‘extdebug’ shell
-option is enabled). Functions may be exported so that child shell
-processes (those created when executing a separate shell invocation)
-automatically have them defined with the ‘-f’ option to the ‘export’
-builtin (*note Bourne Shell Builtins::). The ‘-f’ option to the ‘unset’
-builtin (*note Bourne Shell Builtins::) will delete a function
-definition.
+Bash Builtins::) lists function names and definitions. The ‘-F’ option
+to ‘declare’ or ‘typeset’ lists the function names only (and optionally
+the source file and line number, if the ‘extdebug’ shell option is
+enabled). Functions may be exported so that child shell processes
+(those created when executing a separate shell invocation) automatically
+have them defined with the ‘-f’ option to the ‘export’ builtin (*note
+Bourne Shell Builtins::). The ‘-f’ option to the ‘unset’ builtin (*note
+Bourne Shell Builtins::) deletes a function definition.
Functions may be recursive. The ‘FUNCNEST’ variable may be used to
limit the depth of the function call stack and restrict the number of
command export var=value
In the context where an assignment statement is assigning a value to
-a shell variable or array index (*note Arrays::), the ‘+=’ operator will
-append to or add to the variable's previous value. This includes
+a shell variable or array index (*note Arrays::), the ‘+=’ operator
+appends to or adds to the variable's previous value. This includes
arguments to declaration commands such as ‘declare’ that accept
assignment statements. When ‘+=’ is applied to a variable for which the
‘integer’ attribute has been set, the variable's current value and VALUE
If the control variable in a ‘for’ loop has the nameref attribute,
the list of words can be a list of shell variables, and a name reference
-will be established for each word in the list, in turn, when the loop is
+is established for each word in the list, in turn, when the loop is
executed. Array variables cannot be given the nameref attribute.
However, nameref variables can reference array variables and subscripted
array variables. Namerefs can be unset using the ‘-n’ option to the
‘unset’ builtin (*note Bourne Shell Builtins::). Otherwise, if ‘unset’
is executed with the name of a nameref variable as an argument, the
-variable referenced by the nameref variable will be unset.
+variable referenced by the nameref variable is unset.
\1f
File: bashref.info, Node: Positional Parameters, Next: Special Parameters, Up: Shell Parameters
A sequence expression takes the form ‘{X..Y[..INCR]}’, where X and Y
are either integers or letters, and INCR, an optional increment, is an
integer. When integers are supplied, the expression expands to each
-number between X and Y, inclusive. When either X or Y begins with a
-zero, the shell attempts to force all generated terms to contain the
-same number of digits, zero-padding where necessary. When letters are
-supplied, the expression expands to each character lexicographically
-between X and Y, inclusive, using the default C locale. Note that both
-X and Y must be of the same type (integer or letter). When the
-increment is supplied, it is used as the difference between each term.
-The default increment is 1 or -1 as appropriate.
+number between X and Y, inclusive. If either X or Y begins with a zero,
+each generated term will contain the same number of digits, zero-padding
+where necessary. When letters are supplied, the expression expands to
+each character lexicographically between X and Y, inclusive, using the
+default C locale. Note that both X and Y must be of the same type
+(integer or letter). When the increment is supplied, it is used as the
+difference between each term. The default increment is 1 or -1 as
+appropriate.
Brace expansion is performed before any other expansions, and any
characters special to other expansions are preserved in the result. It
Quoting any part of STRING inhibits replacement in the expansion of
the quoted portion, including replacement strings stored in shell
- variables. Backslash will escape ‘&’ in STRING; the backslash is
+ variables. Backslash escapes ‘&’ in STRING; the backslash is
removed in order to permit a literal ‘&’ in the replacement string.
Users should take care if STRING is double-quoted to avoid unwanted
interactions between the backslash and double-quoting, since
Controlling the Prompt::).
‘A’
The expansion is a string in the form of an assignment
- statement or ‘declare’ command that, if evaluated, will
- recreate PARAMETER with its attributes and value.
+ statement or ‘declare’ command that, if evaluated, recreates
+ PARAMETER with its attributes and value.
‘K’
Produces a possibly-quoted version of the value of PARAMETER,
except that it prints the values of indexed and associative
Any side effects of COMMAND take effect immediately in the current
execution environment and persist in the current environment after the
-command completes (e.g., the ‘exit’ builtin will exit the shell).
+command completes (e.g., the ‘exit’ builtin exits the shell).
This type of command substitution superficially resembles executing
an unnamed shell function: local variables are created as when a shell
as a filename. This filename is passed as an argument to the current
command as the result of the expansion.
- If the ‘>(LIST)’ form is used, writing to the file will provide input
-for LIST. If the ‘<(LIST)’ form is used, reading the file will obtain
-the output of LIST. Note that no space may appear between the ‘<’ or
-‘>’ and the left parenthesis, otherwise the construct would be
-interpreted as a redirection.
+ If the ‘>(LIST)’ form is used, writing to the file provides input for
+LIST. If the ‘<(LIST)’ form is used, reading the file obtains the
+output of LIST. Note that no space may appear between the ‘<’ or ‘>’
+and the left parenthesis, otherwise the construct would be interpreted
+as a redirection.
Process substitution is supported on systems that support named pipes
(FIFOs) or the ‘/dev/fd’ method of naming open files.
regard to case. The filenames ‘.’ and ‘..’ are always ignored when
‘GLOBIGNORE’ is set and not null. However, setting ‘GLOBIGNORE’ to a
non-null value has the effect of enabling the ‘dotglob’ shell option, so
-all other filenames beginning with a ‘.’ will match. To get the old
-behavior of ignoring filenames beginning with a ‘.’, make ‘.*’ one of
-the patterns in ‘GLOBIGNORE’. The ‘dotglob’ option is disabled when
+all other filenames beginning with a ‘.’ match. To get the old behavior
+of ignoring filenames beginning with a ‘.’, make ‘.*’ one of the
+patterns in ‘GLOBIGNORE’. The ‘dotglob’ option is disabled when
‘GLOBIGNORE’ is unset. The ‘GLOBIGNORE’ pattern matching honors the
setting of the ‘extglob’ shell option.
‘*’
Matches any string, including the null string. When the ‘globstar’
shell option is enabled, and ‘*’ is used in a filename expansion
- context, two adjacent ‘*’s used as a single pattern will match all
- files and zero or more directories and subdirectories. If followed
- by a ‘/’, two adjacent ‘*’s will match only directories and
- subdirectories.
+ context, two adjacent ‘*’s used as a single pattern match all files
+ and zero or more directories and subdirectories. If followed by a
+ ‘/’, two adjacent ‘*’s match only directories and subdirectories.
‘?’
Matches any single character.
‘[...]’
- Matches any one of the enclosed characters. A pair of characters
- separated by a hyphen denotes a “range expression”; any character
- that falls between those two characters, inclusive, using the
- current locale's collating sequence and character set, matches. If
- the first character following the ‘[’ is a ‘!’ or a ‘^’ then any
- character not within the range matches. To match a ‘−’, include it
- as the first or last character in the set. To match a ‘]’, include
- it as the first character in the set.
+ Matches any one of the characters enclosed between the brackets.
+ This is known as a “bracket expression” and matches a single
+ character. A pair of characters separated by a hyphen denotes a
+ “range expression”; any character that falls between those two
+ characters, inclusive, using the current locale's collating
+ sequence and character set, matches. If the first character
+ following the ‘[’ is a ‘!’ or a ‘^’ then any character not within
+ the range matches. To match a ‘−’, include it as the first or last
+ character in the set. To match a ‘]’, include it as the first
+ character in the set.
The sorting order of characters in range expressions, and the
characters included in the range, are determined by the current
setting the ‘LC_COLLATE’ or ‘LC_ALL’ environment variable to the
value ‘C’, or enable the ‘globasciiranges’ shell option.
- Within ‘[’ and ‘]’, “character classes” can be specified using the
- syntax ‘[:’CLASS‘:]’, where CLASS is one of the following classes
- defined in the POSIX standard:
+ Within a bracket expression, “character classes” can be specified
+ using the syntax ‘[:’CLASS‘:]’, where CLASS is one of the following
+ classes defined in the POSIX standard:
alnum alpha ascii blank cntrl digit graph lower
print punct space upper word xdigit
A character class matches any character belonging to that class.
The ‘word’ character class matches letters, digits, and the
character ‘_’.
- Within ‘[’ and ‘]’, an “equivalence class” can be specified using
- the syntax ‘[=’C‘=]’, which matches all characters with the same
- collation weight (as defined by the current locale) as the
- character C.
+ For instance, the following pattern will match any character
+ belonging to the ‘space’ character class in the current locale,
+ then any upper case letter or ‘!’, a dot, and finally any lower
+ case letter or a hyphen.
- Within ‘[’ and ‘]’, the syntax ‘[.’SYMBOL‘.]’ matches the collating
- symbol SYMBOL.
+ [[:space:]][[:upper:]!].[-[:lower:]]
+
+ Within a bracket expression, an “equivalence class” can be
+ specified using the syntax ‘[=’C‘=]’, which matches all characters
+ with the same collation weight (as defined by the current locale)
+ as the character C.
+
+ Within a bracket expression, the syntax ‘[.’SYMBOL‘.]’ matches the
+ collating symbol SYMBOL.
If the ‘extglob’ shell option is enabled using the ‘shopt’ builtin,
the shell recognizes several extended pattern matching operators. In
Each redirection that may be preceded by a file descriptor number may
instead be preceded by a word of the form {VARNAME}. In this case, for
-each redirection operator except >&- and <&-, the shell will allocate a
-file descriptor greater than 10 and assign it to {VARNAME}. If
-{VARNAME} precedes >&- or <&-, the value of VARNAME defines the file
-descriptor to close. If {VARNAME} is supplied, the redirection persists
-beyond the scope of the command, which allows the shell programmer to
-manage the file descriptor's lifetime manually without using the ‘exec’
-builtin. The ‘varredir_close’ shell option manages this behavior (*note
-The Shopt Builtin::).
+each redirection operator except ‘>&-’ and ‘<&-’, the shell allocates a
+file descriptor greater than or equal to 10 and assigns it to {VARNAME}.
+If {VARNAME} precedes ‘>&-’ or ‘<&-’, the value of VARNAME defines the
+file descriptor to close. If {VARNAME} is supplied, the redirection
+persists beyond the scope of the command, which allows the shell
+programmer to manage the file descriptor's lifetime manually without
+using the ‘exec’ builtin. The ‘varredir_close’ shell option manages
+this behavior (*note The Shopt Builtin::).
In the following descriptions, if the file descriptor number is
omitted, and the first character of the redirection operator is ‘<’, the
Bash handles several filenames specially when they are used in
redirections, as described in the following table. If the operating
-system on which Bash is running provides these special files, Bash will
-use them; otherwise it will emulate them internally with the behavior
-described below.
+system on which Bash is running provides these special files, Bash uses
+them; otherwise it emulates them internally with the behavior described
+below.
‘/dev/fd/FD’
If FD is a valid integer, duplicate file descriptor FD.
[N]>[|]WORD
If the redirection operator is ‘>’, and the ‘noclobber’ option to the
-‘set’ builtin has been enabled, the redirection will fail if the file
-whose name results from the expansion of WORD exists and is a regular
-file. If the redirection operator is ‘>|’, or the redirection operator
-is ‘>’ and the ‘noclobber’ option is not enabled, Bash attemps the
-redirection even if the file named by WORD exists.
+‘set’ builtin has been enabled, the redirection fails if the file whose
+name results from the expansion of WORD exists and is a regular file.
+If the redirection operator is ‘>|’, or the redirection operator is ‘>’
+and the ‘noclobber’ option is not enabled, Bash attemps the redirection
+even if the file named by WORD exists.
3.6.3 Appending Redirected Output
---------------------------------
If the ‘-e’ option is supplied with ‘-P’ and ‘cd’ cannot
successfully determine the current working directory after a
- successful directory change, it will return a non-zero status.
+ successful directory change, it returns a non-zero status.
On systems that support it, the ‘-@’ option presents the extended
attributes associated with a file as a directory.
OPTSTRING is a colon, ‘getopts’ uses _silent_ error reporting. In
normal operation, ‘getopts’ prints diagnostic messages when it
encounters invalid options or missing option arguments. If the
- variable ‘OPTERR’ is set to 0, no error messages will be displayed,
- even if the first character of ‘optstring’ is not a colon.
+ variable ‘OPTERR’ is set to 0, ‘getopts’ does not display any error
+ messages, even if the first character of ‘optstring’ is not a
+ colon.
If ‘getopts’ detects an invalid option, it places ‘?’ into NAME
and, if not silent, prints an error message and unsets ‘OPTARG’.
When referenced, this variable expands to the name of the shell or
shell script (identical to ‘$0’; *Note Special Parameters::, for
the description of special parameter 0). Assigning a value to
- ‘BASH_ARGV0’ assigns the same value to ‘$0’. If ‘BASH_ARGV0’ is
+ ‘BASH_ARGV0’ sets ‘$0’ to the same value. If ‘BASH_ARGV0’ is
unset, it loses its special properties, even if it is subsequently
reset.
‘BASH_XTRACEFD’
If set to an integer corresponding to a valid file descriptor, Bash
- will write the trace output generated when ‘set -x’ is enabled to
- that file descriptor instead of the standard error. This allows
+ writes the trace output generated when ‘set -x’ is enabled to that
+ file descriptor, instead of the standard error. This allows
tracing output to be separated from diagnostic and error messages.
The file descriptor is closed when ‘BASH_XTRACEFD’ is unset or
assigned a new value. Unsetting ‘BASH_XTRACEFD’ or assigning it
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 current directory. If ‘DIRSTACK’ is unset, it loses its
- special properties, even if it is subsequently reset.
+ remove directories. Assigning to this variable does not change the
+ current 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
‘FUNCNEST’
A numeric value greater than 0 defines a maximum function nesting
- level. Function invocations that exceed this nesting level will
- cause the current command to abort.
+ level. Function invocations that exceed this nesting level cause
+ the current command to abort.
‘GLOBIGNORE’
A colon-separated list of patterns defining the set of file names
order by modification time (newest first).
The ‘numeric’ specifier treats names consisting solely of digits as
- numbers and sorts them using their numeric value (so "2" will sort
+ numbers and sorts them using their numeric value (so "2" sorts
before "10", for example). When using ‘numeric’, names containing
non-digits sort after all the all-digit names and are sorted by
name using the traditional behavior.
is subsequently reset.
‘histchars’
- Up to three characters which control history expansion, quick
+ The two or three characters which control history expansion, quick
substitution, and tokenization (*note History Interaction::). The
first character is the “history expansion” character, the character
which begins a history expansion, normally ‘!’. The second
- character is the character which signifies "quick substitution"
- when seen as the first character on a line, normally ‘^’. The
- optional third character is the character which indicates that the
- remainder of the line is a comment when found as the first
- character of a word, usually ‘#’. The history comment character
- disables history substitution for the remaining words on the line.
- It does not necessarily cause the shell parser to treat the rest of
- the line as a comment.
+ character is the "quick substitution" character, normally ‘^’.
+ When it appears as the first character on the line, history
+ substitution repeats the previous command, replacing one string
+ with another. The optional third character is the character which
+ indicates that the remainder of the line is a comment when found as
+ the first character of a word, usually ‘#’. The history comment
+ character disables history substitution for the remaining words on
+ the line. It does not necessarily cause the shell parser to treat
+ the rest of the line as a comment.
‘HISTCMD’
The history number, or index in the history list, of the current
- command. Assignments to ‘HISTCMD’ are ignored. If ‘HISTCMD’ is
+ command. Assignments to ‘HISTCMD’ have no effect. If ‘HISTCMD’ is
unset, it loses its special properties, even if it is subsequently
reset.
‘erasedups’ causes all previous lines matching the current line to
be removed from the history list before that line is saved. Any
value not in the above list is ignored. If ‘HISTCONTROL’ is unset,
- or does not include a valid value, all lines read by the shell
- parser are saved on the history list, subject to the value of
- ‘HISTIGNORE’. The second and subsequent lines of a multi-line
- compound command are not tested, and are added to the history
- regardless of the value of ‘HISTCONTROL’ if the first line of the
- command was saved. If the first line was not saved, the second and
- subsequent lines of the command are not saved, either.
+ or does not include a valid value, Bash saves all lines read by the
+ shell parser on the history list, subject to the value of
+ ‘HISTIGNORE’. If the first line of a multi-line compound command
+ was saved, the second and subsequent lines are not tested, and are
+ added to the history regardless of the value of ‘HISTCONTROL’. If
+ the first line was not saved, the second and subsequent lines of
+ the command are not saved either.
‘HISTFILE’
The name of the file to which the command history is saved. Bash
lines should be saved on the history list. If a command line
matches one of the patterns in the value of ‘HISTIGNORE’, it is not
saved on the history list. Each pattern is anchored at the
- beginning of the line and must match the complete line (Bash will
+ beginning of the line and must match the complete line (Bash does
not implicitly append a ‘*’). Each pattern is tested against the
line after the checks specified by ‘HISTCONTROL’ are applied. In
addition to the normal shell pattern matching characters, ‘&’
- matches the previous history line. ‘&’ may be escaped using a
- backslash; the backslash is removed before attempting a match. The
- second and subsequent lines of a multi-line compound command are
- not tested, and are added to the history regardless of the value of
- ‘HISTIGNORE’, if the first line was saved. If the first line was
- not saved, the second and subsequent lines of the command are not
- saved, either. The pattern matching honors the setting of the
- ‘extglob’ shell option.
+ matches the previous history line. A backslash escapes the ‘&’;
+ the backslash is removed before attempting a match. If the first
+ line of a multi-line compound command was saved, the second and
+ subsequent lines are not tested, and are added to the history
+ regardless of the value of ‘HISTIGNORE’. If the first line was not
+ saved, the second and subsequent lines of the command are not saved
+ either. The pattern matching honors the setting of the ‘extglob’
+ shell option.
‘HISTIGNORE’ subsumes some of the function of ‘HISTCONTROL’. A
pattern of ‘&’ is identical to ‘ignoredups’, and a pattern of ‘[
to the existing list. If ‘HOSTFILE’ is set, but has no value, or
does not name a readable file, Bash attempts to read ‘/etc/hosts’
to obtain the list of possible hostname completions. When
- ‘HOSTFILE’ is unset, the hostname list is cleared.
+ ‘HOSTFILE’ is unset, Bash clears the hostname list.
‘HOSTNAME’
The name of the current host.
‘RANDOM’
Each time this parameter is referenced, it expands to a random
- integer between 0 and 32767. Assigning a value to this variable
- initializes (seeds) the random number generator. Seeding the
- random number generator with the same constant value will produce
- the same sequence of values. If ‘RANDOM’ is unset, it loses its
+ integer between 0 and 32767. Assigning a value to ‘RANDOM’
+ initializes (seeds) the sequence of random numbers. Seeding the
+ random number generator with the same constant value produces the
+ same sequence of values. If ‘RANDOM’ is unset, it loses its
special properties, even if it is subsequently reset.
‘READLINE_ARGUMENT’
The optional P is a digit specifying the precision, the number of
fractional digits after a decimal point. A value of 0 causes no
- decimal point or fraction to be output. ‘time’ will print at most
- six digits after the decimal point; values of P greater than 6 are
+ decimal point or fraction to be output. ‘time’ prints at most six
+ digits after the decimal point; values of P greater than 6 are
changed to 6. If P is not specified, ‘time’ prints three digits
after the decimal point.
After reading that file, it looks for ‘~/.bash_profile’,
‘~/.bash_login’, and ‘~/.profile’, in that order, and reads and executes
commands from the first one that exists and is readable. The
-‘--noprofile’ option may be used when the shell is started to inhibit
-this behavior.
+‘--noprofile’ option inhibits this behavior.
When an interactive login shell exits, or a non-interactive login
shell executes the ‘exit’ builtin command, Bash reads and executes
.........................................
When Bash runs as an interactive shell that is not a login shell, it
-reads and executes commands from ‘~/.bashrc’, if that file exists. This
-may be inhibited by using the ‘--norc’ option. The ‘--rcfile FILE’
-option causes Bash to use FILE instead of ‘~/.bashrc’.
+reads and executes commands from ‘~/.bashrc’, if that file exists. The
+‘--norc’ option inhibits this behavior. The ‘--rcfile FILE’ option
+causes Bash to use FILE instead of ‘~/.bashrc’.
So, typically, your ‘~/.bash_profile’ contains the line
if [ -f ~/.bashrc ]; then . ~/.bashrc; fi
When invoked as an interactive login shell, or as a non-interactive
shell with the ‘--login’ option, it first attempts to read and execute
commands from ‘/etc/profile’ and ‘~/.profile’, in that order. The
-‘--noprofile’ option will inhibit this behavior.
+‘--noprofile’ option inhibits this behavior.
When invoked as an interactive shell with the name ‘sh’, Bash looks
for the variable ‘ENV’, expands its value if it is defined, and uses the
and rarely-seen remote shell daemon, usually ‘rshd’, or the secure shell
daemon ‘sshd’. If Bash determines it is being run non-interactively in
this fashion, it reads and executes commands from ‘~/.bashrc’, if that
-file exists and is readable. It will not do this if invoked as ‘sh’.
-The ‘--norc’ option will inhibit this behavior, and the ‘--rcfile’
-option will make Bash use a different file instead of ‘~/.bashrc’, but
+file exists and is readable. Bash does not read this file if invoked as
+‘sh’. The ‘--norc’ option inhibits this behavior, and the ‘--rcfile’
+option makes Bash use a different file instead of ‘~/.bashrc’, but
neither ‘rshd’ nor ‘sshd’ generally invoke the shell with those options
or allow them to be specified.
Bash handles several filenames specially when they are used in
expressions. If the operating system on which Bash is running provides
-these special files, Bash will use them; otherwise it will emulate them
+these special files, Bash uses them; otherwise it emulates them
internally with this behavior: If the FILE argument to one of the
primaries is of the form ‘/dev/fd/N’, then Bash checks file descriptor
N. If the FILE argument to one of the primaries is one of ‘/dev/stdin’,
safe, always put alias definitions on a separate line, and do not use
‘alias’ in compound commands.
- For almost every purpose, shell functions are preferred over aliases.
+ For almost every purpose, shell functions are preferable to aliases.
\1f
File: bashref.info, Node: Arrays, Next: The Directory Stack, Prev: Aliases, Up: Bash Features
==========
Bash provides one-dimensional indexed and associative array variables.
-Any variable may be used as an indexed array; the ‘declare’ builtin will
-explicitly declare an array. There is no maximum limit on the size of
+Any variable may be used as an indexed array; the ‘declare’ builtin
+explicitly declares an array. There is no maximum limit on the size of
an array, nor any requirement that members be indexed or assigned
-contiguously. Indexed arrays are referenced using integers (including
-arithmetic expressions (*note Shell Arithmetic::)) and are zero-based;
-associative arrays use arbitrary strings. Unless otherwise noted,
-indexed array indices must be non-negative integers.
+contiguously. Indexed arrays are referenced using arithmetic
+expressions that must expand to an integer (*note Shell Arithmetic::))
+and are zero-based; associative arrays use arbitrary strings. Unless
+otherwise noted, indexed array indices must be non-negative integers.
An indexed array is created automatically if any variable is assigned
to using the syntax
to a number greater than or equal to zero. To explicitly declare an
array, use
declare -a NAME
-The syntax
+(*note Bash Builtins::). The syntax
declare -a NAME[SUBSCRIPT]
is also accepted; the SUBSCRIPT is ignored.
than the maximum index of NAME, so negative indices count back from the
end of the array, and an index of -1 references the last element.
- The ‘+=’ operator will append to an array variable when assigning
-using the compound assignment syntax; see *note Shell Parameters::
-above.
+ The ‘+=’ operator appends to an array variable when assigning using
+the compound assignment syntax; see *note Shell Parameters:: above.
An array element is referenced using ‘${NAME[SUBSCRIPT]}’. The
braces are required to avoid conflicts with the shell's filename
Referencing an array variable without a subscript is equivalent to
referencing with a subscript of 0. Any reference to a variable using a
-valid subscript is valid, and Bash will create an array if necessary.
+valid subscript is valid; Bash creates an array if necessary.
An array variable is considered set if a subscript has been assigned
a value. The null string is a valid value.
‘\\’
A backslash.
‘\[’
- Begin a sequence of non-printing characters. This could be used to
- embed a terminal control sequence into the prompt.
+ Begin a sequence of non-printing characters. Thiss could be used
+ to embed a terminal control sequence into the prompt.
‘\]’
End a sequence of non-printing characters.
string. Typing ‘C-s’ searches forward through the history. The
characters present in the value of the ‘isearch-terminators’ variable
are used to terminate an incremental search. If that variable has not
-been assigned a value, the <ESC> and ‘C-J’ characters will terminate an
-incremental search. ‘C-g’ will abort an incremental search and restore
-the original line. When the search is terminated, the history entry
+been assigned a value, the <ESC> and ‘C-j’ characters terminate an
+incremental search. ‘C-g’ aborts an incremental search and restores the
+original line. When the search is terminated, the history entry
containing the search string becomes the current line.
To find other matching entries in the history list, type ‘C-r’ or
-‘C-s’ as appropriate. This will search backward or forward in the
-history for the next entry matching the search string typed so far. Any
-other key sequence bound to a Readline command will terminate the search
-and execute that command. For instance, a <RET> will terminate the
-search and accept the line, thereby executing the command from the
-history list. A movement command will terminate the search, make the
-last line found the current line, and begin editing.
+‘C-s’ as appropriate. This searches backward or forward in the history
+for the next entry matching the search string typed so far. Any other
+key sequence bound to a Readline command terminates the search and
+executes that command. For instance, a <RET> terminates the search and
+accepts the line, thereby executing the command from the history list.
+A movement command will terminate the search, make the last line found
+the current line, and begin editing.
Readline remembers the last incremental search string. If two ‘C-r’s
are typed without any intervening characters defining a new search
looks for ‘/etc/inputrc’. The ‘bind’ builtin command can also be used
to set Readline keybindings and variables. *Note Bash Builtins::.
- When a program which uses the Readline library starts up, Readline
+ When a program that uses the Readline library starts up, Readline
reads the init file and sets any variables and key bindings it contains.
In addition, the ‘C-x C-r’ command re-reads this init file, thus
The number of screen columns used to display possible matches
when performing completion. The value is ignored if it is
less than 0 or greater than the terminal screen width. A
- value of 0 will cause matches to be displayed one per line.
- The default value is -1.
+ value of 0 causes matches to be displayed one per line. The
+ default value is -1.
‘completion-ignore-case’
If set to ‘on’, Readline performs filename matching and
The number of possible completions that determines when the
user is asked whether the list of possibilities should be
displayed. If the number of possible completions is greater
- than or equal to this value, Readline will ask whether or not
- the user wishes to view them; otherwise, Readline simply lists
- the completions. This variable must be set to an integer
- value greater than or equal to zero. A zero value means
- Readline should never ask; negative values are treated as
- zero. The default limit is ‘100’.
+ than or equal to this value, Readline asks whether or not the
+ user wishes to view them; otherwise, Readline simply lists the
+ completions. This variable must be set to an integer value
+ greater than or equal to zero. A zero value means Readline
+ should never ask; negative values are treated as zero. The
+ default limit is ‘100’.
‘convert-meta’
- If set to ‘on’, Readline will convert characters it reads that
+ If set to ‘on’, Readline converts characters it reads that
have the eighth bit set to an ASCII key sequence by clearing
the eighth bit and prefixing an <ESC> character, converting
them to a meta-prefixed key sequence. The default value is
- ‘on’, but Readline will set it to ‘off’ if the locale contains
+ ‘on’, but Readline sets it to ‘off’ if the locale contains
characters whose encodings may include bytes with the eighth
bit set. This variable is dependent on the ‘LC_CTYPE’ locale
category, and may change if the locale changes. This variable
‘force-meta-prefix’ below.
‘disable-completion’
- If set to ‘On’, Readline will inhibit word completion.
- Completion characters will be inserted into the line as if
- they had been mapped to ‘self-insert’. The default is ‘off’.
+ If set to ‘On’, Readline inhibits word completion. Completion
+ characters are inserted into the line as if they had been
+ mapped to ‘self-insert’. The default is ‘off’.
‘echo-control-characters’
When set to ‘on’, on operating systems that indicate they
appearing in the pasted text. The default is ‘On’.
‘enable-keypad’
- When set to ‘on’, Readline will try to enable the application
+ When set to ‘on’, Readline tries to enable the application
keypad when it is called. Some systems need this to enable
the arrow keys. The default is ‘off’.
‘enable-meta-key’
- When set to ‘on’, Readline will try to enable any meta
- modifier key the terminal claims to support when it is called.
- On many terminals, the Meta key is used to send eight-bit
- characters; this variable checks for the terminal capability
- that indicates the terminal can enable and disable a mode that
- sets the eighth bit of a character (0200) if the Meta key is
- held down when the character is typed (a meta character). The
+ When set to ‘on’, Readline tries to enable any meta modifier
+ key the terminal claims to support when it is called. On many
+ terminals, the Meta key is used to send eight-bit characters;
+ this variable checks for the terminal capability that
+ indicates the terminal can enable and disable a mode that sets
+ the eighth bit of a character (0200) if the Meta key is held
+ down when the character is typed (a meta character). The
default is ‘on’.
‘expand-tilde’
default, this variable is set to ‘off’.
‘input-meta’
- If set to ‘on’, Readline will enable eight-bit input (that is,
- it will not clear the eighth bit in the characters it reads),
+ If set to ‘on’, Readline enables eight-bit input (that is, it
+ does not clear the eighth bit in the characters it reads),
regardless of what the terminal claims it can support. The
- default value is ‘off’, but Readline will set it to ‘on’ if
- the locale contains characters whose encodings may include
- bytes with the eighth bit set. This variable is dependent on
- the ‘LC_CTYPE’ locale category, and its value may change if
- the locale changes. The name ‘meta-flag’ is a synonym for
+ default value is ‘off’, but Readline sets it to ‘on’ if the
+ locale contains characters whose encodings may include bytes
+ with the eighth bit set. This variable is dependent on the
+ ‘LC_CTYPE’ locale category, and its value may change if the
+ locale changes. The name ‘meta-flag’ is a synonym for
‘input-meta’.
‘isearch-terminators’
The string of characters that should terminate an incremental
search without subsequently executing the character as a
command (*note Searching::). If this variable has not been
- given a value, the characters <ESC> and ‘C-J’ will terminate
- an incremental search.
+ given a value, the characters <ESC> and ‘C-j’ terminate an
+ incremental search.
‘keymap’
Sets Readline's idea of the current keymap for key binding
reading an ambiguous key sequence (one that can form a
complete key sequence using the input read so far, or can take
additional input to complete a longer key sequence). If
- Readline doesn't receive any input within the timeout, it will
- use the shorter but complete key sequence. Readline uses this
+ Readline doesn't receive any input within the timeout, it uses
+ the shorter but complete key sequence. Readline uses this
value to determine whether or not input is available on the
current input source (‘rl_instream’ by default). The value is
specified in milliseconds, so a value of 1000 means that
Readline will wait one second for additional input. If this
variable is set to a value less than or equal to zero, or to a
- non-numeric value, Readline will wait until another key is
- pressed to decide which key sequence to complete. The default
- value is ‘500’.
+ non-numeric value, Readline waits until another key is pressed
+ to decide which key sequence to complete. The default value
+ is ‘500’.
‘mark-directories’
If set to ‘on’, completed directory names have a slash
appended. The default is ‘on’.
‘mark-modified-lines’
- When this variable is set to ‘on’, Readline will to display an
+ When this variable is set to ‘on’, Readline displays an
asterisk (‘*’) at the start of history lines which have been
modified. This variable is ‘off’ by default.
cycling through the list. The default is ‘off’.
‘output-meta’
- If set to ‘on’, Readline will display characters with the
- eighth bit set directly rather than as a meta-prefixed escape
- sequence. The default is ‘off’, but Readline will set it to
- ‘on’ if the locale contains characters whose encodings may
- include bytes with the eighth bit set. This variable is
- dependent on the ‘LC_CTYPE’ locale category, and its value may
- change if the locale changes.
+ If set to ‘on’, Readline displays characters with the eighth
+ bit set directly rather than as a meta-prefixed escape
+ sequence. The default is ‘off’, but Readline sets it to ‘on’
+ if the locale contains characters whose encodings may include
+ bytes with the eighth bit set. This variable is dependent on
+ the ‘LC_CTYPE’ locale category, and its value may change if
+ the locale changes.
‘page-completions’
- If set to ‘on’, Readline uses an internal ‘more’-like pager to
- display a screenful of possible completions at a time. This
- variable is ‘on’ by default.
+ If set to ‘on’, Readline uses an internal pager resembling
+ more(1) to display a screenful of possible completions at a
+ time. This variable is ‘on’ by default.
‘prefer-visible-bell’
See ‘bell-style’.
‘print-completions-horizontally’
- If set to ‘on’, Readline will display completions with matches
+ If set to ‘on’, Readline displays completions with matches
sorted horizontally in alphabetical order, rather than down
the screen. The default is ‘off’.
on some keyboards.
‘forward-char (C-f)’
- Move forward a character.
+ Move forward a character. This may also be bound to the right
+ arrow key on some keyboards.
‘backward-char (C-b)’
- Move back a character.
+ Move back a character. This may also be bound to the left arrow
+ key on some keyboards.
‘forward-word (M-f)’
Move forward to the end of the next word. Words are composed of
‘previous-history (C-p)’
Move 'back' through the history list, fetching the previous
- command.
+ command. This may also be bound to the up arrow key on some
+ keyboards.
‘next-history (C-n)’
Move 'forward' through the history list, fetching the next command.
+ This may also be bound to the down arrow key on some keyboards.
‘beginning-of-history (M-<)’
Move to the first line in the history.
write the list of possible completions to Readline's output stream
using the following format, writing information on separate lines:
- The number of matches;
- The word being completed;
- S:E, where S and E are the start and end offsets of the word
- in the readline line buffer; then
- Each match, one per line
+ • the number of matches N;
+ • the word being completed;
+ • S:E, where S and E are the start and end offsets of the word
+ in the Readline line buffer; then
+ • each match, one per line
- If there are no matches, the first line will be 0, and this command
- will not print any output after the S:E. If there is only a single
- match, this prints a single line containing it. If there is more
- than one match, this prints the common prefix of the matches, which
- may be empty, on the first line after the S:E, then the matches on
- subsequent lines. In this case, N will include the first line with
- the common prefix.
+ If there are no matches, the first line will be "0", and this
+ command does not print any output after the S:E. If there is only
+ a single match, this prints a single line containing it. If there
+ is more than one match, this prints the common prefix of the
+ matches, which may be empty, on the first line after the S:E, then
+ the matches on subsequent lines. In this case, N will include the
+ first line with the common prefix.
The user or application should be able to accommodate the
possibility of a blank line. The intent is that the user or
‘skip-csi-sequence ()’
Read enough characters to consume a multi-key sequence such as
those defined for keys like Home and End. CSI sequences begin with
- a Control Sequence Indicator (CSI), usually ESC-[. If this
- sequence is bound to "\e[", keys producing CSI sequences will have
- no effect unless explicitly bound to a Readline command, instead of
+ a Control Sequence Indicator (CSI), usually ‘ESC [’. If this
+ sequence is bound to "\e[", keys producing CSI sequences have no
+ effect unless explicitly bound to a Readline command, instead of
inserting stray characters into the editing buffer. This is
- unbound by default, but usually bound to ESC-[.
+ unbound by default, but usually bound to ‘ESC [’.
‘insert-comment (M-#)’
Without a numeric argument, insert the value of the ‘comment-begin’
8.6 Programmable Completion
===========================
-When the user attempts word completion for an argument to a command for
-which a completion specification (a “compspec”) has been defined using
-the ‘complete’ builtin (*note Programmable Completion Builtins::),
-Readline invokes the programmable completion facilities.
+When the user attempts word completion for a command or an argument to a
+command for which a completion specification (a “compspec”) has been
+defined using the ‘complete’ builtin (*note Programmable Completion
+Builtins::), Readline invokes the programmable completion facilities.
First, Bash identifies the command name. If a compspec has been
defined for that command, the compspec is used to generate the list of
possible completions for the word. If the command word is the empty
string (completion attempted at the beginning of an empty line), Bash
-uses any compspec defined with the ‘-E’ option to ‘complete’. If the
-command word is a full pathname, Bash searches for a compspec for the
-full pathname first. If there is no compspec for the full pathname,
-Bash attempts to find a compspec for the portion following the final
-slash. If those searches do not result in a compspec, any compspec
-defined with the ‘-D’ option to ‘complete’ is used as the default. If
-there is no default compspec, Bash attempts alias expansion on the
-command word as a final resort, and attempts to find a compspec for the
-command word from any successful expansion.
+uses any compspec defined with the ‘-E’ option to ‘complete’. The ‘-I’
+option to ‘complete’ indicates that the command word is the first
+non-assignment word on the line, or after a command delimiter such as
+‘;’ or ‘|’. This usually indicates command name completion.
+
+ If the command word is a full pathname, Bash searches for a compspec
+for the full pathname first. If there is no compspec for the full
+pathname, Bash attempts to find a compspec for the portion following the
+final slash. If those searches do not result in a compspec, or if there
+is no compspec for the command word, Bash uses any compspec defined with
+the ‘-D’ option to ‘complete’ as the default. If there is no default
+compspec, Bash performs alias expansion on the command word as a final
+resort, and attempts to find a compspec for the command word resulting
+from any successful expansion.
If a compspec is not found, Bash performs its default completion
described above (*note Commands For Completion::). Otherwise, once a
compspec has been found, Bash uses it to generate the list of matching
words.
- First, Bash performs the ACTIONS specified by the compspec. Only
-matches which are prefixed by the word being completed are returned.
+ First, Bash performs the ACTIONS specified by the compspec. This
+only returns matches which are prefixes of the word being completed.
When the ‘-f’ or ‘-d’ option is used for filename or directory name
completion, Bash uses shell the variable ‘FIGNORE’ to filter the
matches. *Note Bash Variables::, for a description of ‘FIGNORE’.
- Any completions specified by a filename expansion pattern to the ‘-G’
-option are generated next. The words generated by the pattern need not
-match the word being completed. Bash uses the ‘FIGNORE’ variable to
-filter the matches, but does not use the ‘GLOBIGNORE’ shell variable.
+ Next, programmable completion generates matches specified by a
+pathname expansion pattern supplied as an argument to the ‘-G’ option.
+The words generated by the pattern need not match the word being
+completed. Bash uses the ‘FIGNORE’ variable to filter the matches, but
+does not use the ‘GLOBIGNORE’ shell variable.
Next, completion considers the string specified as the argument to
the ‘-W’ option. The string is first split using the characters in the
-‘IFS’ special variable as delimiters. Shell quoting is honored within
+‘IFS’ special variable as delimiters. This honors shell quoting within
the string, in order to provide a mechanism for the words to contain
shell metacharacters or characters in the value of ‘IFS’. Each word is
then expanded using brace expansion, tilde expansion, parameter and
matching words become possible completions.
After these matches have been generated, Bash executes any shell
-function or command any shell function or command specified with the
-‘-F’ and ‘-C’ options. When the command or function is invoked, the
-‘COMP_LINE’, ‘COMP_POINT’, ‘COMP_KEY’, and ‘COMP_TYPE’ variables are
-assigned values as described above (*note Bash Variables::). If a shell
-function is being invoked, the ‘COMP_WORDS’ and ‘COMP_CWORD’ variables
-are also set. When the function or command is invoked, the first
-argument ($1) is the name of the command whose arguments are being
-completed, the second argument ($2) is the word being completed, and the
-third argument ($3) is the word preceding the word being completed on
-the current command line. There is no filtering of the generated
-completions against the word being completed; the function or command
-has complete freedom in generating the matches.
+function or command specified with the ‘-F’ and ‘-C’ options. When the
+command or function is invoked, Bash assigns values to the ‘COMP_LINE’,
+‘COMP_POINT’, ‘COMP_KEY’, and ‘COMP_TYPE’ variables as described above
+(*note Bash Variables::). If a shell function is being invoked, Bash
+also sets the ‘COMP_WORDS’ and ‘COMP_CWORD’ variables. When the
+function or command is invoked, the first argument ($1) is the name of
+the command whose arguments are being completed, the second argument
+($2) is the word being completed, and the third argument ($3) is the
+word preceding the word being completed on the current command line.
+There is no filtering of the generated completions against the word
+being completed; the function or command has complete freedom in
+generating the matches and they do not need to match a prefix of the
+word.
Any function specified with ‘-F’ is invoked first. The function may
use any of the shell facilities, including the ‘compgen’ and ‘compopt’
Next, any command specified with the ‘-C’ option is invoked in an
environment equivalent to command substitution. It should print a list
-of completions, one per line, to the standard output. Backslash may be
-used to escape a newline, if necessary. These are added to the set of
-possible completions.
-
- After all of the possible completions are generated, any filter
-specified with the ‘-X’ option is applied to the list. The filter is a
-pattern as used for pathname expansion; a ‘&’ in the pattern is replaced
-with the text of the word being completed. A literal ‘&’ may be escaped
-with a backslash; the backslash is removed before attempting a match.
-Any completion that matches the pattern will be removed from the list.
-A leading ‘!’ negates the pattern; in this case any completion not
-matching the pattern will be removed. If the ‘nocasematch’ shell option
-(see the description of ‘shopt’ in *note The Shopt Builtin::) is
-enabled, the match is performed without regard to the case of alphabetic
-characters.
-
- Finally, any prefix and suffix specified with the ‘-P’ and ‘-S’
-options are added to each member of the completion list, and the result
-is returned to Readline as the list of possible completions.
+of completions, one per line, to the standard output. Backslash will
+escape a newline, if necessary. These are added to the set of possible
+completions.
+
+ After generating all of the possible completions, Bash applies any
+filter specified with the ‘-X’ option to the completions in the list.
+The filter is a pattern as used for pathname expansion; a ‘&’ in the
+pattern is replaced with the text of the word being completed. A
+literal ‘&’ may be escaped with a backslash; the backslash is removed
+before attempting a match. Any completion that matches the pattern is
+removed from the list. A leading ‘!’ negates the pattern; in this case
+Bash removes any completion that does not match the pattern. If the
+‘nocasematch’ shell option is enabled (see the description of ‘shopt’ in
+*note The Shopt Builtin::), Bash performs the match without regard to
+the case of alphabetic characters.
+
+ Finally, programmable completion adds any prefix and suffix specified
+with the ‘-P’ and ‘-S’ options, respectively, to each completion, and
+returns the result to Readline as the list of possible completions.
If the previously-applied actions do not generate any matches, and
the ‘-o dirnames’ option was supplied to ‘complete’ when the compspec
to the completion code as the full set of possible completions. The
default Bash completions and the Readline default of filename completion
are disabled. If the ‘-o bashdefault’ option was supplied to ‘complete’
-when the compspec was defined, if the compspec generates no matches,
-Bash attempts its default completions. If the ‘-o default’ option was
-supplied to ‘complete’ when the compspec was defined, programmable
-completion will perform Readline's default completion if the compspec
-(and, if attempted, the default Bash completions) generate no matches.
-
- When a compspec indicates that directory name completion is desired,
+when the compspec was defined, and the compspec generates no matches,
+Bash attempts its default completions. If the compspec and, if
+attempted, the default Bash completions generate no matches, and the ‘-o
+default’ option was supplied to ‘complete’ when the compspec was
+defined, programmable completion performs Readline's default completion.
+
+ The options supplied to ‘complete’ and ‘compopt’ can control how
+Readline treats the completions. For instance, the ‘-o fullquote’
+option tells Readline to quote the matches as if they were filenames.
+See the description of ‘complete’ (*note Programmable Completion
+Builtins::) for details.
+
+ When a compspec indicates that it wants directory name completion,
the programmable completion functions force Readline to append a slash
to completed names which are symbolic links to directories, subject to
the value of the MARK-DIRECTORIES Readline variable, regardless of the
compspec associated with the command on which completion is being
attempted (supplied as the first argument when the function is
executed), programmable completion restarts from the beginning, with an
-attempt to find a new compspec for that command. This allows a set of
-completions to be built dynamically as completion is attempted, rather
-than being loaded all at once.
+attempt to find a new compspec for that command. This can be used to
+build a set of completions dynamically as completion is attempted,
+rather than loading them all at once.
For instance, assuming that there is a library of compspecs, each
kept in a file corresponding to the name of the command, the following
as ‘-e’.
‘file’
- File names. May also be specified as ‘-f’.
+ File and directory names, similar to Readline's filename
+ completion. May also be specified as ‘-f’.
‘function’
Names of shell functions.
with the history expansion character.
Several shell options settable with the ‘shopt’ builtin (*note The
-Shopt Builtin::) will modify history expansion behavior If the
-‘histverify’ shell option is enabled, and Readline is being used,
-history substitutions are not immediately passed to the shell parser.
-Instead, the expanded line is reloaded into the Readline editing buffer
-for further modification. If Readline is being used, and the
-‘histreedit’ shell option is enabled, a failed history expansion is
-reloaded into the Readline editing buffer for correction.
+Shopt Builtin::) modify history expansion behavior If the ‘histverify’
+shell option is enabled, and Readline is being used, history
+substitutions are not immediately passed to the shell parser. Instead,
+the expanded line is reloaded into the Readline editing buffer for
+further modification. If Readline is being used, and the ‘histreedit’
+shell option is enabled, a failed history expansion is reloaded into the
+Readline editing buffer for correction.
The ‘-p’ option to the ‘history’ builtin command shows what a history
expansion will do before using it. The ‘-s’ option to the ‘history’
The first argument: word 1.
‘$’
- The last word. This is usually the last argument, but will expand
- to the zeroth word if there is only one word in the line.
+ The last word. This is usually the last argument, but expands to
+ the zeroth word if there is only one word in the line.
‘%’
The first word matched by the most recent ‘?STRING?’ search, if the
Any character may be used as the delimiter in place of ‘/’. The
delimiter may be quoted in OLD and NEW with a single backslash. If
‘&’ appears in NEW, it is replaced with OLD. A single backslash
- will quote the ‘&’ in OLD and NEW. If OLD is null, it is set to
- the last OLD substituted, or, if no previous history substitutions
- took place, the last STRING in a !?STRING‘[?]’ search. If NEW is
- null, each matching OLD is deleted. The final delimiter is
- optional if it is the last character on the input line.
+ quotes the ‘&’ in OLD and NEW. If OLD is null, it is set to the
+ last OLD substituted, or, if no previous history substitutions took
+ place, the last STRING in a !?STRING‘[?]’ search. If NEW is null,
+ each matching OLD is deleted. The final delimiter is optional if
+ it is the last character on the input line.
‘&’
Repeat the previous substitution.
* .: Bourne Shell Builtins.
(line 17)
* [: Bourne Shell Builtins.
- (line 337)
+ (line 338)
* alias: Bash Builtins. (line 11)
* bg: Job Control Builtins.
(line 7)
* complete: Programmable Completion Builtins.
(line 37)
* compopt: Programmable Completion Builtins.
- (line 257)
+ (line 258)
* continue: Bourne Shell Builtins.
(line 106)
* declare: Bash Builtins. (line 179)
* getopts: Bourne Shell Builtins.
(line 179)
* hash: Bourne Shell Builtins.
- (line 230)
+ (line 231)
* help: Bash Builtins. (line 374)
* history: Bash History Builtins.
(line 59)
* pushd: Directory Stack Builtins.
(line 70)
* pwd: Bourne Shell Builtins.
- (line 262)
+ (line 263)
* read: Bash Builtins. (line 548)
* readarray: Bash Builtins. (line 659)
* readonly: Bourne Shell Builtins.
- (line 274)
+ (line 275)
* return: Bourne Shell Builtins.
- (line 299)
+ (line 300)
* set: The Set Builtin. (line 11)
* shift: Bourne Shell Builtins.
- (line 324)
+ (line 325)
* shopt: The Shopt Builtin. (line 9)
* source: Bash Builtins. (line 668)
* suspend: Job Control Builtins.
(line 139)
* test: Bourne Shell Builtins.
- (line 337)
+ (line 338)
* times: Bourne Shell Builtins.
- (line 437)
+ (line 438)
* trap: Bourne Shell Builtins.
- (line 443)
+ (line 444)
* true: Bourne Shell Builtins.
- (line 509)
+ (line 510)
* type: Bash Builtins. (line 673)
* typeset: Bash Builtins. (line 710)
* ulimit: Bash Builtins. (line 716)
* umask: Bourne Shell Builtins.
- (line 514)
+ (line 515)
* unalias: Bash Builtins. (line 824)
* unset: Bourne Shell Builtins.
- (line 532)
+ (line 533)
* wait: Job Control Builtins.
(line 86)
* GLOBSORT: Bash Variables. (line 376)
* GROUPS: Bash Variables. (line 414)
* histchars: Bash Variables. (line 420)
-* HISTCMD: Bash Variables. (line 434)
-* HISTCONTROL: Bash Variables. (line 440)
-* HISTFILE: Bash Variables. (line 458)
-* HISTFILESIZE: Bash Variables. (line 464)
-* HISTIGNORE: Bash Variables. (line 475)
+* HISTCMD: Bash Variables. (line 435)
+* HISTCONTROL: Bash Variables. (line 441)
+* HISTFILE: Bash Variables. (line 459)
+* HISTFILESIZE: Bash Variables. (line 465)
+* HISTIGNORE: Bash Variables. (line 476)
* history-preserve-point: Readline Init File Syntax.
(line 232)
* history-size: Readline Init File Syntax.
(line 238)
-* HISTSIZE: Bash Variables. (line 499)
-* HISTTIMEFORMAT: Bash Variables. (line 506)
+* HISTSIZE: Bash Variables. (line 500)
+* HISTTIMEFORMAT: Bash Variables. (line 507)
* HOME: Bourne Shell Variables.
(line 13)
* horizontal-scroll-mode: Readline Init File Syntax.
(line 248)
-* HOSTFILE: Bash Variables. (line 515)
-* HOSTNAME: Bash Variables. (line 526)
-* HOSTTYPE: Bash Variables. (line 529)
+* HOSTFILE: Bash Variables. (line 516)
+* HOSTNAME: Bash Variables. (line 527)
+* HOSTTYPE: Bash Variables. (line 530)
* IFS: Bourne Shell Variables.
(line 18)
-* IGNOREEOF: Bash Variables. (line 532)
+* IGNOREEOF: Bash Variables. (line 533)
* input-meta: Readline Init File Syntax.
(line 256)
-* INPUTRC: Bash Variables. (line 541)
-* INSIDE_EMACS: Bash Variables. (line 545)
+* INPUTRC: Bash Variables. (line 542)
+* INSIDE_EMACS: Bash Variables. (line 546)
* isearch-terminators: Readline Init File Syntax.
(line 267)
* keymap: Readline Init File Syntax.
(line 274)
* LANG: Creating Internationalized Scripts.
(line 51)
-* LANG <1>: Bash Variables. (line 551)
-* LC_ALL: Bash Variables. (line 555)
-* LC_COLLATE: Bash Variables. (line 559)
-* LC_CTYPE: Bash Variables. (line 566)
+* LANG <1>: Bash Variables. (line 552)
+* LC_ALL: Bash Variables. (line 556)
+* LC_COLLATE: Bash Variables. (line 560)
+* LC_CTYPE: Bash Variables. (line 567)
* LC_MESSAGES: Creating Internationalized Scripts.
(line 51)
-* LC_MESSAGES <1>: Bash Variables. (line 571)
-* LC_NUMERIC: Bash Variables. (line 575)
-* LC_TIME: Bash Variables. (line 579)
-* LINENO: Bash Variables. (line 583)
-* LINES: Bash Variables. (line 590)
-* MACHTYPE: Bash Variables. (line 596)
+* LC_MESSAGES <1>: Bash Variables. (line 572)
+* LC_NUMERIC: Bash Variables. (line 576)
+* LC_TIME: Bash Variables. (line 580)
+* LINENO: Bash Variables. (line 584)
+* LINES: Bash Variables. (line 591)
+* MACHTYPE: Bash Variables. (line 597)
* MAIL: Bourne Shell Variables.
(line 24)
-* MAILCHECK: Bash Variables. (line 600)
+* MAILCHECK: Bash Variables. (line 601)
* MAILPATH: Bourne Shell Variables.
(line 29)
-* MAPFILE: Bash Variables. (line 608)
+* MAPFILE: Bash Variables. (line 609)
* mark-modified-lines: Readline Init File Syntax.
(line 304)
* mark-symlinked-directories: Readline Init File Syntax.
(line 321)
* meta-flag: Readline Init File Syntax.
(line 256)
-* OLDPWD: Bash Variables. (line 612)
+* OLDPWD: Bash Variables. (line 613)
* OPTARG: Bourne Shell Variables.
(line 36)
-* OPTERR: Bash Variables. (line 615)
+* OPTERR: Bash Variables. (line 616)
* OPTIND: Bourne Shell Variables.
(line 40)
-* OSTYPE: Bash Variables. (line 620)
+* OSTYPE: Bash Variables. (line 621)
* output-meta: Readline Init File Syntax.
(line 326)
* page-completions: Readline Init File Syntax.
(line 335)
* PATH: Bourne Shell Variables.
(line 44)
-* PIPESTATUS: Bash Variables. (line 623)
-* POSIXLY_CORRECT: Bash Variables. (line 629)
-* PPID: Bash Variables. (line 639)
-* PROMPT_COMMAND: Bash Variables. (line 643)
-* PROMPT_DIRTRIM: Bash Variables. (line 649)
-* PS0: Bash Variables. (line 655)
+* PIPESTATUS: Bash Variables. (line 624)
+* POSIXLY_CORRECT: Bash Variables. (line 630)
+* PPID: Bash Variables. (line 640)
+* PROMPT_COMMAND: Bash Variables. (line 644)
+* PROMPT_DIRTRIM: Bash Variables. (line 650)
+* PS0: Bash Variables. (line 656)
* PS1: Bourne Shell Variables.
(line 53)
* PS2: Bourne Shell Variables.
(line 58)
-* PS3: Bash Variables. (line 660)
-* PS4: Bash Variables. (line 665)
-* PWD: Bash Variables. (line 673)
-* RANDOM: Bash Variables. (line 676)
-* READLINE_ARGUMENT: Bash Variables. (line 684)
-* READLINE_LINE: Bash Variables. (line 688)
-* READLINE_MARK: Bash Variables. (line 692)
-* READLINE_POINT: Bash Variables. (line 698)
-* REPLY: Bash Variables. (line 702)
+* PS3: Bash Variables. (line 661)
+* PS4: Bash Variables. (line 666)
+* PWD: Bash Variables. (line 674)
+* RANDOM: Bash Variables. (line 677)
+* READLINE_ARGUMENT: Bash Variables. (line 685)
+* READLINE_LINE: Bash Variables. (line 689)
+* READLINE_MARK: Bash Variables. (line 693)
+* READLINE_POINT: Bash Variables. (line 699)
+* REPLY: Bash Variables. (line 703)
* revert-all-at-newline: Readline Init File Syntax.
(line 348)
* search-ignore-case: Readline Init File Syntax.
(line 355)
-* SECONDS: Bash Variables. (line 706)
-* SHELL: Bash Variables. (line 716)
-* SHELLOPTS: Bash Variables. (line 721)
-* SHLVL: Bash Variables. (line 730)
+* SECONDS: Bash Variables. (line 707)
+* SHELL: Bash Variables. (line 717)
+* SHELLOPTS: Bash Variables. (line 722)
+* SHLVL: Bash Variables. (line 731)
* show-all-if-ambiguous: Readline Init File Syntax.
(line 360)
* show-all-if-unmodified: Readline Init File Syntax.
(line 375)
* skip-completed-text: Readline Init File Syntax.
(line 381)
-* SRANDOM: Bash Variables. (line 735)
+* SRANDOM: Bash Variables. (line 736)
* TEXTDOMAIN: Creating Internationalized Scripts.
(line 51)
* TEXTDOMAINDIR: Creating Internationalized Scripts.
(line 51)
-* TIMEFORMAT: Bash Variables. (line 744)
-* TMOUT: Bash Variables. (line 783)
-* TMPDIR: Bash Variables. (line 795)
-* UID: Bash Variables. (line 799)
+* TIMEFORMAT: Bash Variables. (line 745)
+* TMOUT: Bash Variables. (line 784)
+* TMPDIR: Bash Variables. (line 796)
+* UID: Bash Variables. (line 800)
* vi-cmd-mode-string: Readline Init File Syntax.
(line 394)
* vi-ins-mode-string: Readline Init File Syntax.
(line 6)
* alias-expand-line (): Miscellaneous Commands.
(line 133)
-* backward-char (C-b): Commands For Moving. (line 17)
+* backward-char (C-b): Commands For Moving. (line 18)
* backward-delete-char (Rubout): Commands For Text. (line 18)
* backward-kill-line (C-x Rubout): Commands For Killing.
(line 11)
* backward-kill-word (M-<DEL>): Commands For Killing.
(line 28)
-* backward-word (M-b): Commands For Moving. (line 24)
+* backward-word (M-b): Commands For Moving. (line 26)
* beginning-of-history (M-<): Commands For History.
- (line 20)
+ (line 22)
* beginning-of-line (C-a): Commands For Moving. (line 6)
* bracketed-paste-begin (): Commands For Text. (line 35)
* call-last-kbd-macro (C-x e): Keyboard Macros. (line 13)
(line 41)
* character-search-backward (M-C-]): Miscellaneous Commands.
(line 45)
-* clear-display (M-C-l): Commands For Moving. (line 50)
-* clear-screen (C-l): Commands For Moving. (line 55)
+* clear-display (M-C-l): Commands For Moving. (line 52)
+* clear-screen (C-l): Commands For Moving. (line 57)
* complete (<TAB>): Commands For Completion.
(line 6)
* complete-command (M-!): Commands For Completion.
* end-kbd-macro (C-x )): Keyboard Macros. (line 9)
* end-of-file (usually C-d): Commands For Text. (line 6)
* end-of-history (M->): Commands For History.
- (line 23)
+ (line 25)
* end-of-line (C-e): Commands For Moving. (line 10)
* exchange-point-and-mark (C-x C-x): Miscellaneous Commands.
(line 37)
* export-completions (): Commands For Completion.
(line 44)
* fetch-history (): Commands For History.
- (line 106)
+ (line 108)
* forward-backward-delete-char (): Commands For Text. (line 23)
* forward-char (C-f): Commands For Moving. (line 14)
* forward-search-history (C-s): Commands For History.
- (line 33)
-* forward-word (M-f): Commands For Moving. (line 20)
+ (line 35)
+* forward-word (M-f): Commands For Moving. (line 22)
* glob-complete-word (M-g): Miscellaneous Commands.
(line 103)
* glob-expand-word (C-x *): Miscellaneous Commands.
* history-expand-line (M-^): Miscellaneous Commands.
(line 126)
* history-search-backward (): Commands For History.
- (line 51)
+ (line 53)
* history-search-forward (): Commands For History.
- (line 58)
+ (line 60)
* history-substring-search-backward (): Commands For History.
- (line 65)
+ (line 67)
* history-substring-search-forward (): Commands For History.
- (line 71)
+ (line 73)
* insert-comment (M-#): Miscellaneous Commands.
(line 59)
* insert-completions (M-*): Commands For Completion.
* menu-complete-backward (): Commands For Completion.
(line 39)
* next-history (C-n): Commands For History.
- (line 17)
-* next-screen-line (): Commands For Moving. (line 43)
+ (line 18)
+* next-screen-line (): Commands For Moving. (line 45)
* non-incremental-forward-search-history (M-n): Commands For History.
- (line 45)
+ (line 47)
* non-incremental-reverse-search-history (M-p): Commands For History.
- (line 39)
+ (line 41)
* operate-and-get-next (C-o): Commands For History.
- (line 99)
+ (line 101)
* overwrite-mode (): Commands For Text. (line 77)
* possible-command-completions (C-x !): Commands For Completion.
(line 111)
(line 19)
* previous-history (C-p): Commands For History.
(line 13)
-* previous-screen-line (): Commands For Moving. (line 36)
+* previous-screen-line (): Commands For Moving. (line 38)
* print-last-kbd-macro (): Keyboard Macros. (line 17)
* quoted-insert (C-q or C-v): Commands For Text. (line 28)
* re-read-init-file (C-x C-r): Miscellaneous Commands.
(line 6)
-* redraw-current-line (): Commands For Moving. (line 59)
+* redraw-current-line (): Commands For Moving. (line 61)
* reverse-search-history (C-r): Commands For History.
- (line 27)
+ (line 29)
* revert-line (M-r): Miscellaneous Commands.
(line 26)
* self-insert (a, b, A, 1, !, ...): Commands For Text. (line 32)
(line 33)
* shell-backward-kill-word (): Commands For Killing.
(line 37)
-* shell-backward-word (M-C-b): Commands For Moving. (line 32)
+* shell-backward-word (M-C-b): Commands For Moving. (line 34)
* shell-expand-line (M-C-e): Miscellaneous Commands.
(line 119)
-* shell-forward-word (M-C-f): Commands For Moving. (line 28)
+* shell-forward-word (M-C-f): Commands For Moving. (line 30)
* shell-kill-word (M-C-d): Commands For Killing.
(line 32)
* shell-transpose-words (M-C-t): Commands For Text. (line 58)
* yank (C-y): Commands For Killing.
(line 72)
* yank-last-arg (M-. or M-_): Commands For History.
- (line 87)
+ (line 89)
* yank-nth-arg (M-C-y): Commands For History.
- (line 77)
+ (line 79)
* yank-pop (M-y): Commands For Killing.
(line 75)
\1f
Tag Table:
-Node: Top\7f902
-Node: Introduction\7f2844
-Node: What is Bash?\7f3060
-Node: What is a shell?\7f4196
-Node: Definitions\7f6809
-Node: Basic Shell Features\7f10139
-Node: Shell Syntax\7f11366
-Node: Shell Operation\7f12396
-Node: Quoting\7f13690
-Node: Escape Character\7f15031
-Node: Single Quotes\7f15569
-Node: Double Quotes\7f15921
-Node: ANSI-C Quoting\7f17269
-Node: Locale Translation\7f18666
+Node: Top\7f904
+Node: Introduction\7f2848
+Node: What is Bash?\7f3064
+Node: What is a shell?\7f4200
+Node: Definitions\7f6813
+Node: Basic Shell Features\7f10143
+Node: Shell Syntax\7f11370
+Node: Shell Operation\7f12400
+Node: Quoting\7f13694
+Node: Escape Character\7f15035
+Node: Single Quotes\7f15573
+Node: Double Quotes\7f15925
+Node: ANSI-C Quoting\7f17273
+Node: Locale Translation\7f18670
Node: Creating Internationalized Scripts\7f20076
Node: Comments\7f24277
Node: Shell Commands\7f25047
Node: Compound Commands\7f32656
Node: Looping Constructs\7f33668
Node: Conditional Constructs\7f36190
-Node: Command Grouping\7f51125
-Node: Coprocesses\7f52620
-Node: GNU Parallel\7f55309
-Node: Shell Functions\7f56230
-Node: Shell Parameters\7f64710
-Node: Positional Parameters\7f69451
-Node: Special Parameters\7f70544
-Node: Shell Expansions\7f74008
-Node: Brace Expansion\7f76200
-Node: Tilde Expansion\7f78931
-Node: Shell Parameter Expansion\7f81889
-Node: Command Substitution\7f101660
-Node: Arithmetic Expansion\7f105196
-Node: Process Substitution\7f106212
-Node: Word Splitting\7f107331
-Node: Filename Expansion\7f109778
-Node: Pattern Matching\7f113049
-Node: Quote Removal\7f118389
-Node: Redirections\7f118696
-Node: Executing Commands\7f128908
-Node: Simple Command Expansion\7f129578
-Node: Command Search and Execution\7f131689
-Node: Command Execution Environment\7f134136
-Node: Environment\7f137587
-Node: Exit Status\7f139493
-Node: Signals\7f141554
-Node: Shell Scripts\7f146486
-Node: Shell Builtin Commands\7f149787
-Node: Bourne Shell Builtins\7f151901
-Node: Bash Builtins\7f178454
-Node: Modifying Shell Behavior\7f214905
-Node: The Set Builtin\7f215250
-Node: The Shopt Builtin\7f227207
-Node: Special Builtins\7f244262
-Node: Shell Variables\7f245254
-Node: Bourne Shell Variables\7f245691
-Node: Bash Variables\7f248202
-Node: Bash Features\7f286548
-Node: Invoking Bash\7f287565
-Node: Bash Startup Files\7f293994
-Node: Interactive Shells\7f299289
-Node: What is an Interactive Shell?\7f299700
-Node: Is this Shell Interactive?\7f300365
-Node: Interactive Shell Behavior\7f301192
-Node: Bash Conditional Expressions\7f304956
-Node: Shell Arithmetic\7f310178
-Node: Aliases\7f313510
-Node: Arrays\7f316648
-Node: The Directory Stack\7f323714
-Node: Directory Stack Builtins\7f324514
-Node: Controlling the Prompt\7f328962
-Node: The Restricted Shell\7f331849
-Node: Bash POSIX Mode\7f334734
-Node: Shell Compatibility Mode\7f352799
-Node: Job Control\7f361809
-Node: Job Control Basics\7f362269
-Node: Job Control Builtins\7f368550
-Node: Job Control Variables\7f375235
-Node: Command Line Editing\7f376469
-Node: Introduction and Notation\7f378175
-Node: Readline Interaction\7f380530
-Node: Readline Bare Essentials\7f381721
-Node: Readline Movement Commands\7f383532
-Node: Readline Killing Commands\7f384531
-Node: Readline Arguments\7f386557
-Node: Searching\7f387617
-Node: Readline Init File\7f389881
-Node: Readline Init File Syntax\7f391188
-Node: Conditional Init Constructs\7f417938
-Node: Sample Init File\7f422326
-Node: Bindable Readline Commands\7f425450
-Node: Commands For Moving\7f426991
-Node: Commands For History\7f429221
-Node: Commands For Text\7f434477
-Node: Commands For Killing\7f438605
-Node: Numeric Arguments\7f441396
-Node: Commands For Completion\7f442551
-Node: Keyboard Macros\7f448237
-Node: Miscellaneous Commands\7f448941
-Node: Readline vi Mode\7f455497
-Node: Programmable Completion\7f456477
-Node: Programmable Completion Builtins\7f464526
-Node: A Programmable Completion Example\7f476194
-Node: Using History Interactively\7f481542
-Node: Bash History Facilities\7f482226
-Node: Bash History Builtins\7f485964
-Node: History Interaction\7f492438
-Node: Event Designators\7f497395
-Node: Word Designators\7f498976
-Node: Modifiers\7f501287
-Node: Installing Bash\7f503231
-Node: Basic Installation\7f504350
-Node: Compilers and Options\7f508229
-Node: Compiling For Multiple Architectures\7f508982
-Node: Installation Names\7f510738
-Node: Specifying the System Type\7f512975
-Node: Sharing Defaults\7f513724
-Node: Operation Controls\7f514441
-Node: Optional Features\7f515463
-Node: Reporting Bugs\7f527846
-Node: Major Differences From The Bourne Shell\7f529207
-Node: GNU Free Documentation License\7f550630
-Node: Indexes\7f575810
-Node: Builtin Index\7f576264
-Node: Reserved Word Index\7f583365
-Node: Variable Index\7f585813
-Node: Function Index\7f603229
-Node: Concept Index\7f617227
+Node: Command Grouping\7f51129
+Node: Coprocesses\7f52624
+Node: GNU Parallel\7f55313
+Node: Shell Functions\7f56234
+Node: Shell Parameters\7f64689
+Node: Positional Parameters\7f69417
+Node: Special Parameters\7f70510
+Node: Shell Expansions\7f73974
+Node: Brace Expansion\7f76166
+Node: Tilde Expansion\7f78870
+Node: Shell Parameter Expansion\7f81828
+Node: Command Substitution\7f101591
+Node: Arithmetic Expansion\7f105123
+Node: Process Substitution\7f106139
+Node: Word Splitting\7f107250
+Node: Filename Expansion\7f109697
+Node: Pattern Matching\7f112963
+Node: Quote Removal\7f118689
+Node: Redirections\7f118996
+Node: Executing Commands\7f129227
+Node: Simple Command Expansion\7f129897
+Node: Command Search and Execution\7f132008
+Node: Command Execution Environment\7f134455
+Node: Environment\7f137906
+Node: Exit Status\7f139812
+Node: Signals\7f141873
+Node: Shell Scripts\7f146805
+Node: Shell Builtin Commands\7f150106
+Node: Bourne Shell Builtins\7f152220
+Node: Bash Builtins\7f178788
+Node: Modifying Shell Behavior\7f215239
+Node: The Set Builtin\7f215584
+Node: The Shopt Builtin\7f227541
+Node: Special Builtins\7f244596
+Node: Shell Variables\7f245588
+Node: Bourne Shell Variables\7f246025
+Node: Bash Variables\7f248536
+Node: Bash Features\7f286930
+Node: Invoking Bash\7f287947
+Node: Bash Startup Files\7f294376
+Node: Interactive Shells\7f299621
+Node: What is an Interactive Shell?\7f300032
+Node: Is this Shell Interactive?\7f300697
+Node: Interactive Shell Behavior\7f301524
+Node: Bash Conditional Expressions\7f305288
+Node: Shell Arithmetic\7f310502
+Node: Aliases\7f313834
+Node: Arrays\7f316971
+Node: The Directory Stack\7f324058
+Node: Directory Stack Builtins\7f324858
+Node: Controlling the Prompt\7f329306
+Node: The Restricted Shell\7f332194
+Node: Bash POSIX Mode\7f335079
+Node: Shell Compatibility Mode\7f353144
+Node: Job Control\7f362154
+Node: Job Control Basics\7f362614
+Node: Job Control Builtins\7f368895
+Node: Job Control Variables\7f375580
+Node: Command Line Editing\7f376814
+Node: Introduction and Notation\7f378520
+Node: Readline Interaction\7f380875
+Node: Readline Bare Essentials\7f382066
+Node: Readline Movement Commands\7f383877
+Node: Readline Killing Commands\7f384876
+Node: Readline Arguments\7f386902
+Node: Searching\7f387962
+Node: Readline Init File\7f390208
+Node: Readline Init File Syntax\7f391514
+Node: Conditional Init Constructs\7f418200
+Node: Sample Init File\7f422588
+Node: Bindable Readline Commands\7f425712
+Node: Commands For Moving\7f427253
+Node: Commands For History\7f429624
+Node: Commands For Text\7f435017
+Node: Commands For Killing\7f439145
+Node: Numeric Arguments\7f441936
+Node: Commands For Completion\7f443091
+Node: Keyboard Macros\7f448790
+Node: Miscellaneous Commands\7f449494
+Node: Readline vi Mode\7f456057
+Node: Programmable Completion\7f457037
+Node: Programmable Completion Builtins\7f465777
+Node: A Programmable Completion Example\7f477517
+Node: Using History Interactively\7f482865
+Node: Bash History Facilities\7f483549
+Node: Bash History Builtins\7f487287
+Node: History Interaction\7f493761
+Node: Event Designators\7f498714
+Node: Word Designators\7f500295
+Node: Modifiers\7f502602
+Node: Installing Bash\7f504542
+Node: Basic Installation\7f505661
+Node: Compilers and Options\7f509540
+Node: Compiling For Multiple Architectures\7f510293
+Node: Installation Names\7f512049
+Node: Specifying the System Type\7f514286
+Node: Sharing Defaults\7f515035
+Node: Operation Controls\7f515752
+Node: Optional Features\7f516774
+Node: Reporting Bugs\7f529157
+Node: Major Differences From The Bourne Shell\7f530518
+Node: GNU Free Documentation License\7f551941
+Node: Indexes\7f577121
+Node: Builtin Index\7f577575
+Node: Reserved Word Index\7f584676
+Node: Variable Index\7f587124
+Node: Function Index\7f604540
+Node: Concept Index\7f618538
\1f
End Tag Table
-This is pdfTeX, Version 3.141592653-2.6-1.40.26 (TeX Live 2024/MacPorts 2024.70613_0) (preloaded format=pdfetex 2024.4.9) 4 NOV 2024 18:15
+This is pdfTeX, Version 3.141592653-2.6-1.40.26 (TeX Live 2024/MacPorts 2024.70613_0) (preloaded format=pdfetex 2024.4.9) 7 DEC 2024 09:58
entering extended mode
restricted \write18 enabled.
file:line:error style messages enabled.
%&-line parsing enabled.
-**\input /usr/local/src/bash/bash-20241104/doc/bashref.texi
-(/usr/local/src/bash/bash-20241104/doc/bashref.texi
-(/usr/local/src/bash/bash-20241104/doc/texinfo.tex
+**\input /usr/local/src/bash/bash-20241126/doc/bashref.texi \input /usr/local/s
+rc/bash/bash-20241126/doc/bashref.texi
+(/usr/local/src/bash/bash-20241126/doc/bashref.texi
+(/usr/local/src/bash/bash-20241126/doc/texinfo.tex
Loading texinfo [version 2015-11-22.14]:
\outerhsize=\dimen16
\outervsize=\dimen17
texinfo.tex: doing @include of version.texi
-(/usr/local/src/bash/bash-20241104/doc/version.texi) [1{/opt/local/var/db/texmf
+(/usr/local/src/bash/bash-20241126/doc/version.texi) [1{/opt/local/var/db/texmf
/fonts/map/pdftex/updmap/pdftex.map}] [2]
-(/usr/local/build/bash/bash-20241104/doc/bashref.toc [-1] [-2] [-3]) [-4]
-(/usr/local/build/bash/bash-20241104/doc/bashref.toc)
-(/usr/local/build/bash/bash-20241104/doc/bashref.toc) Chapter 1
+(/usr/local/build/bash/bash-20241126/doc/bashref.toc [-1] [-2] [-3]) [-4]
+(/usr/local/build/bash/bash-20241126/doc/bashref.toc)
+(/usr/local/build/bash/bash-20241126/doc/bashref.toc) Chapter 1
\openout0 = `bashref.toc'.
-(/usr/local/build/bash/bash-20241104/doc/bashref.aux)
+(/usr/local/build/bash/bash-20241126/doc/bashref.aux)
\openout1 = `bashref.aux'.
[1] Chapter 2 [2]
\openout3 = `bashref.vr'.
[8]
-Overfull \hbox (3.12749pt too wide) in paragraph at lines 740--741
+Overfull \hbox (3.12749pt too wide) in paragraph at lines 743--744
@texttt coproc[]|
@hbox(9.34993+3.85005)x43.36464
.etc.
-Overfull \hbox (3.12749pt too wide) in paragraph at lines 741--741
+Overfull \hbox (3.12749pt too wide) in paragraph at lines 744--744
@texttt select[]|
@hbox(9.34993+3.85005)x43.36464
.etc.
-Overfull \hbox (5.95723pt too wide) in paragraph at lines 741--742
+Overfull \hbox (5.95723pt too wide) in paragraph at lines 744--745
@texttt function[]|
@hbox(9.34993+3.85005)x52.03227
[51] [52]
[53] [54] [55] [56] [57] [58] [59] [60] [61] [62] [63] [64] [65] [66] [67]
[68] [69] [70] [71]
-Overfull \hbox (38.26585pt too wide) in paragraph at lines 5747--5747
+Overfull \hbox (38.26585pt too wide) in paragraph at lines 5773--5773
[]@texttt set [-abefhkmnptuvxBCEHPT] [-o @textttsl option-name@texttt ] [--] [
-] [@textttsl ar-gu-ment []@texttt ][]
.etc.
-Overfull \hbox (38.26585pt too wide) in paragraph at lines 5748--5748
+Overfull \hbox (38.26585pt too wide) in paragraph at lines 5774--5774
[]@texttt set [+abefhkmnptuvxBCEHPT] [+o @textttsl option-name@texttt ] [--] [
-] [@textttsl ar-gu-ment []@texttt ][]
texinfo.tex: doing @include of rluser.texi
-(/usr/local/src/bash/bash-20241104/lib/readline/doc/rluser.texi Chapter 8
+(/usr/local/src/bash/bash-20241126/lib/readline/doc/rluser.texi Chapter 8
[127] [128] [129] [130] [131] [132] [133] [134] [135] [136] [137] [138]
-Underfull \hbox (badness 7540) in paragraph at lines 959--965
+Underfull \hbox (badness 7540) in paragraph at lines 960--966
[]@textrm In the ex-am-ple above, @textttsl C-u[] @textrm is bound to the func
-tion
.etc.
-Underfull \hbox (badness 10000) in paragraph at lines 959--965
+Underfull \hbox (badness 10000) in paragraph at lines 960--966
@texttt universal-argument[]@textrm , @textttsl M-DEL[] @textrm is bound to th
e func-tion
.etc.
[139] [140] [141] [142]
-Overfull \hbox (26.43913pt too wide) in paragraph at lines 1204--1204
+Overfull \hbox (26.43913pt too wide) in paragraph at lines 1206--1206
[]@texttt Meta-Control-h: backward-kill-word Text after the function name is i
gnored[]
\openout6 = `bashref.fn'.
[145] [146] [147] [148] [149] [150] [151] [152] [153] [154]
-[155] [156] [157] [158] [159] [160] [161] [162] [163])
+[155] [156] [157] [158] [159] [160] [161] [162] [163] [164])
texinfo.tex: doing @include of hsuser.texi
-(/usr/local/src/bash/bash-20241104/lib/readline/doc/hsuser.texi Chapter 9
-[164] [165] [166] [167] [168] [169] [170]) Chapter 10 [171] [172] [173]
-[174] [175]
-Underfull \hbox (badness 10000) in paragraph at lines 10390--10399
+(/usr/local/src/bash/bash-20241126/lib/readline/doc/hsuser.texi Chapter 9
+[165] [166] [167] [168] [169] [170] [171]) Chapter 10 [172] [173] [174]
+[175] [176]
+Underfull \hbox (badness 10000) in paragraph at lines 10451--10460
[]@textrm All of the fol-low-ing op-tions ex-cept for `@texttt alt-array-implem
entation[]@textrm '[],
.etc.
-Underfull \hbox (badness 10000) in paragraph at lines 10390--10399
+Underfull \hbox (badness 10000) in paragraph at lines 10451--10460
@textrm `@texttt disabled-builtins[]@textrm '[], `@texttt direxpand-default[]@t
extrm '[], `@texttt strict-posix-default[]@textrm '[], and
.@texttt a
.etc.
-[176] [177] [178] [179] Appendix A [180] Appendix B [181] [182] [183] [184]
-[185] [186] [187] Appendix C [188]
+[177] [178] [179] [180] Appendix A [181] Appendix B [182] [183] [184] [185]
+[186] [187] [188] Appendix C [189]
texinfo.tex: doing @include of fdl.texi
-(/usr/local/src/bash/bash-20241104/doc/fdl.texi [189] [190] [191] [192]
-[193] [194] [195]) Appendix D [196] [197] [198] [199] [200] [201] [202]
-[203] [204] [205] )
+(/usr/local/src/bash/bash-20241126/doc/fdl.texi [190] [191] [192] [193]
+[194] [195] [196]) Appendix D [197] [198] [199] [200] [201] [202] [203]
+[204] [205] [206] )
Here is how much of TeX's memory you used:
- 4113 strings out of 495840
- 47653 string characters out of 6171739
- 144767 words of memory out of 5000000
+ 4114 strings out of 495840
+ 47656 string characters out of 6171739
+ 145030 words of memory out of 5000000
5048 multiletter control sequences out of 15000+600000
34315 words of font info for 116 fonts, out of 8000000 for 9000
701 hyphenation exceptions out of 8191
- 16i,6n,16p,331b,983s stack positions out of 10000i,1000n,20000p,200000b,200000s
+ 16i,6n,16p,389b,983s stack positions out of 10000i,1000n,20000p,200000b,200000s
</opt/local/share/texmf-texlive/fonts/type1/public/amsfonts/
cm/cmbx12.pfb></opt/local/share/texmf-texlive/fonts/type1/public/amsfonts/cm/cm
csc10.pfb></opt/local/share/texmf-texlive/fonts/type1/public/amsfonts/cm/cmmi10
lic/amsfonts/cm/cmtt9.pfb></opt/local/share/texmf-texlive/fonts/type1/public/cm
-super/sfrm1095.pfb></opt/local/share/texmf-texlive/fonts/type1/public/cm-super
/sfrm1440.pfb>
-Output written on bashref.pdf (211 pages, 845976 bytes).
+Output written on bashref.pdf (212 pages, 848660 bytes).
PDF statistics:
- 2927 PDF objects out of 2984 (max. 8388607)
- 2668 compressed objects within 27 object streams
- 339 named destinations out of 1000 (max. 500000)
+ 2933 PDF objects out of 2984 (max. 8388607)
+ 2673 compressed objects within 27 object streams
+ 340 named destinations out of 1000 (max. 500000)
1157 words of extra memory for PDF output out of 10000 (max. 10000000)
for @code{Bash}, Version @value{VERSION}.
Bash contains features that appear in other popular shells, and some
-features that only appear in Bash. Some of the shells that Bash has
+features that only appear in Bash.
+Some of the shells that Bash has
borrowed concepts from are the Bourne Shell (@file{sh}), the Korn Shell
(@file{ksh}), and the C-shell (@file{csh} and its successor,
-@file{tcsh}). The following menu breaks the features up into
+@file{tcsh}).
+The following menu breaks the features up into
categories, noting which features were inspired by other shells and
which are specific to Bash.
-This manual is meant as a brief introduction to features found in
-Bash. The Bash manual page should be used as the definitive
+This manual is meant as a brief introduction to features found in Bash.
+The Bash manual page should be used as the definitive
reference on shell behavior.
@menu
A double quote may be quoted within double quotes by preceding it with
a backslash.
-If enabled, history expansion will be performed unless an @samp{!}
+If enabled, history expansion will be performed unless an
+@samp{!}
appearing in double quotes is escaped using a backslash.
The backslash preceding the @samp{!} is not removed.
Prefixing a double-quoted string with a dollar sign (@samp{$}), such
as @verb{|$"hello, world"|},
-will cause the string to be translated according to the current locale.
+causes the string to be translated according to the current locale.
The @code{gettext} infrastructure performs the lookup and
translation, using the @code{LC_MESSAGES}, @code{TEXTDOMAINDIR},
and @code{TEXTDOMAIN} shell variables, as explained below.
If the pattern is stored in a shell variable, quoting the variable
expansion forces the entire pattern to be matched literally.
-The pattern will match if it matches any part of the string.
+The match succeeds if the pattern matches any part of the string.
If you want to force the pattern to match the entire string,
anchor the pattern using the @samp{^} and @samp{$} regular expression
operators.
For example, if a variable @env{var} is declared as local in function
@code{func1}, and @code{func1} calls another function @code{func2},
-references to @env{var} made from within @code{func2} will resolve to the
+references to @env{var} made from within @code{func2} resolve to the
local variable @env{var} from @code{func1}, shadowing any global variable
named @env{var}.
func1
@end example
-The @code{unset} builtin also acts using the same dynamic scope: if a
-variable is local to the current scope, @code{unset} will unset it;
-otherwise the unset will refer to the variable found in any calling scope
+The @code{unset} builtin also acts using the same dynamic scope: if a
+variable is local to the current scope, @code{unset} unsets it;
+otherwise the unset will refer to the variable found in any calling scope
as described above.
-If a variable at the current local scope is unset, it will remain so
+If a variable at the current local scope is unset, it remains so
(appearing as unset)
until it is reset in that scope or until the function returns.
Once the function returns, any instance of the variable at a previous
-scope will become visible.
-If the unset acts on a variable at a previous scope, any instance of a
+scope becomes visible.
+If the unset acts on a variable at a previous scope, any instance of a
variable with that name that had been shadowed will become visible
-(see below how @code{localvar_unset} shell option changes this behavior).
+(see below how the @code{localvar_unset} shell option changes this behavior).
The @option{-f} option to the @code{declare} (@code{typeset})
builtin command (@pxref{Bash Builtins})
-will list function names and definitions.
+lists function names and definitions.
The @option{-F} option to @code{declare} or @code{typeset}
-will list the function names only
+lists the function names only
(and optionally the source file and line number, if the @code{extdebug}
shell option is enabled).
Functions may be exported so that child shell processes
The @option{-f} option to
the @code{unset} builtin
(@pxref{Bourne Shell Builtins})
-will delete a function definition.
+deletes a function definition.
Functions may be recursive.
The @code{FUNCNEST} variable may be used to limit the depth of the
@end example
In the context where an assignment statement is assigning a value
-to a shell variable or array index (@pxref{Arrays}), the @samp{+=}
-operator will append to or add to the variable's previous value.
-This includes arguments to declaration commands such as @code{declare}
-that accept assignment statements.
-When @samp{+=} is applied to a variable for which the @code{integer} attribute
-has been set,
+to a shell variable or array index (@pxref{Arrays}),
+the @samp{+=} operator appends to or adds to
+the variable's previous value.
+This includes arguments to declaration commands such as
+@code{declare} that accept assignment statements.
+When @samp{+=} is applied to a variable
+for which the @code{integer} attribute has been set,
the variable's current value and @var{value} are each evaluated as
arithmetic expressions,
and the sum of the results is assigned as the variable's value.
If the control variable in a @code{for} loop has the nameref attribute,
the list of words can be a list of shell variables, and a name reference
-will be established for each word in the list, in turn, when the loop is
+is established for each word in the list, in turn, when the loop is
executed.
Array variables cannot be given the nameref attribute.
However, nameref variables can reference array variables and subscripted
Namerefs can be unset using the @option{-n} option to the @code{unset} builtin
(@pxref{Bourne Shell Builtins}).
Otherwise, if @code{unset} is executed with the name of a nameref variable
-as an argument, the variable referenced by the nameref variable will be unset.
+as an argument, the variable referenced by the nameref variable is unset.
@node Positional Parameters
@subsection Positional Parameters
and @var{incr}, an optional increment, is an integer.
When integers are supplied, the expression expands to each number between
@var{x} and @var{y}, inclusive.
-When either @var{x} or @var{y} begins with a zero, the shell
-attempts to force all generated terms to contain the same number of digits,
+If either @var{x} or @var{y} begins with a zero,
+each generated term will contain the same number of digits,
zero-padding where necessary.
When letters are supplied, the expression expands to each character
lexicographically between @var{x} and @var{y}, inclusive,
Quoting any part of @var{string} inhibits replacement in the
expansion of the quoted portion, including replacement strings stored
in shell variables.
-Backslash will escape @samp{&} in @var{string}; the backslash is removed
+Backslash escapes @samp{&} in @var{string}; the backslash is removed
in order to permit a literal @samp{&} in the replacement string.
Users should take care if @var{string} is double-quoted to avoid
unwanted interactions between the backslash and double-quoting, since
@item A
The expansion is a string in the form of
an assignment statement or @code{declare} command that, if
-evaluated, will recreate @var{parameter} with its attributes and value.
+evaluated, recreates @var{parameter} with its attributes and value.
@item K
Produces a possibly-quoted version of the value of @var{parameter},
except that it prints the values of
Any side effects of @var{command} take effect immediately
in the current execution environment and persist in the current
environment after the command completes (e.g., the @code{exit} builtin
-will exit the shell).
+exits the shell).
This type of command substitution superficially resembles executing an
unnamed shell function: local variables are created as when a shell
expansion.
If the @code{>(@var{list})} form is used, writing to
-the file will provide input for @var{list}.
+the file provides input for @var{list}.
If the
@code{<(@var{list})} form is used, reading the file
-will obtain the output of @var{list}.
+obtains the output of @var{list}.
Note that no space may appear between the @code{<} or @code{>}
and the left parenthesis, otherwise the construct would be interpreted
as a redirection.
and passed to commands as empty strings.
Unquoted implicit null arguments, resulting from the expansion of
parameters that have no values, are removed.
-Expanding a parameter with no value within double quotes
+Expanding a parameter with no value within double quotes
produces a null field,
which is retained and passed to a command as an empty string.
However, setting @env{GLOBIGNORE} to a non-null value has the effect of
enabling the @code{dotglob}
shell option, so all other filenames beginning with a
-@samp{.} will match.
+@samp{.}
+match.
To get the old behavior of ignoring filenames beginning with a
@samp{.}, make @samp{.*} one of the patterns in @env{GLOBIGNORE}.
The @code{dotglob} option is disabled when @env{GLOBIGNORE}
Matches any string, including the null string.
When the @code{globstar} shell option is enabled, and @samp{*} is used in
a filename expansion context, two adjacent @samp{*}s used as a single
-pattern will match all files and zero or more directories and
+pattern match all files and zero or more directories and
subdirectories.
-If followed by a @samp{/}, two adjacent @samp{*}s will match only
+If followed by a @samp{/}, two adjacent @samp{*}s match only
directories and subdirectories.
@item ?
Matches any single character.
@section Redirections
@cindex redirection
-Before a command is executed, its input and output
-may be @dfn{redirected}
+Before a command is executed, its input and output may be
+@dfn{redirected}
using a special notation interpreted by the shell.
@dfn{Redirection} allows commands' file handles to be
duplicated, opened, closed, made to refer to different files,
Each redirection that may be preceded by a file descriptor number
may instead be preceded by a word of the form @{@var{varname}@}.
In this case, for each redirection operator except
->&- and <&-, the shell will allocate a file descriptor greater
-than 10 and assign it to @{@var{varname}@}.
-If @{@var{varname}@} precedes >&- or <&-,
-the value of @var{varname} defines the file
-descriptor to close.
+@code{>&-}
+and
+@code{<&-},
+the shell allocates a file descriptor greater
+than or equal to 10 and assigns it to @{@var{varname}@}.
+If @{@var{varname}@} precedes
+@code{>&-}
+or
+@code{<&-},
+the value of @var{varname} defines the file descriptor to close.
If @{@var{varname}@} is supplied, the redirection persists beyond
-the scope of the command, which allows the shell programmer to manage
-the file descriptor's lifetime manually without using
+the scope of the command, which allows the shell programmer to
+manage the file descriptor's lifetime manually without using
the @code{exec} builtin.
The @code{varredir_close} shell option manages this behavior
(@pxref{The Shopt Builtin}).
In the following descriptions, if the file descriptor number is
omitted, and the first character of the redirection operator is
-@samp{<}, the redirection refers to the standard input (file
-descriptor 0).
-If the first character of the redirection operator
-is @samp{>}, the redirection refers to the standard output (file
-descriptor 1).
+@samp{<},
+the redirection refers to the standard input (file descriptor 0).
+If the first character of the redirection operator is
+@samp{>},
+the redirection refers to the standard output (file descriptor 1).
The @var{word} following the redirection operator in the following
descriptions, unless otherwise noted, is subjected to
Bash handles several filenames specially when they are used in
redirections, as described in the following table.
If the operating system on which Bash is running provides these
-special files, Bash will use them; otherwise it will emulate them
+special files, Bash uses them; otherwise it emulates them
internally with the behavior described below.
@table @code
[@var{n}]>[|]@var{word}
@end example
-If the redirection operator is @samp{>}, and the @code{noclobber}
-option to the @code{set} builtin has been enabled, the redirection
-will fail if the file whose name results from the expansion of
-@var{word} exists and is a regular file.
+If the redirection operator is
+@samp{>},
+and the
+@code{noclobber}
+option to the
+@code{set}
+builtin has been enabled, the redirection fails if the file
+whose name results from the expansion of @var{word} exists and is
+a regular file.
If the redirection operator is @samp{>|}, or the redirection operator is
@samp{>} and the @code{noclobber} option is not enabled,
Bash attemps the redirection
If the @option{-e} option is supplied with @option{-P}
and @code{cd} cannot successfully determine the current working directory
-after a successful directory change, it will return a non-zero status.
+after a successful directory change, it returns a non-zero status.
On systems that support it, the @option{-@@} option presents the extended
attributes associated with a file as a directory.
In normal operation, @code{getopts} prints diagnostic messages
when it encounters invalid options or missing option arguments.
If the variable @env{OPTERR}
-is set to 0, no error messages will be displayed, even if the first
-character of @code{optstring} is not a colon.
+is set to 0, @code{getopts} does not display any error messages,
+even if the first character of @code{optstring} is not a colon.
If @code{getopts} detects an invalid option, it
places @samp{?} into @var{name} and, if not silent,
When referenced, this variable expands to the name of the shell or shell
script (identical to @code{$0}; @xref{Special Parameters},
for the description of special parameter 0).
-Assigning a value to @code{BASH_ARGV0}
-assigns the same value to @code{$0}.
-If @env{BASH_ARGV0}
+Assigning a value to
+@code{BASH_ARGV0}
+sets @code{$0} to the same value.
+If
+@env{BASH_ARGV0}
is unset, it loses its special properties, even if it is
subsequently reset.
Bash (e.g., 5.2.37(3)-release).
@item BASH_XTRACEFD
-If set to an integer corresponding to a valid file descriptor, Bash
-will write the trace output generated when @samp{set -x}
-is enabled to that file descriptor
+If set to an integer corresponding to a valid file descriptor,
+Bash writes the trace output generated when
+@samp{set -x}
+is enabled to that file descriptor,
instead of the standard error.
This allows tracing output to be separated from diagnostic and error
messages.
-The file descriptor is closed when @code{BASH_XTRACEFD} is unset or assigned
-a new value.
-Unsetting @code{BASH_XTRACEFD} or assigning it the empty string causes the
+The file descriptor is closed when
+@code{BASH_XTRACEFD}
+is unset or assigned a new value.
+Unsetting
+@code{BASH_XTRACEFD}
+or assigning it the empty string causes the
trace output to be sent to the standard error.
-Note that setting @code{BASH_XTRACEFD} to 2 (the standard error file
+Note that setting
+@code{BASH_XTRACEFD}
+to 2 (the standard error file
descriptor) and then unsetting it will result in the standard error
being closed.
Assigning to members of this array variable may be used to modify
directories already in the stack, but the @code{pushd} and @code{popd}
builtins must be used to add and remove directories.
-Assignment to this variable will not change the current directory.
+Assigning to this variable does not change the current directory.
If @env{DIRSTACK}
is unset, it loses its special properties, even if
it is subsequently reset.
This variable can be used with @code{BASH_LINENO} and @code{BASH_SOURCE}.
Each element of @code{FUNCNAME} has corresponding elements in
@code{BASH_LINENO} and @code{BASH_SOURCE} to describe the call stack.
-For instance, @code{$@{FUNCNAME[$i]@}} was called from the file
-@code{$@{BASH_SOURCE[$i+1]@}} at line number @code{$@{BASH_LINENO[$i]@}}.
+For instance,
+@code{$@{FUNCNAME[$i]@}}
+was called from the file
+@code{$@{BASH_SOURCE[$i+1]@}}
+at line number
+@code{$@{BASH_LINENO[$i]@}}.
The @code{caller} builtin displays the current call stack using this
information.
@item FUNCNEST
A numeric value greater than 0 defines a maximum function nesting level.
Function invocations that exceed this nesting level
-will cause the current command to abort.
+cause the current command to abort.
@item GLOBIGNORE
A colon-separated list of patterns defining the set of file names to
The @samp{numeric} specifier treats names consisting solely of digits as
numbers and sorts them using their numeric value
-(so "2" will sort before "10", for example).
+(so ``2'' sorts before ``10'', for example).
When using @samp{numeric}, names containing non-digits sort after all
the all-digit names and are sorted by name using the traditional behavior.
subsequently reset.
@item histchars
-Up to three characters which control history expansion, quick
-substitution, and tokenization (@pxref{History Interaction}).
-The first character is the
-@dfn{history expansion} character,
-the character which begins a history expansion, normally @samp{!}.
-The second character is the
-character which signifies "quick substitution" when seen as the first
-character on a line, normally @samp{^}.
-The optional third character is the
-character which indicates that the remainder of the line is a comment when
-found as the first character of a word, usually @samp{#}.
-The history
-comment character disables history substitution for the
-remaining words on the line.
-It does not necessarily cause the shell
-parser to treat the rest of the line as a comment.
+The two or three characters which control history expansion,
+quick substitution, and tokenization
+(@pxref{History Interaction}).
+The first character is the @dfn{history expansion} character,
+the character which begins a history expansion, normally
+@samp{!}.
+The second character is the ``quick substitution'' character, normally
+@samp{^}.
+When it appears as the first character on the line,
+history substitution repeats the previous command,
+replacing one string with another.
+The optional third character is the character which indicates that
+the remainder of the line is a comment when found as the first character
+of a word, usually @samp{#}.
+The history comment character disables history substitution
+for the remaining words on the line.
+It does not necessarily cause the shell parser to treat the rest of the
+line as a comment.
@item HISTCMD
The history number, or index in the history list, of the current
command.
-Assignments to @env{HISTCMD} are ignored.
+Assignments to @env{HISTCMD}
+have no effect.
If @env{HISTCMD}
is unset, it loses its special properties,
even if it is subsequently reset.
current line to be removed from the history list before that line
is saved.
Any value not in the above list is ignored.
-If @env{HISTCONTROL} is unset, or does not include a valid value,
-all lines read by the shell parser are saved on the history list,
+If @env{HISTCONTROL} is unset, or does not include a valid value,
+Bash saves all lines read by the shell parser on the history list,
subject to the value of @env{HISTIGNORE}.
-The second and subsequent lines of a multi-line compound command are
-not tested, and are added to the history regardless of the value of
-@env{HISTCONTROL} if the first line of the command was saved.
+If the first line of a multi-line compound command was saved,
+the second and subsequent lines are not tested,
+and are added to the history regardless of the value of
+@env{HISTCONTROL}.
If the first line was not saved, the second and subsequent lines of
-the command are not saved, either.
+the command are not saved either.
@item HISTFILE
The name of the file to which the command history is saved.
A colon-separated list of patterns used to decide which command
lines should be saved on the history list.
If a command line matches one of the patterns in the value of
-@code{HISTIGNORE}, it is not saved on the history list.
-Each pattern is
-anchored at the beginning of the line and must match the complete
-line (Bash will not implicitly append a @samp{*}).
-Each pattern is tested
-against the line after the checks specified by @env{HISTCONTROL}
+@code{HISTIGNORE},
+it is not saved on the history list.
+Each pattern is anchored at the
+beginning of the line and must match the complete line
+(Bash does not implicitly append a
+@samp{*}).
+Each pattern is tested against the line
+after the checks specified by
+@env{HISTCONTROL}
are applied.
-In addition to the normal shell pattern matching characters, @samp{&}
+In addition to the normal shell pattern matching characters,
+@samp{&}
matches the previous history line.
-@samp{&} may be escaped using a backslash; the backslash is removed
-before attempting a match.
-The second and subsequent lines of a multi-line compound command are
-not tested, and are added to the history regardless of the value of
-@env{HISTIGNORE}, if the first line was saved.
+A backslash escapes the
+@samp{&};
+the backslash is removed before attempting a match.
+If the first line of a multi-line compound command was saved,
+the second and subsequent lines are not tested,
+and are added to the history regardless of the value of
+@env{HISTIGNORE}.
If the first line was not saved, the second and subsequent lines of
-the command are not saved, either.
+the command are not saved either.
The pattern matching honors the setting of the @code{extglob} shell
option.
the next time hostname completion is attempted after the
value is changed, Bash adds the contents of the new file to the
existing list.
-If @env{HOSTFILE} is set, but has no value, or does not name a readable file,
+If @env{HOSTFILE}
+is set, but has no value, or does not name a readable file,
Bash attempts to read
-@file{/etc/hosts} to obtain the list of possible hostname completions.
-When @env{HOSTFILE} is unset, the hostname list is cleared.
+@file{/etc/hosts}
+to obtain the list of possible hostname completions.
+When @env{HOSTFILE} is unset,
+Bash clears the hostname list.
@item HOSTNAME
The name of the current host.
@item RANDOM
Each time this parameter is referenced, it expands to a random integer
-between 0 and 32767. Assigning a value to this
-variable initializes (seeds) the random number generator.
-Seeding the random number generator with the same constant value will
-produce the same sequence of values.
+between 0 and 32767.
+Assigning a value to
+@env{RANDOM}
+initializes (seeds) the sequence of random numbers.
+Seeding the random number generator with the same constant value
+produces the same sequence of values.
If @env{RANDOM}
is unset, it loses its special properties, even if it is
subsequently reset.
The optional @var{p} is a digit specifying the precision, the number of
fractional digits after a decimal point.
A value of 0 causes no decimal point or fraction to be output.
-@code{time} will print at most six digits after the decimal point;
+@code{time} prints at most six digits after the decimal point;
values of @var{p} greater than 6 are changed to 6.
If @var{p} is not specified,
@code{time} prints three digits after the decimal point.
After reading that file, it looks for @file{~/.bash_profile},
@file{~/.bash_login}, and @file{~/.profile}, in that order, and reads
and executes commands from the first one that exists and is readable.
-The @option{--noprofile} option may be used when the shell is started to
-inhibit this behavior.
+The
+@option{--noprofile}
+option inhibits this behavior.
When an interactive login shell exits,
or a non-interactive login shell executes the @code{exit} builtin command,
When Bash runs as an interactive shell that is not a login shell, it
reads and executes commands from @file{~/.bashrc}, if that file exists.
-This may be inhibited by using the @option{--norc} option.
+The @option{--norc} option inhibits this behavior.
The @option{--rcfile @var{file}} option
causes Bash to
use @var{file} instead of @file{~/.bashrc}.
shell with the @option{--login} option, it first attempts to read
and execute commands from @file{/etc/profile} and @file{~/.profile}, in
that order.
-The @option{--noprofile} option will inhibit this behavior.
+The @option{--noprofile} option inhibits this behavior.
When invoked as an interactive shell with the name @code{sh}, Bash
looks for the variable @env{ENV}, expands its value if it is defined,
determines it is being run non-interactively in this fashion,
it reads and executes commands from @file{~/.bashrc}, if that
file exists and is readable.
-It will not do this if invoked as @code{sh}.
-The @option{--norc} option will inhibit this behavior, and the
-@option{--rcfile} option
-will make Bash use a different file instead of
-@file{~/.bashrc}, but neither
+Bash does not read this file if invoked as @code{sh}.
+The
+@option{--norc}
+option inhibits this behavior, and the
+@option{--rcfile}
+option makes Bash use a different file instead of
+@file{~/.bashrc},
+but neither
@code{rshd} nor @code{sshd} generally invoke the shell with those
options or allow them to be specified.
Bash handles several filenames specially when they are used in
expressions.
If the operating system on which Bash is running provides these
-special files, Bash will use them; otherwise it will emulate them
+special files, Bash uses them; otherwise it emulates them
internally with this behavior:
If the @var{file} argument to one of the primaries is of the form
@file{/dev/fd/@var{N}}, then Bash checks file descriptor @var{N}.
alias definitions on a separate line, and do not use @code{alias}
in compound commands.
-For almost every purpose, shell functions are preferred over aliases.
+For almost every purpose, shell functions are preferable to aliases.
@node Arrays
@section Arrays
@cindex arrays
-Bash provides one-dimensional indexed and associative array variables.
-Any variable may be used as an indexed array;
-the @code{declare} builtin will explicitly declare an array.
+Bash
+provides one-dimensional indexed and associative array variables.
+Any variable may be used as an indexed array; the
+@code{declare}
+builtin explicitly declares an array.
There is no maximum
limit on the size of an array, nor any requirement that members
be indexed or assigned contiguously.
-Indexed arrays are referenced using integers (including arithmetic
-expressions (@pxref{Shell Arithmetic})) and are zero-based;
+Indexed arrays are referenced using arithmetic expressions
+that must expand to an integer (@pxref{Shell Arithmetic})) and are zero-based;
associative arrays use arbitrary strings.
Unless otherwise noted, indexed array indices must be non-negative integers.
declare -a @var{name}
@end example
@noindent
+(@pxref{Bash Builtins}).
The syntax
@example
declare -a @var{name}[@var{subscript}]
@var{name}, so negative indices count back from the end of the
array, and an index of -1 references the last element.
-The @samp{+=} operator will append to an array variable when assigning
+The @samp{+=} operator appends to an array variable when assigning
using the compound assignment syntax; see @ref{Shell Parameters} above.
An array element is referenced using
Referencing an array variable without a subscript is equivalent to
referencing with a subscript of 0.
-Any reference to a variable using a valid subscript is valid, and
-Bash will create an array if necessary.
+Any reference to a variable using a valid subscript is valid;
+Bash creates an array if necessary.
An array variable is considered set if a subscript has been assigned a
value.
@item \\
A backslash.
@item \[
-Begin a sequence of non-printing characters. This could be used to
+Begin a sequence of non-printing characters.
+Thiss could be used to
embed a terminal control sequence into the prompt.
@item \]
End a sequence of non-printing characters.
@appendixsec Implementation Differences From The SVR4.2 Shell
Since Bash is a completely new implementation, it does not suffer from
-many of the limitations of the SVR4.2 shell. For instance:
+many of the limitations of the SVR4.2 shell.
+For instance:
@itemize @bullet
statement.
@item
-Bash does not allow unbalanced quotes. The SVR4.2 shell will silently
+Bash does not allow unbalanced quotes.
+The SVR4.2 shell will silently
insert a needed closing quote at @code{EOF} under certain circumstances.
This can be the cause of some hard-to-find errors.
@item
The SVR4.2 shell uses a baroque memory management scheme based on
-trapping @code{SIGSEGV}. If the shell is started from a process with
+trapping @code{SIGSEGV}.
+If the shell is started from a process with
@code{SIGSEGV} blocked (e.g., by using the @code{system()} C library
function call), it misbehaves badly.
@item
Bash allows multiple option arguments when it is invoked (@code{-x -v});
-the SVR4.2 shell allows only one option argument (@code{-xv}). In
-fact, some versions of the shell dump core if the second argument begins
+the SVR4.2 shell allows only one option argument (@code{-xv}).
+In fact, some versions of the shell dump core if the second argument begins
with a @samp{-}.
@item
@numsubsecentry{Quote Removal}{3.5.9}{Quote Removal}{40}
@numsecentry{Redirections}{3.6}{Redirections}{40}
@numsubsecentry{Redirecting Input}{3.6.1}{}{41}
-@numsubsecentry{Redirecting Output}{3.6.2}{}{41}
+@numsubsecentry{Redirecting Output}{3.6.2}{}{42}
@numsubsecentry{Appending Redirected Output}{3.6.3}{}{42}
@numsubsecentry{Redirecting Standard Output and Standard Error}{3.6.4}{}{42}
@numsubsecentry{Appending Standard Output and Standard Error}{3.6.5}{}{42}
-@numsubsecentry{Here Documents}{3.6.6}{}{42}
+@numsubsecentry{Here Documents}{3.6.6}{}{43}
@numsubsecentry{Here Strings}{3.6.7}{}{43}
@numsubsecentry{Duplicating File Descriptors}{3.6.8}{}{43}
-@numsubsecentry{Moving File Descriptors}{3.6.9}{}{43}
+@numsubsecentry{Moving File Descriptors}{3.6.9}{}{44}
@numsubsecentry{Opening File Descriptors for Reading and Writing}{3.6.10}{}{44}
@numsecentry{Executing Commands}{3.7}{Executing Commands}{44}
@numsubsecentry{Simple Command Expansion}{3.7.1}{Simple Command Expansion}{44}
@numsubsecentry{Some Miscellaneous Commands}{8.4.8}{Miscellaneous Commands}{153}
@numsecentry{Readline vi Mode}{8.5}{Readline vi Mode}{156}
@numsecentry{Programmable Completion}{8.6}{Programmable Completion}{156}
-@numsecentry{Programmable Completion Builtins}{8.7}{Programmable Completion Builtins}{158}
-@numsecentry{A Programmable Completion Example}{8.8}{A Programmable Completion Example}{162}
-@numchapentry{Using History Interactively}{9}{Using History Interactively}{165}
-@numsecentry{Bash History Facilities}{9.1}{Bash History Facilities}{165}
-@numsecentry{Bash History Builtins}{9.2}{Bash History Builtins}{166}
-@numsecentry{History Expansion}{9.3}{History Interaction}{168}
-@numsubsecentry{Event Designators}{9.3.1}{Event Designators}{169}
-@numsubsecentry{Word Designators}{9.3.2}{Word Designators}{170}
-@numsubsecentry{Modifiers}{9.3.3}{Modifiers}{171}
-@numchapentry{Installing Bash}{10}{Installing Bash}{172}
-@numsecentry{Basic Installation}{10.1}{Basic Installation}{172}
-@numsecentry{Compilers and Options}{10.2}{Compilers and Options}{173}
-@numsecentry{Compiling For Multiple Architectures}{10.3}{Compiling For Multiple Architectures}{173}
-@numsecentry{Installation Names}{10.4}{Installation Names}{174}
-@numsecentry{Specifying the System Type}{10.5}{Specifying the System Type}{174}
-@numsecentry{Sharing Defaults}{10.6}{Sharing Defaults}{174}
-@numsecentry{Operation Controls}{10.7}{Operation Controls}{175}
-@numsecentry{Optional Features}{10.8}{Optional Features}{175}
-@appentry{Reporting Bugs}{A}{Reporting Bugs}{181}
-@appentry{Major Differences From The Bourne Shell}{B}{Major Differences From The Bourne Shell}{182}
-@appsecentry{Implementation Differences From The SVR4.2 Shell}{B.1}{}{187}
-@appentry{GNU Free Documentation License}{C}{GNU Free Documentation License}{189}
-@appentry{Indexes}{D}{Indexes}{197}
-@appsecentry{Index of Shell Builtin Commands}{D.1}{Builtin Index}{197}
-@appsecentry{Index of Shell Reserved Words}{D.2}{Reserved Word Index}{198}
-@appsecentry{Parameter and Variable Index}{D.3}{Variable Index}{199}
-@appsecentry{Function Index}{D.4}{Function Index}{201}
-@appsecentry{Concept Index}{D.5}{Concept Index}{203}
+@numsecentry{Programmable Completion Builtins}{8.7}{Programmable Completion Builtins}{159}
+@numsecentry{A Programmable Completion Example}{8.8}{A Programmable Completion Example}{163}
+@numchapentry{Using History Interactively}{9}{Using History Interactively}{166}
+@numsecentry{Bash History Facilities}{9.1}{Bash History Facilities}{166}
+@numsecentry{Bash History Builtins}{9.2}{Bash History Builtins}{167}
+@numsecentry{History Expansion}{9.3}{History Interaction}{169}
+@numsubsecentry{Event Designators}{9.3.1}{Event Designators}{170}
+@numsubsecentry{Word Designators}{9.3.2}{Word Designators}{171}
+@numsubsecentry{Modifiers}{9.3.3}{Modifiers}{172}
+@numchapentry{Installing Bash}{10}{Installing Bash}{173}
+@numsecentry{Basic Installation}{10.1}{Basic Installation}{173}
+@numsecentry{Compilers and Options}{10.2}{Compilers and Options}{174}
+@numsecentry{Compiling For Multiple Architectures}{10.3}{Compiling For Multiple Architectures}{174}
+@numsecentry{Installation Names}{10.4}{Installation Names}{175}
+@numsecentry{Specifying the System Type}{10.5}{Specifying the System Type}{175}
+@numsecentry{Sharing Defaults}{10.6}{Sharing Defaults}{175}
+@numsecentry{Operation Controls}{10.7}{Operation Controls}{176}
+@numsecentry{Optional Features}{10.8}{Optional Features}{176}
+@appentry{Reporting Bugs}{A}{Reporting Bugs}{182}
+@appentry{Major Differences From The Bourne Shell}{B}{Major Differences From The Bourne Shell}{183}
+@appsecentry{Implementation Differences From The SVR4.2 Shell}{B.1}{}{188}
+@appentry{GNU Free Documentation License}{C}{GNU Free Documentation License}{190}
+@appentry{Indexes}{D}{Indexes}{198}
+@appsecentry{Index of Shell Builtin Commands}{D.1}{Builtin Index}{198}
+@appsecentry{Index of Shell Reserved Words}{D.2}{Reserved Word Index}{199}
+@appsecentry{Parameter and Variable Index}{D.3}{Variable Index}{200}
+@appsecentry{Function Index}{D.4}{Function Index}{202}
+@appsecentry{Concept Index}{D.5}{Concept Index}{204}
routine call or _\be_\bx_\bp_\br does not correspond to a valid position in
the call stack.
- c\bcd\bd [-\b-L\bL] [-@] [_\bd_\bi_\br]
- c\bcd\bd -\b-P\bP [-\b-e\be] [-@] [_\bd_\bi_\br]
+ c\bcd\bd [-\b-L\bL] [-\b-@\b@] [_\bd_\bi_\br]
+ c\bcd\bd -\b-P\bP [-\b-e\be] [-\b-@\b@] [_\bd_\bi_\br]
Change the current directory to _\bd_\bi_\br. if _\bd_\bi_\br is not supplied,
the value of the H\bHO\bOM\bME\bE shell variable is used as _\bd_\bi_\br. The vari-
able C\bCD\bDP\bPA\bAT\bTH\bH exists, and _\bd_\bi_\br does not begin with a slash (/), c\bcd\bd
If the -\b-e\be option is supplied with -\b-P\bP, and c\bcd\bd cannot successfully
determine the current working directory after a successful di-
- rectory change, it will return a non-zero status.
+ rectory change, it returns a non-zero status.
On systems that support it, the -\b-@\b@ option presents the extended
attributes associated with a file as a directory.
e\ben\bna\bab\bbl\ble\bed\bd Names of enabled shell builtins.
e\bex\bxp\bpo\bor\brt\bt Names of exported shell variables. May also be
specified as -\b-e\be.
- f\bfi\bil\ble\be File names. May also be specified as -\b-f\bf.
+ f\bfi\bil\ble\be File and directory names, similar to r\bre\bea\bad\bdl\bli\bin\bne\be's
+ filename completion. May also be specified as
+ -\b-f\bf.
f\bfu\bun\bnc\bct\bti\bio\bon\bn
Names of shell functions.
g\bgr\bro\bou\bup\bp Group names. May also be specified as -\b-g\bg.
of _\bo_\bp_\bt_\bs_\bt_\br_\bi_\bn_\bg is a colon, g\bge\bet\bto\bop\bpt\bts\bs uses _\bs_\bi_\bl_\be_\bn_\bt error reporting.
In normal operation, g\bge\bet\bto\bop\bpt\bts\bs prints diagnostic messages when it
encounters invalid options or missing option arguments. If the
- variable O\bOP\bPT\bTE\bER\bRR\bR is set to 0, no error messages will be dis-
- played, even if the first character of _\bo_\bp_\bt_\bs_\bt_\br_\bi_\bn_\bg is not a colon.
+ variable O\bOP\bPT\bTE\bER\bRR\bR is set to 0, g\bge\bet\bto\bop\bpt\bts\bs does not display any error
+ messages, even if the first character of _\bo_\bp_\bt_\bs_\bt_\br_\bi_\bn_\bg is not a
+ colon.
If g\bge\bet\bto\bop\bpt\bts\bs detects an invalid option, it places ? into _\bn_\ba_\bm_\be and,
- if not silent, prints an error message and unsets O\bOP\bPT\bTA\bAR\bRG\bG. If
- g\bge\bet\bto\bop\bpt\bts\bs is silent, it assigns the option character found to O\bOP\bP-\b-
+ if not silent, prints an error message and unsets O\bOP\bPT\bTA\bAR\bRG\bG. If
+ g\bge\bet\bto\bop\bpt\bts\bs is silent, it assigns the option character found to O\bOP\bP-\b-
T\bTA\bAR\bRG\bG and does not print a diagnostic message.
- If a required argument is not found, and g\bge\bet\bto\bop\bpt\bts\bs is not silent,
+ If a required argument is not found, and g\bge\bet\bto\bop\bpt\bts\bs is not silent,
it sets the value of _\bn_\ba_\bm_\be to a question mark (?\b?), unsets O\bOP\bPT\bTA\bAR\bRG\bG,
- and prints a diagnostic message. If g\bge\bet\bto\bop\bpt\bts\bs is silent, it sets
- the value of _\bn_\ba_\bm_\be to a colon (:\b:) and sets O\bOP\bPT\bTA\bAR\bRG\bG to the option
+ and prints a diagnostic message. If g\bge\bet\bto\bop\bpt\bts\bs is silent, it sets
+ the value of _\bn_\ba_\bm_\be to a colon (:\b:) and sets O\bOP\bPT\bTA\bAR\bRG\bG to the option
character found.
- g\bge\bet\bto\bop\bpt\bts\bs returns true if an option, specified or unspecified, is
+ g\bge\bet\bto\bop\bpt\bts\bs returns true if an option, specified or unspecified, is
found. It returns false if the end of options is encountered or
an error occurs.
h\bha\bas\bsh\bh [-\b-l\blr\br] [-\b-p\bp _\bf_\bi_\bl_\be_\bn_\ba_\bm_\be] [-\b-d\bdt\bt] [_\bn_\ba_\bm_\be]
Each time h\bha\bas\bsh\bh is invoked, it remembers the full pathname of the
- command _\bn_\ba_\bm_\be as determined by searching the directories in
- $\b$P\bPA\bAT\bTH\bH. Any previously-remembered pathname associated with _\bn_\ba_\bm_\be
- is discarded. If the -\b-p\bp option is supplied, h\bha\bas\bsh\bh uses _\bf_\bi_\bl_\be_\bn_\ba_\bm_\be
+ command _\bn_\ba_\bm_\be as determined by searching the directories in
+ $\b$P\bPA\bAT\bTH\bH. Any previously-remembered pathname associated with _\bn_\ba_\bm_\be
+ is discarded. If the -\b-p\bp option is supplied, h\bha\bas\bsh\bh uses _\bf_\bi_\bl_\be_\bn_\ba_\bm_\be
as the full pathname of the command.
- The -\b-r\br option causes the shell to forget all remembered loca-
- tions. Assigning to the P\bPA\bAT\bTH\bH variable also clears all hashed
- filenames. The -\b-d\bd option causes the shell to forget the remem-
+ The -\b-r\br option causes the shell to forget all remembered loca-
+ tions. Assigning to the P\bPA\bAT\bTH\bH variable also clears all hashed
+ filenames. The -\b-d\bd option causes the shell to forget the remem-
bered location of each _\bn_\ba_\bm_\be.
If the -\b-t\bt option is supplied, h\bha\bas\bsh\bh prints the full pathname cor-
- responding to each _\bn_\ba_\bm_\be. If multiple _\bn_\ba_\bm_\be arguments are sup-
- plied with -\b-t\bt, h\bha\bas\bsh\bh prints the _\bn_\ba_\bm_\be before the corresponding
+ responding to each _\bn_\ba_\bm_\be. If multiple _\bn_\ba_\bm_\be arguments are sup-
+ plied with -\b-t\bt, h\bha\bas\bsh\bh prints the _\bn_\ba_\bm_\be before the corresponding
hashed full pathname. The -\b-l\bl option displays output in a format
that may be reused as input.
- If no arguments are given, or if only -\b-l\bl is supplied, h\bha\bas\bsh\bh
- prints information about remembered commands. The -\b-t\bt, -\b-d\bd, and
- -\b-p\bp options (the options that act on the _\bn_\ba_\bm_\be arguments) are mu-
+ If no arguments are given, or if only -\b-l\bl is supplied, h\bha\bas\bsh\bh
+ prints information about remembered commands. The -\b-t\bt, -\b-d\bd, and
+ -\b-p\bp options (the options that act on the _\bn_\ba_\bm_\be arguments) are mu-
tually exclusive. Only one will be active. If more than one is
- supplied, -\b-t\bt has higher priority than -\b-p\bp, and both have higher
+ supplied, -\b-t\bt has higher priority than -\b-p\bp, and both have higher
priority than -\b-d\bd.
- The return status is zero unless a _\bn_\ba_\bm_\be is not found or an in-
+ The return status is zero unless a _\bn_\ba_\bm_\be is not found or an in-
valid option is supplied.
h\bhe\bel\blp\bp [-\b-d\bdm\bms\bs] [_\bp_\ba_\bt_\bt_\be_\br_\bn]
- Display helpful information about builtin commands. If _\bp_\ba_\bt_\bt_\be_\br_\bn
- is specified, h\bhe\bel\blp\bp gives detailed help on all commands matching
- _\bp_\ba_\bt_\bt_\be_\br_\bn; otherwise it displays a list of all the builtins and
+ Display helpful information about builtin commands. If _\bp_\ba_\bt_\bt_\be_\br_\bn
+ is specified, h\bhe\bel\blp\bp gives detailed help on all commands matching
+ _\bp_\ba_\bt_\bt_\be_\br_\bn; otherwise it displays a list of all the builtins and
shell compound commands.
-\b-d\bd Display a short description of each _\bp_\ba_\bt_\bt_\be_\br_\bn
-\b-m\bm Display the description of each _\bp_\ba_\bt_\bt_\be_\br_\bn in a manpage-like
h\bhi\bis\bst\bto\bor\bry\by -\b-a\ban\bnr\brw\bw [_\bf_\bi_\bl_\be_\bn_\ba_\bm_\be]
h\bhi\bis\bst\bto\bor\bry\by -\b-p\bp _\ba_\br_\bg [_\ba_\br_\bg ...]
h\bhi\bis\bst\bto\bor\bry\by -\b-s\bs _\ba_\br_\bg [_\ba_\br_\bg ...]
- With no options, display the command history list with numbers.
- Entries prefixed with a *\b* have been modified. An argument of _\bn
- lists only the last _\bn entries. If the shell variable H\bHI\bIS\bST\bTT\bTI\bIM\bME\bE-\b-
- F\bFO\bOR\bRM\bMA\bAT\bT is set and not null, it is used as a format string for
- _\bs_\bt_\br_\bf_\bt_\bi_\bm_\be(3) to display the time stamp associated with each dis-
- played history entry. If h\bhi\bis\bst\bto\bor\bry\by uses H\bHI\bIS\bST\bTT\bTI\bIM\bME\bEF\bFO\bOR\bRM\bMA\bAT\bT, it does
- not print an intervening space between the formatted time stamp
+ With no options, display the command history list with numbers.
+ Entries prefixed with a *\b* have been modified. An argument of _\bn
+ lists only the last _\bn entries. If the shell variable H\bHI\bIS\bST\bTT\bTI\bIM\bME\bE-\b-
+ F\bFO\bOR\bRM\bMA\bAT\bT is set and not null, it is used as a format string for
+ _\bs_\bt_\br_\bf_\bt_\bi_\bm_\be(3) to display the time stamp associated with each dis-
+ played history entry. If h\bhi\bis\bst\bto\bor\bry\by uses H\bHI\bIS\bST\bTT\bTI\bIM\bME\bEF\bFO\bOR\bRM\bMA\bAT\bT, it does
+ not print an intervening space between the formatted time stamp
and the history entry.
If _\bf_\bi_\bl_\be_\bn_\ba_\bm_\be is supplied, h\bhi\bis\bst\bto\bor\bry\by uses it as the name of the his-
- tory file; if not, it uses the value of H\bHI\bIS\bST\bTF\bFI\bIL\bLE\bE. If _\bf_\bi_\bl_\be_\bn_\ba_\bm_\be
- is not supplied and H\bHI\bIS\bST\bTF\bFI\bIL\bLE\bE is unset or null, the -\b-a\ba,\b, -\b-n\bn,\b, -\b-r\br,\b,
+ tory file; if not, it uses the value of H\bHI\bIS\bST\bTF\bFI\bIL\bLE\bE. If _\bf_\bi_\bl_\be_\bn_\ba_\bm_\be
+ is not supplied and H\bHI\bIS\bST\bTF\bFI\bIL\bLE\bE is unset or null, the -\b-a\ba,\b, -\b-n\bn,\b, -\b-r\br,\b,
and -\b-w\bw options have no effect.
Options, if supplied, have the following meanings:
can be used with the other options to replace the history
list.
-\b-d\bd _\bo_\bf_\bf_\bs_\be_\bt
- Delete the history entry at position _\bo_\bf_\bf_\bs_\be_\bt. If _\bo_\bf_\bf_\bs_\be_\bt
+ Delete the history entry at position _\bo_\bf_\bf_\bs_\be_\bt. If _\bo_\bf_\bf_\bs_\be_\bt
is negative, it is interpreted as relative to one greater
than the last history position, so negative indices count
- back from the end of the history, and an index of -1
+ back from the end of the history, and an index of -1
refers to the current h\bhi\bis\bst\bto\bor\bry\by -\b-d\bd command.
-\b-d\bd _\bs_\bt_\ba_\br_\bt-_\be_\bn_\bd
- Delete the range of history entries between positions
- _\bs_\bt_\ba_\br_\bt and _\be_\bn_\bd, inclusive. Positive and negative values
+ Delete the range of history entries between positions
+ _\bs_\bt_\ba_\br_\bt and _\be_\bn_\bd, inclusive. Positive and negative values
for _\bs_\bt_\ba_\br_\bt and _\be_\bn_\bd are interpreted as described above.
- -\b-a\ba Append the history lines to the history file. These are
- history lines entered since the beginning of the current
- b\bba\bas\bsh\bh session, but not already appended to the history
+ -\b-a\ba Append the history lines to the history file. These are
+ history lines entered since the beginning of the current
+ b\bba\bas\bsh\bh session, but not already appended to the history
file.
- -\b-n\bn Read the history lines not already read from the history
+ -\b-n\bn Read the history lines not already read from the history
file and add them to the current history list. These are
lines appended to the history file since the beginning of
the current b\bba\bas\bsh\bh session.
rent history list.
-\b-w\bw Write the current history list to the history file, over-
writing the history file.
- -\b-p\bp Perform history substitution on the following _\ba_\br_\bg_\bs and
- display the result on the standard output, without stor-
- ing the results in the history list. Each _\ba_\br_\bg must be
+ -\b-p\bp Perform history substitution on the following _\ba_\br_\bg_\bs and
+ display the result on the standard output, without stor-
+ ing the results in the history list. Each _\ba_\br_\bg must be
quoted to disable normal history expansion.
- -\b-s\bs Store the _\ba_\br_\bg_\bs in the history list as a single entry.
- The last command in the history list is removed before
+ -\b-s\bs Store the _\ba_\br_\bg_\bs in the history list as a single entry.
+ The last command in the history list is removed before
adding the _\ba_\br_\bg_\bs.
- If the H\bHI\bIS\bST\bTT\bTI\bIM\bME\bEF\bFO\bOR\bRM\bMA\bAT\bT variable is set, h\bhi\bis\bst\bto\bor\bry\by writes the time
+ If the H\bHI\bIS\bST\bTT\bTI\bIM\bME\bEF\bFO\bOR\bRM\bMA\bAT\bT variable is set, h\bhi\bis\bst\bto\bor\bry\by writes the time
stamp information associated with each history entry to the his-
- tory file, marked with the history comment character as de-
- scribed above. When the history file is read, lines beginning
- with the history comment character followed immediately by a
- digit are interpreted as timestamps for the following history
+ tory file, marked with the history comment character as de-
+ scribed above. When the history file is read, lines beginning
+ with the history comment character followed immediately by a
+ digit are interpreted as timestamps for the following history
entry.
- The return value is 0 unless an invalid option is encountered,
- an error occurs while reading or writing the history file, an
+ The return value is 0 unless an invalid option is encountered,
+ an error occurs while reading or writing the history file, an
invalid _\bo_\bf_\bf_\bs_\be_\bt or range is supplied as an argument to -\b-d\bd, or the
history expansion supplied as an argument to -\b-p\bp fails.
The first form lists the active jobs. The options have the fol-
lowing meanings:
-\b-l\bl List process IDs in addition to the normal information.
- -\b-n\bn Display information only about jobs that have changed
+ -\b-n\bn Display information only about jobs that have changed
status since the user was last notified of their status.
- -\b-p\bp List only the process ID of the job's process group
+ -\b-p\bp List only the process ID of the job's process group
leader.
-\b-r\br Display only running jobs.
-\b-s\bs Display only stopped jobs.
- If _\bj_\bo_\bb_\bs_\bp_\be_\bc is supplied, j\bjo\bob\bbs\bs restricts output to information
+ If _\bj_\bo_\bb_\bs_\bp_\be_\bc is supplied, j\bjo\bob\bbs\bs restricts output to information
about that job. The return status is 0 unless an invalid option
is encountered or an invalid _\bj_\bo_\bb_\bs_\bp_\be_\bc is supplied.
k\bki\bil\bll\bl [-\b-s\bs _\bs_\bi_\bg_\bs_\bp_\be_\bc | -\b-n\bn _\bs_\bi_\bg_\bn_\bu_\bm | -\b-_\bs_\bi_\bg_\bs_\bp_\be_\bc] _\bi_\bd [ ... ]
k\bki\bil\bll\bl -\b-l\bl|-\b-L\bL [_\bs_\bi_\bg_\bs_\bp_\be_\bc | _\be_\bx_\bi_\bt_\b__\bs_\bt_\ba_\bt_\bu_\bs]
- Send the signal specified by _\bs_\bi_\bg_\bs_\bp_\be_\bc or _\bs_\bi_\bg_\bn_\bu_\bm to the processes
+ Send the signal specified by _\bs_\bi_\bg_\bs_\bp_\be_\bc or _\bs_\bi_\bg_\bn_\bu_\bm to the processes
named by each _\bi_\bd. Each _\bi_\bd may be a job specification _\bj_\bo_\bb_\bs_\bp_\be_\bc or
- a process ID _\bp_\bi_\bd. _\bs_\bi_\bg_\bs_\bp_\be_\bc is either a case-insensitive signal
- name such as S\bSI\bIG\bGK\bKI\bIL\bLL\bL (with or without the S\bSI\bIG\bG prefix) or a sig-
- nal number; _\bs_\bi_\bg_\bn_\bu_\bm is a signal number. If _\bs_\bi_\bg_\bs_\bp_\be_\bc is not sup-
+ a process ID _\bp_\bi_\bd. _\bs_\bi_\bg_\bs_\bp_\be_\bc is either a case-insensitive signal
+ name such as S\bSI\bIG\bGK\bKI\bIL\bLL\bL (with or without the S\bSI\bIG\bG prefix) or a sig-
+ nal number; _\bs_\bi_\bg_\bn_\bu_\bm is a signal number. If _\bs_\bi_\bg_\bs_\bp_\be_\bc is not sup-
plied, then k\bki\bil\bll\bl sends S\bSI\bIG\bGT\bTE\bER\bRM\bM.
The -\b-l\bl option lists the signal names. If any arguments are sup-
plied when -\b-l\bl is given, k\bki\bil\bll\bl lists the names of the signals cor-
- responding to the arguments, and the return status is 0. The
- _\be_\bx_\bi_\bt_\b__\bs_\bt_\ba_\bt_\bu_\bs argument to -\b-l\bl is a number specifying either a sig-
- nal number or the exit status of a process terminated by a sig-
- nal; if it is supplied, k\bki\bil\bll\bl prints the name of the signal that
+ responding to the arguments, and the return status is 0. The
+ _\be_\bx_\bi_\bt_\b__\bs_\bt_\ba_\bt_\bu_\bs argument to -\b-l\bl is a number specifying either a sig-
+ nal number or the exit status of a process terminated by a sig-
+ nal; if it is supplied, k\bki\bil\bll\bl prints the name of the signal that
caused the process to terminate. k\bki\bil\bll\bl assumes that process exit
statuses are greater than 128; anything less than that is a sig-
nal number. The -\b-L\bL option is equivalent to -\b-l\bl.
- k\bki\bil\bll\bl returns true if at least one signal was successfully sent,
+ k\bki\bil\bll\bl returns true if at least one signal was successfully sent,
or false if an error occurs or an invalid option is encountered.
l\ble\bet\bt _\ba_\br_\bg [_\ba_\br_\bg ...]
- Each _\ba_\br_\bg is evaluated as an arithmetic expression (see A\bAR\bRI\bIT\bTH\bH-\b-
- M\bME\bET\bTI\bIC\bC E\bEV\bVA\bAL\bLU\bUA\bAT\bTI\bIO\bON\bN in _\bb_\ba_\bs_\bh(1)). If the last _\ba_\br_\bg evaluates to 0,
+ Each _\ba_\br_\bg is evaluated as an arithmetic expression (see A\bAR\bRI\bIT\bTH\bH-\b-
+ M\bME\bET\bTI\bIC\bC E\bEV\bVA\bAL\bLU\bUA\bAT\bTI\bIO\bON\bN in _\bb_\ba_\bs_\bh(1)). If the last _\ba_\br_\bg evaluates to 0,
l\ble\bet\bt returns 1; otherwise l\ble\bet\bt returns 0.
l\blo\boc\bca\bal\bl [_\bo_\bp_\bt_\bi_\bo_\bn] [_\bn_\ba_\bm_\be[=_\bv_\ba_\bl_\bu_\be] ... | - ]
For each argument, create a local variable named _\bn_\ba_\bm_\be and assign
- it _\bv_\ba_\bl_\bu_\be. The _\bo_\bp_\bt_\bi_\bo_\bn can be any of the options accepted by d\bde\be-\b-
- c\bcl\bla\bar\bre\be. When l\blo\boc\bca\bal\bl is used within a function, it causes the
- variable _\bn_\ba_\bm_\be to have a visible scope restricted to that func-
- tion and its children. It is an error to use l\blo\boc\bca\bal\bl when not
+ it _\bv_\ba_\bl_\bu_\be. The _\bo_\bp_\bt_\bi_\bo_\bn can be any of the options accepted by d\bde\be-\b-
+ c\bcl\bla\bar\bre\be. When l\blo\boc\bca\bal\bl is used within a function, it causes the
+ variable _\bn_\ba_\bm_\be to have a visible scope restricted to that func-
+ tion and its children. It is an error to use l\blo\boc\bca\bal\bl when not
within a function.
- If _\bn_\ba_\bm_\be is -, it makes the set of shell options local to the
- function in which l\blo\boc\bca\bal\bl is invoked: any shell options changed
- using the s\bse\bet\bt builtin inside the function after the call to l\blo\bo-\b-
- c\bca\bal\bl are restored to their original values when the function re-
- turns. The restore is performed as if a series of s\bse\bet\bt commands
- were executed to restore the values that were in place before
+ If _\bn_\ba_\bm_\be is -, it makes the set of shell options local to the
+ function in which l\blo\boc\bca\bal\bl is invoked: any shell options changed
+ using the s\bse\bet\bt builtin inside the function after the call to l\blo\bo-\b-
+ c\bca\bal\bl are restored to their original values when the function re-
+ turns. The restore is performed as if a series of s\bse\bet\bt commands
+ were executed to restore the values that were in place before
the function.
- With no operands, l\blo\boc\bca\bal\bl writes a list of local variables to the
+ With no operands, l\blo\boc\bca\bal\bl writes a list of local variables to the
standard output.
- The return status is 0 unless l\blo\boc\bca\bal\bl is used outside a function,
+ The return status is 0 unless l\blo\boc\bca\bal\bl is used outside a function,
an invalid _\bn_\ba_\bm_\be is supplied, or _\bn_\ba_\bm_\be is a readonly variable.
l\blo\bog\bgo\bou\but\bt [\b[_\bn]\b]
- Exit a login shell, returning a status of _\bn to the shell's par-
+ Exit a login shell, returning a status of _\bn to the shell's par-
ent.
m\bma\bap\bpf\bfi\bil\ble\be [-\b-d\bd _\bd_\be_\bl_\bi_\bm] [-\b-n\bn _\bc_\bo_\bu_\bn_\bt] [-\b-O\bO _\bo_\br_\bi_\bg_\bi_\bn] [-\b-s\bs _\bc_\bo_\bu_\bn_\bt] [-\b-t\bt] [-\b-u\bu _\bf_\bd] [-\b-C\bC
_\bc_\ba_\bl_\bl_\bb_\ba_\bc_\bk] [-\b-c\bc _\bq_\bu_\ba_\bn_\bt_\bu_\bm] [_\ba_\br_\br_\ba_\by]
r\bre\bea\bad\bda\bar\brr\bra\bay\by [-\b-d\bd _\bd_\be_\bl_\bi_\bm] [-\b-n\bn _\bc_\bo_\bu_\bn_\bt] [-\b-O\bO _\bo_\br_\bi_\bg_\bi_\bn] [-\b-s\bs _\bc_\bo_\bu_\bn_\bt] [-\b-t\bt] [-\b-u\bu _\bf_\bd] [-\b-C\bC
_\bc_\ba_\bl_\bl_\bb_\ba_\bc_\bk] [-\b-c\bc _\bq_\bu_\ba_\bn_\bt_\bu_\bm] [_\ba_\br_\br_\ba_\by]
- Read lines from the standard input, or from file descriptor _\bf_\bd
- if the -\b-u\bu option is supplied, into the indexed array variable
- _\ba_\br_\br_\ba_\by. The variable M\bMA\bAP\bPF\bFI\bIL\bLE\bE is the default _\ba_\br_\br_\ba_\by. Options, if
+ Read lines from the standard input, or from file descriptor _\bf_\bd
+ if the -\b-u\bu option is supplied, into the indexed array variable
+ _\ba_\br_\br_\ba_\by. The variable M\bMA\bAP\bPF\bFI\bIL\bLE\bE is the default _\ba_\br_\br_\ba_\by. Options, if
supplied, have the following meanings:
- -\b-d\bd Use the first character of _\bd_\be_\bl_\bi_\bm to terminate each input
+ -\b-d\bd Use the first character of _\bd_\be_\bl_\bi_\bm to terminate each input
line, rather than newline. If _\bd_\be_\bl_\bi_\bm is the empty string,
m\bma\bap\bpf\bfi\bil\ble\be will terminate a line when it reads a NUL charac-
ter.
-\b-n\bn Copy at most _\bc_\bo_\bu_\bn_\bt lines. If _\bc_\bo_\bu_\bn_\bt is 0, copy all lines.
- -\b-O\bO Begin assigning to _\ba_\br_\br_\ba_\by at index _\bo_\br_\bi_\bg_\bi_\bn. The default
+ -\b-O\bO Begin assigning to _\ba_\br_\br_\ba_\by at index _\bo_\br_\bi_\bg_\bi_\bn. The default
index is 0.
-\b-s\bs Discard the first _\bc_\bo_\bu_\bn_\bt lines read.
- -\b-t\bt Remove a trailing _\bd_\be_\bl_\bi_\bm (default newline) from each line
+ -\b-t\bt Remove a trailing _\bd_\be_\bl_\bi_\bm (default newline) from each line
read.
- -\b-u\bu Read lines from file descriptor _\bf_\bd instead of the stan-
+ -\b-u\bu Read lines from file descriptor _\bf_\bd instead of the stan-
dard input.
- -\b-C\bC Evaluate _\bc_\ba_\bl_\bl_\bb_\ba_\bc_\bk each time _\bq_\bu_\ba_\bn_\bt_\bu_\bm lines are read. The
+ -\b-C\bC Evaluate _\bc_\ba_\bl_\bl_\bb_\ba_\bc_\bk each time _\bq_\bu_\ba_\bn_\bt_\bu_\bm lines are read. The
-\b-c\bc option specifies _\bq_\bu_\ba_\bn_\bt_\bu_\bm.
- -\b-c\bc Specify the number of lines read between each call to
+ -\b-c\bc Specify the number of lines read between each call to
_\bc_\ba_\bl_\bl_\bb_\ba_\bc_\bk.
- If -\b-C\bC is specified without -\b-c\bc, the default quantum is 5000.
+ If -\b-C\bC is specified without -\b-c\bc, the default quantum is 5000.
When _\bc_\ba_\bl_\bl_\bb_\ba_\bc_\bk is evaluated, it is supplied the index of the next
array element to be assigned and the line to be assigned to that
- element as additional arguments. _\bc_\ba_\bl_\bl_\bb_\ba_\bc_\bk is evaluated after
+ element as additional arguments. _\bc_\ba_\bl_\bl_\bb_\ba_\bc_\bk is evaluated after
the line is read but before the array element is assigned.
- If not supplied with an explicit origin, m\bma\bap\bpf\bfi\bil\ble\be will clear _\ba_\br_\b-
+ If not supplied with an explicit origin, m\bma\bap\bpf\bfi\bil\ble\be will clear _\ba_\br_\b-
_\br_\ba_\by before assigning to it.
m\bma\bap\bpf\bfi\bil\ble\be returns zero unless an invalid option or option argument
- is supplied, _\ba_\br_\br_\ba_\by is invalid or unassignable, or if _\ba_\br_\br_\ba_\by is
+ is supplied, _\ba_\br_\br_\ba_\by is invalid or unassignable, or if _\ba_\br_\br_\ba_\by is
not an indexed array.
p\bpo\bop\bpd\bd [-n\bn] [+_\bn] [-_\bn]
- Remove entries from the directory stack. The elements are num-
- bered from 0 starting at the first directory listed by d\bdi\bir\brs\bs, so
- p\bpo\bop\bpd\bd is equivalent to With no arguments, p\bpo\bop\bpd\bd removes the top
- directory from the stack, and changes to the new top directory.
+ Remove entries from the directory stack. The elements are num-
+ bered from 0 starting at the first directory listed by d\bdi\bir\brs\bs, so
+ p\bpo\bop\bpd\bd is equivalent to With no arguments, p\bpo\bop\bpd\bd removes the top
+ directory from the stack, and changes to the new top directory.
Arguments, if supplied, have the following meanings:
-\b-n\bn Suppress the normal change of directory when removing di-
rectories from the stack, only manipulate the stack.
- +\b+_\bn Remove the _\bnth entry counting from the left of the list
- shown by d\bdi\bir\brs\bs, starting with zero, from the stack. For
+ +\b+_\bn Remove the _\bnth entry counting from the left of the list
+ shown by d\bdi\bir\brs\bs, starting with zero, from the stack. For
example: removes the first directory, the second.
- -\b-_\bn Remove the _\bnth entry counting from the right of the list
- shown by d\bdi\bir\brs\bs, starting with zero. For example: removes
+ -\b-_\bn Remove the _\bnth entry counting from the right of the list
+ shown by d\bdi\bir\brs\bs, starting with zero. For example: removes
the last directory, the next to last.
- If the top element of the directory stack is modified, and the
- _\b-_\bn option was not supplied, p\bpo\bop\bpd\bd uses the c\bcd\bd builtin to change
+ If the top element of the directory stack is modified, and the
+ _\b-_\bn option was not supplied, p\bpo\bop\bpd\bd uses the c\bcd\bd builtin to change
to the directory at the top of the stack. If the c\bcd\bd fails, p\bpo\bop\bpd\bd
returns a non-zero value.
- Otherwise, p\bpo\bop\bpd\bd returns false if an invalid option is supplied,
- the directory stack is empty, or _\bn specifies a non-existent di-
+ Otherwise, p\bpo\bop\bpd\bd returns false if an invalid option is supplied,
+ the directory stack is empty, or _\bn specifies a non-existent di-
rectory stack entry.
- If the p\bpo\bop\bpd\bd command is successful, b\bba\bas\bsh\bh runs d\bdi\bir\brs\bs to show the
- final contents of the directory stack, and the return status is
+ If the p\bpo\bop\bpd\bd command is successful, b\bba\bas\bsh\bh runs d\bdi\bir\brs\bs to show the
+ final contents of the directory stack, and the return status is
0.
p\bpr\bri\bin\bnt\btf\bf [-\b-v\bv _\bv_\ba_\br] _\bf_\bo_\br_\bm_\ba_\bt [_\ba_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs]
- Write the formatted _\ba_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs to the standard output under the
- control of the _\bf_\bo_\br_\bm_\ba_\bt. The -\b-v\bv option assigns the output to the
+ Write the formatted _\ba_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs to the standard output under the
+ control of the _\bf_\bo_\br_\bm_\ba_\bt. The -\b-v\bv option assigns the output to the
variable _\bv_\ba_\br rather than printing it to the standard output.
- The _\bf_\bo_\br_\bm_\ba_\bt is a character string which contains three types of
- objects: plain characters, which are simply copied to standard
- output, character escape sequences, which are converted and
- copied to the standard output, and format specifications, each
- of which causes printing of the next successive _\ba_\br_\bg_\bu_\bm_\be_\bn_\bt. In
- addition to the standard _\bp_\br_\bi_\bn_\bt_\bf(3) format characters c\bcC\bCs\bsS\bS-\b-
+ The _\bf_\bo_\br_\bm_\ba_\bt is a character string which contains three types of
+ objects: plain characters, which are simply copied to standard
+ output, character escape sequences, which are converted and
+ copied to the standard output, and format specifications, each
+ of which causes printing of the next successive _\ba_\br_\bg_\bu_\bm_\be_\bn_\bt. In
+ addition to the standard _\bp_\br_\bi_\bn_\bt_\bf(3) format characters c\bcC\bCs\bsS\bS-\b-
n\bnd\bdi\bio\bou\bux\bxX\bXe\beE\bEf\bfF\bFg\bgG\bGa\baA\bA, p\bpr\bri\bin\bnt\btf\bf interprets the following additional for-
mat specifiers:
%\b%b\bb causes p\bpr\bri\bin\bnt\btf\bf to expand backslash escape sequences in the
corresponding _\ba_\br_\bg_\bu_\bm_\be_\bn_\bt in the same way as e\bec\bch\bho\bo -\b-e\be.
- %\b%q\bq causes p\bpr\bri\bin\bnt\btf\bf to output the corresponding _\ba_\br_\bg_\bu_\bm_\be_\bn_\bt in a
- format that can be reused as shell input. %\b%q\bq and %\b%Q\bQ use
- the $\b$ quoting style if any characters in the argument
- string require it, and backslash quoting otherwise. If
- the format string uses the _\bp_\br_\bi_\bn_\bt_\bf alternate form, these
+ %\b%q\bq causes p\bpr\bri\bin\bnt\btf\bf to output the corresponding _\ba_\br_\bg_\bu_\bm_\be_\bn_\bt in a
+ format that can be reused as shell input. %\b%q\bq and %\b%Q\bQ use
+ the $\b$ quoting style if any characters in the argument
+ string require it, and backslash quoting otherwise. If
+ the format string uses the _\bp_\br_\bi_\bn_\bt_\bf alternate form, these
two formats quote the argument string using single
quotes.
- %\b%Q\bQ like %\b%q\bq, but applies any supplied precision to the _\ba_\br_\bg_\bu_\b-
+ %\b%Q\bQ like %\b%q\bq, but applies any supplied precision to the _\ba_\br_\bg_\bu_\b-
_\bm_\be_\bn_\bt before quoting it.
%\b%(\b(_\bd_\ba_\bt_\be_\bf_\bm_\bt)\b)T\bT
- causes p\bpr\bri\bin\bnt\btf\bf to output the date-time string resulting
- from using _\bd_\ba_\bt_\be_\bf_\bm_\bt as a format string for _\bs_\bt_\br_\bf_\bt_\bi_\bm_\be(3).
+ causes p\bpr\bri\bin\bnt\btf\bf to output the date-time string resulting
+ from using _\bd_\ba_\bt_\be_\bf_\bm_\bt as a format string for _\bs_\bt_\br_\bf_\bt_\bi_\bm_\be(3).
The corresponding _\ba_\br_\bg_\bu_\bm_\be_\bn_\bt is an integer representing the
number of seconds since the epoch. This format specifier
recognizes two special argument values: -1 represents the
- current time, and -2 represents the time the shell was
+ current time, and -2 represents the time the shell was
invoked. If no argument is specified, conversion behaves
- as if -1 had been supplied. This is an exception to the
+ as if -1 had been supplied. This is an exception to the
usual p\bpr\bri\bin\bnt\btf\bf behavior.
The %b, %q, and %T format specifiers all use the field width and
precision arguments from the format specification and write that
- many bytes from (or use that wide a field for) the expanded ar-
- gument, which usually contains more characters than the origi-
+ many bytes from (or use that wide a field for) the expanded ar-
+ gument, which usually contains more characters than the origi-
nal.
The %n format specifier accepts a corresponding argument that is
treated as a shell variable name.
- The %s and %c format specifiers accept an l (long) modifier,
+ The %s and %c format specifiers accept an l (long) modifier,
which forces them to convert the argument string to a wide-char-
acter string and apply any supplied field width and precision in
terms of characters, not bytes. The %S and %C format specifiers
are equivalent to %ls and %lc, respectively.
- Arguments to non-string format specifiers are treated as C con-
+ Arguments to non-string format specifiers are treated as C con-
stants, except that a leading plus or minus sign is allowed, and
- if the leading character is a single or double quote, the value
- is the numeric value of the following character, using the cur-
+ if the leading character is a single or double quote, the value
+ is the numeric value of the following character, using the cur-
rent locale.
- The _\bf_\bo_\br_\bm_\ba_\bt is reused as necessary to consume all of the _\ba_\br_\bg_\bu_\b-
+ The _\bf_\bo_\br_\bm_\ba_\bt is reused as necessary to consume all of the _\ba_\br_\bg_\bu_\b-
_\bm_\be_\bn_\bt_\bs. If the _\bf_\bo_\br_\bm_\ba_\bt requires more _\ba_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs than are supplied,
- the extra format specifications behave as if a zero value or
- null string, as appropriate, had been supplied. The return
- value is zero on success, non-zero if an invalid option is sup-
+ the extra format specifications behave as if a zero value or
+ null string, as appropriate, had been supplied. The return
+ value is zero on success, non-zero if an invalid option is sup-
plied or a write or assignment error occurs.
p\bpu\bus\bsh\bhd\bd [-\b-n\bn] [+_\bn] [-_\bn]
p\bpu\bus\bsh\bhd\bd [-\b-n\bn] [_\bd_\bi_\br]
Add a directory to the top of the directory stack, or rotate the
- stack, making the new top of the stack the current working di-
- rectory. With no arguments, p\bpu\bus\bsh\bhd\bd exchanges the top two ele-
- ments of the directory stack. Arguments, if supplied, have the
+ stack, making the new top of the stack the current working di-
+ rectory. With no arguments, p\bpu\bus\bsh\bhd\bd exchanges the top two ele-
+ ments of the directory stack. Arguments, if supplied, have the
following meanings:
- -\b-n\bn Suppress the normal change of directory when rotating or
- adding directories to the stack, only manipulate the
+ -\b-n\bn Suppress the normal change of directory when rotating or
+ adding directories to the stack, only manipulate the
stack.
+\b+_\bn Rotate the stack so that the _\bnth directory (counting from
- the left of the list shown by d\bdi\bir\brs\bs, starting with zero)
+ the left of the list shown by d\bdi\bir\brs\bs, starting with zero)
is at the top.
- -\b-_\bn Rotates the stack so that the _\bnth directory (counting
- from the right of the list shown by d\bdi\bir\brs\bs, starting with
+ -\b-_\bn Rotates the stack so that the _\bnth directory (counting
+ from the right of the list shown by d\bdi\bir\brs\bs, starting with
zero) is at the top.
_\bd_\bi_\br Adds _\bd_\bi_\br to the directory stack at the top.
After the stack has been modified, if the -\b-n\bn option was not sup-
- plied, p\bpu\bus\bsh\bhd\bd uses the c\bcd\bd builtin to change to the directory at
+ plied, p\bpu\bus\bsh\bhd\bd uses the c\bcd\bd builtin to change to the directory at
the top of the stack. If the c\bcd\bd fails, p\bpu\bus\bsh\bhd\bd returns a non-zero
value.
- Otherwise, if no arguments are supplied, p\bpu\bus\bsh\bhd\bd returns zero un-
- less the directory stack is empty. When rotating the directory
+ Otherwise, if no arguments are supplied, p\bpu\bus\bsh\bhd\bd returns zero un-
+ less the directory stack is empty. When rotating the directory
stack, p\bpu\bus\bsh\bhd\bd returns zero unless the directory stack is empty or
_\bn specifies a non-existent directory stack element.
- If the p\bpu\bus\bsh\bhd\bd command is successful, b\bba\bas\bsh\bh runs d\bdi\bir\brs\bs to show the
+ If the p\bpu\bus\bsh\bhd\bd command is successful, b\bba\bas\bsh\bh runs d\bdi\bir\brs\bs to show the
final contents of the directory stack.
p\bpw\bwd\bd [-\b-L\bLP\bP]
- Print the absolute pathname of the current working directory.
+ Print the absolute pathname of the current working directory.
The pathname printed contains no symbolic links if the -\b-P\bP option
is supplied or the -\b-o\bo p\bph\bhy\bys\bsi\bic\bca\bal\bl option to the s\bse\bet\bt builtin command
- is enabled. If the -\b-L\bL option is used, the pathname printed may
- contain symbolic links. The return status is 0 unless an error
+ is enabled. If the -\b-L\bL option is used, the pathname printed may
+ contain symbolic links. The return status is 0 unless an error
occurs while reading the name of the current directory or an in-
valid option is supplied.
r\bre\bea\bad\bd [-\b-E\bEe\ber\brs\bs] [-\b-a\ba _\ba_\bn_\ba_\bm_\be] [-\b-d\bd _\bd_\be_\bl_\bi_\bm] [-\b-i\bi _\bt_\be_\bx_\bt] [-\b-n\bn _\bn_\bc_\bh_\ba_\br_\bs] [-\b-N\bN _\bn_\bc_\bh_\ba_\br_\bs]
[-\b-p\bp _\bp_\br_\bo_\bm_\bp_\bt] [-\b-t\bt _\bt_\bi_\bm_\be_\bo_\bu_\bt] [-\b-u\bu _\bf_\bd] [_\bn_\ba_\bm_\be ...]
Read one line from the standard input, or from the file descrip-
- tor _\bf_\bd supplied as an argument to the -\b-u\bu option, split it into
- words as described in _\bb_\ba_\bs_\bh (1) under W\bWo\bor\brd\bd S\bSp\bpl\bli\bit\btt\bti\bin\bng\bg, and assign
- the first word to the first _\bn_\ba_\bm_\be, the second word to the second
- _\bn_\ba_\bm_\be, and so on. If there are more words than names, the re-
- maining words and their intervening delimiters are assigned to
- the last _\bn_\ba_\bm_\be. If there are fewer words read from the input
- stream than names, the remaining names are assigned empty val-
- ues. The characters in the value of the I\bIF\bFS\bS variable are used
+ tor _\bf_\bd supplied as an argument to the -\b-u\bu option, split it into
+ words as described in _\bb_\ba_\bs_\bh (1) under W\bWo\bor\brd\bd S\bSp\bpl\bli\bit\btt\bti\bin\bng\bg, and assign
+ the first word to the first _\bn_\ba_\bm_\be, the second word to the second
+ _\bn_\ba_\bm_\be, and so on. If there are more words than names, the re-
+ maining words and their intervening delimiters are assigned to
+ the last _\bn_\ba_\bm_\be. If there are fewer words read from the input
+ stream than names, the remaining names are assigned empty val-
+ ues. The characters in the value of the I\bIF\bFS\bS variable are used
to split the line into words using the same rules the shell uses
for expansion (described in _\bb_\ba_\bs_\bh (1) under W\bWo\bor\brd\bd S\bSp\bpl\bli\bit\btt\bti\bin\bng\bg). The
backslash character (\\b\) removes any special meaning for the next
-\b-a\ba _\ba_\bn_\ba_\bm_\be
The words are assigned to sequential indices of the array
variable _\ba_\bn_\ba_\bm_\be, starting at 0. _\ba_\bn_\ba_\bm_\be is unset before any
- new values are assigned. Other _\bn_\ba_\bm_\be arguments are ig-
+ new values are assigned. Other _\bn_\ba_\bm_\be arguments are ig-
nored.
-\b-d\bd _\bd_\be_\bl_\bi_\bm
- The first character of _\bd_\be_\bl_\bi_\bm terminates the input line,
- rather than newline. If _\bd_\be_\bl_\bi_\bm is the empty string, r\bre\bea\bad\bd
+ The first character of _\bd_\be_\bl_\bi_\bm terminates the input line,
+ rather than newline. If _\bd_\be_\bl_\bi_\bm is the empty string, r\bre\bea\bad\bd
will terminate a line when it reads a NUL character.
- -\b-e\be If the standard input is coming from a terminal, r\bre\bea\bad\bd
- uses r\bre\bea\bad\bdl\bli\bin\bne\be (see R\bRE\bEA\bAD\bDL\bLI\bIN\bNE\bE in _\bb_\ba_\bs_\bh(1)) to obtain the
- line. R\bRe\bea\bad\bdl\bli\bin\bne\be uses the current (or default, if line
- editing was not previously active) editing settings, but
+ -\b-e\be If the standard input is coming from a terminal, r\bre\bea\bad\bd
+ uses r\bre\bea\bad\bdl\bli\bin\bne\be (see R\bRE\bEA\bAD\bDL\bLI\bIN\bNE\bE in _\bb_\ba_\bs_\bh(1)) to obtain the
+ line. R\bRe\bea\bad\bdl\bli\bin\bne\be uses the current (or default, if line
+ editing was not previously active) editing settings, but
uses r\bre\bea\bad\bdl\bli\bin\bne\be's default filename completion.
- -\b-E\bE If the standard input is coming from a terminal, r\bre\bea\bad\bd
- uses r\bre\bea\bad\bdl\bli\bin\bne\be (see R\bRE\bEA\bAD\bDL\bLI\bIN\bNE\bE in _\bb_\ba_\bs_\bh(1)) to obtain the
- line. R\bRe\bea\bad\bdl\bli\bin\bne\be uses the current (or default, if line
- editing was not previously active) editing settings, but
- uses bash's default completion, including programmable
+ -\b-E\bE If the standard input is coming from a terminal, r\bre\bea\bad\bd
+ uses r\bre\bea\bad\bdl\bli\bin\bne\be (see R\bRE\bEA\bAD\bDL\bLI\bIN\bNE\bE in _\bb_\ba_\bs_\bh(1)) to obtain the
+ line. R\bRe\bea\bad\bdl\bli\bin\bne\be uses the current (or default, if line
+ editing was not previously active) editing settings, but
+ uses bash's default completion, including programmable
completion.
-\b-i\bi _\bt_\be_\bx_\bt
- If r\bre\bea\bad\bdl\bli\bin\bne\be is being used to read the line, r\bre\bea\bad\bd places
+ If r\bre\bea\bad\bdl\bli\bin\bne\be is being used to read the line, r\bre\bea\bad\bd places
_\bt_\be_\bx_\bt into the editing buffer before editing begins.
-\b-n\bn _\bn_\bc_\bh_\ba_\br_\bs
- r\bre\bea\bad\bd returns after reading _\bn_\bc_\bh_\ba_\br_\bs characters rather than
- waiting for a complete line of input, unless it encoun-
- ters EOF or r\bre\bea\bad\bd times out, but honors a delimiter if it
+ r\bre\bea\bad\bd returns after reading _\bn_\bc_\bh_\ba_\br_\bs characters rather than
+ waiting for a complete line of input, unless it encoun-
+ ters EOF or r\bre\bea\bad\bd times out, but honors a delimiter if it
reads fewer than _\bn_\bc_\bh_\ba_\br_\bs characters before the delimiter.
-\b-N\bN _\bn_\bc_\bh_\ba_\br_\bs
- r\bre\bea\bad\bd returns after reading exactly _\bn_\bc_\bh_\ba_\br_\bs characters
- rather than waiting for a complete line of input, unless
+ r\bre\bea\bad\bd returns after reading exactly _\bn_\bc_\bh_\ba_\br_\bs characters
+ rather than waiting for a complete line of input, unless
it encounters EOF or r\bre\bea\bad\bd times out. Any delimiter char-
- acters in the input are not treated specially and do not
+ acters in the input are not treated specially and do not
cause r\bre\bea\bad\bd to return until it has read _\bn_\bc_\bh_\ba_\br_\bs characters.
The result is not split on the characters in I\bIF\bFS\bS; the in-
tent is that the variable is assigned exactly the charac-
- ters read (with the exception of backslash; see the -\b-r\br
+ ters read (with the exception of backslash; see the -\b-r\br
option below).
-\b-p\bp _\bp_\br_\bo_\bm_\bp_\bt
Display _\bp_\br_\bo_\bm_\bp_\bt on standard error, without a trailing new-
- line, before attempting to read any input, but only if
+ line, before attempting to read any input, but only if
input is coming from a terminal.
-\b-r\br Backslash does not act as an escape character. The back-
- slash is considered to be part of the line. In particu-
- lar, a backslash-newline pair may not then be used as a
+ slash is considered to be part of the line. In particu-
+ lar, a backslash-newline pair may not then be used as a
line continuation.
-\b-s\bs Silent mode. If input is coming from a terminal, charac-
ters are not echoed.
-\b-t\bt _\bt_\bi_\bm_\be_\bo_\bu_\bt
- Cause r\bre\bea\bad\bd to time out and return failure if it does not
- read a complete line of input (or a specified number of
- characters) within _\bt_\bi_\bm_\be_\bo_\bu_\bt seconds. _\bt_\bi_\bm_\be_\bo_\bu_\bt may be a
- decimal number with a fractional portion following the
- decimal point. This option is only effective if r\bre\bea\bad\bd is
- reading input from a terminal, pipe, or other special
- file; it has no effect when reading from regular files.
- If r\bre\bea\bad\bd times out, it saves any partial input read into
- the specified variable _\bn_\ba_\bm_\be, and the exit status is
- greater than 128. If _\bt_\bi_\bm_\be_\bo_\bu_\bt is 0, r\bre\bea\bad\bd returns immedi-
- ately, without trying to read any data. In this case,
- the exit status is 0 if input is available on the speci-
- fied file descriptor, or the read will return EOF, non-
+ Cause r\bre\bea\bad\bd to time out and return failure if it does not
+ read a complete line of input (or a specified number of
+ characters) within _\bt_\bi_\bm_\be_\bo_\bu_\bt seconds. _\bt_\bi_\bm_\be_\bo_\bu_\bt may be a
+ decimal number with a fractional portion following the
+ decimal point. This option is only effective if r\bre\bea\bad\bd is
+ reading input from a terminal, pipe, or other special
+ file; it has no effect when reading from regular files.
+ If r\bre\bea\bad\bd times out, it saves any partial input read into
+ the specified variable _\bn_\ba_\bm_\be, and the exit status is
+ greater than 128. If _\bt_\bi_\bm_\be_\bo_\bu_\bt is 0, r\bre\bea\bad\bd returns immedi-
+ ately, without trying to read any data. In this case,
+ the exit status is 0 if input is available on the speci-
+ fied file descriptor, or the read will return EOF, non-
zero otherwise.
- -\b-u\bu _\bf_\bd Read input from file descriptor _\bf_\bd instead of the stan-
+ -\b-u\bu _\bf_\bd Read input from file descriptor _\bf_\bd instead of the stan-
dard input.
- Other than the case where _\bd_\be_\bl_\bi_\bm is the empty string, r\bre\bea\bad\bd ig-
+ Other than the case where _\bd_\be_\bl_\bi_\bm is the empty string, r\bre\bea\bad\bd ig-
nores any NUL characters in the input.
- If no _\bn_\ba_\bm_\be_\bs are supplied, r\bre\bea\bad\bd assigns the line read, without
- the ending delimiter but otherwise unmodified, to the variable
+ If no _\bn_\ba_\bm_\be_\bs are supplied, r\bre\bea\bad\bd assigns the line read, without
+ the ending delimiter but otherwise unmodified, to the variable
R\bRE\bEP\bPL\bLY\bY.
The exit status is zero, unless end-of-file is encountered, r\bre\bea\bad\bd
- times out (in which case the status is greater than 128), a
+ times out (in which case the status is greater than 128), a
variable assignment error (such as assigning to a readonly vari-
- able) occurs, or an invalid file descriptor is supplied as the
+ able) occurs, or an invalid file descriptor is supplied as the
argument to -\b-u\bu.
r\bre\bea\bad\bdo\bon\bnl\bly\by [-\b-a\baA\bAf\bf] [-\b-p\bp] [_\bn_\ba_\bm_\be[=_\bw_\bo_\br_\bd] ...]
- The given _\bn_\ba_\bm_\be_\bs are marked readonly; the values of these _\bn_\ba_\bm_\be_\bs
+ The given _\bn_\ba_\bm_\be_\bs are marked readonly; the values of these _\bn_\ba_\bm_\be_\bs
may not be changed by subsequent assignment or unset. If the -\b-f\bf
- option is supplied, each _\bn_\ba_\bm_\be refers to a shell function. The
- -\b-a\ba option restricts the variables to indexed arrays; the -\b-A\bA op-
+ option is supplied, each _\bn_\ba_\bm_\be refers to a shell function. The
+ -\b-a\ba option restricts the variables to indexed arrays; the -\b-A\bA op-
tion restricts the variables to associative arrays. If both op-
- tions are supplied, -\b-A\bA takes precedence. If no _\bn_\ba_\bm_\be arguments
- are supplied, or if the -\b-p\bp option is supplied, print a list of
- all readonly names. The other options may be used to restrict
+ tions are supplied, -\b-A\bA takes precedence. If no _\bn_\ba_\bm_\be arguments
+ are supplied, or if the -\b-p\bp option is supplied, print a list of
+ all readonly names. The other options may be used to restrict
the output to a subset of the set of readonly names. The -\b-p\bp op-
tion displays output in a format that may be reused as input.
- r\bre\bea\bad\bdo\bon\bnl\bly\by allows the value of a variable to be set at the same
+ r\bre\bea\bad\bdo\bon\bnl\bly\by allows the value of a variable to be set at the same
time the readonly attribute is changed by following the variable
- name with =_\bv_\ba_\bl_\bu_\be. This sets the value of the variable is to
+ name with =_\bv_\ba_\bl_\bu_\be. This sets the value of the variable is to
_\bv_\ba_\bl_\bu_\be while modifying the readonly attribute.
- The return status is 0 unless an invalid option is encountered,
- one of the _\bn_\ba_\bm_\be_\bs is not a valid shell variable name, or -\b-f\bf is
+ The return status is 0 unless an invalid option is encountered,
+ one of the _\bn_\ba_\bm_\be_\bs is not a valid shell variable name, or -\b-f\bf is
supplied with a _\bn_\ba_\bm_\be that is not a function.
r\bre\bet\btu\bur\brn\bn [_\bn]
- Stop executing a shell function or sourced file and return the
+ Stop executing a shell function or sourced file and return the
value specified by _\bn to its caller. If _\bn is omitted, the return
- status is that of the last command executed. If r\bre\bet\btu\bur\brn\bn is exe-
- cuted by a trap handler, the last command used to determine the
+ status is that of the last command executed. If r\bre\bet\btu\bur\brn\bn is exe-
+ cuted by a trap handler, the last command used to determine the
status is the last command executed before the trap handler. If
r\bre\bet\btu\bur\brn\bn is executed during a D\bDE\bEB\bBU\bUG\bG trap, the last command used to
- determine the status is the last command executed by the trap
+ determine the status is the last command executed by the trap
handler before r\bre\bet\btu\bur\brn\bn was invoked.
When r\bre\bet\btu\bur\brn\bn is used to terminate execution of a script being ex-
- ecuted by the .\b. (s\bso\bou\bur\brc\bce\be) command, it causes the shell to stop
- executing that script and return either _\bn or the exit status of
- the last command executed within the script as the exit status
- of the script. If _\bn is supplied, the return value is its least
+ ecuted by the .\b. (s\bso\bou\bur\brc\bce\be) command, it causes the shell to stop
+ executing that script and return either _\bn or the exit status of
+ the last command executed within the script as the exit status
+ of the script. If _\bn is supplied, the return value is its least
significant 8 bits.
- Any command associated with the R\bRE\bET\bTU\bUR\bRN\bN trap is executed before
+ Any command associated with the R\bRE\bET\bTU\bUR\bRN\bN trap is executed before
execution resumes after the function or script.
- The return status is non-zero if r\bre\bet\btu\bur\brn\bn is supplied a non-nu-
+ The return status is non-zero if r\bre\bet\btu\bur\brn\bn is supplied a non-nu-
meric argument, or is used outside a function and not during ex-
ecution of a script by .\b. or s\bso\bou\bur\brc\bce\be.
s\bse\bet\bt [-\b-a\bab\bbe\bef\bfh\bhk\bkm\bmn\bnp\bpt\btu\buv\bvx\bxB\bBC\bCE\bEH\bHP\bPT\bT] [-\b-o\bo _\bo_\bp_\bt_\bi_\bo_\bn_\b-_\bn_\ba_\bm_\be] [-\b--\b-] [-\b-] [_\ba_\br_\bg ...]
s\bse\bet\bt [+\b+a\bab\bbe\bef\bfh\bhk\bkm\bmn\bnp\bpt\btu\buv\bvx\bxB\bBC\bCE\bEH\bHP\bPT\bT] [+\b+o\bo _\bo_\bp_\bt_\bi_\bo_\bn_\b-_\bn_\ba_\bm_\be] [-\b--\b-] [-\b-] [_\ba_\br_\bg ...]
s\bse\bet\bt -\b-o\bo
- s\bse\bet\bt +\b+o\bo Without options, display the name and value of each shell vari-
- able in a format that can be reused as input for setting or re-
+ s\bse\bet\bt +\b+o\bo Without options, display the name and value of each shell vari-
+ able in a format that can be reused as input for setting or re-
setting the currently-set variables. Read-only variables cannot
- be reset. In posix mode, only shell variables are listed. The
- output is sorted according to the current locale. When options
- are specified, they set or unset shell attributes. Any argu-
- ments remaining after option processing are treated as values
+ be reset. In posix mode, only shell variables are listed. The
+ output is sorted according to the current locale. When options
+ are specified, they set or unset shell attributes. Any argu-
+ ments remaining after option processing are treated as values
for the positional parameters and are assigned, in order, to $\b$1\b1,
- $\b$2\b2, ..., $\b$_\bn. Options, if specified, have the following mean-
+ $\b$2\b2, ..., $\b$_\bn. Options, if specified, have the following mean-
ings:
-\b-a\ba Each variable or function that is created or modified is
- given the export attribute and marked for export to the
+ given the export attribute and marked for export to the
environment of subsequent commands.
- -\b-b\bb Report the status of terminated background jobs immedi-
+ -\b-b\bb Report the status of terminated background jobs immedi-
ately, rather than before the next primary prompt or af-
- ter a foreground command terminates. This is effective
+ ter a foreground command terminates. This is effective
only when job control is enabled.
- -\b-e\be Exit immediately if a _\bp_\bi_\bp_\be_\bl_\bi_\bn_\be (which may consist of a
- single _\bs_\bi_\bm_\bp_\bl_\be _\bc_\bo_\bm_\bm_\ba_\bn_\bd), a _\bl_\bi_\bs_\bt, or a _\bc_\bo_\bm_\bp_\bo_\bu_\bn_\bd _\bc_\bo_\bm_\bm_\ba_\bn_\bd
- (see S\bSH\bHE\bEL\bLL\bL G\bGR\bRA\bAM\bMM\bMA\bAR\bR in _\bb_\ba_\bs_\bh(1)), exits with a non-zero
- status. The shell does not exit if the command that
- fails is part of the command list immediately following
+ -\b-e\be Exit immediately if a _\bp_\bi_\bp_\be_\bl_\bi_\bn_\be (which may consist of a
+ single _\bs_\bi_\bm_\bp_\bl_\be _\bc_\bo_\bm_\bm_\ba_\bn_\bd), a _\bl_\bi_\bs_\bt, or a _\bc_\bo_\bm_\bp_\bo_\bu_\bn_\bd _\bc_\bo_\bm_\bm_\ba_\bn_\bd
+ (see S\bSH\bHE\bEL\bLL\bL G\bGR\bRA\bAM\bMM\bMA\bAR\bR in _\bb_\ba_\bs_\bh(1)), exits with a non-zero
+ status. The shell does not exit if the command that
+ fails is part of the command list immediately following
a w\bwh\bhi\bil\ble\be or u\bun\bnt\bti\bil\bl keyword, part of the test following the
- i\bif\bf or e\bel\bli\bif\bf reserved words, part of any command executed
- in a &\b&&\b& or |\b||\b| list except the command following the fi-
- nal &\b&&\b& or |\b||\b|, any command in a pipeline but the last
- (subject to the state of the p\bpi\bip\bpe\bef\bfa\bai\bil\bl shell option), or
- if the command's return value is being inverted with !\b!.
- If a compound command other than a subshell returns a
- non-zero status because a command failed while -\b-e\be was
- being ignored, the shell does not exit. A trap on E\bER\bRR\bR,
+ i\bif\bf or e\bel\bli\bif\bf reserved words, part of any command executed
+ in a &\b&&\b& or |\b||\b| list except the command following the fi-
+ nal &\b&&\b& or |\b||\b|, any command in a pipeline but the last
+ (subject to the state of the p\bpi\bip\bpe\bef\bfa\bai\bil\bl shell option), or
+ if the command's return value is being inverted with !\b!.
+ If a compound command other than a subshell returns a
+ non-zero status because a command failed while -\b-e\be was
+ being ignored, the shell does not exit. A trap on E\bER\bRR\bR,
if set, is executed before the shell exits. This option
applies to the shell environment and each subshell envi-
ronment separately (see C\bCO\bOM\bMM\bMA\bAN\bND\bD E\bEX\bXE\bEC\bCU\bUT\bTI\bIO\bON\bN E\bEN\bNV\bVI\bIR\bRO\bON\bNM\bME\bEN\bNT\bT in
_\bb_\ba_\bs_\bh(1)), and may cause subshells to exit before execut-
ing all the commands in the subshell.
- If a compound command or shell function executes in a
- context where -\b-e\be is being ignored, none of the commands
- executed within the compound command or function body
- will be affected by the -\b-e\be setting, even if -\b-e\be is set
- and a command returns a failure status. If a compound
- command or shell function sets -\b-e\be while executing in a
- context where -\b-e\be is ignored, that setting will not have
- any effect until the compound command or the command
+ If a compound command or shell function executes in a
+ context where -\b-e\be is being ignored, none of the commands
+ executed within the compound command or function body
+ will be affected by the -\b-e\be setting, even if -\b-e\be is set
+ and a command returns a failure status. If a compound
+ command or shell function sets -\b-e\be while executing in a
+ context where -\b-e\be is ignored, that setting will not have
+ any effect until the compound command or the command
containing the function call completes.
-\b-f\bf Disable pathname expansion.
- -\b-h\bh Remember the location of commands as they are looked up
+ -\b-h\bh Remember the location of commands as they are looked up
for execution. This is enabled by default.
- -\b-k\bk All arguments in the form of assignment statements are
- placed in the environment for a command, not just those
+ -\b-k\bk All arguments in the form of assignment statements are
+ placed in the environment for a command, not just those
that precede the command name.
- -\b-m\bm Monitor mode. Job control is enabled. This option is
- on by default for interactive shells on systems that
- support it (see J\bJO\bOB\bB C\bCO\bON\bNT\bTR\bRO\bOL\bL in _\bb_\ba_\bs_\bh(1)). All processes
- run in a separate process group. When a background job
- completes, the shell prints a line containing its exit
+ -\b-m\bm Monitor mode. Job control is enabled. This option is
+ on by default for interactive shells on systems that
+ support it (see J\bJO\bOB\bB C\bCO\bON\bNT\bTR\bRO\bOL\bL in _\bb_\ba_\bs_\bh(1)). All processes
+ run in a separate process group. When a background job
+ completes, the shell prints a line containing its exit
status.
-\b-n\bn Read commands but do not execute them. This may be used
- to check a shell script for syntax errors. This is ig-
+ to check a shell script for syntax errors. This is ig-
nored by interactive shells.
-\b-o\bo _\bo_\bp_\bt_\bi_\bo_\bn_\b-_\bn_\ba_\bm_\be
The _\bo_\bp_\bt_\bi_\bo_\bn_\b-_\bn_\ba_\bm_\be can be one of the following:
Same as -\b-a\ba.
b\bbr\bra\bac\bce\bee\bex\bxp\bpa\ban\bnd\bd
Same as -\b-B\bB.
- e\bem\bma\bac\bcs\bs Use an emacs-style command line editing inter-
+ e\bem\bma\bac\bcs\bs Use an emacs-style command line editing inter-
face. This is enabled by default when the shell
is interactive, unless the shell is started with
- the -\b--\b-n\bno\boe\bed\bdi\bit\bti\bin\bng\bg option. This also affects the
+ the -\b--\b-n\bno\boe\bed\bdi\bit\bti\bin\bng\bg option. This also affects the
editing interface used for r\bre\bea\bad\bd -\b-e\be.
e\ber\brr\bre\bex\bxi\bit\bt Same as -\b-e\be.
e\ber\brr\brt\btr\bra\bac\bce\be
h\bha\bas\bsh\bha\bal\bll\bl Same as -\b-h\bh.
h\bhi\bis\bst\bte\bex\bxp\bpa\ban\bnd\bd
Same as -\b-H\bH.
- h\bhi\bis\bst\bto\bor\bry\by Enable command history, as described in _\bb_\ba_\bs_\bh(1)
- under H\bHI\bIS\bST\bTO\bOR\bRY\bY. This option is on by default in
+ h\bhi\bis\bst\bto\bor\bry\by Enable command history, as described in _\bb_\ba_\bs_\bh(1)
+ under H\bHI\bIS\bST\bTO\bOR\bRY\bY. This option is on by default in
interactive shells.
i\big\bgn\bno\bor\bre\bee\beo\bof\bf
- The effect is as if the shell command had been
+ The effect is as if the shell command had been
executed (see S\bSh\bhe\bel\bll\bl V\bVa\bar\bri\bia\bab\bbl\ble\bes\bs in _\bb_\ba_\bs_\bh(1)).
k\bke\bey\byw\bwo\bor\brd\bd Same as -\b-k\bk.
m\bmo\bon\bni\bit\bto\bor\br Same as -\b-m\bm.
p\bph\bhy\bys\bsi\bic\bca\bal\bl
Same as -\b-P\bP.
p\bpi\bip\bpe\bef\bfa\bai\bil\bl
- If set, the return value of a pipeline is the
- value of the last (rightmost) command to exit
- with a non-zero status, or zero if all commands
- in the pipeline exit successfully. This option
+ If set, the return value of a pipeline is the
+ value of the last (rightmost) command to exit
+ with a non-zero status, or zero if all commands
+ in the pipeline exit successfully. This option
is disabled by default.
- p\bpo\bos\bsi\bix\bx Change the behavior of b\bba\bas\bsh\bh where the default
- operation differs from the POSIX standard to
- match the standard (_\bp_\bo_\bs_\bi_\bx _\bm_\bo_\bd_\be). See S\bSE\bEE\bE A\bAL\bLS\bSO\bO
- in _\bb_\ba_\bs_\bh(1) for a reference to a document that
+ p\bpo\bos\bsi\bix\bx Change the behavior of b\bba\bas\bsh\bh where the default
+ operation differs from the POSIX standard to
+ match the standard (_\bp_\bo_\bs_\bi_\bx _\bm_\bo_\bd_\be). See S\bSE\bEE\bE A\bAL\bLS\bSO\bO
+ in _\bb_\ba_\bs_\bh(1) for a reference to a document that
details how posix mode affects bash's behavior.
p\bpr\bri\biv\bvi\bil\ble\beg\bge\bed\bd
Same as -\b-p\bp.
v\bve\ber\brb\bbo\bos\bse\be Same as -\b-v\bv.
- v\bvi\bi Use a vi-style command line editing interface.
+ v\bvi\bi Use a vi-style command line editing interface.
This also affects the editing interface used for
r\bre\bea\bad\bd -\b-e\be.
x\bxt\btr\bra\bac\bce\be Same as -\b-x\bx.
- If -\b-o\bo is supplied with no _\bo_\bp_\bt_\bi_\bo_\bn_\b-_\bn_\ba_\bm_\be, s\bse\bet\bt prints the
- current shell option settings. If +\b+o\bo is supplied with
- no _\bo_\bp_\bt_\bi_\bo_\bn_\b-_\bn_\ba_\bm_\be, s\bse\bet\bt prints a series of s\bse\bet\bt commands to
- recreate the current option settings on the standard
+ If -\b-o\bo is supplied with no _\bo_\bp_\bt_\bi_\bo_\bn_\b-_\bn_\ba_\bm_\be, s\bse\bet\bt prints the
+ current shell option settings. If +\b+o\bo is supplied with
+ no _\bo_\bp_\bt_\bi_\bo_\bn_\b-_\bn_\ba_\bm_\be, s\bse\bet\bt prints a series of s\bse\bet\bt commands to
+ recreate the current option settings on the standard
output.
- -\b-p\bp Turn on _\bp_\br_\bi_\bv_\bi_\bl_\be_\bg_\be_\bd mode. In this mode, the shell does
- not read the $\b$E\bEN\bNV\bV and $\b$B\bBA\bAS\bSH\bH_\b_E\bEN\bNV\bV files, shell functions
- are not inherited from the environment, and the S\bSH\bHE\bEL\bL-\b-
- L\bLO\bOP\bPT\bTS\bS, B\bBA\bAS\bSH\bHO\bOP\bPT\bTS\bS, C\bCD\bDP\bPA\bAT\bTH\bH, and G\bGL\bLO\bOB\bBI\bIG\bGN\bNO\bOR\bRE\bE variables, if
- they appear in the environment, are ignored. If the
- shell is started with the effective user (group) id not
- equal to the real user (group) id, and the -\b-p\bp option is
- not supplied, these actions are taken and the effective
+ -\b-p\bp Turn on _\bp_\br_\bi_\bv_\bi_\bl_\be_\bg_\be_\bd mode. In this mode, the shell does
+ not read the $\b$E\bEN\bNV\bV and $\b$B\bBA\bAS\bSH\bH_\b_E\bEN\bNV\bV files, shell functions
+ are not inherited from the environment, and the S\bSH\bHE\bEL\bL-\b-
+ L\bLO\bOP\bPT\bTS\bS, B\bBA\bAS\bSH\bHO\bOP\bPT\bTS\bS, C\bCD\bDP\bPA\bAT\bTH\bH, and G\bGL\bLO\bOB\bBI\bIG\bGN\bNO\bOR\bRE\bE variables, if
+ they appear in the environment, are ignored. If the
+ shell is started with the effective user (group) id not
+ equal to the real user (group) id, and the -\b-p\bp option is
+ not supplied, these actions are taken and the effective
user id is set to the real user id. If the -\b-p\bp option is
supplied at startup, the effective user id is not reset.
- Turning this option off causes the effective user and
+ Turning this option off causes the effective user and
group ids to be set to the real user and group ids.
-\b-r\br Enable restricted shell mode. This option cannot be un-
set once it has been set.
-\b-t\bt Exit after reading and executing one command.
-\b-u\bu Treat unset variables and parameters other than the spe-
- cial parameters and or array variables subscripted with
- or as an error when performing parameter expansion. If
- expansion is attempted on an unset variable or parame-
- ter, the shell prints an error message, and, if not in-
+ cial parameters and or array variables subscripted with
+ or as an error when performing parameter expansion. If
+ expansion is attempted on an unset variable or parame-
+ ter, the shell prints an error message, and, if not in-
teractive, exits with a non-zero status.
-\b-v\bv Print shell input lines as they are read.
- -\b-x\bx After expanding each _\bs_\bi_\bm_\bp_\bl_\be _\bc_\bo_\bm_\bm_\ba_\bn_\bd, f\bfo\bor\br command, c\bca\bas\bse\be
+ -\b-x\bx After expanding each _\bs_\bi_\bm_\bp_\bl_\be _\bc_\bo_\bm_\bm_\ba_\bn_\bd, f\bfo\bor\br command, c\bca\bas\bse\be
command, s\bse\bel\ble\bec\bct\bt command, or arithmetic f\bfo\bor\br command, dis-
- play the expanded value of P\bPS\bS4\b4, followed by the command
- and its expanded arguments or associated word list, to
+ play the expanded value of P\bPS\bS4\b4, followed by the command
+ and its expanded arguments or associated word list, to
the standard error.
- -\b-B\bB The shell performs brace expansion (see B\bBr\bra\bac\bce\be E\bEx\bxp\bpa\ban\bns\bsi\bio\bon\bn
+ -\b-B\bB The shell performs brace expansion (see B\bBr\bra\bac\bce\be E\bEx\bxp\bpa\ban\bns\bsi\bio\bon\bn
in _\bb_\ba_\bs_\bh(1)). This is on by default.
- -\b-C\bC If set, b\bba\bas\bsh\bh does not overwrite an existing file with
- the >\b>, >\b>&\b&, and <\b<>\b> redirection operators. Using the
- redirection operator >\b>|\b| instead of >\b> will override this
+ -\b-C\bC If set, b\bba\bas\bsh\bh does not overwrite an existing file with
+ the >\b>, >\b>&\b&, and <\b<>\b> redirection operators. Using the
+ redirection operator >\b>|\b| instead of >\b> will override this
and force the creation of an output file.
-\b-E\bE If set, any trap on E\bER\bRR\bR is inherited by shell functions,
- command substitutions, and commands executed in a sub-
- shell environment. The E\bER\bRR\bR trap is normally not inher-
+ command substitutions, and commands executed in a sub-
+ shell environment. The E\bER\bRR\bR trap is normally not inher-
ited in such cases.
-\b-H\bH Enable !\b! style history substitution. This option is on
by default when the shell is interactive.
- -\b-P\bP If set, the shell does not resolve symbolic links when
- executing commands such as c\bcd\bd that change the current
+ -\b-P\bP If set, the shell does not resolve symbolic links when
+ executing commands such as c\bcd\bd that change the current
working directory. It uses the physical directory
structure instead. By default, b\bba\bas\bsh\bh follows the logical
- chain of directories when performing commands which
+ chain of directories when performing commands which
change the current directory.
- -\b-T\bT If set, any traps on D\bDE\bEB\bBU\bUG\bG and R\bRE\bET\bTU\bUR\bRN\bN are inherited by
+ -\b-T\bT If set, any traps on D\bDE\bEB\bBU\bUG\bG and R\bRE\bET\bTU\bUR\bRN\bN are inherited by
shell functions, command substitutions, and commands ex-
- ecuted in a subshell environment. The D\bDE\bEB\bBU\bUG\bG and R\bRE\bET\bTU\bUR\bRN\bN
+ ecuted in a subshell environment. The D\bDE\bEB\bBU\bUG\bG and R\bRE\bET\bTU\bUR\bRN\bN
traps are normally not inherited in such cases.
-\b--\b- If no arguments follow this option, unset the positional
parameters. Otherwise, set the positional parameters to
the _\ba_\br_\bgs, even if some of them begin with a -\b-.
-\b- Signal the end of options, and assign all remaining _\ba_\br_\bgs
to the positional parameters. The -\b-x\bx and -\b-v\bv options are
- turned off. If there are no _\ba_\br_\bgs, the positional para-
+ turned off. If there are no _\ba_\br_\bgs, the positional para-
meters remain unchanged.
- The options are off by default unless otherwise noted. Using +
- rather than - causes these options to be turned off. The op-
+ The options are off by default unless otherwise noted. Using +
+ rather than - causes these options to be turned off. The op-
tions can also be specified as arguments to an invocation of the
- shell. The current set of options may be found in $\b$-\b-. The re-
- turn status is always zero unless an invalid option is encoun-
+ shell. The current set of options may be found in $\b$-\b-. The re-
+ turn status is always zero unless an invalid option is encoun-
tered.
s\bsh\bhi\bif\bft\bt [_\bn]
Rename positional parameters from _\bn+1 ... to $\b$1\b1 .\b..\b..\b..\b. Parameters
- represented by the numbers $\b$#\b# down to $\b$#\b#-_\bn+1 are unset. _\bn must
- be a non-negative number less than or equal to $\b$#\b#. If _\bn is 0,
- no parameters are changed. If _\bn is not given, it is assumed to
- be 1. If _\bn is greater than $\b$#\b#, the positional parameters are
- not changed. The return status is greater than zero if _\bn is
+ represented by the numbers $\b$#\b# down to $\b$#\b#-_\bn+1 are unset. _\bn must
+ be a non-negative number less than or equal to $\b$#\b#. If _\bn is 0,
+ no parameters are changed. If _\bn is not given, it is assumed to
+ be 1. If _\bn is greater than $\b$#\b#, the positional parameters are
+ not changed. The return status is greater than zero if _\bn is
greater than $\b$#\b# or less than zero; otherwise 0.
s\bsh\bho\bop\bpt\bt [-\b-p\bpq\bqs\bsu\bu] [-\b-o\bo] [_\bo_\bp_\bt_\bn_\ba_\bm_\be ...]
- Toggle the values of settings controlling optional shell behav-
- ior. The settings can be either those listed below, or, if the
+ Toggle the values of settings controlling optional shell behav-
+ ior. The settings can be either those listed below, or, if the
-\b-o\bo option is used, those available with the -\b-o\bo option to the s\bse\bet\bt
builtin command.
- With no options, or with the -\b-p\bp option, display a list of all
- settable options, with an indication of whether or not each is
- set; if any _\bo_\bp_\bt_\bn_\ba_\bm_\be_\bs are supplied, the output is restricted to
+ With no options, or with the -\b-p\bp option, display a list of all
+ settable options, with an indication of whether or not each is
+ set; if any _\bo_\bp_\bt_\bn_\ba_\bm_\be_\bs are supplied, the output is restricted to
those options. The -\b-p\bp option displays output in a form that may
be reused as input.
Other options have the following meanings:
-\b-s\bs Enable (set) each _\bo_\bp_\bt_\bn_\ba_\bm_\be.
-\b-u\bu Disable (unset) each _\bo_\bp_\bt_\bn_\ba_\bm_\be.
- -\b-q\bq Suppresses normal output (quiet mode); the return status
+ -\b-q\bq Suppresses normal output (quiet mode); the return status
indicates whether the _\bo_\bp_\bt_\bn_\ba_\bm_\be is set or unset. If multi-
- ple _\bo_\bp_\bt_\bn_\ba_\bm_\be arguments are supplied with -\b-q\bq, the return
+ ple _\bo_\bp_\bt_\bn_\ba_\bm_\be arguments are supplied with -\b-q\bq, the return
status is zero if all _\bo_\bp_\bt_\bn_\ba_\bm_\be_\bs are enabled; non-zero oth-
erwise.
- -\b-o\bo Restricts the values of _\bo_\bp_\bt_\bn_\ba_\bm_\be to be those defined for
+ -\b-o\bo Restricts the values of _\bo_\bp_\bt_\bn_\ba_\bm_\be to be those defined for
the -\b-o\bo option to the s\bse\bet\bt builtin.
- If either -\b-s\bs or -\b-u\bu is used with no _\bo_\bp_\bt_\bn_\ba_\bm_\be arguments, s\bsh\bho\bop\bpt\bt
- shows only those options which are set or unset, respectively.
- Unless otherwise noted, the s\bsh\bho\bop\bpt\bt options are disabled (unset)
+ If either -\b-s\bs or -\b-u\bu is used with no _\bo_\bp_\bt_\bn_\ba_\bm_\be arguments, s\bsh\bho\bop\bpt\bt
+ shows only those options which are set or unset, respectively.
+ Unless otherwise noted, the s\bsh\bho\bop\bpt\bt options are disabled (unset)
by default.
- The return status when listing options is zero if all _\bo_\bp_\bt_\bn_\ba_\bm_\be_\bs
- are enabled, non-zero otherwise. When setting or unsetting op-
- tions, the return status is zero unless an _\bo_\bp_\bt_\bn_\ba_\bm_\be is not a
+ The return status when listing options is zero if all _\bo_\bp_\bt_\bn_\ba_\bm_\be_\bs
+ are enabled, non-zero otherwise. When setting or unsetting op-
+ tions, the return status is zero unless an _\bo_\bp_\bt_\bn_\ba_\bm_\be is not a
valid shell option.
The list of s\bsh\bho\bop\bpt\bt options is:
a\bar\brr\bra\bay\by_\b_e\bex\bxp\bpa\ban\bnd\bd_\b_o\bon\bnc\bce\be
- If set, the shell suppresses multiple evaluation of as-
+ If set, the shell suppresses multiple evaluation of as-
sociative and indexed array subscripts during arithmetic
expression evaluation, while executing builtins that can
- perform variable assignments, and while executing
+ perform variable assignments, and while executing
builtins that perform array dereferencing.
a\bas\bss\bso\boc\bc_\b_e\bex\bxp\bpa\ban\bnd\bd_\b_o\bon\bnc\bce\be
Deprecated; a synonym for a\bar\brr\bra\bay\by_\b_e\bex\bxp\bpa\ban\bnd\bd_\b_o\bon\bnc\bce\be.
- a\bau\but\bto\boc\bcd\bd If set, a command name that is the name of a directory
- is executed as if it were the argument to the c\bcd\bd com-
+ a\bau\but\bto\boc\bcd\bd If set, a command name that is the name of a directory
+ is executed as if it were the argument to the c\bcd\bd com-
mand. This option is only used by interactive shells.
b\bba\bas\bsh\bh_\b_s\bso\bou\bur\brc\bce\be_\b_f\bfu\bul\bll\blp\bpa\bat\bth\bh
- If set, filenames added to the B\bBA\bAS\bSH\bH_\b_S\bSO\bOU\bUR\bRC\bCE\bE array vari-
- able are converted to full pathnames (see S\bSh\bhe\bel\bll\bl V\bVa\bar\bri\bi-\b-
+ If set, filenames added to the B\bBA\bAS\bSH\bH_\b_S\bSO\bOU\bUR\bRC\bCE\bE array vari-
+ able are converted to full pathnames (see S\bSh\bhe\bel\bll\bl V\bVa\bar\bri\bi-\b-
a\bab\bbl\ble\bes\bs above).
c\bcd\bda\bab\bbl\ble\be_\b_v\bva\bar\brs\bs
- If set, an argument to the c\bcd\bd builtin command that is
- not a directory is assumed to be the name of a variable
+ If set, an argument to the c\bcd\bd builtin command that is
+ not a directory is assumed to be the name of a variable
whose value is the directory to change to.
- c\bcd\bds\bsp\bpe\bel\bll\bl If set, the c\bcd\bd command attempts to correct minor errors
- in the spelling of a directory component. Minor errors
- include transposed characters, a missing character, and
+ c\bcd\bds\bsp\bpe\bel\bll\bl If set, the c\bcd\bd command attempts to correct minor errors
+ in the spelling of a directory component. Minor errors
+ include transposed characters, a missing character, and
one extra character. If c\bcd\bd corrects the directory name,
- it prints the corrected filename, and the command pro-
+ it prints the corrected filename, and the command pro-
ceeds. This option is only used by interactive shells.
c\bch\bhe\bec\bck\bkh\bha\bas\bsh\bh
If set, b\bba\bas\bsh\bh checks that a command found in the hash ta-
- ble exists before trying to execute it. If a hashed
- command no longer exists, b\bba\bas\bsh\bh performs a normal path
+ ble exists before trying to execute it. If a hashed
+ command no longer exists, b\bba\bas\bsh\bh performs a normal path
search.
c\bch\bhe\bec\bck\bkj\bjo\bob\bbs\bs
If set, b\bba\bas\bsh\bh lists the status of any stopped and running
- jobs before exiting an interactive shell. If any jobs
+ jobs before exiting an interactive shell. If any jobs
are running, b\bba\bas\bsh\bh defers the exit until a second exit is
- attempted without an intervening command (see J\bJO\bOB\bB C\bCO\bON\bN-\b-
+ attempted without an intervening command (see J\bJO\bOB\bB C\bCO\bON\bN-\b-
T\bTR\bRO\bOL\bL in _\bb_\ba_\bs_\bh(1)). The shell always postpones exiting if
any jobs are stopped.
c\bch\bhe\bec\bck\bkw\bwi\bin\bns\bsi\biz\bze\be
- If set, b\bba\bas\bsh\bh checks the window size after each external
- (non-builtin) command and, if necessary, updates the
- values of L\bLI\bIN\bNE\bES\bS and C\bCO\bOL\bLU\bUM\bMN\bNS\bS, using the file descriptor
- associated with the standard error if it is a terminal.
+ If set, b\bba\bas\bsh\bh checks the window size after each external
+ (non-builtin) command and, if necessary, updates the
+ values of L\bLI\bIN\bNE\bES\bS and C\bCO\bOL\bLU\bUM\bMN\bNS\bS, using the file descriptor
+ associated with the standard error if it is a terminal.
This option is enabled by default.
- c\bcm\bmd\bdh\bhi\bis\bst\bt If set, b\bba\bas\bsh\bh attempts to save all lines of a multiple-
- line command in the same history entry. This allows
- easy re-editing of multi-line commands. This option is
- enabled by default, but only has an effect if command
- history is enabled, as described in _\bb_\ba_\bs_\bh(1) under H\bHI\bIS\bS-\b-
+ c\bcm\bmd\bdh\bhi\bis\bst\bt If set, b\bba\bas\bsh\bh attempts to save all lines of a multiple-
+ line command in the same history entry. This allows
+ easy re-editing of multi-line commands. This option is
+ enabled by default, but only has an effect if command
+ history is enabled, as described in _\bb_\ba_\bs_\bh(1) under H\bHI\bIS\bS-\b-
T\bTO\bOR\bRY\bY.
c\bco\bom\bmp\bpa\bat\bt3\b31\b1
c\bco\bom\bmp\bpa\bat\bt3\b32\b2
c\bco\bom\bmp\bpa\bat\bt4\b43\b3
c\bco\bom\bmp\bpa\bat\bt4\b44\b4
c\bco\bom\bmp\bpa\bat\bt5\b50\b0
- These control aspects of the shell's compatibility mode
+ These control aspects of the shell's compatibility mode
(see S\bSH\bHE\bEL\bLL\bL C\bCO\bOM\bMP\bPA\bAT\bTI\bIB\bBI\bIL\bLI\bIT\bTY\bY M\bMO\bOD\bDE\bE in _\bb_\ba_\bs_\bh(1)).
c\bco\bom\bmp\bpl\ble\bet\bte\be_\b_f\bfu\bul\bll\blq\bqu\buo\bot\bte\be
- If set, b\bba\bas\bsh\bh quotes all shell metacharacters in file-
- names and directory names when performing completion.
+ If set, b\bba\bas\bsh\bh quotes all shell metacharacters in file-
+ names and directory names when performing completion.
If not set, b\bba\bas\bsh\bh removes metacharacters such as the dol-
- lar sign from the set of characters that will be quoted
- in completed filenames when these metacharacters appear
- in shell variable references in words to be completed.
- This means that dollar signs in variable names that ex-
- pand to directories will not be quoted; however, any
- dollar signs appearing in filenames will not be quoted,
- either. This is active only when bash is using back-
- slashes to quote completed filenames. This variable is
- set by default, which is the default bash behavior in
+ lar sign from the set of characters that will be quoted
+ in completed filenames when these metacharacters appear
+ in shell variable references in words to be completed.
+ This means that dollar signs in variable names that ex-
+ pand to directories will not be quoted; however, any
+ dollar signs appearing in filenames will not be quoted,
+ either. This is active only when bash is using back-
+ slashes to quote completed filenames. This variable is
+ set by default, which is the default bash behavior in
versions through 4.2.
d\bdi\bir\bre\bex\bxp\bpa\ban\bnd\bd
- If set, b\bba\bas\bsh\bh replaces directory names with the results
- of word expansion when performing filename completion.
+ If set, b\bba\bas\bsh\bh replaces directory names with the results
+ of word expansion when performing filename completion.
This changes the contents of the r\bre\bea\bad\bdl\bli\bin\bne\be editing
- buffer. If not set, b\bba\bas\bsh\bh attempts to preserve what the
+ buffer. If not set, b\bba\bas\bsh\bh attempts to preserve what the
user typed.
d\bdi\bir\brs\bsp\bpe\bel\bll\bl
- If set, b\bba\bas\bsh\bh attempts spelling correction on directory
- names during word completion if the directory name ini-
+ If set, b\bba\bas\bsh\bh attempts spelling correction on directory
+ names during word completion if the directory name ini-
tially supplied does not exist.
- d\bdo\bot\btg\bgl\blo\bob\bb If set, b\bba\bas\bsh\bh includes filenames beginning with a in the
- results of pathname expansion. The filenames _\b. and _\b._\b.
- must always be matched explicitly, even if d\bdo\bot\btg\bgl\blo\bob\bb is
+ d\bdo\bot\btg\bgl\blo\bob\bb If set, b\bba\bas\bsh\bh includes filenames beginning with a in the
+ results of pathname expansion. The filenames _\b. and _\b._\b.
+ must always be matched explicitly, even if d\bdo\bot\btg\bgl\blo\bob\bb is
set.
e\bex\bxe\bec\bcf\bfa\bai\bil\bl
If set, a non-interactive shell will not exit if it can-
- not execute the file specified as an argument to the
- e\bex\bxe\bec\bc builtin. An interactive shell does not exit if
+ not execute the file specified as an argument to the
+ e\bex\bxe\bec\bc builtin. An interactive shell does not exit if
e\bex\bxe\bec\bc fails.
e\bex\bxp\bpa\ban\bnd\bd_\b_a\bal\bli\bia\bas\bse\bes\bs
If set, aliases are expanded as described in _\bb_\ba_\bs_\bh(1) un-
- der A\bAL\bLI\bIA\bAS\bSE\bES\bS. This option is enabled by default for in-
+ der A\bAL\bLI\bIA\bAS\bSE\bES\bS. This option is enabled by default for in-
teractive shells.
e\bex\bxt\btd\bde\beb\bbu\bug\bg
- If set at shell invocation, or in a shell startup file,
+ If set at shell invocation, or in a shell startup file,
arrange to execute the debugger profile before the shell
- starts, identical to the -\b--\b-d\bde\beb\bbu\bug\bgg\bge\ber\br option. If set af-
- ter invocation, behavior intended for use by debuggers
+ starts, identical to the -\b--\b-d\bde\beb\bbu\bug\bgg\bge\ber\br option. If set af-
+ ter invocation, behavior intended for use by debuggers
is enabled:
1\b1.\b. The -\b-F\bF option to the d\bde\bec\bcl\bla\bar\bre\be builtin displays the
source file name and line number corresponding to
each function name supplied as an argument.
- 2\b2.\b. If the command run by the D\bDE\bEB\bBU\bUG\bG trap returns a
- non-zero value, the next command is skipped and
+ 2\b2.\b. If the command run by the D\bDE\bEB\bBU\bUG\bG trap returns a
+ non-zero value, the next command is skipped and
not executed.
- 3\b3.\b. If the command run by the D\bDE\bEB\bBU\bUG\bG trap returns a
- value of 2, and the shell is executing in a sub-
- routine (a shell function or a shell script exe-
- cuted by the .\b. or s\bso\bou\bur\brc\bce\be builtins), the shell
+ 3\b3.\b. If the command run by the D\bDE\bEB\bBU\bUG\bG trap returns a
+ value of 2, and the shell is executing in a sub-
+ routine (a shell function or a shell script exe-
+ cuted by the .\b. or s\bso\bou\bur\brc\bce\be builtins), the shell
simulates a call to r\bre\bet\btu\bur\brn\bn.
- 4\b4.\b. B\bBA\bAS\bSH\bH_\b_A\bAR\bRG\bGC\bC and B\bBA\bAS\bSH\bH_\b_A\bAR\bRG\bGV\bV are updated as described
+ 4\b4.\b. B\bBA\bAS\bSH\bH_\b_A\bAR\bRG\bGC\bC and B\bBA\bAS\bSH\bH_\b_A\bAR\bRG\bGV\bV are updated as described
in their descriptions in _\bb_\ba_\bs_\bh(1)).
- 5\b5.\b. Function tracing is enabled: command substitu-
+ 5\b5.\b. Function tracing is enabled: command substitu-
tion, shell functions, and subshells invoked with
(\b( _\bc_\bo_\bm_\bm_\ba_\bn_\bd )\b) inherit the D\bDE\bEB\bBU\bUG\bG and R\bRE\bET\bTU\bUR\bRN\bN traps.
- 6\b6.\b. Error tracing is enabled: command substitution,
- shell functions, and subshells invoked with (\b(
+ 6\b6.\b. Error tracing is enabled: command substitution,
+ shell functions, and subshells invoked with (\b(
_\bc_\bo_\bm_\bm_\ba_\bn_\bd )\b) inherit the E\bER\bRR\bR trap.
- e\bex\bxt\btg\bgl\blo\bob\bb If set, enable the extended pattern matching features
+ e\bex\bxt\btg\bgl\blo\bob\bb If set, enable the extended pattern matching features
described in _\bb_\ba_\bs_\bh(1) under P\bPa\bat\bth\bhn\bna\bam\bme\be E\bEx\bxp\bpa\ban\bns\bsi\bio\bon\bn.
e\bex\bxt\btq\bqu\buo\bot\bte\be
- If set, $\b$_\bs_\bt_\br_\bi_\bn_\bg and $\b$_\bs_\bt_\br_\bi_\bn_\bg quoting is performed within
+ If set, $\b$_\bs_\bt_\br_\bi_\bn_\bg and $\b$_\bs_\bt_\br_\bi_\bn_\bg quoting is performed within
$\b${\b{_\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br}\b} expansions enclosed in double quotes. This
option is enabled by default.
f\bfa\bai\bil\blg\bgl\blo\bob\bb
- If set, patterns which fail to match filenames during
+ If set, patterns which fail to match filenames during
pathname expansion result in an expansion error.
f\bfo\bor\brc\bce\be_\b_f\bfi\big\bgn\bno\bor\bre\be
- If set, the suffixes specified by the F\bFI\bIG\bGN\bNO\bOR\bRE\bE shell
- variable cause words to be ignored when performing word
+ If set, the suffixes specified by the F\bFI\bIG\bGN\bNO\bOR\bRE\bE shell
+ variable cause words to be ignored when performing word
completion even if the ignored words are the only possi-
- ble completions. See S\bSh\bhe\bel\bll\bl V\bVa\bar\bri\bia\bab\bbl\ble\bes\bs in _\bb_\ba_\bs_\bh(1) for a
- description of F\bFI\bIG\bGN\bNO\bOR\bRE\bE. This option is enabled by de-
+ ble completions. See S\bSh\bhe\bel\bll\bl V\bVa\bar\bri\bia\bab\bbl\ble\bes\bs in _\bb_\ba_\bs_\bh(1) for a
+ description of F\bFI\bIG\bGN\bNO\bOR\bRE\bE. This option is enabled by de-
fault.
g\bgl\blo\bob\bba\bas\bsc\bci\bii\bir\bra\ban\bng\bge\bes\bs
- If set, range expressions used in pattern matching
- bracket expressions (see P\bPa\bat\btt\bte\ber\brn\bn M\bMa\bat\btc\bch\bhi\bin\bng\bg in _\bb_\ba_\bs_\bh(1))
+ If set, range expressions used in pattern matching
+ bracket expressions (see P\bPa\bat\btt\bte\ber\brn\bn M\bMa\bat\btc\bch\bhi\bin\bng\bg in _\bb_\ba_\bs_\bh(1))
behave as if in the traditional C locale when performing
- comparisons. That is, pattern matching does not take
+ comparisons. That is, pattern matching does not take
the current locale's collating sequence into account, so
- b\bb will not collate between A\bA and B\bB, and upper-case and
+ b\bb will not collate between A\bA and B\bB, and upper-case and
lower-case ASCII characters will collate together.
g\bgl\blo\bob\bbs\bsk\bki\bip\bpd\bdo\bot\bts\bs
- If set, pathname expansion will never match the file-
- names _\b. and _\b._\b. even if the pattern begins with a This
+ If set, pathname expansion will never match the file-
+ names _\b. and _\b._\b. even if the pattern begins with a This
option is enabled by default.
g\bgl\blo\bob\bbs\bst\bta\bar\br
If set, the pattern *\b**\b* used in a pathname expansion con-
- text will match all files and zero or more directories
- and subdirectories. If the pattern is followed by a /\b/,
+ text will match all files and zero or more directories
+ and subdirectories. If the pattern is followed by a /\b/,
only directories and subdirectories match.
g\bgn\bnu\bu_\b_e\ber\brr\brf\bfm\bmt\bt
If set, shell error messages are written in the standard
GNU error message format.
h\bhi\bis\bst\bta\bap\bpp\bpe\ben\bnd\bd
- If set, the history list is appended to the file named
+ If set, the history list is appended to the file named
by the value of the H\bHI\bIS\bST\bTF\bFI\bIL\bLE\bE variable when the shell ex-
its, rather than overwriting the file.
h\bhi\bis\bst\btr\bre\bee\bed\bdi\bit\bt
- If set, and r\bre\bea\bad\bdl\bli\bin\bne\be is being used, the user is given
- the opportunity to re-edit a failed history substitu-
+ If set, and r\bre\bea\bad\bdl\bli\bin\bne\be is being used, the user is given
+ the opportunity to re-edit a failed history substitu-
tion.
h\bhi\bis\bst\btv\bve\ber\bri\bif\bfy\by
- If set, and r\bre\bea\bad\bdl\bli\bin\bne\be is being used, the results of his-
- tory substitution are not immediately passed to the
- shell parser. Instead, the resulting line is loaded
+ If set, and r\bre\bea\bad\bdl\bli\bin\bne\be is being used, the results of his-
+ tory substitution are not immediately passed to the
+ shell parser. Instead, the resulting line is loaded
into the r\bre\bea\bad\bdl\bli\bin\bne\be editing buffer, allowing further modi-
fication.
h\bho\bos\bst\btc\bco\bom\bmp\bpl\ble\bet\bte\be
If set, and r\bre\bea\bad\bdl\bli\bin\bne\be is being used, b\bba\bas\bsh\bh will attempt to
- perform hostname completion when a word containing a @\b@
- is being completed (see C\bCo\bom\bmp\bpl\ble\bet\bti\bin\bng\bg under R\bRE\bEA\bAD\bDL\bLI\bIN\bNE\bE in
+ perform hostname completion when a word containing a @\b@
+ is being completed (see C\bCo\bom\bmp\bpl\ble\bet\bti\bin\bng\bg under R\bRE\bEA\bAD\bDL\bLI\bIN\bNE\bE in
_\bb_\ba_\bs_\bh(1)). This is enabled by default.
h\bhu\bup\bpo\bon\bne\bex\bxi\bit\bt
If set, b\bba\bas\bsh\bh will send S\bSI\bIG\bGH\bHU\bUP\bP to all jobs when an inter-
active login shell exits.
i\bin\bnh\bhe\ber\bri\bit\bt_\b_e\ber\brr\bre\bex\bxi\bit\bt
- If set, command substitution inherits the value of the
- e\ber\brr\bre\bex\bxi\bit\bt option, instead of unsetting it in the subshell
- environment. This option is enabled when posix mode is
+ If set, command substitution inherits the value of the
+ e\ber\brr\bre\bex\bxi\bit\bt option, instead of unsetting it in the subshell
+ environment. This option is enabled when posix mode is
enabled.
i\bin\bnt\bte\ber\bra\bac\bct\bti\biv\bve\be_\b_c\bco\bom\bmm\bme\ben\bnt\bts\bs
- In an interactive shell, a word beginning with #\b# causes
- that word and all remaining characters on that line to
- be ignored, as in a non-interactive shell (see C\bCO\bOM\bMM\bME\bEN\bNT\bTS\bS
+ In an interactive shell, a word beginning with #\b# causes
+ that word and all remaining characters on that line to
+ be ignored, as in a non-interactive shell (see C\bCO\bOM\bMM\bME\bEN\bNT\bTS\bS
in _\bb_\ba_\bs_\bh(1)). This option is enabled by default.
l\bla\bas\bst\btp\bpi\bip\bpe\be
- If set, and job control is not active, the shell runs
+ If set, and job control is not active, the shell runs
the last command of a pipeline not executed in the back-
ground in the current shell environment.
- l\bli\bit\bth\bhi\bis\bst\bt If set, and the c\bcm\bmd\bdh\bhi\bis\bst\bt option is enabled, multi-line
+ l\bli\bit\bth\bhi\bis\bst\bt If set, and the c\bcm\bmd\bdh\bhi\bis\bst\bt option is enabled, multi-line
commands are saved to the history with embedded newlines
rather than using semicolon separators where possible.
l\blo\boc\bca\bal\blv\bva\bar\br_\b_i\bin\bnh\bhe\ber\bri\bit\bt
scope before any new value is assigned. The nameref at-
tribute is not inherited.
l\blo\boc\bca\bal\blv\bva\bar\br_\b_u\bun\bns\bse\bet\bt
- If set, calling u\bun\bns\bse\bet\bt on local variables in previous
- function scopes marks them so subsequent lookups find
+ If set, calling u\bun\bns\bse\bet\bt on local variables in previous
+ function scopes marks them so subsequent lookups find
them unset until that function returns. This is identi-
- cal to the behavior of unsetting local variables at the
+ cal to the behavior of unsetting local variables at the
current function scope.
l\blo\bog\bgi\bin\bn_\b_s\bsh\bhe\bel\bll\bl
- The shell sets this option if it is started as a login
+ The shell sets this option if it is started as a login
shell (see I\bIN\bNV\bVO\bOC\bCA\bAT\bTI\bIO\bON\bN in _\bb_\ba_\bs_\bh(1)). The value may not be
changed.
m\bma\bai\bil\blw\bwa\bar\brn\bn
- If set, and a file that b\bba\bas\bsh\bh is checking for mail has
- been accessed since the last time it was checked, b\bba\bas\bsh\bh
+ If set, and a file that b\bba\bas\bsh\bh is checking for mail has
+ been accessed since the last time it was checked, b\bba\bas\bsh\bh
displays the message
n\bno\bo_\b_e\bem\bmp\bpt\bty\by_\b_c\bcm\bmd\bd_\b_c\bco\bom\bmp\bpl\ble\bet\bti\bio\bon\bn
If set, and r\bre\bea\bad\bdl\bli\bin\bne\be is being used, b\bba\bas\bsh\bh does not search
- P\bPA\bAT\bTH\bH for possible completions when completion is at-
+ P\bPA\bAT\bTH\bH for possible completions when completion is at-
tempted on an empty line.
n\bno\boc\bca\bas\bse\beg\bgl\blo\bob\bb
- If set, b\bba\bas\bsh\bh matches filenames in a case-insensitive
+ If set, b\bba\bas\bsh\bh matches filenames in a case-insensitive
fashion when performing pathname expansion (see P\bPa\bat\bth\bhn\bna\bam\bme\be
E\bEx\bxp\bpa\ban\bns\bsi\bio\bon\bn in _\bb_\ba_\bs_\bh(1)).
n\bno\boc\bca\bas\bse\bem\bma\bat\btc\bch\bh
- If set, b\bba\bas\bsh\bh matches patterns in a case-insensitive
+ If set, b\bba\bas\bsh\bh matches patterns in a case-insensitive
fashion when performing matching while executing c\bca\bas\bse\be or
[\b[[\b[ conditional commands, when performing pattern substi-
- tution word expansions, or when filtering possible com-
+ tution word expansions, or when filtering possible com-
pletions as part of programmable completion.
n\bno\boe\bex\bxp\bpa\ban\bnd\bd_\b_t\btr\bra\ban\bns\bsl\bla\bat\bti\bio\bon\bn
- If set, b\bba\bas\bsh\bh encloses the translated results of $\b$...
- quoting in single quotes instead of double quotes. If
+ If set, b\bba\bas\bsh\bh encloses the translated results of $\b$...
+ quoting in single quotes instead of double quotes. If
the string is not translated, this has no effect.
n\bnu\bul\bll\blg\bgl\blo\bob\bb
If set, pathname expansion patterns which match no files
- (see P\bPa\bat\bth\bhn\bna\bam\bme\be E\bEx\bxp\bpa\ban\bns\bsi\bio\bon\bn in _\bb_\ba_\bs_\bh(1)) expand to nothing
+ (see P\bPa\bat\bth\bhn\bna\bam\bme\be E\bEx\bxp\bpa\ban\bns\bsi\bio\bon\bn in _\bb_\ba_\bs_\bh(1)) expand to nothing
and are removed, rather than expanding to themselves.
p\bpa\bat\bts\bsu\bub\bb_\b_r\bre\bep\bpl\bla\bac\bce\bem\bme\ben\bnt\bt
If set, b\bba\bas\bsh\bh expands occurrences of &\b& in the replacement
- string of pattern substitution to the text matched by
- the pattern, as described under P\bPa\bar\bra\bam\bme\bet\bte\ber\br E\bEx\bxp\bpa\ban\bns\bsi\bio\bon\bn in
+ string of pattern substitution to the text matched by
+ the pattern, as described under P\bPa\bar\bra\bam\bme\bet\bte\ber\br E\bEx\bxp\bpa\ban\bns\bsi\bio\bon\bn in
_\bb_\ba_\bs_\bh(1). This option is enabled by default.
p\bpr\bro\bog\bgc\bco\bom\bmp\bp
- If set, enable the programmable completion facilities
- (see P\bPr\bro\bog\bgr\bra\bam\bmm\bma\bab\bbl\ble\be C\bCo\bom\bmp\bpl\ble\bet\bti\bio\bon\bn in _\bb_\ba_\bs_\bh(1)). This option
+ If set, enable the programmable completion facilities
+ (see P\bPr\bro\bog\bgr\bra\bam\bmm\bma\bab\bbl\ble\be C\bCo\bom\bmp\bpl\ble\bet\bti\bio\bon\bn in _\bb_\ba_\bs_\bh(1)). This option
is enabled by default.
p\bpr\bro\bog\bgc\bco\bom\bmp\bp_\b_a\bal\bli\bia\bas\bs
- If set, and programmable completion is enabled, b\bba\bas\bsh\bh
- treats a command name that doesn't have any completions
+ If set, and programmable completion is enabled, b\bba\bas\bsh\bh
+ treats a command name that doesn't have any completions
as a possible alias and attempts alias expansion. If it
- has an alias, b\bba\bas\bsh\bh attempts programmable completion us-
+ has an alias, b\bba\bas\bsh\bh attempts programmable completion us-
ing the command word resulting from the expanded alias.
p\bpr\bro\bom\bmp\bpt\btv\bva\bar\brs\bs
If set, prompt strings undergo parameter expansion, com-
- mand substitution, arithmetic expansion, and quote re-
- moval after being expanded as described in P\bPR\bRO\bOM\bMP\bPT\bTI\bIN\bNG\bG in
+ mand substitution, arithmetic expansion, and quote re-
+ moval after being expanded as described in P\bPR\bRO\bOM\bMP\bPT\bTI\bIN\bNG\bG in
_\bb_\ba_\bs_\bh(1). This option is enabled by default.
r\bre\bes\bst\btr\bri\bic\bct\bte\bed\bd_\b_s\bsh\bhe\bel\bll\bl
- The shell sets this option if it is started in re-
- stricted mode (see R\bRE\bES\bST\bTR\bRI\bIC\bCT\bTE\bED\bD S\bSH\bHE\bEL\bLL\bL in _\bb_\ba_\bs_\bh(1)). The
- value may not be changed. This is not reset when the
- startup files are executed, allowing the startup files
+ The shell sets this option if it is started in re-
+ stricted mode (see R\bRE\bES\bST\bTR\bRI\bIC\bCT\bTE\bED\bD S\bSH\bHE\bEL\bLL\bL in _\bb_\ba_\bs_\bh(1)). The
+ value may not be changed. This is not reset when the
+ startup files are executed, allowing the startup files
to discover whether or not a shell is restricted.
s\bsh\bhi\bif\bft\bt_\b_v\bve\ber\brb\bbo\bos\bse\be
- If set, the s\bsh\bhi\bif\bft\bt builtin prints an error message when
+ If set, the s\bsh\bhi\bif\bft\bt builtin prints an error message when
the shift count exceeds the number of positional parame-
ters.
s\bso\bou\bur\brc\bce\bep\bpa\bat\bth\bh
If set, the .\b. (s\bso\bou\bur\brc\bce\be) builtin uses the value of P\bPA\bAT\bTH\bH to
- find the directory containing the file supplied as an
- argument when the -\b-p\bp option is not supplied. This op-
+ find the directory containing the file supplied as an
+ argument when the -\b-p\bp option is not supplied. This op-
tion is enabled by default.
v\bva\bar\brr\bre\bed\bdi\bir\br_\b_c\bcl\blo\bos\bse\be
- If set, the shell automatically closes file descriptors
- assigned using the _\b{_\bv_\ba_\br_\bn_\ba_\bm_\be_\b} redirection syntax (see
- R\bRE\bED\bDI\bIR\bRE\bEC\bCT\bTI\bIO\bON\bN in _\bb_\ba_\bs_\bh(1)) instead of leaving them open
+ If set, the shell automatically closes file descriptors
+ assigned using the _\b{_\bv_\ba_\br_\bn_\ba_\bm_\be_\b} redirection syntax (see
+ R\bRE\bED\bDI\bIR\bRE\bEC\bCT\bTI\bIO\bON\bN in _\bb_\ba_\bs_\bh(1)) instead of leaving them open
when the command completes.
x\bxp\bpg\bg_\b_e\bec\bch\bho\bo
- If set, the e\bec\bch\bho\bo builtin expands backslash-escape se-
- quences by default. If the p\bpo\bos\bsi\bix\bx shell option is also
+ If set, the e\bec\bch\bho\bo builtin expands backslash-escape se-
+ quences by default. If the p\bpo\bos\bsi\bix\bx shell option is also
enabled, e\bec\bch\bho\bo does not interpret any options.
s\bsu\bus\bsp\bpe\ben\bnd\bd [-\b-f\bf]
- Suspend the execution of this shell until it receives a S\bSI\bIG\bGC\bCO\bON\bNT\bT
- signal. A login shell, or a shell without job control enabled,
- cannot be suspended; the -\b-f\bf option will override this and force
- the suspension. The return status is 0 unless the shell is a
- login shell or job control is not enabled and -\b-f\bf is not sup-
+ Suspend the execution of this shell until it receives a S\bSI\bIG\bGC\bCO\bON\bNT\bT
+ signal. A login shell, or a shell without job control enabled,
+ cannot be suspended; the -\b-f\bf option will override this and force
+ the suspension. The return status is 0 unless the shell is a
+ login shell or job control is not enabled and -\b-f\bf is not sup-
plied.
t\bte\bes\bst\bt _\be_\bx_\bp_\br
[\b[ _\be_\bx_\bp_\br ]\b]
Return a status of 0 (true) or 1 (false) depending on the evalu-
- ation of the conditional expression _\be_\bx_\bp_\br. Each operator and
- operand must be a separate argument. Expressions are composed
- of the primaries described in _\bb_\ba_\bs_\bh(1) under C\bCO\bON\bND\bDI\bIT\bTI\bIO\bON\bNA\bAL\bL E\bEX\bXP\bPR\bRE\bES\bS-\b-
+ ation of the conditional expression _\be_\bx_\bp_\br. Each operator and
+ operand must be a separate argument. Expressions are composed
+ of the primaries described in _\bb_\ba_\bs_\bh(1) under C\bCO\bON\bND\bDI\bIT\bTI\bIO\bON\bNA\bAL\bL E\bEX\bXP\bPR\bRE\bES\bS-\b-
S\bSI\bIO\bON\bNS\bS. t\bte\bes\bst\bt does not accept any options, nor does it accept and
ignore an argument of -\b--\b- as signifying the end of options.
- Expressions may be combined using the following operators,
- listed in decreasing order of precedence. The evaluation de-
+ Expressions may be combined using the following operators,
+ listed in decreasing order of precedence. The evaluation de-
pends on the number of arguments; see below. t\bte\bes\bst\bt uses operator
precedence when there are five or more arguments.
!\b! _\be_\bx_\bp_\br True if _\be_\bx_\bp_\br is false.
(\b( _\be_\bx_\bp_\br )\b)
- Returns the value of _\be_\bx_\bp_\br. This may be used to override
+ Returns the value of _\be_\bx_\bp_\br. This may be used to override
normal operator precedence.
_\be_\bx_\bp_\br_\b1 -a\ba _\be_\bx_\bp_\br_\b2
True if both _\be_\bx_\bp_\br_\b1 and _\be_\bx_\bp_\br_\b2 are true.
null.
2 arguments
If the first argument is !\b!, the expression is true if and
- only if the second argument is null. If the first argu-
- ment is one of the unary conditional operators listed in
- _\bb_\ba_\bs_\bh(1) under C\bCO\bON\bND\bDI\bIT\bTI\bIO\bON\bNA\bAL\bL E\bEX\bXP\bPR\bRE\bES\bSS\bSI\bIO\bON\bNS\bS, the expression is
+ only if the second argument is null. If the first argu-
+ ment is one of the unary conditional operators listed in
+ _\bb_\ba_\bs_\bh(1) under C\bCO\bON\bND\bDI\bIT\bTI\bIO\bON\bNA\bAL\bL E\bEX\bXP\bPR\bRE\bES\bSS\bSI\bIO\bON\bNS\bS, the expression is
true if the unary test is true. If the first argument is
not a valid unary conditional operator, the expression is
false.
3 arguments
The following conditions are applied in the order listed.
- If the second argument is one of the binary conditional
- operators listed in _\bb_\ba_\bs_\bh(1) under C\bCO\bON\bND\bDI\bIT\bTI\bIO\bON\bNA\bAL\bL E\bEX\bXP\bPR\bRE\bES\bS-\b-
- S\bSI\bIO\bON\bNS\bS, the result of the expression is the result of the
- binary test using the first and third arguments as
- operands. The -\b-a\ba and -\b-o\bo operators are considered binary
- operators when there are three arguments. If the first
+ If the second argument is one of the binary conditional
+ operators listed in _\bb_\ba_\bs_\bh(1) under C\bCO\bON\bND\bDI\bIT\bTI\bIO\bON\bNA\bAL\bL E\bEX\bXP\bPR\bRE\bES\bS-\b-
+ S\bSI\bIO\bON\bNS\bS, the result of the expression is the result of the
+ binary test using the first and third arguments as
+ operands. The -\b-a\ba and -\b-o\bo operators are considered binary
+ operators when there are three arguments. If the first
argument is !\b!, the value is the negation of the two-argu-
- ment test using the second and third arguments. If the
+ ment test using the second and third arguments. If the
first argument is exactly (\b( and the third argument is ex-
- actly )\b), the result is the one-argument test of the sec-
+ actly )\b), the result is the one-argument test of the sec-
ond argument. Otherwise, the expression is false.
4 arguments
The following conditions are applied in the order listed.
If the first argument is !\b!, the result is the negation of
- the three-argument expression composed of the remaining
- arguments. If the first argument is exactly (\b( and the
+ the three-argument expression composed of the remaining
+ arguments. If the first argument is exactly (\b( and the
fourth argument is exactly )\b), the result is the two-argu-
- ment test of the second and third arguments. Otherwise,
- the expression is parsed and evaluated according to
+ ment test of the second and third arguments. Otherwise,
+ the expression is parsed and evaluated according to
precedence using the rules listed above.
5 or more arguments
- The expression is parsed and evaluated according to
+ The expression is parsed and evaluated according to
precedence using the rules listed above.
When the shell is in posix mode, or if the expression is part of
the [\b[[\b[ command, the <\b< and >\b> operators sort using the current lo-
- cale. If the shell is not in posix mode, the t\bte\bes\bst\bt and [\b[ com-
+ cale. If the shell is not in posix mode, the t\bte\bes\bst\bt and [\b[ com-
mands sort lexicographically using ASCII ordering.
- The historical operator-precedence parsing with 4 or more argu-
- ments can lead to ambiguities when it encounters strings that
- look like primaries. The POSIX standard has deprecated the -\b-a\ba
- and -\b-o\bo primaries and enclosing expressions within parentheses.
- Scripts should no longer use them. It's much more reliable to
- restrict test invocations to a single primary, and to replace
+ The historical operator-precedence parsing with 4 or more argu-
+ ments can lead to ambiguities when it encounters strings that
+ look like primaries. The POSIX standard has deprecated the -\b-a\ba
+ and -\b-o\bo primaries and enclosing expressions within parentheses.
+ Scripts should no longer use them. It's much more reliable to
+ restrict test invocations to a single primary, and to replace
uses of -\b-a\ba and -\b-o\bo with the shell's &\b&&\b& and |\b||\b| list operators.
- t\bti\bim\bme\bes\bs Print the accumulated user and system times for the shell and
+ t\bti\bim\bme\bes\bs Print the accumulated user and system times for the shell and
for processes run from the shell. The return status is 0.
t\btr\bra\bap\bp [-\b-l\blp\bpP\bP] [[_\ba_\bc_\bt_\bi_\bo_\bn] _\bs_\bi_\bg_\bs_\bp_\be_\bc ...]
The _\ba_\bc_\bt_\bi_\bo_\bn is a command that is read and executed when the shell
- receives any of the signals _\bs_\bi_\bg_\bs_\bp_\be_\bc. If _\ba_\bc_\bt_\bi_\bo_\bn is absent (and
+ receives any of the signals _\bs_\bi_\bg_\bs_\bp_\be_\bc. If _\ba_\bc_\bt_\bi_\bo_\bn is absent (and
there is a single _\bs_\bi_\bg_\bs_\bp_\be_\bc) or -\b-, each specified _\bs_\bi_\bg_\bs_\bp_\be_\bc is reset
- to the value it had when the shell was started. If _\ba_\bc_\bt_\bi_\bo_\bn is
- the null string the signal specified by each _\bs_\bi_\bg_\bs_\bp_\be_\bc is ignored
+ to the value it had when the shell was started. If _\ba_\bc_\bt_\bi_\bo_\bn is
+ the null string the signal specified by each _\bs_\bi_\bg_\bs_\bp_\be_\bc is ignored
by the shell and by the commands it invokes.
- If no arguments are supplied, t\btr\bra\bap\bp displays the actions associ-
+ If no arguments are supplied, t\btr\bra\bap\bp displays the actions associ-
ated with each trapped signal as a set of t\btr\bra\bap\bp commands that can
- be reused as shell input to restore the current signal disposi-
- tions. If -\b-p\bp is given, and _\ba_\bc_\bt_\bi_\bo_\bn is not present, then t\btr\bra\bap\bp
- displays the actions associated with each _\bs_\bi_\bg_\bs_\bp_\be_\bc or, if none
+ be reused as shell input to restore the current signal disposi-
+ tions. If -\b-p\bp is given, and _\ba_\bc_\bt_\bi_\bo_\bn is not present, then t\btr\bra\bap\bp
+ displays the actions associated with each _\bs_\bi_\bg_\bs_\bp_\be_\bc or, if none
are supplied, for all trapped signals, as a set of t\btr\bra\bap\bp commands
- that can be reused as shell input to restore the current signal
- dispositions. The -\b-P\bP option behaves similarly, but displays
- only the actions associated with each _\bs_\bi_\bg_\bs_\bp_\be_\bc argument. -\b-P\bP re-
- quires at least one _\bs_\bi_\bg_\bs_\bp_\be_\bc argument. The -\b-P\bP or -\b-p\bp options may
- be used in a subshell environment (e.g., command substitution)
- and, as long as they are used before t\btr\bra\bap\bp is used to change a
+ that can be reused as shell input to restore the current signal
+ dispositions. The -\b-P\bP option behaves similarly, but displays
+ only the actions associated with each _\bs_\bi_\bg_\bs_\bp_\be_\bc argument. -\b-P\bP re-
+ quires at least one _\bs_\bi_\bg_\bs_\bp_\be_\bc argument. The -\b-P\bP or -\b-p\bp options may
+ be used in a subshell environment (e.g., command substitution)
+ and, as long as they are used before t\btr\bra\bap\bp is used to change a
signal's handling, will display the state of its parent's traps.
- The -\b-l\bl option prints a list of signal names and their corre-
- sponding numbers. Each _\bs_\bi_\bg_\bs_\bp_\be_\bc is either a signal name defined
+ The -\b-l\bl option prints a list of signal names and their corre-
+ sponding numbers. Each _\bs_\bi_\bg_\bs_\bp_\be_\bc is either a signal name defined
in <_\bs_\bi_\bg_\bn_\ba_\bl_\b._\bh>, or a signal number. Signal names are case insen-
- sitive and the S\bSI\bIG\bG prefix is optional. If -\b-l\bl is supplied with
+ sitive and the S\bSI\bIG\bG prefix is optional. If -\b-l\bl is supplied with
no _\bs_\bi_\bg_\bs_\bp_\be_\bc arguments, it prints a list of valid signal names.
- If a _\bs_\bi_\bg_\bs_\bp_\be_\bc is E\bEX\bXI\bIT\bT (0), _\ba_\bc_\bt_\bi_\bo_\bn is executed on exit from the
- shell. If a _\bs_\bi_\bg_\bs_\bp_\be_\bc is D\bDE\bEB\bBU\bUG\bG, _\ba_\bc_\bt_\bi_\bo_\bn is executed before every
- _\bs_\bi_\bm_\bp_\bl_\be _\bc_\bo_\bm_\bm_\ba_\bn_\bd, _\bf_\bo_\br command, _\bc_\ba_\bs_\be command, _\bs_\be_\bl_\be_\bc_\bt command, ((
- arithmetic command, [[ conditional command, arithmetic _\bf_\bo_\br com-
- mand, and before the first command executes in a shell function
+ If a _\bs_\bi_\bg_\bs_\bp_\be_\bc is E\bEX\bXI\bIT\bT (0), _\ba_\bc_\bt_\bi_\bo_\bn is executed on exit from the
+ shell. If a _\bs_\bi_\bg_\bs_\bp_\be_\bc is D\bDE\bEB\bBU\bUG\bG, _\ba_\bc_\bt_\bi_\bo_\bn is executed before every
+ _\bs_\bi_\bm_\bp_\bl_\be _\bc_\bo_\bm_\bm_\ba_\bn_\bd, _\bf_\bo_\br command, _\bc_\ba_\bs_\be command, _\bs_\be_\bl_\be_\bc_\bt command, ((
+ arithmetic command, [[ conditional command, arithmetic _\bf_\bo_\br com-
+ mand, and before the first command executes in a shell function
(see S\bSH\bHE\bEL\bLL\bL G\bGR\bRA\bAM\bMM\bMA\bAR\bR in _\bb_\ba_\bs_\bh(1)). Refer to the description of the
- e\bex\bxt\btd\bde\beb\bbu\bug\bg shell option (see s\bsh\bho\bop\bpt\bt in _\bb_\ba_\bs_\bh(1)) for details of its
+ e\bex\bxt\btd\bde\beb\bbu\bug\bg shell option (see s\bsh\bho\bop\bpt\bt in _\bb_\ba_\bs_\bh(1)) for details of its
effect on the D\bDE\bEB\bBU\bUG\bG trap. If a _\bs_\bi_\bg_\bs_\bp_\be_\bc is R\bRE\bET\bTU\bUR\bRN\bN, _\ba_\bc_\bt_\bi_\bo_\bn is ex-
- ecuted each time a shell function or a script executed with the
+ ecuted each time a shell function or a script executed with the
.\b. or s\bso\bou\bur\brc\bce\be builtins finishes executing.
- If a _\bs_\bi_\bg_\bs_\bp_\be_\bc is E\bER\bRR\bR, _\ba_\bc_\bt_\bi_\bo_\bn is executed whenever a pipeline
- (which may consist of a single simple command), a list, or a
- compound command returns a non-zero exit status, subject to the
- following conditions. The E\bER\bRR\bR trap is not executed if the
+ If a _\bs_\bi_\bg_\bs_\bp_\be_\bc is E\bER\bRR\bR, _\ba_\bc_\bt_\bi_\bo_\bn is executed whenever a pipeline
+ (which may consist of a single simple command), a list, or a
+ compound command returns a non-zero exit status, subject to the
+ following conditions. The E\bER\bRR\bR trap is not executed if the
failed command is part of the command list immediately following
- a w\bwh\bhi\bil\ble\be or u\bun\bnt\bti\bil\bl keyword, part of the test in an _\bi_\bf statement,
+ a w\bwh\bhi\bil\ble\be or u\bun\bnt\bti\bil\bl keyword, part of the test in an _\bi_\bf statement,
part of a command executed in a &\b&&\b& or |\b||\b| list except the command
- following the final &\b&&\b& or |\b||\b|, any command in a pipeline but the
- last (subject to the state of the p\bpi\bip\bpe\bef\bfa\bai\bil\bl shell option), or if
+ following the final &\b&&\b& or |\b||\b|, any command in a pipeline but the
+ last (subject to the state of the p\bpi\bip\bpe\bef\bfa\bai\bil\bl shell option), or if
the command's return value is being inverted using !\b!. These are
the same conditions obeyed by the e\ber\brr\bre\bex\bxi\bit\bt (-\b-e\be) option.
When the shell is not interactive, signals ignored upon entry to
the shell cannot be trapped or reset. Interactive shells permit
trapping signals ignored on entry. Trapped signals that are not
- being ignored are reset to their original values in a subshell
- or subshell environment when one is created. The return status
+ being ignored are reset to their original values in a subshell
+ or subshell environment when one is created. The return status
is false if any _\bs_\bi_\bg_\bs_\bp_\be_\bc is invalid; otherwise t\btr\bra\bap\bp returns true.
t\btr\bru\bue\be Does nothing, returns a 0 status.
Indicate how each _\bn_\ba_\bm_\be would be interpreted if used as a command
name.
- If the -\b-t\bt option is used, t\bty\byp\bpe\be prints a string which is one of
- _\ba_\bl_\bi_\ba_\bs, _\bk_\be_\by_\bw_\bo_\br_\bd, _\bf_\bu_\bn_\bc_\bt_\bi_\bo_\bn, _\bb_\bu_\bi_\bl_\bt_\bi_\bn, or _\bf_\bi_\bl_\be if _\bn_\ba_\bm_\be is an alias,
- shell reserved word, function, builtin, or executable file, re-
- spectively. If the _\bn_\ba_\bm_\be is not found, t\bty\byp\bpe\be prints nothing and
+ If the -\b-t\bt option is used, t\bty\byp\bpe\be prints a string which is one of
+ _\ba_\bl_\bi_\ba_\bs, _\bk_\be_\by_\bw_\bo_\br_\bd, _\bf_\bu_\bn_\bc_\bt_\bi_\bo_\bn, _\bb_\bu_\bi_\bl_\bt_\bi_\bn, or _\bf_\bi_\bl_\be if _\bn_\ba_\bm_\be is an alias,
+ shell reserved word, function, builtin, or executable file, re-
+ spectively. If the _\bn_\ba_\bm_\be is not found, t\bty\byp\bpe\be prints nothing and
returns a non-zero exit status.
- If the -\b-p\bp option is used, t\bty\byp\bpe\be either returns the pathname of
- the executable file that would be found by searching $\b$P\bPA\bAT\bTH\bH for
- _\bn_\ba_\bm_\be or nothing if would not return _\bf_\bi_\bl_\be. The -\b-P\bP option forces
- a P\bPA\bAT\bTH\bH search for each _\bn_\ba_\bm_\be, even if would not return _\bf_\bi_\bl_\be. If
+ If the -\b-p\bp option is used, t\bty\byp\bpe\be either returns the pathname of
+ the executable file that would be found by searching $\b$P\bPA\bAT\bTH\bH for
+ _\bn_\ba_\bm_\be or nothing if would not return _\bf_\bi_\bl_\be. The -\b-P\bP option forces
+ a P\bPA\bAT\bTH\bH search for each _\bn_\ba_\bm_\be, even if would not return _\bf_\bi_\bl_\be. If
_\bn_\ba_\bm_\be is present in the table of hashed commands, -\b-p\bp and -\b-P\bP print
the hashed value, which is not necessarily the file that appears
first in P\bPA\bAT\bTH\bH.
- If the -\b-a\ba option is used, t\bty\byp\bpe\be prints all of the places that
- contain a command named _\bn_\ba_\bm_\be. This includes aliases, reserved
- words, functions, and builtins, but the path search options (-\b-p\bp
- and -\b-P\bP) can be supplied to restrict the output to executable
- files. t\bty\byp\bpe\be does not consult the table of hashed commands when
+ If the -\b-a\ba option is used, t\bty\byp\bpe\be prints all of the places that
+ contain a command named _\bn_\ba_\bm_\be. This includes aliases, reserved
+ words, functions, and builtins, but the path search options (-\b-p\bp
+ and -\b-P\bP) can be supplied to restrict the output to executable
+ files. t\bty\byp\bpe\be does not consult the table of hashed commands when
using -\b-a\ba with -\b-p\bp, and only performs a P\bPA\bAT\bTH\bH search for _\bn_\ba_\bm_\be.
The -\b-f\bf option suppresses shell function lookup, as with the c\bco\bom\bm-\b-
- m\bma\ban\bnd\bd builtin. t\bty\byp\bpe\be returns true if all of the arguments are
+ m\bma\ban\bnd\bd builtin. t\bty\byp\bpe\be returns true if all of the arguments are
found, false if any are not found.
u\bul\bli\bim\bmi\bit\bt [-\b-H\bHS\bS] -\b-a\ba
u\bul\bli\bim\bmi\bit\bt [-\b-H\bHS\bS] [-\b-b\bbc\bcd\bde\bef\bfi\bik\bkl\blm\bmn\bnp\bpq\bqr\brs\bst\btu\buv\bvx\bxP\bPR\bRT\bT [_\bl_\bi_\bm_\bi_\bt]]
- Provides control over the resources available to the shell and
+ Provides control over the resources available to the shell and
to processes it starts, on systems that allow such control.
- The -\b-H\bH and -\b-S\bS options specify whether the hard or soft limit is
+ The -\b-H\bH and -\b-S\bS options specify whether the hard or soft limit is
set for the given resource. A hard limit cannot be increased by
a non-root user once it is set; a soft limit may be increased up
- to the value of the hard limit. If neither -\b-H\bH nor -\b-S\bS is speci-
+ to the value of the hard limit. If neither -\b-H\bH nor -\b-S\bS is speci-
fied, u\bul\bli\bim\bmi\bit\bt sets both the soft and hard limits.
The value of _\bl_\bi_\bm_\bi_\bt can be a number in the unit specified for the
- resource or one of the special values h\bha\bar\brd\bd, s\bso\bof\bft\bt, or u\bun\bnl\bli\bim\bmi\bit\bte\bed\bd,
- which stand for the current hard limit, the current soft limit,
- and no limit, respectively. If _\bl_\bi_\bm_\bi_\bt is omitted, u\bul\bli\bim\bmi\bit\bt prints
- the current value of the soft limit of the resource, unless the
- -\b-H\bH option is given. When more than one resource is specified,
- the limit name and unit, if appropriate, are printed before the
+ resource or one of the special values h\bha\bar\brd\bd, s\bso\bof\bft\bt, or u\bun\bnl\bli\bim\bmi\bit\bte\bed\bd,
+ which stand for the current hard limit, the current soft limit,
+ and no limit, respectively. If _\bl_\bi_\bm_\bi_\bt is omitted, u\bul\bli\bim\bmi\bit\bt prints
+ the current value of the soft limit of the resource, unless the
+ -\b-H\bH option is given. When more than one resource is specified,
+ the limit name and unit, if appropriate, are printed before the
value. Other options are interpreted as follows:
-\b-a\ba Report all current limits; no limits are set.
-\b-b\bb The maximum socket buffer size.
-\b-c\bc The maximum size of core files created.
-\b-d\bd The maximum size of a process's data segment.
-\b-e\be The maximum scheduling priority (
- -\b-f\bf The maximum size of files written by the shell and its
+ -\b-f\bf The maximum size of files written by the shell and its
children.
-\b-i\bi The maximum number of pending signals.
-\b-k\bk The maximum number of kqueues that may be allocated.
-\b-l\bl The maximum size that may be locked into memory.
- -\b-m\bm The maximum resident set size (many systems do not honor
+ -\b-m\bm The maximum resident set size (many systems do not honor
this limit).
-\b-n\bn The maximum number of open file descriptors (most systems
do not allow this value to be set).
-\b-r\br The maximum real-time scheduling priority.
-\b-s\bs The maximum stack size.
-\b-t\bt The maximum amount of cpu time in seconds.
- -\b-u\bu The maximum number of processes available to a single
+ -\b-u\bu The maximum number of processes available to a single
user.
- -\b-v\bv The maximum amount of virtual memory available to the
+ -\b-v\bv The maximum amount of virtual memory available to the
shell and, on some systems, to its children.
-\b-x\bx The maximum number of file locks.
-\b-P\bP The maximum number of pseudoterminals.
- -\b-R\bR The maximum time a real-time process can run before
+ -\b-R\bR The maximum time a real-time process can run before
blocking, in microseconds.
-\b-T\bT The maximum number of threads.
- If _\bl_\bi_\bm_\bi_\bt is supplied, and the -\b-a\ba option is not used, _\bl_\bi_\bm_\bi_\bt is
- the new value of the specified resource. If no option is sup-
+ If _\bl_\bi_\bm_\bi_\bt is supplied, and the -\b-a\ba option is not used, _\bl_\bi_\bm_\bi_\bt is
+ the new value of the specified resource. If no option is sup-
plied, then -\b-f\bf is assumed.
- Values are in 1024-byte increments, except for -\b-t\bt, which is in
- seconds; -\b-R\bR, which is in microseconds; -\b-p\bp, which is in units of
- 512-byte blocks; -\b-P\bP, -\b-T\bT, -\b-b\bb, -\b-k\bk, -\b-n\bn, and -\b-u\bu, which are unscaled
- values; and, when in posix mode, -\b-c\bc and -\b-f\bf, which are in
- 512-byte increments. The return status is 0 unless an invalid
+ Values are in 1024-byte increments, except for -\b-t\bt, which is in
+ seconds; -\b-R\bR, which is in microseconds; -\b-p\bp, which is in units of
+ 512-byte blocks; -\b-P\bP, -\b-T\bT, -\b-b\bb, -\b-k\bk, -\b-n\bn, and -\b-u\bu, which are unscaled
+ values; and, when in posix mode, -\b-c\bc and -\b-f\bf, which are in
+ 512-byte increments. The return status is 0 unless an invalid
option or argument is supplied, or an error occurs while setting
a new limit.
u\bum\bma\bas\bsk\bk [-\b-p\bp] [-\b-S\bS] [_\bm_\bo_\bd_\be]
- Set the user file-creation mask to _\bm_\bo_\bd_\be. If _\bm_\bo_\bd_\be begins with a
+ Set the user file-creation mask to _\bm_\bo_\bd_\be. If _\bm_\bo_\bd_\be begins with a
digit, it is interpreted as an octal number; otherwise it is in-
- terpreted as a symbolic mode mask similar to that accepted by
+ terpreted as a symbolic mode mask similar to that accepted by
_\bc_\bh_\bm_\bo_\bd(1). If _\bm_\bo_\bd_\be is omitted, u\bum\bma\bas\bsk\bk prints the current value of
the mask. The -\b-S\bS option without a _\bm_\bo_\bd_\be argument prints the mask
in a symbolic format; the default output is an octal number. If
the -\b-p\bp option is supplied, and _\bm_\bo_\bd_\be is omitted, the output is in
- a form that may be reused as input. The return status is zero
- if the mode was successfully changed or if no _\bm_\bo_\bd_\be argument was
+ a form that may be reused as input. The return status is zero
+ if the mode was successfully changed or if no _\bm_\bo_\bd_\be argument was
supplied, and non-zero otherwise.
u\bun\bna\bal\bli\bia\bas\bs [-a\ba] [_\bn_\ba_\bm_\be ...]
- Remove each _\bn_\ba_\bm_\be from the list of defined aliases. If -\b-a\ba is
- supplied, remove all alias definitions. The return value is
+ Remove each _\bn_\ba_\bm_\be from the list of defined aliases. If -\b-a\ba is
+ supplied, remove all alias definitions. The return value is
true unless a supplied _\bn_\ba_\bm_\be is not a defined alias.
u\bun\bns\bse\bet\bt [-f\bfv\bv] [-n\bn] [_\bn_\ba_\bm_\be ...]
- For each _\bn_\ba_\bm_\be, remove the corresponding variable or function.
+ For each _\bn_\ba_\bm_\be, remove the corresponding variable or function.
If the -\b-v\bv option is given, each _\bn_\ba_\bm_\be refers to a shell variable,
- and that variable is removed. If -\b-f\bf is specified, each _\bn_\ba_\bm_\be
- refers to a shell function, and the function definition is re-
- moved. If the -\b-n\bn option is supplied, and _\bn_\ba_\bm_\be is a variable
- with the _\bn_\ba_\bm_\be_\br_\be_\bf attribute, _\bn_\ba_\bm_\be will be unset rather than the
- variable it references. -\b-n\bn has no effect if the -\b-f\bf option is
- supplied. Read-only variables and functions may not be unset.
- When variables or functions are removed, they are also removed
- from the environment passed to subsequent commands. If no op-
- tions are supplied, each _\bn_\ba_\bm_\be refers to a variable; if there is
- no variable by that name, a function with that name, if any, is
- unset. Some shell variables may not be unset. If any of
+ and that variable is removed. If -\b-f\bf is specified, each _\bn_\ba_\bm_\be
+ refers to a shell function, and the function definition is re-
+ moved. If the -\b-n\bn option is supplied, and _\bn_\ba_\bm_\be is a variable
+ with the _\bn_\ba_\bm_\be_\br_\be_\bf attribute, _\bn_\ba_\bm_\be will be unset rather than the
+ variable it references. -\b-n\bn has no effect if the -\b-f\bf option is
+ supplied. Read-only variables and functions may not be unset.
+ When variables or functions are removed, they are also removed
+ from the environment passed to subsequent commands. If no op-
+ tions are supplied, each _\bn_\ba_\bm_\be refers to a variable; if there is
+ no variable by that name, a function with that name, if any, is
+ unset. Some shell variables may not be unset. If any of
B\bBA\bAS\bSH\bH_\b_A\bAL\bLI\bIA\bAS\bSE\bES\bS, B\bBA\bAS\bSH\bH_\b_A\bAR\bRG\bGV\bV0\b0, B\bBA\bAS\bSH\bH_\b_C\bCM\bMD\bDS\bS, B\bBA\bAS\bSH\bH_\b_C\bCO\bOM\bMM\bMA\bAN\bND\bD, B\bBA\bAS\bSH\bH_\b_S\bSU\bUB\bB-\b-
- S\bSH\bHE\bEL\bLL\bL, B\bBA\bAS\bSH\bHP\bPI\bID\bD, C\bCO\bOM\bMP\bP_\b_W\bWO\bOR\bRD\bDB\bBR\bRE\bEA\bAK\bKS\bS, D\bDI\bIR\bRS\bST\bTA\bAC\bCK\bK, E\bEP\bPO\bOC\bCH\bHR\bRE\bEA\bAL\bLT\bTI\bIM\bME\bE,
- E\bEP\bPO\bOC\bCH\bHS\bSE\bEC\bCO\bON\bND\bDS\bS, F\bFU\bUN\bNC\bCN\bNA\bAM\bME\bE, G\bGR\bRO\bOU\bUP\bPS\bS, H\bHI\bIS\bST\bTC\bCM\bMD\bD, L\bLI\bIN\bNE\bEN\bNO\bO, R\bRA\bAN\bND\bDO\bOM\bM, S\bSE\bEC\bC-\b-
- O\bON\bND\bDS\bS, or S\bSR\bRA\bAN\bND\bDO\bOM\bM are unset, they lose their special properties,
- even if they are subsequently reset. The exit status is true
+ S\bSH\bHE\bEL\bLL\bL, B\bBA\bAS\bSH\bHP\bPI\bID\bD, C\bCO\bOM\bMP\bP_\b_W\bWO\bOR\bRD\bDB\bBR\bRE\bEA\bAK\bKS\bS, D\bDI\bIR\bRS\bST\bTA\bAC\bCK\bK, E\bEP\bPO\bOC\bCH\bHR\bRE\bEA\bAL\bLT\bTI\bIM\bME\bE,
+ E\bEP\bPO\bOC\bCH\bHS\bSE\bEC\bCO\bON\bND\bDS\bS, F\bFU\bUN\bNC\bCN\bNA\bAM\bME\bE, G\bGR\bRO\bOU\bUP\bPS\bS, H\bHI\bIS\bST\bTC\bCM\bMD\bD, L\bLI\bIN\bNE\bEN\bNO\bO, R\bRA\bAN\bND\bDO\bOM\bM, S\bSE\bEC\bC-\b-
+ O\bON\bND\bDS\bS, or S\bSR\bRA\bAN\bND\bDO\bOM\bM are unset, they lose their special properties,
+ even if they are subsequently reset. The exit status is true
unless a _\bn_\ba_\bm_\be is readonly or may not be unset.
w\bwa\bai\bit\bt [-\b-f\bfn\bn] [-\b-p\bp _\bv_\ba_\br_\bn_\ba_\bm_\be] [_\bi_\bd ...]
Wait for each specified child process _\bi_\bd and return the termina-
- tion status of the last _\bi_\bd. Each _\bi_\bd may be a process ID _\bp_\bi_\bd or
- a job specification _\bj_\bo_\bb_\bs_\bp_\be_\bc; if a jobspec is supplied, w\bwa\bai\bit\bt
+ tion status of the last _\bi_\bd. Each _\bi_\bd may be a process ID _\bp_\bi_\bd or
+ a job specification _\bj_\bo_\bb_\bs_\bp_\be_\bc; if a jobspec is supplied, w\bwa\bai\bit\bt
waits for all processes in the job.
- If no options or _\bi_\bds are supplied, w\bwa\bai\bit\bt waits for all running
- background jobs and the last-executed process substitution, if
+ If no options or _\bi_\bds are supplied, w\bwa\bai\bit\bt waits for all running
+ background jobs and the last-executed process substitution, if
its process id is the same as $\b$!\b!, and the return status is zero.
- If the -\b-n\bn option is supplied, w\bwa\bai\bit\bt waits for any one of the
+ If the -\b-n\bn option is supplied, w\bwa\bai\bit\bt waits for any one of the
given _\bi_\bds or, if no _\bi_\bds are supplied, any job or process substi-
tution, to complete and returns its exit status. If none of the
- supplied _\bi_\bds is a child of the shell, or if no _\bi_\bds are supplied
- and the shell has no unwaited-for children, the exit status is
+ supplied _\bi_\bds is a child of the shell, or if no _\bi_\bds are supplied
+ and the shell has no unwaited-for children, the exit status is
127.
- If the -\b-p\bp option is supplied, w\bwa\bai\bit\bt assigns the process or job
- identifier of the job for which the exit status is returned to
- the variable _\bv_\ba_\br_\bn_\ba_\bm_\be named by the option argument. The vari-
- able, which cannot be readonly, will be unset initially, before
- any assignment. This is useful only when used with the -\b-n\bn op-
+ If the -\b-p\bp option is supplied, w\bwa\bai\bit\bt assigns the process or job
+ identifier of the job for which the exit status is returned to
+ the variable _\bv_\ba_\br_\bn_\ba_\bm_\be named by the option argument. The vari-
+ able, which cannot be readonly, will be unset initially, before
+ any assignment. This is useful only when used with the -\b-n\bn op-
tion.
- Supplying the -\b-f\bf option, when job control is enabled, forces
- w\bwa\bai\bit\bt to wait for each _\bi_\bd to terminate before returning its sta-
+ Supplying the -\b-f\bf option, when job control is enabled, forces
+ w\bwa\bai\bit\bt to wait for each _\bi_\bd to terminate before returning its sta-
tus, instead of returning when it changes status.
- If none of the _\bi_\bds specify one of the shell's active child
- processes, the return status is 127. If w\bwa\bai\bit\bt is interrupted by
- a signal, any _\bv_\ba_\br_\bn_\ba_\bm_\be will remain unset, and the return status
+ If none of the _\bi_\bds specify one of the shell's active child
+ processes, the return status is 127. If w\bwa\bai\bit\bt is interrupted by
+ a signal, any _\bv_\ba_\br_\bn_\ba_\bm_\be will remain unset, and the return status
will be greater than 128, as described under S\bSI\bIG\bGN\bNA\bAL\bLS\bS in _\bb_\ba_\bs_\bh(1).
Otherwise, the return status is the exit status of the last _\bi_\bd.
S\bSH\bHE\bEL\bLL\bL C\bCO\bOM\bMP\bPA\bAT\bTI\bIB\bBI\bIL\bLI\bIT\bTY\bY M\bMO\bOD\bDE\bE
- Bash-4.0 introduced the concept of a _\bs_\bh_\be_\bl_\bl _\bc_\bo_\bm_\bp_\ba_\bt_\bi_\bb_\bi_\bl_\bi_\bt_\by _\bl_\be_\bv_\be_\bl, speci-
+ Bash-4.0 introduced the concept of a _\bs_\bh_\be_\bl_\bl _\bc_\bo_\bm_\bp_\ba_\bt_\bi_\bb_\bi_\bl_\bi_\bt_\by _\bl_\be_\bv_\be_\bl, speci-
fied as a set of options to the shopt builtin (c\bco\bom\bmp\bpa\bat\bt3\b31\b1, c\bco\bom\bmp\bpa\bat\bt3\b32\b2, c\bco\bom\bm-\b-
- p\bpa\bat\bt4\b40\b0, c\bco\bom\bmp\bpa\bat\bt4\b41\b1, and so on). There is only one current compatibility
+ p\bpa\bat\bt4\b40\b0, c\bco\bom\bmp\bpa\bat\bt4\b41\b1, and so on). There is only one current compatibility
level -- each option is mutually exclusive. The compatibility level is
- intended to allow users to select behavior from previous versions that
- is incompatible with newer versions while they migrate scripts to use
- current features and behavior. It's intended to be a temporary solu-
+ intended to allow users to select behavior from previous versions that
+ is incompatible with newer versions while they migrate scripts to use
+ current features and behavior. It's intended to be a temporary solu-
tion.
- This section does not mention behavior that is standard for a particu-
- lar version (e.g., setting c\bco\bom\bmp\bpa\bat\bt3\b32\b2 means that quoting the right hand
- side of the regexp matching operator quotes special regexp characters
- in the word, which is default behavior in bash-3.2 and subsequent ver-
+ This section does not mention behavior that is standard for a particu-
+ lar version (e.g., setting c\bco\bom\bmp\bpa\bat\bt3\b32\b2 means that quoting the right hand
+ side of the regexp matching operator quotes special regexp characters
+ in the word, which is default behavior in bash-3.2 and subsequent ver-
sions).
- If a user enables, say, c\bco\bom\bmp\bpa\bat\bt3\b32\b2, it may affect the behavior of other
- compatibility levels up to and including the current compatibility
- level. The idea is that each compatibility level controls behavior
- that changed in that version of b\bba\bas\bsh\bh, but that behavior may have been
- present in earlier versions. For instance, the change to use locale-
- based comparisons with the [\b[[\b[ command came in bash-4.1, and earlier
+ If a user enables, say, c\bco\bom\bmp\bpa\bat\bt3\b32\b2, it may affect the behavior of other
+ compatibility levels up to and including the current compatibility
+ level. The idea is that each compatibility level controls behavior
+ that changed in that version of b\bba\bas\bsh\bh, but that behavior may have been
+ present in earlier versions. For instance, the change to use locale-
+ based comparisons with the [\b[[\b[ command came in bash-4.1, and earlier
versions used ASCII-based comparisons, so enabling c\bco\bom\bmp\bpa\bat\bt3\b32\b2 will enable
- ASCII-based comparisons as well. That granularity may not be suffi-
- cient for all uses, and as a result users should employ compatibility
- levels carefully. Read the documentation for a particular feature to
+ ASCII-based comparisons as well. That granularity may not be suffi-
+ cient for all uses, and as a result users should employ compatibility
+ levels carefully. Read the documentation for a particular feature to
find out the current behavior.
- Bash-4.3 introduced a new shell variable: B\bBA\bAS\bSH\bH_\b_C\bCO\bOM\bMP\bPA\bAT\bT. The value as-
+ Bash-4.3 introduced a new shell variable: B\bBA\bAS\bSH\bH_\b_C\bCO\bOM\bMP\bPA\bAT\bT. The value as-
signed to this variable (a decimal version number like 4.2, or an inte-
- ger corresponding to the c\bco\bom\bmp\bpa\bat\bt_\bN_\bN option, like 42) determines the com-
+ ger corresponding to the c\bco\bom\bmp\bpa\bat\bt_\bN_\bN option, like 42) determines the com-
patibility level.
Starting with bash-4.4, b\bba\bas\bsh\bh began deprecating older compatibility lev-
els. Eventually, the options will be removed in favor of B\bBA\bAS\bSH\bH_\b_C\bCO\bOM\bMP\bPA\bAT\bT.
- Bash-5.0 was the final version for which there was an individual shopt
- option for the previous version. B\bBA\bAS\bSH\bH_\b_C\bCO\bOM\bMP\bPA\bAT\bT is the only mechanism to
+ Bash-5.0 was the final version for which there was an individual shopt
+ option for the previous version. B\bBA\bAS\bSH\bH_\b_C\bCO\bOM\bMP\bPA\bAT\bT is the only mechanism to
control the compatibility level in versions newer than bash-5.0.
- The following table describes the behavior changes controlled by each
+ The following table describes the behavior changes controlled by each
compatibility level setting. The c\bco\bom\bmp\bpa\bat\bt_\bN_\bN tag is used as shorthand for
setting the compatibility level to _\bN_\bN using one of the following mecha-
- nisms. For versions prior to bash-5.0, the compatibility level may be
- set using the corresponding c\bco\bom\bmp\bpa\bat\bt_\bN_\bN shopt option. For bash-4.3 and
- later versions, the B\bBA\bAS\bSH\bH_\b_C\bCO\bOM\bMP\bPA\bAT\bT variable is preferred, and it is re-
+ nisms. For versions prior to bash-5.0, the compatibility level may be
+ set using the corresponding c\bco\bom\bmp\bpa\bat\bt_\bN_\bN shopt option. For bash-4.3 and
+ later versions, the B\bBA\bAS\bSH\bH_\b_C\bCO\bOM\bMP\bPA\bAT\bT variable is preferred, and it is re-
quired for bash-5.1 and later versions.
c\bco\bom\bmp\bpa\bat\bt3\b31\b1
ator (=) has no special effect.
c\bco\bom\bmp\bpa\bat\bt3\b32\b2
- +\bo The <\b< and >\b> operators to the [\b[[\b[ command do not consider
+ +\bo The <\b< and >\b> operators to the [\b[[\b[ command do not consider
the current locale when comparing strings; they use ASCII
ordering.
c\bco\bom\bmp\bpa\bat\bt4\b40\b0
- +\bo The <\b< and >\b> operators to the [\b[[\b[ command do not consider
+ +\bo The <\b< and >\b> operators to the [\b[[\b[ command do not consider
the current locale when comparing strings; they use ASCII
ordering. B\bBa\bas\bsh\bh versions prior to bash-4.1 use ASCII col-
- lation and _\bs_\bt_\br_\bc_\bm_\bp(3); bash-4.1 and later use the current
+ lation and _\bs_\bt_\br_\bc_\bm_\bp(3); bash-4.1 and later use the current
locale's collation sequence and _\bs_\bt_\br_\bc_\bo_\bl_\bl(3).
c\bco\bom\bmp\bpa\bat\bt4\b41\b1
- +\bo In _\bp_\bo_\bs_\bi_\bx mode, t\bti\bim\bme\be may be followed by options and still
+ +\bo In _\bp_\bo_\bs_\bi_\bx mode, t\bti\bim\bme\be may be followed by options and still
be recognized as a reserved word (this is POSIX interpre-
tation 267).
+\bo In _\bp_\bo_\bs_\bi_\bx mode, the parser requires that an even number of
- single quotes occur in the _\bw_\bo_\br_\bd portion of a double-
- quoted parameter expansion and treats them specially, so
- that characters within the single quotes are considered
+ single quotes occur in the _\bw_\bo_\br_\bd portion of a double-
+ quoted parameter expansion and treats them specially, so
+ that characters within the single quotes are considered
quoted (this is POSIX interpretation 221).
c\bco\bom\bmp\bpa\bat\bt4\b42\b2
+\bo The replacement string in double-quoted pattern substitu-
- tion does not undergo quote removal, as it does in ver-
+ tion does not undergo quote removal, as it does in ver-
sions after bash-4.2.
- +\bo In posix mode, single quotes are considered special when
- expanding the _\bw_\bo_\br_\bd portion of a double-quoted parameter
- expansion and can be used to quote a closing brace or
- other special character (this is part of POSIX interpre-
- tation 221); in later versions, single quotes are not
+ +\bo In posix mode, single quotes are considered special when
+ expanding the _\bw_\bo_\br_\bd portion of a double-quoted parameter
+ expansion and can be used to quote a closing brace or
+ other special character (this is part of POSIX interpre-
+ tation 221); in later versions, single quotes are not
special within double-quoted word expansions.
c\bco\bom\bmp\bpa\bat\bt4\b43\b3
- +\bo Word expansion errors are considered non-fatal errors
- that cause the current command to fail, even in posix
- mode (the default behavior is to make them fatal errors
+ +\bo Word expansion errors are considered non-fatal errors
+ that cause the current command to fail, even in posix
+ mode (the default behavior is to make them fatal errors
that cause the shell to exit).
- +\bo When executing a shell function, the loop state
+ +\bo When executing a shell function, the loop state
(while/until/etc.) is not reset, so b\bbr\bre\bea\bak\bk or c\bco\bon\bnt\bti\bin\bnu\bue\be in
that function will break or continue loops in the calling
context. Bash-4.4 and later reset the loop state to pre-
vent this.
c\bco\bom\bmp\bpa\bat\bt4\b44\b4
- +\bo The shell sets up the values used by B\bBA\bAS\bSH\bH_\b_A\bAR\bRG\bGV\bV and
- B\bBA\bAS\bSH\bH_\b_A\bAR\bRG\bGC\bC so they can expand to the shell's positional
- parameters even if extended debugging mode is not en-
+ +\bo The shell sets up the values used by B\bBA\bAS\bSH\bH_\b_A\bAR\bRG\bGV\bV and
+ B\bBA\bAS\bSH\bH_\b_A\bAR\bRG\bGC\bC so they can expand to the shell's positional
+ parameters even if extended debugging mode is not en-
abled.
- +\bo A subshell inherits loops from its parent context, so
- b\bbr\bre\bea\bak\bk or c\bco\bon\bnt\bti\bin\bnu\bue\be will cause the subshell to exit.
- Bash-5.0 and later reset the loop state to prevent the
+ +\bo A subshell inherits loops from its parent context, so
+ b\bbr\bre\bea\bak\bk or c\bco\bon\bnt\bti\bin\bnu\bue\be will cause the subshell to exit.
+ Bash-5.0 and later reset the loop state to prevent the
exit
- +\bo Variable assignments preceding builtins like e\bex\bxp\bpo\bor\brt\bt and
+ +\bo Variable assignments preceding builtins like e\bex\bxp\bpo\bor\brt\bt and
r\bre\bea\bad\bdo\bon\bnl\bly\by that set attributes continue to affect variables
with the same name in the calling environment even if the
shell is not in posix mode.
c\bco\bom\bmp\bpa\bat\bt5\b50\b0
- +\bo Bash-5.1 changed the way $\b$R\bRA\bAN\bND\bDO\bOM\bM is generated to intro-
- duce slightly more randomness. If the shell compatibil-
+ +\bo Bash-5.1 changed the way $\b$R\bRA\bAN\bND\bDO\bOM\bM is generated to intro-
+ duce slightly more randomness. If the shell compatibil-
ity level is set to 50 or lower, it reverts to the method
- from bash-5.0 and previous versions, so seeding the ran-
- dom number generator by assigning a value to R\bRA\bAN\bND\bDO\bOM\bM will
+ from bash-5.0 and previous versions, so seeding the ran-
+ dom number generator by assigning a value to R\bRA\bAN\bND\bDO\bOM\bM will
produce the same sequence as in bash-5.0.
- +\bo If the command hash table is empty, bash versions prior
- to bash-5.1 printed an informational message to that ef-
- fect, even when producing output that can be reused as
- input. Bash-5.1 suppresses that message when the -\b-l\bl op-
+ +\bo If the command hash table is empty, bash versions prior
+ to bash-5.1 printed an informational message to that ef-
+ fect, even when producing output that can be reused as
+ input. Bash-5.1 suppresses that message when the -\b-l\bl op-
tion is supplied.
c\bco\bom\bmp\bpa\bat\bt5\b51\b1
- +\bo The u\bun\bns\bse\bet\bt builtin treats attempts to unset array sub-
- scripts @\b@ and *\b* differently depending on whether the ar-
- ray is indexed or associative, and differently than in
+ +\bo The u\bun\bns\bse\bet\bt builtin treats attempts to unset array sub-
+ scripts @\b@ and *\b* differently depending on whether the ar-
+ ray is indexed or associative, and differently than in
previous versions.
+\bo Arithmetic commands ( (\b((\b(...)\b))\b) ) and the expressions in an
arithmetic for statement can be expanded more than once.
- +\bo Expressions used as arguments to arithmetic operators in
- the [\b[[\b[ conditional command can be expanded more than
+ +\bo Expressions used as arguments to arithmetic operators in
+ the [\b[[\b[ conditional command can be expanded more than
once.
- +\bo The expressions in substring parameter brace expansion
+ +\bo The expressions in substring parameter brace expansion
can be expanded more than once.
+\bo The expressions in the $\b$(\b((\b(...)\b))\b) word expansion can be ex-
panded more than once.
- +\bo Arithmetic expressions used as indexed array subscripts
+ +\bo Arithmetic expressions used as indexed array subscripts
can be expanded more than once.
- +\bo t\bte\bes\bst\bt -\b-v\bv, when given an argument of A\bA[\b[@\b@]\b], where A\bA is an
+ +\bo t\bte\bes\bst\bt -\b-v\bv, when given an argument of A\bA[\b[@\b@]\b], where A\bA is an
existing associative array, will return true if the array
- has any set elements. Bash-5.2 will look for and report
+ has any set elements. Bash-5.2 will look for and report
on a key named @\b@.
+\bo The ${_\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br[\b[:\b:]\b]=\b=_\bv_\ba_\bl_\bu_\be} word expansion will return
- _\bv_\ba_\bl_\bu_\be, before any variable-specific transformations have
+ _\bv_\ba_\bl_\bu_\be, before any variable-specific transformations have
been performed (e.g., converting to lowercase). Bash-5.2
will return the final value assigned to the variable.
- +\bo Parsing command substitutions will behave as if extended
+ +\bo Parsing command substitutions will behave as if extended
globbing (see the description of the s\bsh\bho\bop\bpt\bt builtin above)
- is enabled, so that parsing a command substitution con-
+ is enabled, so that parsing a command substitution con-
taining an extglob pattern (say, as part of a shell func-
- tion) will not fail. This assumes the intent is to en-
- able extglob before the command is executed and word ex-
- pansions are performed. It will fail at word expansion
- time if extglob hasn't been enabled by the time the com-
+ tion) will not fail. This assumes the intent is to en-
+ able extglob before the command is executed and word ex-
+ pansions are performed. It will fail at word expansion
+ time if extglob hasn't been enabled by the time the com-
mand is executed.
c\bco\bom\bmp\bpa\bat\bt5\b52\b2
- +\bo The t\bte\bes\bst\bt builtin uses its historical algorithm to parse
- parenthesized subexpressions when given five or more ar-
+ +\bo The t\bte\bes\bst\bt builtin uses its historical algorithm to parse
+ parenthesized subexpressions when given five or more ar-
guments.
- +\bo If the -\b-p\bp or -\b-P\bP option is supplied to the b\bbi\bin\bnd\bd builtin,
+ +\bo If the -\b-p\bp or -\b-P\bP option is supplied to the b\bbi\bin\bnd\bd builtin,
b\bbi\bin\bnd\bd treats any arguments remaining after option process-
- ing as bindable command names, and displays any key se-
- quences bound to those commands, instead of treating the
+ ing as bindable command names, and displays any key se-
+ quences bound to those commands, instead of treating the
arguments as key sequences to bind.
S\bSE\bEE\bE A\bAL\bLS\bSO\bO
Copyright (C) 1988-2024 Free Software Foundation, Inc.
@end ignore
-@set LASTCHANGE Mon Nov 25 15:20:23 EST 2024
+@set LASTCHANGE Fri Nov 29 18:18:39 EST 2024
@set EDITION 5.3
@set VERSION 5.3
-@set UPDATED 25 November 2024
+@set UPDATED 29 November 2024
@set UPDATED-MONTH November 2024
this is the command word.
_\bn The _\bnth word.
^\b^ The first argument: word 1.
- $\b$ The last word. This is usually the last argument, but will ex-
- pand to the zeroth word if there is only one word in the line.
+ $\b$ The last word. This is usually the last argument, but expands
+ to the zeroth word if there is only one word in the line.
%\b% The first word matched by the most recent "?_\bs_\bt_\br_\bi_\bn_\bg?" search, if
the search string begins with a character that is part of a
word. By default, searches begin at the end of each line and
Substitute _\bn_\be_\bw for the first occurrence of _\bo_\bl_\bd in the event
line. Any character may be used as the delimiter in place of /.
The final delimiter is optional if it is the last character of
- the event line. A single backslash will quote the delimiter in
- _\bo_\bl_\bd and _\bn_\be_\bw. If & appears in _\bn_\be_\bw, it is replaced with _\bo_\bl_\bd. A
- single backslash will quote the &. If _\bo_\bl_\bd is null, it is set to
- the last _\bo_\bl_\bd substituted, or, if no previous history substitu-
- tions took place, the last _\bs_\bt_\br_\bi_\bn_\bg in a !\b!?\b?_\bs_\bt_\br_\bi_\bn_\bg[\b[?\b?]\b] search. If
- _\bn_\be_\bw is null, each matching _\bo_\bl_\bd is deleted.
+ the event line. A single backslash quotes the delimiter in _\bo_\bl_\bd
+ and _\bn_\be_\bw. If & appears in _\bn_\be_\bw, it is replaced with _\bo_\bl_\bd. A sin-
+ gle backslash quotes the &. If _\bo_\bl_\bd is null, it is set to the
+ last _\bo_\bl_\bd substituted, or, if no previous history substitutions
+ took place, the last _\bs_\bt_\br_\bi_\bn_\bg in a !\b!?\b?_\bs_\bt_\br_\bi_\bn_\bg[\b[?\b?]\b] search. If _\bn_\be_\bw is
+ null, each matching _\bo_\bl_\bd is deleted.
&\b& Repeat the previous substitution.
g\bg Cause changes to be applied over the entire event line. This is
used in conjunction with ":\b:s\bs" (e.g., ":\b:g\bgs\bs/\b/_\bo_\bl_\bd/\b/_\bn_\be_\bw/\b/") or ":\b:&\b&".
_\b*_\bc_\bi_\bn_\bd_\be_\bx is modified to point to after the event specifier. At function
entry, _\bc_\bi_\bn_\bd_\be_\bx points to the index into _\bs_\bt_\br_\bi_\bn_\bg where the history event
specification begins. _\bq_\bc_\bh_\ba_\br is a character that is allowed to end the
- event specification in addition to the ``normal'' terminating charac-
- ters.
+ event specification in addition to the "normal" terminating characters.
_\bc_\bh_\ba_\br _\b*_\b* h\bhi\bis\bst\bto\bor\bry\by_\b_t\bto\bok\bke\ben\bni\biz\bze\be (_\bc_\bo_\bn_\bs_\bt _\bc_\bh_\ba_\br _\b*_\bs_\bt_\br_\bi_\bn_\bg)
- Return an array of tokens parsed out of _\bs_\bt_\br_\bi_\bn_\bg, much as the shell
- might. The tokens are split on the characters in the h\bhi\bis\bst\bto\bor\bry\by_\b_w\bwo\bor\brd\bd_\b_d\bde\be-\b-
+ Return an array of tokens parsed out of _\bs_\bt_\br_\bi_\bn_\bg, much as the shell
+ might. The tokens are split on the characters in the h\bhi\bis\bst\bto\bor\bry\by_\b_w\bwo\bor\brd\bd_\b_d\bde\be-\b-
l\bli\bim\bmi\bit\bte\ber\brs\bs variable, and shell quoting conventions are obeyed.
_\bc_\bh_\ba_\br _\b* h\bhi\bis\bst\bto\bor\bry\by_\b_a\bar\brg\bg_\b_e\bex\bxt\btr\bra\bac\bct\bt (_\bi_\bn_\bt _\bf_\bi_\br_\bs_\bt_\b, _\bi_\bn_\bt _\bl_\ba_\bs_\bt_\b, _\bc_\bo_\bn_\bs_\bt _\bc_\bh_\ba_\br _\b*_\bs_\bt_\br_\bi_\bn_\bg)
_\bi_\bn_\bt h\bhi\bis\bst\bto\bor\bry\by_\b_w\bwr\bri\bit\bte\be_\b_t\bti\bim\bme\bes\bst\bta\bam\bmp\bps\bs
If non-zero, timestamps are written to the history file, so they can be
preserved between sessions. The default value is 0, meaning that time-
- stamps are not saved. The current timestamp format uses the value of
- _\bh_\bi_\bs_\bt_\bo_\br_\by_\b__\bc_\bo_\bm_\bm_\be_\bn_\bt_\b__\bc_\bh_\ba_\br to delimit timestamp entries in the history file.
- If that variable does not have a value (the default), timestamps will
- not be written.
+ stamps are not saved. The current timestamp format uses the value of
+ _\bh_\bi_\bs_\bt_\bo_\br_\by_\b__\bc_\bo_\bm_\bm_\be_\bn_\bt_\b__\bc_\bh_\ba_\br to delimit timestamp entries in the history file.
+ If that variable does not have a value (the default), the history li-
+ brary will not write timestamps.
_\bc_\bh_\ba_\br h\bhi\bis\bst\bto\bor\bry\by_\b_e\bex\bxp\bpa\ban\bns\bsi\bio\bon\bn_\b_c\bch\bha\bar\br
The character that introduces a history event. The default is !\b!. Set-
line. The default is ^\b^.
_\bc_\bh_\ba_\br h\bhi\bis\bst\bto\bor\bry\by_\b_c\bco\bom\bmm\bme\ben\bnt\bt_\b_c\bch\bha\bar\br
- During tokenization, if this character is seen as the first character
- of a word, then it and all subsequent characters up to a newline are
- ignored, suppressing history expansion for the remainder of the line.
+ During tokenization, if this character is seen as the first character
+ of a word, then it and all subsequent characters up to a newline are
+ ignored, suppressing history expansion for the remainder of the line.
This is disabled by default.
_\bc_\bh_\ba_\br _\b* h\bhi\bis\bst\bto\bor\bry\by_\b_w\bwo\bor\brd\bd_\b_d\bde\bel\bli\bim\bmi\bit\bte\ber\brs\bs
- The characters that separate tokens for h\bhi\bis\bst\bto\bor\bry\by_\b_t\bto\bok\bke\ben\bni\biz\bze\be(\b()\b). The de-
+ The characters that separate tokens for h\bhi\bis\bst\bto\bor\bry\by_\b_t\bto\bok\bke\ben\bni\biz\bze\be(\b()\b). The de-
fault value is "\b" \\b\t\bt\\b\n\bn(\b()\b)<\b<>\b>;\b;&\b&|\b|"\b".
_\bc_\bh_\ba_\br _\b* h\bhi\bis\bst\bto\bor\bry\by_\b_n\bno\bo_\b_e\bex\bxp\bpa\ban\bnd\bd_\b_c\bch\bha\bar\brs\bs
The list of characters which inhibit history expansion if found immedi-
- ately following h\bhi\bis\bst\bto\bor\bry\by_\b_e\bex\bxp\bpa\ban\bns\bsi\bio\bon\bn_\b_c\bch\bha\bar\br. The default is space, tab,
+ ately following h\bhi\bis\bst\bto\bor\bry\by_\b_e\bex\bxp\bpa\ban\bns\bsi\bio\bon\bn_\b_c\bch\bha\bar\br. The default is space, tab,
newline, \\b\r\br, and =\b=.
_\bc_\bh_\ba_\br _\b* h\bhi\bis\bst\bto\bor\bry\by_\b_s\bse\bea\bar\brc\bch\bh_\b_d\bde\bel\bli\bim\bmi\bit\bte\ber\br_\b_c\bch\bha\bar\brs\bs
- The list of additional characters which can delimit a history search
- string, in addition to space, tab, _\b: and _\b? in the case of a substring
+ The list of additional characters which can delimit a history search
+ string, in addition to space, tab, _\b: and _\b? in the case of a substring
search. The default is empty.
_\bi_\bn_\bt h\bhi\bis\bst\bto\bor\bry\by_\b_q\bqu\buo\bot\bte\bes\bs_\b_i\bin\bnh\bhi\bib\bbi\bit\bt_\b_e\bex\bxp\bpa\ban\bns\bsi\bio\bon\bn
- If non-zero, the history expansion code implements shell-like quoting:
+ If non-zero, the history expansion code implements shell-like quoting:
single-quoted words are not scanned for the history expansion character
or the history comment character, and double-quoted words may have his-
- tory expansion performed, since single quotes are not special within
+ tory expansion performed, since single quotes are not special within
double quotes. The default value is 0.
_\bi_\bn_\bt h\bhi\bis\bst\bto\bor\bry\by_\b_q\bqu\buo\bot\bti\bin\bng\bg_\b_s\bst\bta\bat\bte\be
- An application may set this variable to indicate that the current line
- being expanded is subject to existing quoting. If set to _\b', the history
- expansion function will assume that the line is single-quoted and in-
- hibit expansion until it reads an unquoted closing single quote; if set
- to _\b", history expansion will assume the line is double quoted until it
- reads an unquoted closing double quote. If set to zero, the default,
- the history expansion function will assume the line is not quoted and
- treat quote characters within the line as described above. This is
- only effective if h\bhi\bis\bst\bto\bor\bry\by_\b_q\bqu\buo\bot\bte\bes\bs_\b_i\bin\bnh\bhi\bib\bbi\bit\bt_\b_e\bex\bxp\bpa\ban\bns\bsi\bio\bon\bn is set.
+ An application may set this variable to indicate that the current line
+ being expanded is subject to existing quoting. If set to _\b', history
+ expansion assumes that the line is single-quoted and inhibit expansion
+ until it reads an unquoted closing single quote; if set to _\b", history
+ expansion assumes the line is double quoted until it reads an unquoted
+ closing double quote. If set to zero, the default, history expansion
+ assumes the line is not quoted and treats quote characters within the
+ line as described above. This is only effective if h\bhi\bis\bst\bto\bor\bry\by_\b_q\bqu\buo\bot\bte\bes\bs_\b_i\bin\bn-\b-
+ h\bhi\bib\bbi\bit\bt_\b_e\bex\bxp\bpa\ban\bns\bsi\bio\bon\bn is set.
_\br_\bl_\b__\bl_\bi_\bn_\be_\bb_\bu_\bf_\b__\bf_\bu_\bn_\bc_\b__\bt _\b* h\bhi\bis\bst\bto\bor\bry\by_\b_i\bin\bnh\bhi\bib\bbi\bit\bt_\b_e\bex\bxp\bpa\ban\bns\bsi\bio\bon\bn_\b_f\bfu\bun\bnc\bct\bti\bio\bon\bn
- This should be set to the address of a function that takes two argu-
- ments: a c\bch\bha\bar\br *\b* (_\bs_\bt_\br_\bi_\bn_\bg) and an i\bin\bnt\bt index into that string (_\bi). It
- should return a non-zero value if the history expansion starting at
- _\bs_\bt_\br_\bi_\bn_\bg_\b[_\bi_\b] should not be performed; zero if the expansion should be
- done. It is intended for use by applications like b\bba\bas\bsh\bh that use the
- history expansion character for additional purposes. By default, this
+ This should be set to the address of a function that takes two argu-
+ ments: a c\bch\bha\bar\br *\b* (_\bs_\bt_\br_\bi_\bn_\bg) and an i\bin\bnt\bt index into that string (_\bi). It
+ should return a non-zero value if the history expansion starting at
+ _\bs_\bt_\br_\bi_\bn_\bg_\b[_\bi_\b] should not be performed; zero if the expansion should be
+ done. It is intended for use by applications like b\bba\bas\bsh\bh that use the
+ history expansion character for additional purposes. By default, this
variable is set to N\bNU\bUL\bLL\bL.
F\bFI\bIL\bLE\bES\bS
chet.ramey@case.edu
B\bBU\bUG\bG R\bRE\bEP\bPO\bOR\bRT\bTS\bS
- If you find a bug in the h\bhi\bis\bst\bto\bor\bry\by library, you should report it. But
- first, you should make sure that it really is a bug, and that it ap-
+ If you find a bug in the h\bhi\bis\bst\bto\bor\bry\by library, you should report it. But
+ first, you should make sure that it really is a bug, and that it ap-
pears in the latest version of the h\bhi\bis\bst\bto\bor\bry\by library that you have.
- Once you have determined that a bug actually exists, mail a bug report
- to _\bb_\bu_\bg_\b-_\br_\be_\ba_\bd_\bl_\bi_\bn_\be@_\bg_\bn_\bu_\b._\bo_\br_\bg. If you have a fix, you are welcome to mail
- that as well! Suggestions and `philosophical' bug reports may be
- mailed to _\bb_\bu_\bg_\b-_\br_\be_\ba_\bd_\bl_\bi_\bn_\be@_\bg_\bn_\bu_\b._\bo_\br_\bg or posted to the Usenet newsgroup
+ Once you have determined that a bug actually exists, mail a bug report
+ to _\bb_\bu_\bg_\b-_\br_\be_\ba_\bd_\bl_\bi_\bn_\be@_\bg_\bn_\bu_\b._\bo_\br_\bg. If you have a fix, you are welcome to mail
+ that as well! Suggestions and "philosophical" bug reports may be
+ mailed to _\bb_\bu_\bg_\b-_\br_\be_\ba_\bd_\bl_\bi_\bn_\be@_\bg_\bn_\bu_\b._\bo_\br_\bg or posted to the Usenet newsgroup
g\bgn\bnu\bu.\b.b\bba\bas\bsh\bh.\b.b\bbu\bug\bg.
Comments and bug reports concerning this manual page should be directed
to _\bc_\bh_\be_\bt_\b._\br_\ba_\bm_\be_\by_\b@_\bc_\ba_\bs_\be_\b._\be_\bd_\bu.
-GNU History 8.3 2024 October 10 _\bH_\bI_\bS_\bT_\bO_\bR_\bY(3)
+GNU History 8.3 2024 November 29 _\bH_\bI_\bS_\bT_\bO_\bR_\bY(3)
.\" Case Western Reserve University
.\" chet.ramey@case.edu
.\"
-.\" Last Change: Thu Oct 10 16:50:53 EDT 2024
+.\" Last Change: Fri Nov 29 18:17:58 EST 2024
.\"
-.TH HISTORY 3 "2024 October 10" "GNU History 8.3"
+.TH HISTORY 3 "2024 November 29" "GNU History 8.3"
.\"
.ie \n(.g \{\
.ds ' \(aq
.\}
.el \{\
.ds ' '
-.\" not usable in macro arguments on AT&T troff (DWB, Solaris 10)
+.\" \*" is not usable in macro arguments on AT&T troff (DWB, Solaris 10)
.ds " ""\" two adjacent quotes and no space before this comment
.ds ^ ^
.ds ~ ~
.
.\" Fix broken EX/EE macros on DWB troff.
.\" Detect it: only DWB sets up a `)Y` register.
+.if \n(.g .nr )Y 0 \" silence "groff -wreg" warning
.if \n()Y \{\
.\" Revert the undesired changes to indentation.
.am EX
.
.\" File Name macro. This used to be `.PN', for Path Name,
.\" but Sun doesn't seem to like that very much.
+.\" \% at the beginning of the string protects the filename from hyphenation.
.\"
.de FN
\%\fI\|\\$1\|\fP
..
+.\"
+.\" Quotation macro: generate consistent quoted strings that don't rely
+.\" on the presence of the `CW' constant-width font.
+.\"
.de Q
.ie \n(.g \(lq\\$1\(rq\\$2
.el \{\
.TP
.B $
The last word.
-This is usually the last argument, but will expand to the
+This is usually the last argument, but expands to the
zeroth word if there is only one word in the line.
.TP
.B %
Any character may be used as the delimiter in place of /.
The final delimiter is optional if it is the last character of the
event line.
-A single backslash will quote the delimiter in
+A single backslash quotes the delimiter in
.I old
and
.IR new .
.IR new ,
it is replaced with
.IR old .
-A single backslash will quote the &.
+A single backslash quotes the &.
If
.I old
is null, it is set to the last
.Vb "typedef void *" histdata_t;
.PP
.nf
+.EX
typedef struct _hist_entry {
char *line;
char *timestamp;
histdata_t data;
} HIST_ENTRY;
+.EE
.fi
.PP
The history list itself might therefore be declared as
specifier. At function entry, \fIcindex\fP points to the index into
\fIstring\fP where the history event specification begins. \fIqchar\fP
is a character that is allowed to end the event specification in addition
-to the ``normal'' terminating characters.
+to the
+.Q normal
+terminating characters.
.PP
.F1 "char **" history_tokenize "const char *string"
Return an array of tokens parsed out of \fIstring\fP, much as the
preserved between sessions. The default value is 0, meaning that
timestamps are not saved.
The current timestamp format uses the value of \fIhistory_comment_char\fP
-to delimit timestamp entries in the history file. If that variable does
-not have a value (the default), timestamps will not be written.
+to delimit timestamp entries in the history file.
+If that variable does
+not have a value (the default),
+the history library will not write timestamps.
.PP
.Vb char history_expansion_char
-The character that introduces a history event. The default is \fB!\fP.
+The character that introduces a history event.
+The default is \fB!\fP.
Setting this to 0 inhibits history expansion.
.PP
.Vb char history_subst_char
The character that invokes word substitution if found at the start of
-a line. The default is \fB\*^\fP.
+a line.
+The default is \fB\*^\fP.
.PP
.Vb char history_comment_char
During tokenization, if this character is seen as the first character
.PP
.Vb int history_quoting_state
An application may set this variable to indicate that the current line
-being expanded is subject to existing quoting. If set to \fI\*'\fP, the
-history expansion function will assume that the line is single-quoted and
-inhibit expansion until it reads an unquoted closing single quote; if set
-to \fI\*"\fP, history expansion will assume the line is double quoted until
-it reads an unquoted closing double quote. If set to zero, the default,
-the history expansion function will assume the line is not quoted and
-treat quote characters within the line as described above.
+being expanded is subject to existing quoting.
+If set to \fI\*'\fP,
+history expansion assumes that the line is single-quoted and
+inhibit expansion until it reads an unquoted closing single quote;
+if set to \fI\*"\fP, history expansion assumes the line is double quoted
+until it reads an unquoted closing double quote.
+If set to zero, the default,
+history expansion assumes the line is not quoted and
+treats quote characters within the line as described above.
This is only effective if \fBhistory_quotes_inhibit_expansion\fP is set.
.PP
.Vb "rl_linebuf_func_t *" history_inhibit_expansion_function
Once you have determined that a bug actually exists, mail a
bug report to \fIbug\-readline\fP@\fIgnu.org\fP.
If you have a fix, you are welcome to mail that
-as well! Suggestions and `philosophical' bug reports may be mailed
+as well! Suggestions and
+.Q philosophical
+bug reports may be mailed
to \fIbug\-readline\fP@\fIgnu.org\fP or posted to the Usenet
newsgroup
.BR gnu.bash.bug .
<HTML>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<!-- Created on November, 1 2024 by texi2html 1.64 -->
+<!-- Created on December, 2 2024 by texi2html 1.64 -->
<!--
Written by: Lionel Cons <Lionel.Cons@cern.ch> (original author)
Karl Berry <karl@freefriends.org>
<DT><CODE>$</CODE>
<DD>The last word.
-This is usually the last argument, but will expand to the
+This is usually the last argument, but expands to the
zeroth word if there is only one word in the line.
<P>
The delimiter may be quoted in <VAR>old</VAR> and <VAR>new</VAR>
with a single backslash.
If <SAMP>`&'</SAMP> appears in <VAR>new</VAR>, it is replaced with <VAR>old</VAR>.
-A single backslash will quote the <SAMP>`&'</SAMP> in <VAR>old</VAR> and <VAR>new</VAR>.
+A single backslash quotes the <SAMP>`&'</SAMP> in <VAR>old</VAR> and <VAR>new</VAR>.
If <VAR>old</VAR> is null, it is set to the last <VAR>old</VAR>
substituted, or, if no previous history substitutions took place,
the last <VAR>string</VAR>
The current timestamp format uses the value of <VAR>history_comment_char</VAR>
to delimit timestamp entries in the history file.
-If that variable does not have a value (the default), this will not
-write timestamps.
+If that variable does not have a value (the default),
+the history library will not write timestamps.
</DL>
</P><P>
<DT><U>Variable:</U> int <B>history_quoting_state</B>
<DD>An application may set this variable to indicate that the current line
being expanded is subject to existing quoting.
-If set to <SAMP>`''</SAMP>, the
-history expansion function will assume that the line is single-quoted and
+If set to <SAMP>`''</SAMP>,
+history expansion assumes that the line is single-quoted and
inhibit expansion until it reads an unquoted closing single quote;
-if set to <SAMP>`"'</SAMP>, history expansion will assume the line is
-double quoted until it reads an unquoted closing double quote.
+if set to <SAMP>`"'</SAMP>,
+history expansion assumes the line is double quoted
+until it reads an unquoted closing double quote.
If set to 0, the default,
-the history expansion function will assume the line is not quoted and
-treat quote characters within the line as described above.
+history expansion assumes the line is not quoted and
+treats quote characters within the line as described above.
This is only effective if <VAR>history_quotes_inhibit_expansion</VAR> is set.
This is intended for use by applications like Bash which allow
quoted strings to span multiple lines.
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="history.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H1>About this document</H1>
-This document was generated by <I>Chet Ramey</I> on <I>November, 1 2024</I>
+This document was generated by <I>Chet Ramey</I> on <I>December, 2 2024</I>
using <A HREF="http://www.mathematik.uni-kl.de/~obachman/Texi2html
"><I>texi2html</I></A>
<P></P>
<BR>
<FONT SIZE="-1">
This document was generated
-by <I>Chet Ramey</I> on <I>November, 1 2024</I>
+by <I>Chet Ramey</I> on <I>December, 2 2024</I>
using <A HREF="http://www.mathematik.uni-kl.de/~obachman/Texi2html
"><I>texi2html</I></A>
This is history.info, produced by makeinfo version 7.1 from
history.texi.
-This document describes the GNU History library (version 8.3, 15
+This document describes the GNU History library (version 8.3, 29
November 2024), a programming tool that provides a consistent user
interface for recalling lines of previously typed input.
The first argument: word 1.
‘$’
- The last word. This is usually the last argument, but will expand
- to the zeroth word if there is only one word in the line.
+ The last word. This is usually the last argument, but expands to
+ the zeroth word if there is only one word in the line.
‘%’
The first word matched by the most recent ‘?STRING?’ search, if the
Any character may be used as the delimiter in place of ‘/’. The
delimiter may be quoted in OLD and NEW with a single backslash. If
‘&’ appears in NEW, it is replaced with OLD. A single backslash
- will quote the ‘&’ in OLD and NEW. If OLD is null, it is set to
- the last OLD substituted, or, if no previous history substitutions
- took place, the last STRING in a !?STRING‘[?]’ search. If NEW is
- null, each matching OLD is deleted. The final delimiter is
- optional if it is the last character on the input line.
+ quotes the ‘&’ in OLD and NEW. If OLD is null, it is set to the
+ last OLD substituted, or, if no previous history substitutions took
+ place, the last STRING in a !?STRING‘[?]’ search. If NEW is null,
+ each matching OLD is deleted. The final delimiter is optional if
+ it is the last character on the input line.
‘&’
Repeat the previous substitution.
The current timestamp format uses the value of HISTORY_COMMENT_CHAR
to delimit timestamp entries in the history file. If that variable
- does not have a value (the default), this will not write
- timestamps.
+ does not have a value (the default), the history library will not
+ write timestamps.
-- Variable: char history_expansion_char
The character that introduces a history event. The default is ‘!’.
-- Variable: int history_quoting_state
An application may set this variable to indicate that the current
line being expanded is subject to existing quoting. If set to ‘'’,
- the history expansion function will assume that the line is
- single-quoted and inhibit expansion until it reads an unquoted
- closing single quote; if set to ‘"’, history expansion will assume
- the line is double quoted until it reads an unquoted closing double
- quote. If set to 0, the default, the history expansion function
- will assume the line is not quoted and treat quote characters
- within the line as described above. This is only effective if
- HISTORY_QUOTES_INHIBIT_EXPANSION is set. This is intended for use
- by applications like Bash which allow quoted strings to span
- multiple lines.
+ history expansion assumes that the line is single-quoted and
+ inhibit expansion until it reads an unquoted closing single quote;
+ if set to ‘"’, history expansion assumes the line is double quoted
+ until it reads an unquoted closing double quote. If set to 0, the
+ default, history expansion assumes the line is not quoted and
+ treats quote characters within the line as described above. This
+ is only effective if HISTORY_QUOTES_INHIBIT_EXPANSION is set. This
+ is intended for use by applications like Bash which allow quoted
+ strings to span multiple lines.
-- Variable: rl_linebuf_func_t * history_inhibit_expansion_function
This should be set to the address of a function that takes two
(line 14)
* history_get_time: Information About the History List.
(line 28)
-* history_inhibit_expansion_function: History Variables. (line 79)
+* history_inhibit_expansion_function: History Variables. (line 78)
* history_is_stifled: History List Management.
(line 52)
* history_length: History Variables. (line 12)
Node: History Interaction\7f2001
Node: Event Designators\7f4715
Node: Word Designators\7f6217
-Node: Modifiers\7f8528
-Node: Programming with GNU History\7f10179
-Node: Introduction to History\7f10923
-Node: History Storage\7f12655
-Node: History Functions\7f13835
-Node: Initializing History and State Management\7f14824
-Node: History List Management\7f15627
-Node: Information About the History List\7f18058
-Node: Moving Around the History List\7f19671
-Node: Searching the History List\7f20751
-Node: Managing the History File\7f22697
-Node: History Expansion\7f25167
-Node: History Variables\7f27140
-Node: History Programming Example\7f31282
-Node: GNU Free Documentation License\7f33936
-Node: Concept Index\7f59111
-Node: Function and Variable Index\7f59816
+Node: Modifiers\7f8524
+Node: Programming with GNU History\7f10171
+Node: Introduction to History\7f10915
+Node: History Storage\7f12647
+Node: History Functions\7f13827
+Node: Initializing History and State Management\7f14816
+Node: History List Management\7f15619
+Node: Information About the History List\7f18050
+Node: Moving Around the History List\7f19663
+Node: Searching the History List\7f20743
+Node: Managing the History File\7f22689
+Node: History Expansion\7f25159
+Node: History Variables\7f27132
+Node: History Programming Example\7f31247
+Node: GNU Free Documentation License\7f33901
+Node: Concept Index\7f59076
+Node: Function and Variable Index\7f59781
\1f
End Tag Table
%!PS-Adobe-2.0
%%Creator: dvips(k) 2024.1 (TeX Live 2024) Copyright 2024 Radical Eye Software
%%Title: history.dvi
-%%CreationDate: Fri Nov 1 22:18:32 2024
+%%CreationDate: Mon Dec 2 20:02:16 2024
%%Pages: 25
%%PageOrder: Ascend
%%BoundingBox: 0 0 596 842
%DVIPSWebPage: (www.radicaleye.com)
%DVIPSCommandLine: dvips -D 300 -o history.ps history.dvi
%DVIPSParameters: dpi=300
-%DVIPSSource: TeX output 2024.11.01:1818
+%DVIPSSource: TeX output 2024.12.02:1202
%%BeginProcSet: tex.pro 0 0
%!
/TeXDict 300 dict def TeXDict begin/N{def}def/B{bind def}N/S{exch}N/X{S
%%Page: 1 1
TeXDict begin 1 0 bop 75 659 a Fr(GNU)33 b(History)e(Library)p
75 709 1800 17 v 960 757 a Fq(Edition)14 b(8.3,)g(for)h
-Fp(History)f(Library)g Fq(V)l(ersion)h(8.3.)1608 811
-y(Octob)q(er)h(2024)75 2463 y Fo(Chet)22 b(Ramey)-6 b(,)23
-b(Case)e(W)-6 b(estern)23 b(Reserv)n(e)f(Univ)n(ersit)n(y)75
+Fp(History)f(Library)g Fq(V)l(ersion)h(8.3.)1569 811
+y(No)o(v)o(em)o(b)q(er)g(2024)75 2463 y Fo(Chet)22 b(Ramey)-6
+b(,)23 b(Case)e(W)-6 b(estern)23 b(Reserv)n(e)f(Univ)n(ersit)n(y)75
2534 y(Brian)g(F)-6 b(o)n(x,)23 b(F)-6 b(ree)23 b(Soft)n(w)n(are)f(F)-6
b(oundation)p 75 2570 1800 9 v eop end
%%Page: 2 2
-TeXDict begin 2 1 bop 75 2207 a Fq(This)17 b(do)q(cumen)o(t)i(describ)q
-(es)f(the)g(GNU)g(History)f(library)f(\(v)o(ersion)h(8.3,)g(15)g(Octob)
-q(er)i(2024\),)e(a)g(pro-)75 2262 y(gramming)10 b(to)q(ol)g(that)g(pro)
-o(vides)h(a)g(consisten)o(t)f(user)i(in)o(terface)e(for)h(recalling)f
-(lines)g(of)h(previously)g(t)o(yp)q(ed)75 2316 y(input.)75
-2384 y(Cop)o(yrigh)o(t)301 2383 y(c)289 2384 y Fn(\015)k
-Fq(1988{2024)e(F)l(ree)i(Soft)o(w)o(are)f(F)l(oundation,)g(Inc.)195
-2451 y(P)o(ermission)9 b(is)h(gran)o(ted)f(to)h(cop)o(y)l(,)h
-(distribute)e(and/or)h(mo)q(dify)g(this)f(do)q(cumen)o(t)i(under)g(the)
-195 2506 y(terms)h(of)g(the)h(GNU)g(F)l(ree)f(Do)q(cumen)o(tation)g
-(License,)h(V)l(ersion)g(1.3)f(or)g(an)o(y)g(later)g(v)o(ersion)195
-2560 y(published)23 b(b)o(y)f(the)h(F)l(ree)f(Soft)o(w)o(are)f(F)l
-(oundation;)k(with)c(no)i(In)o(v)m(arian)o(t)e(Sections,)j(no)195
-2615 y(F)l(ron)o(t-Co)o(v)o(er)13 b(T)l(exts,)h(and)g(no)h(Bac)o(k-Co)o
-(v)o(er)e(T)l(exts.)20 b(A)14 b(cop)o(y)g(of)g(the)h(license)f(is)g
-(included)195 2670 y(in)h(the)g(section)g(en)o(titled)f(\\GNU)h(F)l
-(ree)g(Do)q(cumen)o(tation)g(License".)p eop end
+TeXDict begin 2 1 bop 75 2207 a Fq(This)22 b(do)q(cumen)o(t)h(describ)q
+(es)h(the)e(GNU)h(History)e(library)h(\(v)o(ersion)f(8.3,)i(29)f(No)o
+(v)o(em)o(b)q(er)h(2024\),)f(a)75 2262 y(programming)14
+b(to)q(ol)h(that)h(pro)o(vides)f(a)h(consisten)o(t)f(user)h(in)o
+(terface)f(for)h(recalling)e(lines)i(of)g(previously)75
+2316 y(t)o(yp)q(ed)g(input.)75 2384 y(Cop)o(yrigh)o(t)301
+2383 y(c)289 2384 y Fn(\015)f Fq(1988{2024)e(F)l(ree)i(Soft)o(w)o(are)f
+(F)l(oundation,)g(Inc.)195 2451 y(P)o(ermission)9 b(is)h(gran)o(ted)f
+(to)h(cop)o(y)l(,)h(distribute)e(and/or)h(mo)q(dify)g(this)f(do)q
+(cumen)o(t)i(under)g(the)195 2506 y(terms)h(of)g(the)h(GNU)g(F)l(ree)f
+(Do)q(cumen)o(tation)g(License,)h(V)l(ersion)g(1.3)f(or)g(an)o(y)g
+(later)g(v)o(ersion)195 2560 y(published)23 b(b)o(y)f(the)h(F)l(ree)f
+(Soft)o(w)o(are)f(F)l(oundation;)k(with)c(no)i(In)o(v)m(arian)o(t)e
+(Sections,)j(no)195 2615 y(F)l(ron)o(t-Co)o(v)o(er)13
+b(T)l(exts,)h(and)g(no)h(Bac)o(k-Co)o(v)o(er)e(T)l(exts.)20
+b(A)14 b(cop)o(y)g(of)g(the)h(license)f(is)g(included)195
+2670 y(in)h(the)g(section)g(en)o(titled)f(\\GNU)h(F)l(ree)g(Do)q(cumen)
+o(tation)g(License".)p eop end
%%Page: -1 3
TeXDict begin -1 2 bop 1862 -58 a Fq(i)75 149 y Fm(T)-7
b(able)28 b(of)e(Con)n(ten)n(ts)p eop end
(this)h(is)g(the)g(command)315 2135 y(w)o(ord.)75 2214
y Fi(n)216 b Fq(The)15 b Fk(n)p Fq(th)h(w)o(ord.)75 2293
y Fp(^)216 b Fq(The)15 b(\014rst)g(argumen)o(t:)k(w)o(ord)c(1.)75
-2372 y Fp($)216 b Fq(The)14 b(last)f(w)o(ord.)18 b(This)13
-b(is)h(usually)f(the)g(last)g(argumen)o(t,)g(but)h(will)e(expand)i(to)f
-(the)h(zeroth)315 2427 y(w)o(ord)h(if)f(there)h(is)g(only)g(one)g(w)o
-(ord)g(in)g(the)g(line.)75 2506 y Fp(\045)216 b Fq(The)21
-b(\014rst)f(w)o(ord)g(matc)o(hed)g(b)o(y)g(the)h(most)e(recen)o(t)i(`)p
+2372 y Fp($)216 b Fq(The)19 b(last)e(w)o(ord.)28 b(This)18
+b(is)g(usually)g(the)g(last)g(argumen)o(t,)g(but)g(expands)h(to)f(the)g
+(zeroth)315 2427 y(w)o(ord)d(if)f(there)h(is)g(only)g(one)g(w)o(ord)g
+(in)g(the)g(line.)75 2506 y Fp(\045)216 b Fq(The)21 b(\014rst)f(w)o
+(ord)g(matc)o(hed)g(b)o(y)g(the)h(most)e(recen)o(t)i(`)p
Fp(?)p Fi(string)p Fp(?)p Fq(')d(searc)o(h,)k(if)e(the)g(searc)o(h)315
2560 y(string)12 b(b)q(egins)h(with)f(a)g(c)o(haracter)g(that)g(is)g
(part)h(of)f(a)g(w)o(ord.)19 b(By)13 b(default,)f(searc)o(hes)h(b)q
Fp(/)p Fi(new)p Fp(/)315 1503 y Fq(Substitute)g Fk(new)k
Fq(for)15 b(the)h(\014rst)f(o)q(ccurrence)i(of)f Fk(old)h
Fq(in)f(the)g(ev)o(en)o(t)f(line.)22 b(An)o(y)16 b(c)o(haracter)315
-1558 y(ma)o(y)c(b)q(e)h(used)f(as)g(the)h(delimiter)e(in)h(place)g(of)g
-(`)p Fp(/)p Fq('.)18 b(The)12 b(delimiter)g(ma)o(y)f(b)q(e)i(quoted)f
-(in)h Fk(old)315 1613 y Fq(and)i Fk(new)20 b Fq(with)15
-b(a)g(single)f(bac)o(kslash.)20 b(If)15 b(`)p Fp(&)p
-Fq(')g(app)q(ears)g(in)g Fk(new)p Fq(,)g(it)g(is)g(replaced)g(with)g
-Fk(old)p Fq(.)315 1667 y(A)h(single)g(bac)o(kslash)g(will)f(quote)h
-(the)h(`)p Fp(&)p Fq(')e(in)h Fk(old)i Fq(and)f Fk(new)p
-Fq(.)24 b(If)16 b Fk(old)i Fq(is)e(n)o(ull,)g(it)f(is)h(set)h(to)315
-1722 y(the)e(last)e Fk(old)j Fq(substituted,)e(or,)g(if)g(no)h
+1558 y(ma)o(y)g(b)q(e)i(used)g(as)f(the)g(delimiter)f(in)h(place)g(of)g
+(`)p Fp(/)p Fq('.)24 b(The)18 b(delimiter)e(ma)o(y)g(b)q(e)i(quoted)f
+(in)315 1613 y Fk(old)g Fq(and)f Fk(new)k Fq(with)c(a)f(single)h(bac)o
+(kslash.)21 b(If)16 b(`)p Fp(&)p Fq(')f(app)q(ears)h(in)g
+Fk(new)p Fq(,)g(it)f(is)g(replaced)i(with)315 1667 y
+Fk(old)p Fq(.)i(A)d(single)e(bac)o(kslash)h(quotes)f(the)i(`)p
+Fp(&)p Fq(')e(in)h Fk(old)h Fq(and)g Fk(new)p Fq(.)k(If)15
+b Fk(old)i Fq(is)d(n)o(ull,)h(it)f(is)h(set)g(to)315
+1722 y(the)g(last)e Fk(old)j Fq(substituted,)e(or,)g(if)g(no)h
(previous)f(history)g(substitutions)g(to)q(ok)g(place,)g(the)315
1777 y(last)f Fk(string)k Fq(in)d(a)g(!?)p Fk(string)t
Fp([?])f Fq(searc)o(h.)19 b(If)c Fk(new)j Fq(is)c(n)o(ull,)f(eac)o(h)h
V 19 w(c)o(har)j Fq(to)c(delimit)195 1544 y(timestamp)g(en)o(tries)g
(in)h(the)h(history)e(\014le.)38 b(If)21 b(that)f(v)m(ariable)h(do)q
(es)g(not)g(ha)o(v)o(e)g(a)g(v)m(alue)g(\(the)195 1599
-y(default\),)14 b(this)h(will)f(not)g(write)h(timestamps.)1685
-1693 y([V)l(ariable])-1801 b Fh(char)27 b(history_expansion_char)195
-1748 y Fq(The)18 b(c)o(haracter)f(that)g(in)o(tro)q(duces)g(a)g
-(history)g(ev)o(en)o(t.)27 b(The)18 b(default)f(is)g(`)p
-Fp(!)p Fq('.)26 b(Setting)17 b(this)g(to)g(0)195 1802
-y(inhibits)d(history)h(expansion.)1685 1896 y([V)l(ariable])-1801
+y(default\),)14 b(the)h(history)g(library)e(will)h(not)h(write)f
+(timestamps.)1685 1693 y([V)l(ariable])-1801 b Fh(char)27
+b(history_expansion_char)195 1748 y Fq(The)18 b(c)o(haracter)f(that)g
+(in)o(tro)q(duces)g(a)g(history)g(ev)o(en)o(t.)27 b(The)18
+b(default)f(is)g(`)p Fp(!)p Fq('.)26 b(Setting)17 b(this)g(to)g(0)195
+1802 y(inhibits)d(history)h(expansion.)1685 1896 y([V)l(ariable])-1801
b Fh(char)27 b(history_subst_char)195 1951 y Fq(The)21
b(c)o(haracter)e(that)h(in)o(v)o(ok)o(es)f(w)o(ord)h(substitution)f(if)
h(found)g(at)g(the)h(start)e(of)h(a)g(line.)35 b(The)195
259 y Fk(history)p 337 259 14 2 v 19 w(expansion)p 552
259 V 20 w(c)o(har)p Fq(.)20 b(The)15 b(default)g(is)f(space,)i(tab,)e
(newline,)h(carriage)f(return,)g(and)i(`)p Fp(=)p Fq('.)1685
-356 y([V)l(ariable])-1801 b Fh(int)27 b(history_quotes_inhibit_exp)q
-(ansion)195 411 y Fq(If)17 b(non-zero,)g(the)g(history)f(expansion)h
+348 y([V)l(ariable])-1801 b Fh(int)27 b(history_quotes_inhibit_exp)q
+(ansion)195 403 y Fq(If)17 b(non-zero,)g(the)g(history)f(expansion)h
(co)q(de)g(implemen)o(ts)f(shell-lik)o(e)g(quoting:)22
-b(single-quoted)195 466 y(w)o(ords)c(are)g(not)h(scanned)g(for)f(the)h
+b(single-quoted)195 458 y(w)o(ords)c(are)g(not)h(scanned)g(for)f(the)h
(history)f(expansion)h(c)o(haracter)f(or)g(the)h(history)e(commen)o(t)
-195 520 y(c)o(haracter,)22 b(and)g(double-quoted)g(w)o(ords)e(ma)o(y)h
+195 513 y(c)o(haracter,)22 b(and)g(double-quoted)g(w)o(ords)e(ma)o(y)h
(ha)o(v)o(e)g(history)g(expansion)g(p)q(erformed,)i(since)195
-575 y(single)15 b(quotes)f(are)h(not)g(sp)q(ecial)g(within)g(double)g
+567 y(single)15 b(quotes)f(are)h(not)g(sp)q(ecial)g(within)g(double)g
(quotes.)20 b(The)15 b(default)g(v)m(alue)g(is)g(0.)1685
-672 y([V)l(ariable])-1801 b Fh(int)27 b(history_quoting_state)195
-727 y Fq(An)14 b(application)f(ma)o(y)g(set)h(this)f(v)m(ariable)g(to)h
+656 y([V)l(ariable])-1801 b Fh(int)27 b(history_quoting_state)195
+711 y Fq(An)14 b(application)f(ma)o(y)g(set)h(this)f(v)m(ariable)g(to)h
(indicate)f(that)g(the)h(curren)o(t)g(line)g(b)q(eing)g(expanded)195
-782 y(is)f(sub)s(ject)g(to)f(existing)g(quoting.)18 b(If)c(set)f(to)f
-(`)p Fp(')p Fq(',)g(the)h(history)f(expansion)h(function)g(will)f
-(assume)195 836 y(that)h(the)h(line)f(is)g(single-quoted)g(and)h
-(inhibit)f(expansion)g(un)o(til)g(it)g(reads)g(an)h(unquoted)g(closing)
-195 891 y(single)19 b(quote;)j(if)e(set)g(to)f(`)p Fp(")p
-Fq(',)h(history)f(expansion)h(will)f(assume)h(the)g(line)g(is)g(double)
-g(quoted)195 946 y(un)o(til)c(it)f(reads)i(an)f(unquoted)h(closing)f
-(double)h(quote.)24 b(If)16 b(set)h(to)e(0,)i(the)f(default,)g(the)h
-(history)195 1001 y(expansion)10 b(function)h(will)e(assume)i(the)f
-(line)g(is)g(not)h(quoted)f(and)h(treat)f(quote)g(c)o(haracters)g
-(within)195 1056 y(the)15 b(line)f(as)g(describ)q(ed)h(ab)q(o)o(v)o(e.)
-k(This)14 b(is)g(only)g(e\013ectiv)o(e)g(if)g Fk(history)p
-1364 1056 V 19 w(quotes)p 1511 1056 V 20 w(inhibit)p
-1663 1056 V 19 w(expansion)195 1110 y Fq(is)i(set.)23
-b(This)16 b(is)g(in)o(tended)h(for)f(use)h(b)o(y)f(applications)f(lik)o
-(e)h(Bash)h(whic)o(h)f(allo)o(w)f(quoted)h(strings)195
-1165 y(to)f(span)g(m)o(ultiple)f(lines.)1685 1262 y([V)l(ariable])-1801
-b Fh(rl_linebuf_func_t)29 b(*)d(history_inhibit_expansi)q(on_func)q
-(tion)195 1317 y Fq(This)16 b(should)h(b)q(e)g(set)g(to)f(the)g
-(address)h(of)f(a)h(function)f(that)g(tak)o(es)g(t)o(w)o(o)f(argumen)o
-(ts:)22 b(a)17 b Fp(char)d(*)195 1372 y Fq(\()p Fk(string)t
-Fq(\))d(and)j(an)f Fp(int)g Fq(index)h(in)o(to)e(that)g(string)h(\()p
-Fk(i)r Fq(\).)18 b(It)c(should)f(return)g(a)g(non-zero)h(v)m(alue)f(if)
-g(the)195 1427 y(history)h(expansion)g(starting)f(at)h
-Fk(string[i])g Fq(should)h(not)f(b)q(e)h(p)q(erformed;)g(zero)f(if)g
-(the)h(expansion)195 1481 y(should)h(b)q(e)h(done.)22
-b(It)16 b(is)g(in)o(tended)g(for)f(use)i(b)o(y)f(applications)e(lik)o
-(e)h(Bash)h(that)g(use)g(the)g(history)195 1536 y(expansion)f(c)o
-(haracter)g(for)f(additional)g(purp)q(oses.)20 b(By)c(default,)e(this)h
-(v)m(ariable)f(is)h(set)g(to)f Fp(NULL)p Fq(.)75 1660
-y Fo(2.5)33 b(History)21 b(Programming)h(Example)75 1740
-y Fq(The)15 b(follo)o(wing)e(program)h(demonstrates)h(simple)g(use)g
-(of)g(the)g Fl(gnu)g Fq(History)f(Library)l(.)195 1798
-y Fe(#include)j(<stdio.h)o(>)195 1842 y(#include)g(<readlin)o(e/h)o(is)
-o(tor)o(y.h)o(>)195 1929 y(int)195 1973 y(main)h(\(int)g(argc,)g(char)g
-(**argv\))195 2016 y({)234 2060 y(char)g(line[1024])o(,)f(*t;)234
-2103 y(int)i(len,)f(done)g(=)h(0;)234 2191 y(line[0])e(=)i(0;)234
-2278 y(using_hist)o(ory)d(\(\);)234 2321 y(while)i(\(!done\))273
-2365 y({)313 2408 y(printf)f(\("history)o($)g("\);)313
-2452 y(fflush)g(\(stdout\);)313 2496 y(t)i(=)g(fgets)f(\(line,)f
-(sizeof)g(\(line\))h(-)h(1,)g(stdin\);)313 2539 y(if)g(\(t)f(&&)h(*t\))
-352 2583 y({)391 2626 y(len)g(=)g(strlen)e(\(t\);)391
-2670 y(if)i(\(t[len)e(-)i(1])g(==)g('\\n'\))p eop end
+766 y(is)g(sub)s(ject)g(to)g(existing)f(quoting.)19 b(If)c(set)f(to)f
+(`)p Fp(')p Fq(',)h(history)f(expansion)h(assumes)g(that)g(the)g(line)g
+(is)195 821 y(single-quoted)j(and)g(inhibit)g(expansion)g(un)o(til)g
+(it)f(reads)h(an)h(unquoted)g(closing)e(single)h(quote;)195
+876 y(if)i(set)h(to)f(`)p Fp(")p Fq(',)g(history)g(expansion)h(assumes)
+f(the)h(line)f(is)h(double)g(quoted)g(un)o(til)e(it)h(reads)h(an)195
+930 y(unquoted)f(closing)f(double)h(quote.)30 b(If)19
+b(set)f(to)h(0,)f(the)h(default,)g(history)f(expansion)g(assumes)195
+985 y(the)d(line)f(is)g(not)g(quoted)h(and)g(treats)e(quote)i(c)o
+(haracters)e(within)h(the)h(line)f(as)g(describ)q(ed)i(ab)q(o)o(v)o(e.)
+195 1040 y(This)g(is)h(only)f(e\013ectiv)o(e)g(if)h Fk(history)p
+812 1040 V 19 w(quotes)p 959 1040 V 19 w(inhibit)p 1110
+1040 V 20 w(expansion)g Fq(is)f(set.)25 b(This)16 b(is)g(in)o(tended)i
+(for)195 1095 y(use)e(b)o(y)f(applications)e(lik)o(e)i(Bash)g(whic)o(h)
+g(allo)o(w)f(quoted)h(strings)f(to)g(span)i(m)o(ultiple)e(lines.)1685
+1184 y([V)l(ariable])-1801 b Fh(rl_linebuf_func_t)29
+b(*)d(history_inhibit_expansi)q(on_func)q(tion)195 1239
+y Fq(This)16 b(should)h(b)q(e)g(set)g(to)f(the)g(address)h(of)f(a)h
+(function)f(that)g(tak)o(es)g(t)o(w)o(o)f(argumen)o(ts:)22
+b(a)17 b Fp(char)d(*)195 1294 y Fq(\()p Fk(string)t Fq(\))d(and)j(an)f
+Fp(int)g Fq(index)h(in)o(to)e(that)g(string)h(\()p Fk(i)r
+Fq(\).)18 b(It)c(should)f(return)g(a)g(non-zero)h(v)m(alue)f(if)g(the)
+195 1348 y(history)h(expansion)g(starting)f(at)h Fk(string[i])g
+Fq(should)h(not)f(b)q(e)h(p)q(erformed;)g(zero)f(if)g(the)h(expansion)
+195 1403 y(should)h(b)q(e)h(done.)22 b(It)16 b(is)g(in)o(tended)g(for)f
+(use)i(b)o(y)f(applications)e(lik)o(e)h(Bash)h(that)g(use)g(the)g
+(history)195 1458 y(expansion)f(c)o(haracter)g(for)f(additional)g(purp)
+q(oses.)20 b(By)c(default,)e(this)h(v)m(ariable)f(is)h(set)g(to)f
+Fp(NULL)p Fq(.)75 1576 y Fo(2.5)33 b(History)21 b(Programming)h
+(Example)75 1656 y Fq(The)15 b(follo)o(wing)e(program)h(demonstrates)h
+(simple)g(use)g(of)g(the)g Fl(gnu)g Fq(History)f(Library)l(.)195
+1711 y Fe(#include)j(<stdio.h)o(>)195 1755 y(#include)g(<readlin)o(e/h)
+o(is)o(tor)o(y.h)o(>)195 1842 y(int)195 1885 y(main)h(\(int)g(argc,)g
+(char)g(**argv\))195 1929 y({)234 1973 y(char)g(line[1024])o(,)f(*t;)
+234 2016 y(int)i(len,)f(done)g(=)h(0;)234 2103 y(line[0])e(=)i(0;)234
+2191 y(using_hist)o(ory)d(\(\);)234 2234 y(while)i(\(!done\))273
+2278 y({)313 2321 y(printf)f(\("history)o($)g("\);)313
+2365 y(fflush)g(\(stdout\);)313 2408 y(t)i(=)g(fgets)f(\(line,)f
+(sizeof)g(\(line\))h(-)h(1,)g(stdin\);)313 2452 y(if)g(\(t)f(&&)h(*t\))
+352 2496 y({)391 2539 y(len)g(=)g(strlen)e(\(t\);)391
+2583 y(if)i(\(t[len)e(-)i(1])g(==)g('\\n'\))430 2626
+y(t[len)f(-)h(1])g(=)g('\\0';)352 2670 y(})p eop end
%%Page: 11 14
TeXDict begin 11 13 bop 75 -58 a Fq(Chapter)15 b(2:)k(Programming)14
-b(with)g(GNU)h(History)866 b(11)430 149 y Fe(t[len)18
-b(-)h(1])g(=)g('\\0';)352 193 y(})313 280 y(if)g(\(!t\))352
-324 y(strcpy)e(\(line,)g("quit"\);)313 411 y(if)i(\(line[0])o(\))352
-455 y({)391 498 y(char)f(*expansion)o(;)391 542 y(int)h(result;)391
-629 y(result)e(=)j(history_e)o(xp)o(and)c(\(line,)h(&expansion)o(\);)
-391 672 y(if)i(\(result\))430 716 y(fprintf)e(\(stderr,)g("\045s\\n",)g
-(expansion)o(\);)391 803 y(if)i(\(result)e(<)i(0)g(||)g(result)e(==)i
-(2\))430 847 y({)470 890 y(free)f(\(expansio)o(n\))o(;)470
-934 y(continue)o(;)430 978 y(})391 1065 y(add_histor)o(y)e
-(\(expansion\))o(;)391 1108 y(strncpy)h(\(line,)g(expansion,)f(sizeof)h
-(\(line\))h(-)h(1\);)391 1152 y(free)f(\(expansion)o(\);)352
-1196 y(})313 1283 y(if)h(\(strcmp)d(\(line,)i("quit"\))f(==)h(0\))352
-1326 y(done)g(=)h(1;)313 1370 y(else)f(if)h(\(strcmp)d(\(line,)i
-("save"\))f(==)i(0\))352 1413 y(write_his)o(tor)o(y)d(\("history_f)o
-(il)o(e"\))o(;)313 1457 y(else)i(if)h(\(strcmp)d(\(line,)i("read"\))f
-(==)i(0\))352 1501 y(read_hist)o(ory)d(\("history)o(_fi)o(le)o("\);)313
-1544 y(else)i(if)h(\(strcmp)d(\(line,)i("list"\))f(==)i(0\))352
-1588 y({)391 1631 y(register)e(HIST_ENTR)o(Y)f(**the_list;)391
-1675 y(register)h(int)h(i;)391 1762 y(the_list)f(=)i(history_l)o(ist)d
-(\(\);)391 1806 y(if)j(\(the_list)o(\))430 1849 y(for)g(\(i)g(=)g(0;)g
-(the_list[)o(i])o(;)e(i++\))470 1893 y(printf)g(\("\045d:)h(\045s\\n",)
+b(with)g(GNU)h(History)866 b(11)313 193 y Fe(if)19 b(\(!t\))352
+237 y(strcpy)e(\(line,)g("quit"\);)313 324 y(if)i(\(line[0])o(\))352
+367 y({)391 411 y(char)f(*expansion)o(;)391 455 y(int)h(result;)391
+542 y(result)e(=)j(history_e)o(xp)o(and)c(\(line,)h(&expansion)o(\);)
+391 585 y(if)i(\(result\))430 629 y(fprintf)e(\(stderr,)g("\045s\\n",)g
+(expansion)o(\);)391 716 y(if)i(\(result)e(<)i(0)g(||)g(result)e(==)i
+(2\))430 760 y({)470 803 y(free)f(\(expansio)o(n\))o(;)470
+847 y(continue)o(;)430 890 y(})391 978 y(add_histor)o(y)e
+(\(expansion\))o(;)391 1021 y(strncpy)h(\(line,)g(expansion,)f(sizeof)h
+(\(line\))h(-)h(1\);)391 1065 y(free)f(\(expansion)o(\);)352
+1108 y(})313 1196 y(if)h(\(strcmp)d(\(line,)i("quit"\))f(==)h(0\))352
+1239 y(done)g(=)h(1;)313 1283 y(else)f(if)h(\(strcmp)d(\(line,)i
+("save"\))f(==)i(0\))352 1326 y(write_his)o(tor)o(y)d(\("history_f)o
+(il)o(e"\))o(;)313 1370 y(else)i(if)h(\(strcmp)d(\(line,)i("read"\))f
+(==)i(0\))352 1413 y(read_hist)o(ory)d(\("history)o(_fi)o(le)o("\);)313
+1457 y(else)i(if)h(\(strcmp)d(\(line,)i("list"\))f(==)i(0\))352
+1501 y({)391 1544 y(register)e(HIST_ENTR)o(Y)f(**the_list;)391
+1588 y(register)h(int)h(i;)391 1675 y(the_list)f(=)i(history_l)o(ist)d
+(\(\);)391 1719 y(if)j(\(the_list)o(\))430 1762 y(for)g(\(i)g(=)g(0;)g
+(the_list[)o(i])o(;)e(i++\))470 1806 y(printf)g(\("\045d:)h(\045s\\n",)
f(i)i(+)g(history_ba)o(se,)d(the_list[)o(i]-)o(>li)o(ne)o(\);)352
-1936 y(})313 1980 y(else)i(if)h(\(strncmp)d(\(line,)h("delete",)g(6\))h
-(==)h(0\))352 2024 y({)391 2067 y(int)g(which;)391 2111
+1849 y(})313 1893 y(else)i(if)h(\(strncmp)d(\(line,)h("delete",)g(6\))h
+(==)h(0\))352 1936 y({)391 1980 y(int)g(which;)391 2024
y(if)g(\(\(sscanf)d(\(line)i(+)h(6,)g("\045d",)f(&which\)\))e(==)j(1\))
-430 2154 y({)470 2198 y(HIST_ENT)o(RY)d(*entry)i(=)h(remove_hi)o(sto)o
-(ry)d(\(which\);)470 2242 y(if)i(\(!entry\))509 2285
+430 2067 y({)470 2111 y(HIST_ENT)o(RY)d(*entry)i(=)h(remove_hi)o(sto)o
+(ry)d(\(which\);)470 2154 y(if)i(\(!entry\))509 2198
y(fprintf)f(\(stderr,)f("No)j(such)f(entry)f(\045d\\n",)h(which\);)470
-2329 y(else)509 2372 y({)548 2416 y(free)g(\(entry->li)o(ne)o(\);)548
-2460 y(free)g(\(entry\);)509 2503 y(})430 2547 y(})391
-2590 y(else)430 2634 y({)p eop end
+2242 y(else)509 2285 y({)548 2329 y(free)g(\(entry->li)o(ne)o(\);)548
+2372 y(free)g(\(entry\);)509 2416 y(})430 2460 y(})391
+2503 y(else)430 2547 y({)470 2590 y(fprintf)e(\(stderr,)h("non-numer)o
+(ic)f(arg)i(given)g(to)h(`delete'\\n)o("\))o(;)430 2634
+y(})p eop end
%%Page: 12 15
TeXDict begin 12 14 bop 75 -58 a Fq(Chapter)15 b(2:)k(Programming)14
-b(with)g(GNU)h(History)866 b(12)470 149 y Fe(fprintf)16
-b(\(stderr,)h("non-numer)o(ic)f(arg)i(given)g(to)h(`delete'\\n)o("\))o
-(;)430 193 y(})352 237 y(})273 280 y(})195 324 y(})p
-eop end
+b(with)g(GNU)h(History)866 b(12)352 149 y Fe(})273 193
+y(})195 237 y(})p eop end
%%Page: 13 16
TeXDict begin 13 15 bop 1830 -58 a Fq(13)75 149 y Fm(App)r(endix)26
b(A)41 b(GNU)27 b(F)-7 b(ree)26 b(Do)r(cumen)n(tation)j(License)679
The current timestamp format uses the value of @var{history_comment_char}
to delimit timestamp entries in the history file.
-If that variable does not have a value (the default), this will not
-write timestamps.
+If that variable does not have a value (the default),
+the history library will not write timestamps.
@end deftypevar
@deftypevar char history_expansion_char
@deftypevar int history_quoting_state
An application may set this variable to indicate that the current line
being expanded is subject to existing quoting.
-If set to @samp{'}, the
-history expansion function will assume that the line is single-quoted and
+If set to @samp{'},
+history expansion assumes that the line is single-quoted and
inhibit expansion until it reads an unquoted closing single quote;
-if set to @samp{"}, history expansion will assume the line is
-double quoted until it reads an unquoted closing double quote.
+if set to @samp{"},
+history expansion assumes the line is double quoted
+until it reads an unquoted closing double quote.
If set to 0, the default,
-the history expansion function will assume the line is not quoted and
-treat quote characters within the line as described above.
+history expansion assumes the line is not quoted and
+treats quote characters within the line as described above.
This is only effective if @var{history_quotes_inhibit_expansion} is set.
This is intended for use by applications like Bash which allow
quoted strings to span multiple lines.
@ifset BashFeatures
Several shell options settable with the @code{shopt}
builtin (@pxref{The Shopt Builtin})
-will modify history expansion behavior
+modify history expansion behavior
If the @code{histverify} shell option is enabled, and Readline
is being used, history substitutions are not immediately passed to
the shell parser.
@item $
The last word.
-This is usually the last argument, but will expand to the
+This is usually the last argument, but expands to the
zeroth word if there is only one word in the line.
@item %
The delimiter may be quoted in @var{old} and @var{new}
with a single backslash.
If @samp{&} appears in @var{new}, it is replaced with @var{old}.
-A single backslash will quote the @samp{&} in @var{old} and @var{new}.
+A single backslash quotes the @samp{&} in @var{old} and @var{new}.
If @var{old} is null, it is set to the last @var{old}
substituted, or, if no previous history substitutions took place,
the last @var{string}
Readline is Copyright (C) 1989-2024 Free Software Foundation, Inc.
D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
- r\bre\bea\bad\bdl\bli\bin\bne\be will read a line from the terminal and return it, using p\bpr\bro\bom\bmp\bpt\bt
- as a prompt. If p\bpr\bro\bom\bmp\bpt\bt is N\bNU\bUL\bLL\bL or the empty string, r\bre\bea\bad\bdl\bli\bin\bne\be does not
- issue a prompt. The line returned is allocated with _\bm_\ba_\bl_\bl_\bo_\bc(3); the
+ r\bre\bea\bad\bdl\bli\bin\bne\be reads a line from the terminal and return it, using p\bpr\bro\bom\bmp\bpt\bt as
+ a prompt. If p\bpr\bro\bom\bmp\bpt\bt is N\bNU\bUL\bLL\bL or the empty string, r\bre\bea\bad\bdl\bli\bin\bne\be does not is-
+ sue a prompt. The line returned is allocated with _\bm_\ba_\bl_\bl_\bo_\bc(3); the
caller must free it when finished. The line returned has the final
newline removed, so only the text of the line remains. Since it's pos-
sible to enter characters into the line while quoting them to disable
On keyboards without a _\bM_\be_\bt_\ba key, M-_\bx means ESC _\bx, i.e., press and re-
lease the Escape key, then press and release the _\bx key, in sequence.
- This makes ESC the _\bm_\be_\bt_\ba _\bp_\br_\be_\bf_\bi_\bx. The combination M-C-_\bx means ESC-Con-
+ This makes ESC the _\bm_\be_\bt_\ba _\bp_\br_\be_\bf_\bi_\bx. The combination M-C-_\bx means ESC Con-
trol-_\bx: press and release the Escape key, then press and hold the Con-
trol key while pressing the _\bx key, then release both.
(the _\bi_\bn_\bp_\bu_\bt_\br_\bc file). The name of this file is taken from the value of
the I\bIN\bNP\bPU\bUT\bTR\bRC\bC environment variable. If that variable is unset, the de-
fault is _\b~_\b/_\b._\bi_\bn_\bp_\bu_\bt_\br_\bc. If that file does not exist or cannot be read,
- r\bre\bea\bad\bdl\bli\bin\bne\be looks for _\b/_\be_\bt_\bc_\b/_\bi_\bn_\bp_\bu_\bt_\br_\bc. When a program which uses the r\bre\bea\bad\bd-\b-
- l\bli\bin\bne\be library starts up, r\bre\bea\bad\bdl\bli\bin\bne\be reads the initialization file and sets
- the key bindings and variables found there, before reading any user in-
- put.
+ r\bre\bea\bad\bdl\bli\bin\bne\be looks for _\b/_\be_\bt_\bc_\b/_\bi_\bn_\bp_\bu_\bt_\br_\bc. When a program that uses the r\bre\bea\bad\bdl\bli\bin\bne\be
+ library starts up, r\bre\bea\bad\bdl\bli\bin\bne\be reads the initialization file and sets the
+ key bindings and variables found there, before reading any user input.
There are only a few basic constructs allowed in the inputrc file.
Blank lines are ignored. Lines beginning with a #\b# are comments. Lines
_\bs_\ba_\bl_\b-_\ba_\br_\bg_\bu_\bm_\be_\bn_\bt.
Key bindings may contain the following symbolic character names: _\bD_\bE_\bL,
- _\bE_\bS_\bC, _\bE_\bS_\bC_\bA_\bP_\bE, _\bL_\bF_\bD, _\bN_\bE_\bW_\bL_\bI_\bN_\bE, _\bR_\bE_\bT, _\bR_\bE_\bT_\bU_\bR_\bN, _\bR_\bU_\bB_\bO_\bU_\bT(a_\bd_\be_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bv_\bebackspace),
- _\bS_\bP_\bA_\bC_\bE, _\bS_\bP_\bC, and _\bT_\bA_\bB.
+ _\bE_\bS_\bC, _\bE_\bS_\bC_\bA_\bP_\bE, _\bL_\bF_\bD, _\bN_\bE_\bW_\bL_\bI_\bN_\bE, _\bR_\bE_\bT, _\bR_\bE_\bT_\bU_\bR_\bN, _\bR_\bU_\bB_\bO_\bU_\bT (a destructive back-
+ space), _\bS_\bP_\bA_\bC_\bE, _\bS_\bP_\bC, and _\bT_\bA_\bB.
In addition to command names, r\bre\bea\bad\bdl\bli\bin\bne\be allows keys to be bound to a
string that is inserted when the key is pressed (a _\bm_\ba_\bc_\br_\bo). The differ-
When entering the text of a macro, single or double quotes must be used
to indicate a macro definition. Unquoted text is assumed to be a func-
- tion name. Tthe backslash escapes described above are expanded in the
- macro body. Backslash will quote any other character in the macro
- text, including " and '.
+ tion name. The backslash escapes described above are expanded in the
+ macro body. Backslash quotes any other character in the macro text,
+ including " and '.
B\bBa\bas\bsh\bh will display or modify the current r\bre\bea\bad\bdl\bli\bin\bne\be key bindings with the
b\bbi\bin\bnd\bd builtin command. The -\b-o\bo e\bem\bma\bac\bcs\bs or -\b-o\bo v\bvi\bi options to the s\bse\bet\bt builtin
- will change the editing mode during interactive use. Other programs
- using this library provide similar mechanisms. A user may always edit
- the _\bi_\bn_\bp_\bu_\bt_\br_\bc file and have r\bre\bea\bad\bdl\bli\bin\bne\be re-read it if a program does not
- provide any other means to incorporate new bindings.
+ change the editing mode during interactive use. Other programs using
+ this library provide similar mechanisms. A user may always edit the
+ _\bi_\bn_\bp_\bu_\bt_\br_\bc file and have r\bre\bea\bad\bdl\bli\bin\bne\be re-read it if a program does not provide
+ any other means to incorporate new bindings.
V\bVa\bar\bri\bia\bab\bbl\ble\bes\bs
R\bRe\bea\bad\bdl\bli\bin\bne\be has variables that can be used to further customize its behav-
s\bse\bet\bt _\bv_\ba_\br_\bi_\ba_\bb_\bl_\be_\b-_\bn_\ba_\bm_\be _\bv_\ba_\bl_\bu_\be
- Except where noted, r\bre\bea\bad\bdl\bli\bin\bne\be variables can take the values O\bOn\bn or O\bOf\bff\bf
- (without regard to case). Unrecognized variable names are ignored.
+ Except where noted, r\bre\bea\bad\bdl\bli\bin\bne\be variables can take the values O\bOn\bn or O\bOf\bff\bf
+ (without regard to case). Unrecognized variable names are ignored.
When r\bre\bea\bad\bdl\bli\bin\bne\be reads a variable value, empty or null values, "on" (case-
- insensitive), and "1" are equivalent to O\bOn\bn. All other values are
+ insensitive), and "1" are equivalent to O\bOn\bn. All other values are
equivalent to O\bOf\bff\bf.
The variables and their default values are:
a\bac\bct\bti\biv\bve\be-\b-r\bre\beg\bgi\bio\bon\bn-\b-s\bst\bta\bar\brt\bt-\b-c\bco\bol\blo\bor\br
- A string variable that controls the text color and background
- when displaying the text in the active region (see the descrip-
- tion of e\ben\bna\bab\bbl\ble\be-\b-a\bac\bct\bti\biv\bve\be-\b-r\bre\beg\bgi\bio\bon\bn below). This string must not take
+ A string variable that controls the text color and background
+ when displaying the text in the active region (see the descrip-
+ tion of e\ben\bna\bab\bbl\ble\be-\b-a\bac\bct\bti\biv\bve\be-\b-r\bre\beg\bgi\bio\bon\bn below). This string must not take
up any physical character positions on the display, so it should
- consist only of terminal escape sequences. It is output to the
- terminal before displaying the text in the active region. This
- variable is reset to the default value whenever the terminal
- type changes. The default value is the string that puts the
- terminal in standout mode, as obtained from the terminal's ter-
+ consist only of terminal escape sequences. It is output to the
+ terminal before displaying the text in the active region. This
+ variable is reset to the default value whenever the terminal
+ type changes. The default value is the string that puts the
+ terminal in standout mode, as obtained from the terminal's ter-
minfo description. A sample value might be "\e[01;33m".
a\bac\bct\bti\biv\bve\be-\b-r\bre\beg\bgi\bio\bon\bn-\b-e\ben\bnd\bd-\b-c\bco\bol\blo\bor\br
- A string variable that "undoes" the effects of a\bac\bct\bti\biv\bve\be-\b-r\bre\be-\b-
- g\bgi\bio\bon\bn-\b-s\bst\bta\bar\brt\bt-\b-c\bco\bol\blo\bor\br and restores "normal" terminal display appear-
- ance after displaying text in the active region. This string
- must not take up any physical character positions on the dis-
- play, so it should consist only of terminal escape sequences.
- It is output to the terminal after displaying the text in the
- active region. This variable is reset to the default value
- whenever the terminal type changes. The default value is the
- string that restores the terminal from standout mode, as ob-
+ A string variable that "undoes" the effects of a\bac\bct\bti\biv\bve\be-\b-r\bre\be-\b-
+ g\bgi\bio\bon\bn-\b-s\bst\bta\bar\brt\bt-\b-c\bco\bol\blo\bor\br and restores "normal" terminal display appear-
+ ance after displaying text in the active region. This string
+ must not take up any physical character positions on the dis-
+ play, so it should consist only of terminal escape sequences.
+ It is output to the terminal after displaying the text in the
+ active region. This variable is reset to the default value
+ whenever the terminal type changes. The default value is the
+ string that restores the terminal from standout mode, as ob-
tained from the terminal's terminfo description. A sample value
might be "\e[0m".
b\bbe\bel\bll\bl-\b-s\bst\bty\byl\ble\be (\b(a\bau\bud\bdi\bib\bbl\ble\be)\b)
- Controls what happens when r\bre\bea\bad\bdl\bli\bin\bne\be wants to ring the terminal
+ Controls what happens when r\bre\bea\bad\bdl\bli\bin\bne\be wants to ring the terminal
bell. If set to n\bno\bon\bne\be, r\bre\bea\bad\bdl\bli\bin\bne\be never rings the bell. If set to
- v\bvi\bis\bsi\bib\bbl\ble\be, r\bre\bea\bad\bdl\bli\bin\bne\be uses a visible bell if one is available. If
+ v\bvi\bis\bsi\bib\bbl\ble\be, r\bre\bea\bad\bdl\bli\bin\bne\be uses a visible bell if one is available. If
set to a\bau\bud\bdi\bib\bbl\ble\be, r\bre\bea\bad\bdl\bli\bin\bne\be attempts to ring the terminal's bell.
b\bbi\bin\bnd\bd-\b-t\btt\bty\by-\b-s\bsp\bpe\bec\bci\bia\bal\bl-\b-c\bch\bha\bar\brs\bs (\b(O\bOn\bn)\b)
- If set to O\bOn\bn, r\bre\bea\bad\bdl\bli\bin\bne\be attempts to bind the control characters
- that are treated specially by the kernel's terminal driver to
+ If set to O\bOn\bn, r\bre\bea\bad\bdl\bli\bin\bne\be attempts to bind the control characters
+ that are treated specially by the kernel's terminal driver to
their r\bre\bea\bad\bdl\bli\bin\bne\be equivalents. These override the default r\bre\bea\bad\bdl\bli\bin\bne\be
bindings described here. Type "stty -a" at a b\bba\bas\bsh\bh prompt to see
- your current terminal settings, including the special control
+ your current terminal settings, including the special control
characters (usually c\bcc\bch\bha\bar\brs\bs).
b\bbl\bli\bin\bnk\bk-\b-m\bma\bat\btc\bch\bhi\bin\bng\bg-\b-p\bpa\bar\bre\ben\bn (\b(O\bOf\bff\bf)\b)
If set to O\bOn\bn, r\bre\bea\bad\bdl\bli\bin\bne\be attempts to briefly move the cursor to an
opening parenthesis when a closing parenthesis is inserted.
c\bco\bol\blo\bor\bre\bed\bd-\b-c\bco\bom\bmp\bpl\ble\bet\bti\bio\bon\bn-\b-p\bpr\bre\bef\bfi\bix\bx (\b(O\bOf\bff\bf)\b)
- If set to O\bOn\bn, when listing completions, r\bre\bea\bad\bdl\bli\bin\bne\be displays the
+ If set to O\bOn\bn, when listing completions, r\bre\bea\bad\bdl\bli\bin\bne\be displays the
common prefix of the set of possible completions using a differ-
- ent color. The color definitions are taken from the value of
+ ent color. The color definitions are taken from the value of
the L\bLS\bS_\b_C\bCO\bOL\bLO\bOR\bRS\bS environment variable. If there is a color defini-
- tion in $\b$L\bLS\bS_\b_C\bCO\bOL\bLO\bOR\bRS\bS for the custom suffix "readline-colored-com-
- pletion-prefix", r\bre\bea\bad\bdl\bli\bin\bne\be uses this color for the common prefix
+ tion in $\b$L\bLS\bS_\b_C\bCO\bOL\bLO\bOR\bRS\bS for the custom suffix "readline-colored-com-
+ pletion-prefix", r\bre\bea\bad\bdl\bli\bin\bne\be uses this color for the common prefix
instead of its default.
c\bco\bol\blo\bor\bre\bed\bd-\b-s\bst\bta\bat\bts\bs (\b(O\bOf\bff\bf)\b)
- If set to O\bOn\bn, r\bre\bea\bad\bdl\bli\bin\bne\be displays possible completions using dif-
- ferent colors to indicate their file type. The color defini-
- tions are taken from the value of the L\bLS\bS_\b_C\bCO\bOL\bLO\bOR\bRS\bS environment
+ If set to O\bOn\bn, r\bre\bea\bad\bdl\bli\bin\bne\be displays possible completions using dif-
+ ferent colors to indicate their file type. The color defini-
+ tions are taken from the value of the L\bLS\bS_\b_C\bCO\bOL\bLO\bOR\bRS\bS environment
variable.
c\bco\bom\bmm\bme\ben\bnt\bt-\b-b\bbe\beg\bgi\bin\bn (\b("#\b#")\b)
- The string that the r\bre\bea\bad\bdl\bli\bin\bne\be i\bin\bns\bse\ber\brt\bt-\b-c\bco\bom\bmm\bme\ben\bnt\bt command inserts.
- This command is bound to M\bM-\b-#\b# in emacs mode and to #\b# in vi com-
+ The string that the r\bre\bea\bad\bdl\bli\bin\bne\be i\bin\bns\bse\ber\brt\bt-\b-c\bco\bom\bmm\bme\ben\bnt\bt command inserts.
+ This command is bound to M\bM-\b-#\b# in emacs mode and to #\b# in vi com-
mand mode.
c\bco\bom\bmp\bpl\ble\bet\bti\bio\bon\bn-\b-d\bdi\bis\bsp\bpl\bla\bay\by-\b-w\bwi\bid\bdt\bth\bh (\b(-\b-1\b1)\b)
- The number of screen columns used to display possible matches
- when performing completion. The value is ignored if it is less
- than 0 or greater than the terminal screen width. A value of 0
- will cause matches to be displayed one per line. The default
- value is -1.
+ The number of screen columns used to display possible matches
+ when performing completion. The value is ignored if it is less
+ than 0 or greater than the terminal screen width. A value of 0
+ causes matches to be displayed one per line. The default value
+ is -1.
c\bco\bom\bmp\bpl\ble\bet\bti\bio\bon\bn-\b-i\big\bgn\bno\bor\bre\be-\b-c\bca\bas\bse\be (\b(O\bOf\bff\bf)\b)
If set to O\bOn\bn, r\bre\bea\bad\bdl\bli\bin\bne\be performs filename matching and completion
in a case-insensitive fashion.
c\bco\bom\bmp\bpl\ble\bet\bti\bio\bon\bn-\b-m\bma\bap\bp-\b-c\bca\bas\bse\be (\b(O\bOf\bff\bf)\b)
- If set to O\bOn\bn, and c\bco\bom\bmp\bpl\ble\bet\bti\bio\bon\bn-\b-i\big\bgn\bno\bor\bre\be-\b-c\bca\bas\bse\be is enabled, r\bre\bea\bad\bdl\bli\bin\bne\be
- treats hyphens (_\b-) and underscores (_\b_) as equivalent when per-
+ If set to O\bOn\bn, and c\bco\bom\bmp\bpl\ble\bet\bti\bio\bon\bn-\b-i\big\bgn\bno\bor\bre\be-\b-c\bca\bas\bse\be is enabled, r\bre\bea\bad\bdl\bli\bin\bne\be
+ treats hyphens (_\b-) and underscores (_\b_) as equivalent when per-
forming case-insensitive filename matching and completion.
c\bco\bom\bmp\bpl\ble\bet\bti\bio\bon\bn-\b-p\bpr\bre\bef\bfi\bix\bx-\b-d\bdi\bis\bsp\bpl\bla\bay\by-\b-l\ble\ben\bng\bgt\bth\bh (\b(0\b0)\b)
- The maximum length in characters of the common prefix of a list
- of possible completions that is displayed without modification.
- When set to a value greater than zero, r\bre\bea\bad\bdl\bli\bin\bne\be replaces common
+ The maximum length in characters of the common prefix of a list
+ of possible completions that is displayed without modification.
+ When set to a value greater than zero, r\bre\bea\bad\bdl\bli\bin\bne\be replaces common
prefixes longer than this value with an ellipsis when displaying
possible completions.
c\bco\bom\bmp\bpl\ble\bet\bti\bio\bon\bn-\b-q\bqu\bue\ber\bry\by-\b-i\bit\bte\bem\bms\bs (\b(1\b10\b00\b0)\b)
- This determines when the user is queried about viewing the num-
- ber of possible completions generated by the p\bpo\bos\bss\bsi\bib\bbl\ble\be-\b-c\bco\bom\bmp\bpl\ble\be-\b-
- t\bti\bio\bon\bns\bs command. It may be set to any integer value greater than
- or equal to zero. If the number of possible completions is
- greater than or equal to the value of this variable, r\bre\bea\bad\bdl\bli\bin\bne\be
- will ask whether or not the user wishes to view them; otherwise
- r\bre\bea\bad\bdl\bli\bin\bne\be simply lists them on the terminal. A zero value means
+ This determines when the user is queried about viewing the num-
+ ber of possible completions generated by the p\bpo\bos\bss\bsi\bib\bbl\ble\be-\b-c\bco\bom\bmp\bpl\ble\be-\b-
+ t\bti\bio\bon\bns\bs command. It may be set to any integer value greater than
+ or equal to zero. If the number of possible completions is
+ greater than or equal to the value of this variable, r\bre\bea\bad\bdl\bli\bin\bne\be
+ asks whether or not the user wishes to view them; otherwise
+ r\bre\bea\bad\bdl\bli\bin\bne\be simply lists them on the terminal. A zero value means
r\bre\bea\bad\bdl\bli\bin\bne\be should never ask; negative values are treated as zero.
c\bco\bon\bnv\bve\ber\brt\bt-\b-m\bme\bet\bta\ba (\b(O\bOn\bn)\b)
- If set to O\bOn\bn, r\bre\bea\bad\bdl\bli\bin\bne\be will convert characters it reads that
- have the eighth bit set to an ASCII key sequence by clearing the
+ If set to O\bOn\bn, r\bre\bea\bad\bdl\bli\bin\bne\be converts characters it reads that have
+ the eighth bit set to an ASCII key sequence by clearing the
eighth bit and prefixing it with an escape character (converting
the character to have the meta prefix). The default is _\bO_\bn, but
- r\bre\bea\bad\bdl\bli\bin\bne\be will set it to _\bO_\bf_\bf if the locale contains characters
- whose encodings may include bytes with the eighth bit set. This
- variable is dependent on the L\bLC\bC_\b_C\bCT\bTY\bYP\bPE\bE locale category, and may
+ r\bre\bea\bad\bdl\bli\bin\bne\be sets it to _\bO_\bf_\bf if the locale contains characters whose
+ encodings may include bytes with the eighth bit set. This vari-
+ able is dependent on the L\bLC\bC_\b_C\bCT\bTY\bYP\bPE\bE locale category, and may
change if the locale changes. This variable also affects key
bindings; see the description of f\bfo\bor\brc\bce\be-\b-m\bme\bet\bta\ba-\b-p\bpr\bre\bef\bfi\bix\bx below.
d\bdi\bis\bsa\bab\bbl\ble\be-\b-c\bco\bom\bmp\bpl\ble\bet\bti\bio\bon\bn (\b(O\bOf\bff\bf)\b)
- If set to O\bOn\bn, r\bre\bea\bad\bdl\bli\bin\bne\be will inhibit word completion. Completion
- characters will be inserted into the line as if they had been
- mapped to s\bse\bel\blf\bf-\b-i\bin\bns\bse\ber\brt\bt.
+ If set to O\bOn\bn, r\bre\bea\bad\bdl\bli\bin\bne\be inhibits word completion. Completion
+ characters are inserted into the line as if they had been mapped
+ to s\bse\bel\blf\bf-\b-i\bin\bns\bse\ber\brt\bt.
e\bec\bch\bho\bo-\b-c\bco\bon\bnt\btr\bro\bol\bl-\b-c\bch\bha\bar\bra\bac\bct\bte\ber\brs\bs (\b(O\bOn\bn)\b)
When set to O\bOn\bn, on operating systems that indicate they support
it, r\bre\bea\bad\bdl\bli\bin\bne\be echoes a character corresponding to a signal gener-
When this variable is set to _\bO_\bn, r\bre\bea\bad\bdl\bli\bin\bne\be allows certain com-
mands to designate the region as _\ba_\bc_\bt_\bi_\bv_\be. When the region is ac-
tive, r\bre\bea\bad\bdl\bli\bin\bne\be highlights the text in the region using the value
- of the a\bac\bct\bti\biv\bve\be-\b-r\bre\beg\bgi\bio\bon\bn-\b-s\bst\bta\bar\brt\bt-\b-c\bco\bol\blo\bor\br, which defaults to the string
- that enables the terminal's standout mode. The active region
- shows the text inserted by bracketed-paste and any matching text
- found by incremental and non-incremental history searches.
+ of the a\bac\bct\bti\biv\bve\be-\b-r\bre\beg\bgi\bio\bon\bn-\b-s\bst\bta\bar\brt\bt-\b-c\bco\bol\blo\bor\br variable, which defaults to the
+ string that enables the terminal's standout mode. The active
+ region shows the text inserted by bracketed-paste and any match-
+ ing text found by incremental and non-incremental history
+ searches.
e\ben\bna\bab\bbl\ble\be-\b-b\bbr\bra\bac\bck\bke\bet\bte\bed\bd-\b-p\bpa\bas\bst\bte\be (\b(O\bOn\bn)\b)
When set to O\bOn\bn, r\bre\bea\bad\bdl\bli\bin\bne\be configures the terminal to insert each
paste into the editing buffer as a single string of characters,
r\bre\bea\bad\bdl\bli\bin\bne\be from executing any editing commands bound to key se-
quences appearing in the pasted text.
e\ben\bna\bab\bbl\ble\be-\b-k\bke\bey\byp\bpa\bad\bd (\b(O\bOf\bff\bf)\b)
- When set to O\bOn\bn, r\bre\bea\bad\bdl\bli\bin\bne\be will try to enable the application key-
- pad when it is called. Some systems need this to enable the ar-
- row keys.
+ When set to O\bOn\bn, r\bre\bea\bad\bdl\bli\bin\bne\be tries to enable the application keypad
+ when it is called. Some systems need this to enable the arrow
+ keys.
e\ben\bna\bab\bbl\ble\be-\b-m\bme\bet\bta\ba-\b-k\bke\bey\by (\b(O\bOn\bn)\b)
- When set to O\bOn\bn, r\bre\bea\bad\bdl\bli\bin\bne\be will try to enable any meta modifier
- key the terminal claims to support. On many terminals, the Meta
- key is used to send eight-bit characters; this variable checks
- for the terminal capability that indicates the terminal can en-
- able and disable a mode that sets the eighth bit of a character
+ When set to O\bOn\bn, r\bre\bea\bad\bdl\bli\bin\bne\be tries to enable any meta modifier key
+ the terminal claims to support. On many terminals, the Meta key
+ is used to send eight-bit characters; this variable checks for
+ the terminal capability that indicates the terminal can enable
+ and disable a mode that sets the eighth bit of a character
(0200) if the Meta key is held down when the character is typed
(a meta character).
e\bex\bxp\bpa\ban\bnd\bd-\b-t\bti\bil\bld\bde\be (\b(O\bOf\bff\bf)\b)
wrapping to a new line. This setting is automatically enabled
for terminals of height 1.
i\bin\bnp\bpu\but\bt-\b-m\bme\bet\bta\ba (\b(O\bOf\bff\bf)\b)
- If set to O\bOn\bn, r\bre\bea\bad\bdl\bli\bin\bne\be will enable eight-bit input (that is, it
- will not clear the eighth bit in the characters it reads), re-
- gardless of what the terminal claims it can support. The de-
- fault is _\bO_\bf_\bf, but r\bre\bea\bad\bdl\bli\bin\bne\be will set it to _\bO_\bn if the locale con-
- tains characters whose encodings may include bytes with the
- eighth bit set. This variable is dependent on the L\bLC\bC_\b_C\bCT\bTY\bYP\bPE\bE lo-
- cale category, and its value may change if the locale changes.
- The name m\bme\bet\bta\ba-\b-f\bfl\bla\bag\bg is a synonym for i\bin\bnp\bpu\but\bt-\b-m\bme\bet\bta\ba.
- i\bis\bse\bea\bar\brc\bch\bh-\b-t\bte\ber\brm\bmi\bin\bna\bat\bto\bor\brs\bs (\b("C\bC-\b-[\b[C\bC-\b-J\bJ")\b)
- The string of characters that should terminate an incremental
- search without subsequently executing the character as a com-
- mand. If this variable has not been given a value, the charac-
- ters _\bE_\bS_\bC and _\bC_\b-_\bJ will terminate an incremental search.
+ If set to O\bOn\bn, r\bre\bea\bad\bdl\bli\bin\bne\be enables eight-bit input (that is, it does
+ not clear the eighth bit in the characters it reads), regardless
+ of what the terminal claims it can support. The default is _\bO_\bf_\bf,
+ but r\bre\bea\bad\bdl\bli\bin\bne\be sets it to _\bO_\bn if the locale contains characters
+ whose encodings may include bytes with the eighth bit set. This
+ variable is dependent on the L\bLC\bC_\b_C\bCT\bTY\bYP\bPE\bE locale category, and its
+ value may change if the locale changes. The name m\bme\bet\bta\ba-\b-f\bfl\bla\bag\bg is a
+ synonym for i\bin\bnp\bpu\but\bt-\b-m\bme\bet\bta\ba.
+ i\bis\bse\bea\bar\brc\bch\bh-\b-t\bte\ber\brm\bmi\bin\bna\bat\bto\bor\brs\bs (\b("C\bC-\b-[\b[C\bC-\b-j\bj")\b)
+ The string of characters that should terminate an incremental
+ search without subsequently executing the character as a com-
+ mand. If this variable has not been given a value, the charac-
+ ters _\bE_\bS_\bC and C\bC-\b-j\bj terminate an incremental search.
k\bke\bey\bym\bma\bap\bp (\b(e\bem\bma\bac\bcs\bs)\b)
- Set the current r\bre\bea\bad\bdl\bli\bin\bne\be keymap. The set of valid keymap names
- is _\be_\bm_\ba_\bc_\bs_\b, _\be_\bm_\ba_\bc_\bs_\b-_\bs_\bt_\ba_\bn_\bd_\ba_\br_\bd_\b, _\be_\bm_\ba_\bc_\bs_\b-_\bm_\be_\bt_\ba_\b, _\be_\bm_\ba_\bc_\bs_\b-_\bc_\bt_\bl_\bx_\b, _\bv_\bi_\b, _\bv_\bi_\b-_\bc_\bo_\bm_\b-
- _\bm_\ba_\bn_\bd, and _\bv_\bi_\b-_\bi_\bn_\bs_\be_\br_\bt. _\bv_\bi is equivalent to _\bv_\bi_\b-_\bc_\bo_\bm_\bm_\ba_\bn_\bd; _\be_\bm_\ba_\bc_\bs is
- equivalent to _\be_\bm_\ba_\bc_\bs_\b-_\bs_\bt_\ba_\bn_\bd_\ba_\br_\bd. The default value is _\be_\bm_\ba_\bc_\bs; the
+ Set the current r\bre\bea\bad\bdl\bli\bin\bne\be keymap. The set of valid keymap names
+ is _\be_\bm_\ba_\bc_\bs_\b, _\be_\bm_\ba_\bc_\bs_\b-_\bs_\bt_\ba_\bn_\bd_\ba_\br_\bd_\b, _\be_\bm_\ba_\bc_\bs_\b-_\bm_\be_\bt_\ba_\b, _\be_\bm_\ba_\bc_\bs_\b-_\bc_\bt_\bl_\bx_\b, _\bv_\bi_\b, _\bv_\bi_\b-_\bc_\bo_\bm_\b-
+ _\bm_\ba_\bn_\bd, and _\bv_\bi_\b-_\bi_\bn_\bs_\be_\br_\bt. _\bv_\bi is equivalent to _\bv_\bi_\b-_\bc_\bo_\bm_\bm_\ba_\bn_\bd; _\be_\bm_\ba_\bc_\bs is
+ equivalent to _\be_\bm_\ba_\bc_\bs_\b-_\bs_\bt_\ba_\bn_\bd_\ba_\br_\bd. The default value is _\be_\bm_\ba_\bc_\bs; the
value of e\bed\bdi\bit\bti\bin\bng\bg-\b-m\bmo\bod\bde\be also affects the default keymap.
k\bke\bey\bys\bse\beq\bq-\b-t\bti\bim\bme\beo\bou\but\bt (\b(5\b50\b00\b0)\b)
- Specifies the duration r\bre\bea\bad\bdl\bli\bin\bne\be will wait for a character when
- reading an ambiguous key sequence (one that can form a complete
+ Specifies the duration r\bre\bea\bad\bdl\bli\bin\bne\be will wait for a character when
+ reading an ambiguous key sequence (one that can form a complete
key sequence using the input read so far, or can take additional
- input to complete a longer key sequence). If r\bre\bea\bad\bdl\bli\bin\bne\be does not
- receive any input within the timeout, it will use the shorter
- but complete key sequence. The value is specified in millisec-
- onds, so a value of 1000 means that r\bre\bea\bad\bdl\bli\bin\bne\be will wait one sec-
- ond for additional input. If this variable is set to a value
- less than or equal to zero, or to a non-numeric value, r\bre\bea\bad\bdl\bli\bin\bne\be
- will wait until another key is pressed to decide which key se-
- quence to complete.
+ input to complete a longer key sequence). If r\bre\bea\bad\bdl\bli\bin\bne\be does not
+ receive any input within the timeout, it uses the shorter but
+ complete key sequence. The value is specified in milliseconds,
+ so a value of 1000 means that r\bre\bea\bad\bdl\bli\bin\bne\be will wait one second for
+ additional input. If this variable is set to a value less than
+ or equal to zero, or to a non-numeric value, r\bre\bea\bad\bdl\bli\bin\bne\be waits un-
+ til another key is pressed to decide which key sequence to com-
+ plete.
m\bma\bar\brk\bk-\b-d\bdi\bir\bre\bec\bct\bto\bor\bri\bie\bes\bs (\b(O\bOn\bn)\b)
If set to O\bOn\bn, completed directory names have a slash appended.
m\bma\bar\brk\bk-\b-m\bmo\bod\bdi\bif\bfi\bie\bed\bd-\b-l\bli\bin\bne\bes\bs (\b(O\bOf\bff\bf)\b)
- If set to O\bOn\bn, r\bre\bea\bad\bdl\bli\bin\bne\be displays history lines that have been
+ If set to O\bOn\bn, r\bre\bea\bad\bdl\bli\bin\bne\be displays history lines that have been
modified with a preceding asterisk (*\b*).
m\bma\bar\brk\bk-\b-s\bsy\bym\bml\bli\bin\bnk\bke\bed\bd-\b-d\bdi\bir\bre\bec\bct\bto\bor\bri\bie\bes\bs (\b(O\bOf\bff\bf)\b)
If set to O\bOn\bn, completed names which are symbolic links to direc-
- tories have a slash appended, subject to the value of m\bma\bar\brk\bk-\b-d\bdi\bi-\b-
+ tories have a slash appended, subject to the value of m\bma\bar\brk\bk-\b-d\bdi\bi-\b-
r\bre\bec\bct\bto\bor\bri\bie\bes\bs.
m\bma\bat\btc\bch\bh-\b-h\bhi\bid\bdd\bde\ben\bn-\b-f\bfi\bil\ble\bes\bs (\b(O\bOn\bn)\b)
- This variable, when set to O\bOn\bn, forces r\bre\bea\bad\bdl\bli\bin\bne\be to match files
- whose names begin with a "." (hidden files) when performing
- filename completion. If set to O\bOf\bff\bf, the user must include the
+ This variable, when set to O\bOn\bn, forces r\bre\bea\bad\bdl\bli\bin\bne\be to match files
+ whose names begin with a "." (hidden files) when performing
+ filename completion. If set to O\bOf\bff\bf, the user must include the
leading "." in the filename to be completed.
m\bme\ben\bnu\bu-\b-c\bco\bom\bmp\bpl\ble\bet\bte\be-\b-d\bdi\bis\bsp\bpl\bla\bay\by-\b-p\bpr\bre\bef\bfi\bix\bx (\b(O\bOf\bff\bf)\b)
- If set to O\bOn\bn, menu completion displays the common prefix of the
+ If set to O\bOn\bn, menu completion displays the common prefix of the
list of possible completions (which may be empty) before cycling
through the list.
o\bou\but\btp\bpu\but\bt-\b-m\bme\bet\bta\ba (\b(O\bOf\bff\bf)\b)
- If set to O\bOn\bn, r\bre\bea\bad\bdl\bli\bin\bne\be will display characters with the eighth
- bit set directly rather than as a meta-prefixed escape sequence.
- The default is _\bO_\bf_\bf, but r\bre\bea\bad\bdl\bli\bin\bne\be will set it to _\bO_\bn if the locale
- contains characters whose encodings may include bytes with the
- eighth bit set. This variable is dependent on the L\bLC\bC_\b_C\bCT\bTY\bYP\bPE\bE lo-
+ If set to O\bOn\bn, r\bre\bea\bad\bdl\bli\bin\bne\be displays characters with the eighth bit
+ set directly rather than as a meta-prefixed escape sequence.
+ The default is _\bO_\bf_\bf, but r\bre\bea\bad\bdl\bli\bin\bne\be sets it to _\bO_\bn if the locale
+ contains characters whose encodings may include bytes with the
+ eighth bit set. This variable is dependent on the L\bLC\bC_\b_C\bCT\bTY\bYP\bPE\bE lo-
cale category, and its value may change if the locale changes.
p\bpa\bag\bge\be-\b-c\bco\bom\bmp\bpl\ble\bet\bti\bio\bon\bns\bs (\b(O\bOn\bn)\b)
- If set to O\bOn\bn, r\bre\bea\bad\bdl\bli\bin\bne\be uses an internal _\bm_\bo_\br_\be-like pager to dis-
- play a screenful of possible completions at a time.
+ If set to O\bOn\bn, r\bre\bea\bad\bdl\bli\bin\bne\be uses an internal pager resembling _\bm_\bo_\br_\be(1)
+ to display a screenful of possible completions at a time.
p\bpr\bre\bef\bfe\ber\br-\b-v\bvi\bis\bsi\bib\bbl\ble\be-\b-b\bbe\bel\bll\bl
See b\bbe\bel\bll\bl-\b-s\bst\bty\byl\ble\be.
p\bpr\bri\bin\bnt\bt-\b-c\bco\bom\bmp\bpl\ble\bet\bti\bio\bon\bns\bs-\b-h\bho\bor\bri\biz\bzo\bon\bnt\bta\bal\bll\bly\by (\b(O\bOf\bff\bf)\b)
- If set to O\bOn\bn, r\bre\bea\bad\bdl\bli\bin\bne\be will display completions with matches
- sorted horizontally in alphabetical order, rather than down the
- screen.
+ If set to O\bOn\bn, r\bre\bea\bad\bdl\bli\bin\bne\be displays completions with matches sorted
+ horizontally in alphabetical order, rather than down the screen.
r\bre\bev\bve\ber\brt\bt-\b-a\bal\bll\bl-\b-a\bat\bt-\b-n\bne\bew\bwl\bli\bin\bne\be (\b(O\bOf\bff\bf)\b)
- If set to O\bOn\bn, r\bre\bea\bad\bdl\bli\bin\bne\be will undo all changes to history lines
- before returning when executing a\bac\bcc\bce\bep\bpt\bt-\b-l\bli\bin\bne\be. By default, his-
- tory lines may be modified and retain individual undo lists
+ If set to O\bOn\bn, r\bre\bea\bad\bdl\bli\bin\bne\be will undo all changes to history lines
+ before returning when executing a\bac\bcc\bce\bep\bpt\bt-\b-l\bli\bin\bne\be. By default, his-
+ tory lines may be modified and retain individual undo lists
across calls to r\bre\bea\bad\bdl\bli\bin\bne\be(\b()\b).
s\bse\bea\bar\brc\bch\bh-\b-i\big\bgn\bno\bor\bre\be-\b-c\bca\bas\bse\be (\b(O\bOf\bff\bf)\b)
- If set to O\bOn\bn, r\bre\bea\bad\bdl\bli\bin\bne\be performs incremental and non-incremental
+ If set to O\bOn\bn, r\bre\bea\bad\bdl\bli\bin\bne\be performs incremental and non-incremental
history list searches in a case-insensitive fashion.
s\bsh\bho\bow\bw-\b-a\bal\bll\bl-\b-i\bif\bf-\b-a\bam\bmb\bbi\big\bgu\buo\bou\bus\bs (\b(O\bOf\bff\bf)\b)
- This alters the default behavior of the completion functions.
+ This alters the default behavior of the completion functions.
If set to O\bOn\bn, words which have more than one possible completion
- cause the matches to be listed immediately instead of ringing
+ cause the matches to be listed immediately instead of ringing
the bell.
s\bsh\bho\bow\bw-\b-a\bal\bll\bl-\b-i\bif\bf-\b-u\bun\bnm\bmo\bod\bdi\bif\bfi\bie\bed\bd (\b(O\bOf\bff\bf)\b)
- This alters the default behavior of the completion functions in
+ This alters the default behavior of the completion functions in
a fashion similar to s\bsh\bho\bow\bw-\b-a\bal\bll\bl-\b-i\bif\bf-\b-a\bam\bmb\bbi\big\bgu\buo\bou\bus\bs. If set to O\bOn\bn, words
- which have more than one possible completion without any possi-
- ble partial completion (the possible completions don't share a
- common prefix) cause the matches to be listed immediately in-
+ which have more than one possible completion without any possi-
+ ble partial completion (the possible completions don't share a
+ common prefix) cause the matches to be listed immediately in-
stead of ringing the bell.
s\bsh\bho\bow\bw-\b-m\bmo\bod\bde\be-\b-i\bin\bn-\b-p\bpr\bro\bom\bmp\bpt\bt (\b(O\bOf\bff\bf)\b)
- If set to O\bOn\bn, add a string to the beginning of the prompt indi-
- cating the editing mode: emacs, vi command, or vi insertion.
+ If set to O\bOn\bn, add a string to the beginning of the prompt indi-
+ cating the editing mode: emacs, vi command, or vi insertion.
The mode strings are user-settable (e.g., _\be_\bm_\ba_\bc_\bs_\b-_\bm_\bo_\bd_\be_\b-_\bs_\bt_\br_\bi_\bn_\bg).
s\bsk\bki\bip\bp-\b-c\bco\bom\bmp\bpl\ble\bet\bte\bed\bd-\b-t\bte\bex\bxt\bt (\b(O\bOf\bff\bf)\b)
- If set to O\bOn\bn, this alters the default completion behavior when
- inserting a single match into the line. It's only active when
- performing completion in the middle of a word. If enabled,
- r\bre\bea\bad\bdl\bli\bin\bne\be does not insert characters from the completion that
- match characters after point in the word being completed, so
+ If set to O\bOn\bn, this alters the default completion behavior when
+ inserting a single match into the line. It's only active when
+ performing completion in the middle of a word. If enabled,
+ r\bre\bea\bad\bdl\bli\bin\bne\be does not insert characters from the completion that
+ match characters after point in the word being completed, so
portions of the word following the cursor are not duplicated.
v\bvi\bi-\b-c\bcm\bmd\bd-\b-m\bmo\bod\bde\be-\b-s\bst\btr\bri\bin\bng\bg (\b((\b(c\bcm\bmd\bd)\b))\b)
- If the _\bs_\bh_\bo_\bw_\b-_\bm_\bo_\bd_\be_\b-_\bi_\bn_\b-_\bp_\br_\bo_\bm_\bp_\bt variable is enabled, this string is
+ If the _\bs_\bh_\bo_\bw_\b-_\bm_\bo_\bd_\be_\b-_\bi_\bn_\b-_\bp_\br_\bo_\bm_\bp_\bt variable is enabled, this string is
displayed immediately before the last line of the primary prompt
- when vi editing mode is active and in command mode. The value
+ when vi editing mode is active and in command mode. The value
is expanded like a key binding, so the standard set of meta- and
- control- prefixes and backslash escape sequences is available.
- The \1 and \2 escapes begin and end sequences of non-printing
- characters, which can be used to embed a terminal control se-
+ control- prefixes and backslash escape sequences is available.
+ The \1 and \2 escapes begin and end sequences of non-printing
+ characters, which can be used to embed a terminal control se-
quence into the mode string.
v\bvi\bi-\b-i\bin\bns\bs-\b-m\bmo\bod\bde\be-\b-s\bst\btr\bri\bin\bng\bg (\b((\b(i\bin\bns\bs)\b))\b)
- If the _\bs_\bh_\bo_\bw_\b-_\bm_\bo_\bd_\be_\b-_\bi_\bn_\b-_\bp_\br_\bo_\bm_\bp_\bt variable is enabled, this string is
+ If the _\bs_\bh_\bo_\bw_\b-_\bm_\bo_\bd_\be_\b-_\bi_\bn_\b-_\bp_\br_\bo_\bm_\bp_\bt variable is enabled, this string is
displayed immediately before the last line of the primary prompt
when vi editing mode is active and in insertion mode. The value
is expanded like a key binding, so the standard set of meta- and
- control- prefixes and backslash escape sequences is available.
- The \1 and \2 escapes begin and end sequences of non-printing
- characters, which can be used to embed a terminal control se-
+ control- prefixes and backslash escape sequences is available.
+ The \1 and \2 escapes begin and end sequences of non-printing
+ characters, which can be used to embed a terminal control se-
quence into the mode string.
v\bvi\bis\bsi\bib\bbl\ble\be-\b-s\bst\bta\bat\bts\bs (\b(O\bOf\bff\bf)\b)
- If set to O\bOn\bn, a character denoting a file's type as reported by
- _\bs_\bt_\ba_\bt(2) is appended to the filename when listing possible com-
+ If set to O\bOn\bn, a character denoting a file's type as reported by
+ _\bs_\bt_\ba_\bt(2) is appended to the filename when listing possible com-
pletions.
C\bCo\bon\bnd\bdi\bit\bti\bio\bon\bna\bal\bl C\bCo\bon\bns\bst\btr\bru\buc\bct\bts\bs
- R\bRe\bea\bad\bdl\bli\bin\bne\be implements a facility similar in spirit to the conditional
- compilation features of the C preprocessor which allows key bindings
- and variable settings to be performed as the result of tests. There
+ R\bRe\bea\bad\bdl\bli\bin\bne\be implements a facility similar in spirit to the conditional
+ compilation features of the C preprocessor which allows key bindings
+ and variable settings to be performed as the result of tests. There
are four parser directives available.
- $\b$i\bif\bf The $\b$i\bif\bf construct allows bindings to be made based on the edit-
- ing mode, the terminal being used, or the application using
- r\bre\bea\bad\bdl\bli\bin\bne\be. The text of the test, after any comparison operator,
+ $\b$i\bif\bf The $\b$i\bif\bf construct allows bindings to be made based on the edit-
+ ing mode, the terminal being used, or the application using
+ r\bre\bea\bad\bdl\bli\bin\bne\be. The text of the test, after any comparison operator,
extends to the end of the line; unless otherwise noted, no char-
acters are required to isolate it.
- m\bmo\bod\bde\be The m\bmo\bod\bde\be=\b= form of the $\b$i\bif\bf directive is used to test
- whether r\bre\bea\bad\bdl\bli\bin\bne\be is in emacs or vi mode. This may be
- used in conjunction with the s\bse\bet\bt k\bke\bey\bym\bma\bap\bp command, for in-
- stance, to set bindings in the _\be_\bm_\ba_\bc_\bs_\b-_\bs_\bt_\ba_\bn_\bd_\ba_\br_\bd and
- _\be_\bm_\ba_\bc_\bs_\b-_\bc_\bt_\bl_\bx keymaps only if r\bre\bea\bad\bdl\bli\bin\bne\be is starting out in
+ m\bmo\bod\bde\be The m\bmo\bod\bde\be=\b= form of the $\b$i\bif\bf directive is used to test
+ whether r\bre\bea\bad\bdl\bli\bin\bne\be is in emacs or vi mode. This may be
+ used in conjunction with the s\bse\bet\bt k\bke\bey\bym\bma\bap\bp command, for in-
+ stance, to set bindings in the _\be_\bm_\ba_\bc_\bs_\b-_\bs_\bt_\ba_\bn_\bd_\ba_\br_\bd and
+ _\be_\bm_\ba_\bc_\bs_\b-_\bc_\bt_\bl_\bx keymaps only if r\bre\bea\bad\bdl\bli\bin\bne\be is starting out in
emacs mode.
- t\bte\ber\brm\bm The t\bte\ber\brm\bm=\b= form may be used to include terminal-specific
+ t\bte\ber\brm\bm The t\bte\ber\brm\bm=\b= form may be used to include terminal-specific
key bindings, perhaps to bind the key sequences output by
the terminal's function keys. The word on the right side
of the =\b= is tested against both the full name of the ter-
- minal and the portion of the terminal name before the
- first -\b-. This allows _\bx_\bt_\be_\br_\bm to match both _\bx_\bt_\be_\br_\bm and
+ minal and the portion of the terminal name before the
+ first -\b-. This allows _\bx_\bt_\be_\br_\bm to match both _\bx_\bt_\be_\br_\bm and
_\bx_\bt_\be_\br_\bm_\b-_\b2_\b5_\b6_\bc_\bo_\bl_\bo_\br, for instance.
v\bve\ber\brs\bsi\bio\bon\bn
- The v\bve\ber\brs\bsi\bio\bon\bn test may be used to perform comparisons
- against specific r\bre\bea\bad\bdl\bli\bin\bne\be versions. The v\bve\ber\brs\bsi\bio\bon\bn expands
- to the current r\bre\bea\bad\bdl\bli\bin\bne\be version. The set of comparison
- operators includes =\b=, (and =\b==\b=), !\b!=\b=, <\b<=\b=, >\b>=\b=, <\b<, and >\b>.
- The version number supplied on the right side of the op-
- erator consists of a major version number, an optional
+ The v\bve\ber\brs\bsi\bio\bon\bn test may be used to perform comparisons
+ against specific r\bre\bea\bad\bdl\bli\bin\bne\be versions. The v\bve\ber\brs\bsi\bio\bon\bn expands
+ to the current r\bre\bea\bad\bdl\bli\bin\bne\be version. The set of comparison
+ operators includes =\b=, (and =\b==\b=), !\b!=\b=, <\b<=\b=, >\b>=\b=, <\b<, and >\b>.
+ The version number supplied on the right side of the op-
+ erator consists of a major version number, an optional
decimal point, and an optional minor version (e.g., 7\b7.\b.1\b1).
- If the minor version is omitted, it defaults to 0\b0. The
- operator may be separated from the string v\bve\ber\brs\bsi\bio\bon\bn and
+ If the minor version is omitted, it defaults to 0\b0. The
+ operator may be separated from the string v\bve\ber\brs\bsi\bio\bon\bn and
from the version number argument by whitespace.
_\ba_\bp_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bo_\bn
The _\ba_\bp_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bo_\bn construct is used to include application-
- specific settings. Each program using the r\bre\bea\bad\bdl\bli\bin\bne\be li-
- brary sets the _\ba_\bp_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bo_\bn _\bn_\ba_\bm_\be, and an initialization
+ specific settings. Each program using the r\bre\bea\bad\bdl\bli\bin\bne\be li-
+ brary sets the _\ba_\bp_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bo_\bn _\bn_\ba_\bm_\be, and an initialization
file can test for a particular value. This could be used
- to bind key sequences to functions useful for a specific
- program. For instance, the following command adds a key
- sequence that quotes the current or previous word in
+ to bind key sequences to functions useful for a specific
+ program. For instance, the following command adds a key
+ sequence that quotes the current or previous word in
b\bba\bas\bsh\bh:
$\b$i\bif\bf Bash
_\bv_\ba_\br_\bi_\ba_\bb_\bl_\be
The _\bv_\ba_\br_\bi_\ba_\bb_\bl_\be construct provides simple equality tests for
- r\bre\bea\bad\bdl\bli\bin\bne\be variables and values. The permitted comparison
- operators are _\b=, _\b=_\b=, and _\b!_\b=. The variable name must be
+ r\bre\bea\bad\bdl\bli\bin\bne\be variables and values. The permitted comparison
+ operators are _\b=, _\b=_\b=, and _\b!_\b=. The variable name must be
separated from the comparison operator by whitespace; the
- operator may be separated from the value on the right
- hand side by whitespace. String and boolean variables
- may be tested. Boolean variables must be tested against
+ operator may be separated from the value on the right
+ hand side by whitespace. String and boolean variables
+ may be tested. Boolean variables must be tested against
the values _\bo_\bn and _\bo_\bf_\bf.
$\b$e\bel\bls\bse\be Commands in this branch of the $\b$i\bif\bf directive are executed if the
command.
$\b$i\bin\bnc\bcl\blu\bud\bde\be
- This directive takes a single filename as an argument and reads
+ This directive takes a single filename as an argument and reads
commands and key bindings from that file. For example, the fol-
lowing directive would read _\b/_\be_\bt_\bc_\b/_\bi_\bn_\bp_\bu_\bt_\br_\bc:
$\b$i\bin\bnc\bcl\blu\bud\bde\be _\b/_\be_\bt_\bc_\b/_\bi_\bn_\bp_\bu_\bt_\br_\bc
S\bSE\bEA\bAR\bRC\bCH\bHI\bIN\bNG\bG
- R\bRe\bea\bad\bdl\bli\bin\bne\be provides commands for searching through the command history
- for lines containing a specified string. There are two search modes:
+ R\bRe\bea\bad\bdl\bli\bin\bne\be provides commands for searching through the command history
+ for lines containing a specified string. There are two search modes:
_\bi_\bn_\bc_\br_\be_\bm_\be_\bn_\bt_\ba_\bl and _\bn_\bo_\bn_\b-_\bi_\bn_\bc_\br_\be_\bm_\be_\bn_\bt_\ba_\bl.
- Incremental searches begin before the user has finished typing the
- search string. As each character of the search string is typed, r\bre\bea\bad\bd-\b-
+ Incremental searches begin before the user has finished typing the
+ search string. As each character of the search string is typed, r\bre\bea\bad\bd-\b-
l\bli\bin\bne\be displays the next entry from the history matching the string typed
- so far. An incremental search requires only as many characters as
- needed to find the desired history entry. When using emacs editing
- mode, type C\bC-\b-r\br to search backward in the history for a particular
- string. Typing C\bC-\b-s\bs searches forward through the history. The charac-
- ters present in the value of the i\bis\bse\bea\bar\brc\bch\bh-\b-t\bte\ber\brm\bmi\bin\bna\bat\bto\bor\brs\bs variable are used
- to terminate an incremental search. If that variable has not been as-
- signed a value, _\bE_\bS_\bC and _\bC_\b-_\bJ will terminate an incremental search. _\bC_\b-_\bg
- will abort an incremental search and restore the original line. When
- the search is terminated, the history entry containing the search
- string becomes the current line.
-
- To find other matching entries in the history list, type C\bC-\b-r\br or C\bC-\b-s\bs as
- appropriate. This will search backward or forward in the history for
- the next entry matching the search string typed so far. Any other key
- sequence bound to a r\bre\bea\bad\bdl\bli\bin\bne\be command will terminate the search and exe-
- cute that command. For instance, a newline will terminate the search
- and accept the line, thereby executing the command from the history
- list. A movement command will terminate the search, make the last line
- found the current line, and begin editing.
+ so far. An incremental search requires only as many characters as
+ needed to find the desired history entry. When using emacs editing
+ mode, type C\bC-\b-r\br to search backward in the history for a particular
+ string. Typing C\bC-\b-s\bs searches forward through the history. The charac-
+ ters present in the value of the i\bis\bse\bea\bar\brc\bch\bh-\b-t\bte\ber\brm\bmi\bin\bna\bat\bto\bor\brs\bs variable are used
+ to terminate an incremental search. If that variable has not been as-
+ signed a value, _\bE_\bS_\bC and C\bC-\b-j\bj terminate an incremental search. C\bC-\b-g\bg
+ aborts an incremental search and restores the original line. When the
+ search is terminated, the history entry containing the search string
+ becomes the current line.
+
+ To find other matching entries in the history list, type C\bC-\b-r\br or C\bC-\b-s\bs as
+ appropriate. This searches backward or forward in the history for the
+ next entry matching the search string typed so far. Any other key se-
+ quence bound to a r\bre\bea\bad\bdl\bli\bin\bne\be command terminates the search and executes
+ that command. For instance, a newline terminates the search and ac-
+ cepts the line, thereby executing the command from the history list. A
+ movement command will terminate the search, make the last line found
+ the current line, and begin editing.
R\bRe\bea\bad\bdl\bli\bin\bne\be remembers the last incremental search string. If two C\bC-\b-r\brs are
typed without any intervening characters defining a new search string,
Move to the end of the line. This may also be bound to the End
key on some keyboards.
f\bfo\bor\brw\bwa\bar\brd\bd-\b-c\bch\bha\bar\br (\b(C\bC-\b-f\bf)\b)
- Move forward a character.
+ Move forward a character. This may also be bound to the right
+ arrow key on some keyboards.
b\bba\bac\bck\bkw\bwa\bar\brd\bd-\b-c\bch\bha\bar\br (\b(C\bC-\b-b\bb)\b)
Move back a character.
f\bfo\bor\brw\bwa\bar\brd\bd-\b-w\bwo\bor\brd\bd (\b(M\bM-\b-f\bf)\b)
Move forward to the end of the next word. Words are composed of
alphanumeric characters (letters and digits).
b\bba\bac\bck\bkw\bwa\bar\brd\bd-\b-w\bwo\bor\brd\bd (\b(M\bM-\b-b\bb)\b)
- Move back to the start of the current or previous word. Words
+ Move back to the start of the current or previous word. Words
are composed of alphanumeric characters (letters and digits).
p\bpr\bre\bev\bvi\bio\bou\bus\bs-\b-s\bsc\bcr\bre\bee\ben\bn-\b-l\bli\bin\bne\be
- Attempt to move point to the same physical screen column on the
- previous physical screen line. This will not have the desired
- effect if the current r\bre\bea\bad\bdl\bli\bin\bne\be line does not take up more than
- one physical line or if point is not greater than the length of
+ Attempt to move point to the same physical screen column on the
+ previous physical screen line. This will not have the desired
+ effect if the current r\bre\bea\bad\bdl\bli\bin\bne\be line does not take up more than
+ one physical line or if point is not greater than the length of
the prompt plus the screen width.
n\bne\bex\bxt\bt-\b-s\bsc\bcr\bre\bee\ben\bn-\b-l\bli\bin\bne\be
- Attempt to move point to the same physical screen column on the
- next physical screen line. This will not have the desired ef-
+ Attempt to move point to the same physical screen column on the
+ next physical screen line. This will not have the desired ef-
fect if the current r\bre\bea\bad\bdl\bli\bin\bne\be line does not take up more than one
- physical line or if the length of the current r\bre\bea\bad\bdl\bli\bin\bne\be line is
+ physical line or if the length of the current r\bre\bea\bad\bdl\bli\bin\bne\be line is
not greater than the length of the prompt plus the screen width.
c\bcl\ble\bea\bar\br-\b-d\bdi\bis\bsp\bpl\bla\bay\by (\b(M\bM-\b-C\bC-\b-l\bl)\b)
- Clear the screen and, if possible, the terminal's scrollback
- buffer, then redraw the current line, leaving the current line
+ Clear the screen and, if possible, the terminal's scrollback
+ buffer, then redraw the current line, leaving the current line
at the top of the screen.
c\bcl\ble\bea\bar\br-\b-s\bsc\bcr\bre\bee\ben\bn (\b(C\bC-\b-l\bl)\b)
Clear the screen, then redraw the current line, leaving the cur-
- rent line at the top of the screen. With an argument, refresh
+ rent line at the top of the screen. With an argument, refresh
the current line without clearing the screen.
r\bre\bed\bdr\bra\baw\bw-\b-c\bcu\bur\brr\bre\ben\bnt\bt-\b-l\bli\bin\bne\be
Refresh the current line.
a\bac\bcc\bce\bep\bpt\bt-\b-l\bli\bin\bne\be (\b(N\bNe\bew\bwl\bli\bin\bne\be,\b, R\bRe\bet\btu\bur\brn\bn)\b)
Accept the line regardless of where the cursor is. If this line
is non-empty, it may be added to the history list for future re-
- call with a\bad\bdd\bd_\b_h\bhi\bis\bst\bto\bor\bry\by(\b()\b). If the line is a modified history
+ call with a\bad\bdd\bd_\b_h\bhi\bis\bst\bto\bor\bry\by(\b()\b). If the line is a modified history
line, restore the history line to its original state.
p\bpr\bre\bev\bvi\bio\bou\bus\bs-\b-h\bhi\bis\bst\bto\bor\bry\by (\b(C\bC-\b-p\bp)\b)
Fetch the previous command from the history list, moving back in
- the list.
+ the list. This may also be bound to the up arrow key on some
+ keyboards.
n\bne\bex\bxt\bt-\b-h\bhi\bis\bst\bto\bor\bry\by (\b(C\bC-\b-n\bn)\b)
Fetch the next command from the history list, moving forward in
- the list.
+ the list. This may also be bound to the down arrow key on some
+ keyboards.
b\bbe\beg\bgi\bin\bnn\bni\bin\bng\bg-\b-o\bof\bf-\b-h\bhi\bis\bst\bto\bor\bry\by (\b(M\bM-\b-<\b<)\b)
Move to the first line in the history.
e\ben\bnd\bd-\b-o\bof\bf-\b-h\bhi\bis\bst\bto\bor\bry\by (\b(M\bM-\b->\b>)\b)
- Move to the end of the input history, i.e., the line currently
+ Move to the end of the input history, i.e., the line currently
being entered.
o\bop\bpe\ber\bra\bat\bte\be-\b-a\ban\bnd\bd-\b-g\bge\bet\bt-\b-n\bne\bex\bxt\bt (\b(C\bC-\b-o\bo)\b)
Accept the current line for return to the calling application as
- if a newline had been entered, and fetch the next line relative
+ if a newline had been entered, and fetch the next line relative
to the current line from the history for editing. A numeric ar-
- gument, if supplied, specifies the history entry to use instead
+ gument, if supplied, specifies the history entry to use instead
of the current line.
f\bfe\bet\btc\bch\bh-\b-h\bhi\bis\bst\bto\bor\bry\by
- With a numeric argument, fetch that entry from the history list
+ With a numeric argument, fetch that entry from the history list
and make it the current line. Without an argument, move back to
the first entry in the history list.
r\bre\bev\bve\ber\brs\bse\be-\b-s\bse\bea\bar\brc\bch\bh-\b-h\bhi\bis\bst\bto\bor\bry\by (\b(C\bC-\b-r\br)\b)
- Search backward starting at the current line and moving "up"
- through the history as necessary. This is an incremental
- search. This command sets the region to the matched text and
- activates the region.
- f\bfo\bor\brw\bwa\bar\brd\bd-\b-s\bse\bea\bar\brc\bch\bh-\b-h\bhi\bis\bst\bto\bor\bry\by (\b(C\bC-\b-s\bs)\b)
- Search forward starting at the current line and moving "down"
+ Search backward starting at the current line and moving "up"
through the history as necessary. This is an incremental
search. This command sets the region to the matched text and
activates the region.
+ f\bfo\bor\brw\bwa\bar\brd\bd-\b-s\bse\bea\bar\brc\bch\bh-\b-h\bhi\bis\bst\bto\bor\bry\by (\b(C\bC-\b-s\bs)\b)
+ Search forward starting at the current line and moving "down"
+ through the history as necessary. This is an incremental
+ search. This command sets the region to the matched text and
+ activates the region.
n\bno\bon\bn-\b-i\bin\bnc\bcr\bre\bem\bme\ben\bnt\bta\bal\bl-\b-r\bre\bev\bve\ber\brs\bse\be-\b-s\bse\bea\bar\brc\bch\bh-\b-h\bhi\bis\bst\bto\bor\bry\by (\b(M\bM-\b-p\bp)\b)
Search backward through the history starting at the current line
- using a non-incremental search for a string supplied by the
+ using a non-incremental search for a string supplied by the
user. The search string may match anywhere in a history line.
n\bno\bon\bn-\b-i\bin\bnc\bcr\bre\bem\bme\ben\bnt\bta\bal\bl-\b-f\bfo\bor\brw\bwa\bar\brd\bd-\b-s\bse\bea\bar\brc\bch\bh-\b-h\bhi\bis\bst\bto\bor\bry\by (\b(M\bM-\b-n\bn)\b)
- Search forward through the history using a non-incremental
+ Search forward through the history using a non-incremental
search for a string supplied by the user. The search string may
match anywhere in a history line.
h\bhi\bis\bst\bto\bor\bry\by-\b-s\bse\bea\bar\brc\bch\bh-\b-b\bba\bac\bck\bkw\bwa\bar\brd\bd
non-incremental search. This may be bound to the Page Up key on
some keyboards.
h\bhi\bis\bst\bto\bor\bry\by-\b-s\bse\bea\bar\brc\bch\bh-\b-f\bfo\bor\brw\bwa\bar\brd\bd
- Search forward through the history for the string of characters
+ Search forward through the history for the string of characters
between the start of the current line and the point. The search
string must match at the beginning of a history line. This is a
- non-incremental search. This may be bound to the Page Down key
+ non-incremental search. This may be bound to the Page Down key
on some keyboards.
h\bhi\bis\bst\bto\bor\bry\by-\b-s\bsu\bub\bbs\bst\btr\bri\bin\bng\bg-\b-s\bse\bea\bar\brc\bch\bh-\b-b\bba\bac\bck\bkw\bwa\bar\brd\bd
Search backward through the history for the string of characters
between the start of the current line and the point. The search
- string may match anywhere in a history line. This is a non-in-
+ string may match anywhere in a history line. This is a non-in-
cremental search.
h\bhi\bis\bst\bto\bor\bry\by-\b-s\bsu\bub\bbs\bst\btr\bri\bin\bng\bg-\b-s\bse\bea\bar\brc\bch\bh-\b-f\bfo\bor\brw\bwa\bar\brd\bd
- Search forward through the history for the string of characters
+ Search forward through the history for the string of characters
between the start of the current line and the point. The search
- string may match anywhere in a history line. This is a non-in-
+ string may match anywhere in a history line. This is a non-in-
cremental search.
y\bya\ban\bnk\bk-\b-n\bnt\bth\bh-\b-a\bar\brg\bg (\b(M\bM-\b-C\bC-\b-y\by)\b)
- Insert the first argument to the previous command (usually the
+ Insert the first argument to the previous command (usually the
second word on the previous line) at point. With an argument _\bn,
- insert the _\bnth word from the previous command (the words in the
- previous command begin with word 0). A negative argument in-
- serts the _\bnth word from the end of the previous command. Once
- the argument _\bn is computed, this uses the history expansion fa-
- cilities to extract the _\bnth word, as if the "!_\bn" history expan-
+ insert the _\bnth word from the previous command (the words in the
+ previous command begin with word 0). A negative argument in-
+ serts the _\bnth word from the end of the previous command. Once
+ the argument _\bn is computed, this uses the history expansion fa-
+ cilities to extract the _\bnth word, as if the "!_\bn" history expan-
sion had been specified.
y\bya\ban\bnk\bk-\b-l\bla\bas\bst\bt-\b-a\bar\brg\bg (\b(M\bM-\b-.\b.,\b, M\bM-\b-_\b_)\b)
- Insert the last argument to the previous command (the last word
+ Insert the last argument to the previous command (the last word
of the previous history entry). With a numeric argument, behave
- exactly like y\bya\ban\bnk\bk-\b-n\bnt\bth\bh-\b-a\bar\brg\bg. Successive calls to y\bya\ban\bnk\bk-\b-l\bla\bas\bst\bt-\b-a\bar\brg\bg
- move back through the history list, inserting the last word (or
- the word specified by the argument to the first call) of each
+ exactly like y\bya\ban\bnk\bk-\b-n\bnt\bth\bh-\b-a\bar\brg\bg. Successive calls to y\bya\ban\bnk\bk-\b-l\bla\bas\bst\bt-\b-a\bar\brg\bg
+ move back through the history list, inserting the last word (or
+ the word specified by the argument to the first call) of each
line in turn. Any numeric argument supplied to these successive
- calls determines the direction to move through the history. A
- negative argument switches the direction through the history
- (back or forward). This uses the history expansion facilities
- to extract the last word, as if the "!$" history expansion had
+ calls determines the direction to move through the history. A
+ negative argument switches the direction through the history
+ (back or forward). This uses the history expansion facilities
+ to extract the last word, as if the "!$" history expansion had
been specified.
C\bCo\bom\bmm\bma\ban\bnd\bds\bs f\bfo\bor\br C\bCh\bha\ban\bng\bgi\bin\bng\bg T\bTe\bex\bxt\bt
_\be_\bn_\bd_\b-_\bo_\bf_\b-_\bf_\bi_\bl_\be (\b(u\bus\bsu\bua\bal\bll\bly\by C\bC-\b-d\bd)\b)
- The character indicating end-of-file as set, for example, by
+ The character indicating end-of-file as set, for example, by
_\bs_\bt_\bt_\by(1). If this character is read when there are no characters
on the line, and point is at the beginning of the line, r\bre\bea\bad\bdl\bli\bin\bne\be
interprets it as the end of input and returns E\bEO\bOF\bF.
above for the effects. This may also be bound to the Delete key
on some keyboards.
b\bba\bac\bck\bkw\bwa\bar\brd\bd-\b-d\bde\bel\ble\bet\bte\be-\b-c\bch\bha\bar\br (\b(R\bRu\bub\bbo\bou\but\bt)\b)
- Delete the character behind the cursor. When given a numeric
+ Delete the character behind the cursor. When given a numeric
argument, save the deleted text on the kill ring.
f\bfo\bor\brw\bwa\bar\brd\bd-\b-b\bba\bac\bck\bkw\bwa\bar\brd\bd-\b-d\bde\bel\ble\bet\bte\be-\b-c\bch\bha\bar\br
- Delete the character under the cursor, unless the cursor is at
+ Delete the character under the cursor, unless the cursor is at
the end of the line, in which case the character behind the cur-
sor is deleted.
q\bqu\buo\bot\bte\bed\bd-\b-i\bin\bns\bse\ber\brt\bt (\b(C\bC-\b-q\bq,\b, C\bC-\b-v\bv)\b)
- Add the next character typed to the line verbatim. This is how
+ Add the next character typed to the line verbatim. This is how
to insert characters like C\bC-\b-q\bq, for example.
t\bta\bab\bb-\b-i\bin\bns\bse\ber\brt\bt (\b(M\bM-\b-T\bTA\bAB\bB)\b)
Insert a tab character.
s\bse\bel\blf\bf-\b-i\bin\bns\bse\ber\brt\bt (\b(a\ba,\b, b\bb,\b, A\bA,\b, 1\b1,\b, !\b!,\b, ...)\b)
Insert the character typed.
b\bbr\bra\bac\bck\bke\bet\bte\bed\bd-\b-p\bpa\bas\bst\bte\be-\b-b\bbe\beg\bgi\bin\bn
- This function is intended to be bound to the "bracketed paste"
- escape sequence sent by some terminals, and such a binding is
- assigned by default. It allows r\bre\bea\bad\bdl\bli\bin\bne\be to insert the pasted
- text as a single unit without treating each character as if it
- had been read from the keyboard. The pasted characters are in-
- serted as if each one was bound to s\bse\bel\blf\bf-\b-i\bin\bns\bse\ber\brt\bt instead of exe-
+ This function is intended to be bound to the "bracketed paste"
+ escape sequence sent by some terminals, and such a binding is
+ assigned by default. It allows r\bre\bea\bad\bdl\bli\bin\bne\be to insert the pasted
+ text as a single unit without treating each character as if it
+ had been read from the keyboard. The pasted characters are in-
+ serted as if each one was bound to s\bse\bel\blf\bf-\b-i\bin\bns\bse\ber\brt\bt instead of exe-
cuting any editing commands.
- Bracketed paste sets the region to the inserted text and acti-
+ Bracketed paste sets the region to the inserted text and acti-
vates the region.
t\btr\bra\ban\bns\bsp\bpo\bos\bse\be-\b-c\bch\bha\bar\brs\bs (\b(C\bC-\b-t\bt)\b)
- Drag the character before point forward over the character at
- point, moving point forward as well. If point is at the end of
- the line, then this transposes the two characters before point.
+ Drag the character before point forward over the character at
+ point, moving point forward as well. If point is at the end of
+ the line, then this transposes the two characters before point.
Negative arguments have no effect.
t\btr\bra\ban\bns\bsp\bpo\bos\bse\be-\b-w\bwo\bor\brd\bds\bs (\b(M\bM-\b-t\bt)\b)
- Drag the word before point past the word after point, moving
- point over that word as well. If point is at the end of the
+ Drag the word before point past the word after point, moving
+ point over that word as well. If point is at the end of the
line, this transposes the last two words on the line.
u\bup\bpc\bca\bas\bse\be-\b-w\bwo\bor\brd\bd (\b(M\bM-\b-u\bu)\b)
- Uppercase the current (or following) word. With a negative ar-
+ Uppercase the current (or following) word. With a negative ar-
gument, uppercase the previous word, but do not move point.
d\bdo\bow\bwn\bnc\bca\bas\bse\be-\b-w\bwo\bor\brd\bd (\b(M\bM-\b-l\bl)\b)
- Lowercase the current (or following) word. With a negative ar-
+ Lowercase the current (or following) word. With a negative ar-
gument, lowercase the previous word, but do not move point.
c\bca\bap\bpi\bit\bta\bal\bli\biz\bze\be-\b-w\bwo\bor\brd\bd (\b(M\bM-\b-c\bc)\b)
Capitalize the current (or following) word. With a negative ar-
gument, capitalize the previous word, but do not move point.
o\bov\bve\ber\brw\bwr\bri\bit\bte\be-\b-m\bmo\bod\bde\be
- Toggle overwrite mode. With an explicit positive numeric argu-
+ Toggle overwrite mode. With an explicit positive numeric argu-
ment, switches to overwrite mode. With an explicit non-positive
numeric argument, switches to insert mode. This command affects
- only e\bem\bma\bac\bcs\bs mode; v\bvi\bi mode does overwrite differently. Each call
+ only e\bem\bma\bac\bcs\bs mode; v\bvi\bi mode does overwrite differently. Each call
to _\br_\be_\ba_\bd_\bl_\bi_\bn_\be_\b(_\b) starts in insert mode.
- In overwrite mode, characters bound to s\bse\bel\blf\bf-\b-i\bin\bns\bse\ber\brt\bt replace the
- text at point rather than pushing the text to the right. Char-
- acters bound to b\bba\bac\bck\bkw\bwa\bar\brd\bd-\b-d\bde\bel\ble\bet\bte\be-\b-c\bch\bha\bar\br replace the character be-
- fore point with a space. By default, this command is unbound,
+ In overwrite mode, characters bound to s\bse\bel\blf\bf-\b-i\bin\bns\bse\ber\brt\bt replace the
+ text at point rather than pushing the text to the right. Char-
+ acters bound to b\bba\bac\bck\bkw\bwa\bar\brd\bd-\b-d\bde\bel\ble\bet\bte\be-\b-c\bch\bha\bar\br replace the character be-
+ fore point with a space. By default, this command is unbound,
but may be bound to the Insert key on some keyboards.
K\bKi\bil\bll\bli\bin\bng\bg a\ban\bnd\bd Y\bYa\ban\bnk\bki\bin\bng\bg
k\bki\bil\bll\bl-\b-l\bli\bin\bne\be (\b(C\bC-\b-k\bk)\b)
Kill the text from point to the end of the current line. With a
- negative numeric argument, kill backward from the cursor to the
+ negative numeric argument, kill backward from the cursor to the
beginning of the line.
b\bba\bac\bck\bkw\bwa\bar\brd\bd-\b-k\bki\bil\bll\bl-\b-l\bli\bin\bne\be (\b(C\bC-\b-x\bx R\bRu\bub\bbo\bou\but\bt)\b)
Kill backward to the beginning of the current line. With a neg-
- ative numeric argument, kill forward from the cursor to the end
+ ative numeric argument, kill forward from the cursor to the end
of the line.
u\bun\bni\bix\bx-\b-l\bli\bin\bne\be-\b-d\bdi\bis\bsc\bca\bar\brd\bd (\b(C\bC-\b-u\bu)\b)
- Kill backward from point to the beginning of the line, saving
+ Kill backward from point to the beginning of the line, saving
the killed text on the kill-ring.
k\bki\bil\bll\bl-\b-w\bwh\bho\bol\ble\be-\b-l\bli\bin\bne\be
- Kill all characters on the current line, no matter where point
+ Kill all characters on the current line, no matter where point
is.
k\bki\bil\bll\bl-\b-w\bwo\bor\brd\bd (\b(M\bM-\b-d\bd)\b)
- Kill from point to the end of the current word, or if between
- words, to the end of the next word. Word boundaries are the
+ Kill from point to the end of the current word, or if between
+ words, to the end of the next word. Word boundaries are the
same as those used by f\bfo\bor\brw\bwa\bar\brd\bd-\b-w\bwo\bor\brd\bd.
b\bba\bac\bck\bkw\bwa\bar\brd\bd-\b-k\bki\bil\bll\bl-\b-w\bwo\bor\brd\bd (\b(M\bM-\b-R\bRu\bub\bbo\bou\but\bt)\b)
- Kill the word behind point. Word boundaries are the same as
+ Kill the word behind point. Word boundaries are the same as
those used by b\bba\bac\bck\bkw\bwa\bar\brd\bd-\b-w\bwo\bor\brd\bd.
u\bun\bni\bix\bx-\b-w\bwo\bor\brd\bd-\b-r\bru\bub\bbo\bou\but\bt (\b(C\bC-\b-w\bw)\b)
- Kill the word behind point, using white space as a word bound-
+ Kill the word behind point, using white space as a word bound-
ary, saving the killed text on the kill-ring.
u\bun\bni\bix\bx-\b-f\bfi\bil\ble\ben\bna\bam\bme\be-\b-r\bru\bub\bbo\bou\but\bt
- Kill the word behind point, using white space and the slash
- character as the word boundaries, saving the killed text on the
+ Kill the word behind point, using white space and the slash
+ character as the word boundaries, saving the killed text on the
kill-ring.
d\bde\bel\ble\bet\bte\be-\b-h\bho\bor\bri\biz\bzo\bon\bnt\bta\bal\bl-\b-s\bsp\bpa\bac\bce\be (\b(M\bM-\b-\\b\)\b)
Delete all spaces and tabs around point.
k\bki\bil\bll\bl-\b-r\bre\beg\bgi\bio\bon\bn
Kill the text in the current region.
c\bco\bop\bpy\by-\b-r\bre\beg\bgi\bio\bon\bn-\b-a\bas\bs-\b-k\bki\bil\bll\bl
- Copy the text in the region to the kill buffer, so it can be
+ Copy the text in the region to the kill buffer, so it can be
yanked immediately.
c\bco\bop\bpy\by-\b-b\bba\bac\bck\bkw\bwa\bar\brd\bd-\b-w\bwo\bor\brd\bd
- Copy the word before point to the kill buffer. The word bound-
+ Copy the word before point to the kill buffer. The word bound-
aries are the same as b\bba\bac\bck\bkw\bwa\bar\brd\bd-\b-w\bwo\bor\brd\bd.
c\bco\bop\bpy\by-\b-f\bfo\bor\brw\bwa\bar\brd\bd-\b-w\bwo\bor\brd\bd
- Copy the word following point to the kill buffer. The word
+ Copy the word following point to the kill buffer. The word
boundaries are the same as f\bfo\bor\brw\bwa\bar\brd\bd-\b-w\bwo\bor\brd\bd.
y\bya\ban\bnk\bk (\b(C\bC-\b-y\by)\b)
Yank the top of the kill ring into the buffer at point.
y\bya\ban\bnk\bk-\b-p\bpo\bop\bp (\b(M\bM-\b-y\by)\b)
- Rotate the kill ring, and yank the new top. Only works follow-
+ Rotate the kill ring, and yank the new top. Only works follow-
ing y\bya\ban\bnk\bk or y\bya\ban\bnk\bk-\b-p\bpo\bop\bp.
N\bNu\bum\bme\ber\bri\bic\bc A\bAr\brg\bgu\bum\bme\ben\bnt\bts\bs
d\bdi\big\bgi\bit\bt-\b-a\bar\brg\bgu\bum\bme\ben\bnt\bt (\b(M\bM-\b-0\b0,\b, M\bM-\b-1\b1,\b, ...,\b, M\bM-\b--\b-)\b)
- Add this digit to the argument already accumulating, or start a
+ Add this digit to the argument already accumulating, or start a
new argument. M-- starts a negative argument.
u\bun\bni\biv\bve\ber\brs\bsa\bal\bl-\b-a\bar\brg\bgu\bum\bme\ben\bnt\bt
- This is another way to specify an argument. If this command is
- followed by one or more digits, optionally with a leading minus
- sign, those digits define the argument. If the command is fol-
+ This is another way to specify an argument. If this command is
+ followed by one or more digits, optionally with a leading minus
+ sign, those digits define the argument. If the command is fol-
lowed by digits, executing u\bun\bni\biv\bve\ber\brs\bsa\bal\bl-\b-a\bar\brg\bgu\bum\bme\ben\bnt\bt again ends the nu-
meric argument, but is otherwise ignored. As a special case, if
this command is immediately followed by a character that is nei-
- ther a digit nor minus sign, the argument count for the next
- command is multiplied by four. The argument count is initially
- one, so executing this function the first time makes the argu-
+ ther a digit nor minus sign, the argument count for the next
+ command is multiplied by four. The argument count is initially
+ one, so executing this function the first time makes the argu-
ment count four, a second time makes the argument count sixteen,
and so on.
C\bCo\bom\bmp\bpl\ble\bet\bti\bin\bng\bg
c\bco\bom\bmp\bpl\ble\bet\bte\be (\b(T\bTA\bAB\bB)\b)
Attempt to perform completion on the text before point. The ac-
- tual completion performed is application-specific. B\bBa\bas\bsh\bh, for
+ tual completion performed is application-specific. B\bBa\bas\bsh\bh, for
instance, attempts programmable completion first, otherwise
- treating the text as a variable (if the text begins with $\b$),
- username (if the text begins with ~\b~), hostname (if the text be-
- gins with @\b@), or command (including aliases, functions, and
- builtins) in turn. If none of these produces a match, it falls
- back to filename completion. G\bGd\bdb\bb, on the other hand, allows
+ treating the text as a variable (if the text begins with $\b$),
+ username (if the text begins with ~\b~), hostname (if the text be-
+ gins with @\b@), or command (including aliases, functions, and
+ builtins) in turn. If none of these produces a match, it falls
+ back to filename completion. G\bGd\bdb\bb, on the other hand, allows
completion of program functions and variables, and only attempts
- filename completion under certain circumstances. The default
+ filename completion under certain circumstances. The default
r\bre\bea\bad\bdl\bli\bin\bne\be completion is filename completion.
p\bpo\bos\bss\bsi\bib\bbl\ble\be-\b-c\bco\bom\bmp\bpl\ble\bet\bti\bio\bon\bns\bs (\b(M\bM-\b-?\b?)\b)
- List the possible completions of the text before point. When
+ List the possible completions of the text before point. When
displaying completions, r\bre\bea\bad\bdl\bli\bin\bne\be sets the number of columns used
- for display to the value of c\bco\bom\bmp\bpl\ble\bet\bti\bio\bon\bn-\b-d\bdi\bis\bsp\bpl\bla\bay\by-\b-w\bwi\bid\bdt\bth\bh, the value
- of the environment variable C\bCO\bOL\bLU\bUM\bMN\bNS\bS, or the screen width, in
+ for display to the value of c\bco\bom\bmp\bpl\ble\bet\bti\bio\bon\bn-\b-d\bdi\bis\bsp\bpl\bla\bay\by-\b-w\bwi\bid\bdt\bth\bh, the value
+ of the environment variable C\bCO\bOL\bLU\bUM\bMN\bNS\bS, or the screen width, in
that order.
i\bin\bns\bse\ber\brt\bt-\b-c\bco\bom\bmp\bpl\ble\bet\bti\bio\bon\bns\bs (\b(M\bM-\b-*\b*)\b)
- Insert all completions of the text before point that would have
+ Insert all completions of the text before point that would have
been generated by p\bpo\bos\bss\bsi\bib\bbl\ble\be-\b-c\bco\bom\bmp\bpl\ble\bet\bti\bio\bon\bns\bs, separated by a space.
m\bme\ben\bnu\bu-\b-c\bco\bom\bmp\bpl\ble\bet\bte\be
- Similar to c\bco\bom\bmp\bpl\ble\bet\bte\be, but replaces the word to be completed with
- a single match from the list of possible completions. Repeat-
- edly executing m\bme\ben\bnu\bu-\b-c\bco\bom\bmp\bpl\ble\bet\bte\be steps through the list of possible
- completions, inserting each match in turn. At the end of the
- list of completions, m\bme\ben\bnu\bu-\b-c\bco\bom\bmp\bpl\ble\bet\bte\be rings the bell (subject to
- the setting of b\bbe\bel\bll\bl-\b-s\bst\bty\byl\ble\be) and restores the original text. An
- argument of _\bn moves _\bn positions forward in the list of matches;
- a negative argument moves backward through the list. This com-
+ Similar to c\bco\bom\bmp\bpl\ble\bet\bte\be, but replaces the word to be completed with
+ a single match from the list of possible completions. Repeat-
+ edly executing m\bme\ben\bnu\bu-\b-c\bco\bom\bmp\bpl\ble\bet\bte\be steps through the list of possible
+ completions, inserting each match in turn. At the end of the
+ list of completions, m\bme\ben\bnu\bu-\b-c\bco\bom\bmp\bpl\ble\bet\bte\be rings the bell (subject to
+ the setting of b\bbe\bel\bll\bl-\b-s\bst\bty\byl\ble\be) and restores the original text. An
+ argument of _\bn moves _\bn positions forward in the list of matches;
+ a negative argument moves backward through the list. This com-
mand is intended to be bound to T\bTA\bAB\bB, but is unbound by default.
m\bme\ben\bnu\bu-\b-c\bco\bom\bmp\bpl\ble\bet\bte\be-\b-b\bba\bac\bck\bkw\bwa\bar\brd\bd
- Identical to m\bme\ben\bnu\bu-\b-c\bco\bom\bmp\bpl\ble\bet\bte\be, but moves backward through the list
- of possible completions, as if m\bme\ben\bnu\bu-\b-c\bco\bom\bmp\bpl\ble\bet\bte\be had been given a
+ Identical to m\bme\ben\bnu\bu-\b-c\bco\bom\bmp\bpl\ble\bet\bte\be, but moves backward through the list
+ of possible completions, as if m\bme\ben\bnu\bu-\b-c\bco\bom\bmp\bpl\ble\bet\bte\be had been given a
negative argument. This command is unbound by default.
e\bex\bxp\bpo\bor\brt\bt-\b-c\bco\bom\bmp\bpl\ble\bet\bti\bio\bon\bns\bs
- Perform completion on the word before point as described above
- and write the list of possible completions to r\bre\bea\bad\bdl\bli\bin\bne\be's output
- stream using the following format, writing information on sepa-
+ Perform completion on the word before point as described above
+ and write the list of possible completions to r\bre\bea\bad\bdl\bli\bin\bne\be's output
+ stream using the following format, writing information on sepa-
rate lines:
- The number of matches;
- The word being completed;
- S:E, where S and E are the start and end offsets of the word
- in the readline line buffer; then
- Each match, one per line
-
- If there are no matches, the first line will be 0, and this com-
- mand will not print any output after the S:E. If there is only
- a single match, this prints a single line containing it. If
- there is more than one match, this prints the common prefix of
- the matches, which may be empty, on the first line after the
- S:E, then the matches on subsequent lines. In this case, N will
+ +\bo the number of matches _\bN;
+ +\bo the word being completed;
+ +\bo _\bS:_\bE, where S and E are the start and end offsets of the
+ word in the r\bre\bea\bad\bdl\bli\bin\bne\be line buffer; then
+ +\bo each match, one per line
+
+ If there are no matches, the first line will be "0", and this
+ command does not print any output after the _\bS:_\bE. If there is
+ only a single match, this prints a single line containing it.
+ If there is more than one match, this prints the common prefix
+ of the matches, which may be empty, on the first line after the
+ _\bS:_\bE, then the matches on subsequent lines. In this case, _\bN will
include the first line with the common prefix.
The user or application should be able to accommodate the possi-
bility of a blank line. The intent is that the user or applica-
- tion reads N lines after the line containing S:E. This command
- is unbound by default.
+ tion reads _\bN lines after the line containing _\bS:_\bE to obtain the
+ match list. This command is unbound by default.
+
d\bde\bel\ble\bet\bte\be-\b-c\bch\bha\bar\br-\b-o\bor\br-\b-l\bli\bis\bst\bt
- Deletes the character under the cursor if not at the beginning
- or end of the line (like d\bde\bel\ble\bet\bte\be-\b-c\bch\bha\bar\br). At the end of the line,
+ Deletes the character under the cursor if not at the beginning
+ or end of the line (like d\bde\bel\ble\bet\bte\be-\b-c\bch\bha\bar\br). At the end of the line,
it behaves identically to p\bpo\bos\bss\bsi\bib\bbl\ble\be-\b-c\bco\bom\bmp\bpl\ble\bet\bti\bio\bon\bns\bs. This command is
unbound by default.
K\bKe\bey\byb\bbo\boa\bar\brd\bd M\bMa\bac\bcr\bro\bos\bs
s\bst\bta\bar\brt\bt-\b-k\bkb\bbd\bd-\b-m\bma\bac\bcr\bro\bo (\b(C\bC-\b-x\bx (\b()\b)
- Begin saving the characters typed into the current keyboard
+ Begin saving the characters typed into the current keyboard
macro.
e\ben\bnd\bd-\b-k\bkb\bbd\bd-\b-m\bma\bac\bcr\bro\bo (\b(C\bC-\b-x\bx )\b))\b)
Stop saving the characters typed into the current keyboard macro
and store the definition.
c\bca\bal\bll\bl-\b-l\bla\bas\bst\bt-\b-k\bkb\bbd\bd-\b-m\bma\bac\bcr\bro\bo (\b(C\bC-\b-x\bx e\be)\b)
- Re-execute the last keyboard macro defined, by making the char-
+ Re-execute the last keyboard macro defined, by making the char-
acters in the macro appear as if typed at the keyboard.
p\bpr\bri\bin\bnt\bt-\b-l\bla\bas\bst\bt-\b-k\bkb\bbd\bd-\b-m\bma\bac\bcr\bro\bo (\b()\b)
- Print the last keyboard macro defined in a format suitable for
+ Print the last keyboard macro defined in a format suitable for
the _\bi_\bn_\bp_\bu_\bt_\br_\bc file.
M\bMi\bis\bsc\bce\bel\bll\bla\ban\bne\beo\bou\bus\bs
r\bre\be-\b-r\bre\bea\bad\bd-\b-i\bin\bni\bit\bt-\b-f\bfi\bil\ble\be (\b(C\bC-\b-x\bx C\bC-\b-r\br)\b)
- Read in the contents of the _\bi_\bn_\bp_\bu_\bt_\br_\bc file, and incorporate any
+ Read in the contents of the _\bi_\bn_\bp_\bu_\bt_\br_\bc file, and incorporate any
bindings or variable assignments found there.
a\bab\bbo\bor\brt\bt (\b(C\bC-\b-g\bg)\b)
- Abort the current editing command and ring the terminal's bell
+ Abort the current editing command and ring the terminal's bell
(subject to the setting of b\bbe\bel\bll\bl-\b-s\bst\bty\byl\ble\be).
d\bdo\bo-\b-l\blo\bow\bwe\ber\brc\bca\bas\bse\be-\b-v\bve\ber\brs\bsi\bio\bon\bn (\b(M\bM-\b-A\bA,\b, M\bM-\b-B\bB,\b, M\bM-\b-_\bx,\b, ...)\b)
- If the metafied character _\bx is uppercase, run the command that
+ If the metafied character _\bx is uppercase, run the command that
is bound to the corresponding metafied lowercase character. The
behavior is undefined if _\bx is already lowercase.
p\bpr\bre\bef\bfi\bix\bx-\b-m\bme\bet\bta\ba (\b(E\bES\bSC\bC)\b)
u\bun\bnd\bdo\bo (\b(C\bC-\b-_\b_,\b, C\bC-\b-x\bx C\bC-\b-u\bu)\b)
Incremental undo, separately remembered for each line.
r\bre\bev\bve\ber\brt\bt-\b-l\bli\bin\bne\be (\b(M\bM-\b-r\br)\b)
- Undo all changes made to this line. This is like executing the
- u\bun\bnd\bdo\bo command enough times to return the line to its initial
+ Undo all changes made to this line. This is like executing the
+ u\bun\bnd\bdo\bo command enough times to return the line to its initial
state.
t\bti\bil\bld\bde\be-\b-e\bex\bxp\bpa\ban\bnd\bd (\b(M\bM-\b-~\b~)\b)
Perform tilde expansion on the current word.
s\bse\bet\bt-\b-m\bma\bar\brk\bk (\b(C\bC-\b-@\b@,\b, M\bM-\b-<\b<s\bsp\bpa\bac\bce\be>\b>)\b)
- Set the mark to the point. If a numeric argument is supplied,
+ Set the mark to the point. If a numeric argument is supplied,
set the mark to that position.
e\bex\bxc\bch\bha\ban\bng\bge\be-\b-p\bpo\boi\bin\bnt\bt-\b-a\ban\bnd\bd-\b-m\bma\bar\brk\bk (\b(C\bC-\b-x\bx C\bC-\b-x\bx)\b)
- Swap the point with the mark. Set the current cursor position
+ Swap the point with the mark. Set the current cursor position
to the saved position, then set the mark to the old cursor posi-
tion.
c\bch\bha\bar\bra\bac\bct\bte\ber\br-\b-s\bse\bea\bar\brc\bch\bh (\b(C\bC-\b-]\b])\b)
- Read a character and move point to the next occurrence of that
- character. A negative argument searches for previous occur-
+ Read a character and move point to the next occurrence of that
+ character. A negative argument searches for previous occur-
rences.
c\bch\bha\bar\bra\bac\bct\bte\ber\br-\b-s\bse\bea\bar\brc\bch\bh-\b-b\bba\bac\bck\bkw\bwa\bar\brd\bd (\b(M\bM-\b-C\bC-\b-]\b])\b)
- Read a character and move point to the previous occurrence of
+ Read a character and move point to the previous occurrence of
that character. A negative argument searches for subsequent oc-
currences.
s\bsk\bki\bip\bp-\b-c\bcs\bsi\bi-\b-s\bse\beq\bqu\bue\ben\bnc\bce\be
- Read enough characters to consume a multi-key sequence such as
- those defined for keys like Home and End. CSI sequences begin
- with a Control Sequence Indicator (CSI), usually ESC-[. If this
- sequence is bound to "\e[", keys producing CSI sequences will
- have no effect unless explicitly bound to a r\bre\bea\bad\bdl\bli\bin\bne\be command,
- instead of inserting stray characters into the editing buffer.
- This is unbound by default, but usually bound to ESC-[.
+ Read enough characters to consume a multi-key sequence such as
+ those defined for keys like Home and End. CSI sequences begin
+ with a Control Sequence Indicator (CSI), usually _\bE_\bS_\bC _\b[. If this
+ sequence is bound to "\e[", keys producing CSI sequences have no
+ effect unless explicitly bound to a r\bre\bea\bad\bdl\bli\bin\bne\be command, instead of
+ inserting stray characters into the editing buffer. This is un-
+ bound by default, but usually bound to _\bE_\bS_\bC _\b[.
i\bin\bns\bse\ber\brt\bt-\b-c\bco\bom\bmm\bme\ben\bnt\bt (\b(M\bM-\b-#\b#)\b)
Without a numeric argument, insert the value of the r\bre\bea\bad\bdl\bli\bin\bne\be
c\bco\bom\bmm\bme\ben\bnt\bt-\b-b\bbe\beg\bgi\bin\bn variable at the beginning of the current line. If
Once you have determined that a bug actually exists, mail a bug report
to _\bb_\bu_\bg_\b-_\br_\be_\ba_\bd_\bl_\bi_\bn_\be@_\bg_\bn_\bu_\b._\bo_\br_\bg. If you have a fix, you are welcome to mail
- that as well! Suggestions and `philosophical' bug reports may be
+ that as well! Suggestions and "philosophical" bug reports may be
mailed to _\bb_\bu_\bg_\b-_\br_\be_\ba_\bd_\bl_\bi_\bn_\be@_\bg_\bn_\bu_\b._\bo_\br_\bg or posted to the Usenet newsgroup
g\bgn\bnu\bu.\b.b\bba\bas\bsh\bh.\b.b\bbu\bug\bg.
B\bBU\bUG\bGS\bS
It's too big and too slow.
-GNU Readline 8.3 2024 October 10 _\bR_\bE_\bA_\bD_\bL_\bI_\bN_\bE(3)
+GNU Readline 8.3 2024 November 29 _\bR_\bE_\bA_\bD_\bL_\bI_\bN_\bE(3)
.\" Case Western Reserve University
.\" chet.ramey@case.edu
.\"
-.\" Last Change: Fri Nov 15 17:57:09 EST 2024
+.\" Last Change: Fri Nov 29 18:17:27 EST 2024
.\"
-.TH READLINE 3 "2024 November 15" "GNU Readline 8.3"
+.TH READLINE 3 "2024 November 29" "GNU Readline 8.3"
.\"
.ie \n(.g \{\
.ds ' \(aq
.\}
.el \{\
.ds ' '
-.\" not usable in macro arguments on AT&T troff (DWB, Solaris 10)
+.\" \*" is not usable in macro arguments on AT&T troff (DWB, Solaris 10)
.ds " ""\" two adjacent quotes and no space before this comment
.ds ^ ^
.ds ~ ~
.
.\" File Name macro. This used to be `.PN', for Path Name,
.\" but Sun doesn't seem to like that very much.
+.\" \% at the beginning of the string protects the filename from hyphenation.
.\"
.de FN
\%\fI\|\\$1\|\fP
..
+.\"
+.\" Quotation macro: generate consistent quoted strings that don't rely
+.\" on the presence of the `CW' constant-width font.
+.\"
.de Q
.ie \n(.g \(lq\\$1\(rq\\$2
.el \{\
.SH DESCRIPTION
.LP
.B readline
-will read a line from the terminal
+reads a line from the terminal
and return it, using
.B prompt
as a prompt.
.I x
key, in sequence.
This makes ESC the \fImeta prefix\fP.
-The combination M\-C\-\fIx\fP means ESC\-Control\-\fIx\fP:
+The combination M\-C\-\fIx\fP means ESC Control\-\fIx\fP:
press and release the Escape key,
then press and hold the Control key while pressing the
.I x
.IR \*~/.inputrc .
If that file does not exist or cannot be read, \fBreadline\fP looks for
.IR /etc/inputrc .
-When a program which uses the \fBreadline\fP library starts up,
+When a program that uses the \fBreadline\fP library starts up,
\fBreadline\fP reads the initialization file
and sets the key bindings and variables found there,
before reading any user input.
.IR NEWLINE ,
.IR RET ,
.IR RETURN ,
-.IR RUBOUT (a destructive backspace),
+.I RUBOUT
+(a destructive backspace),
.IR SPACE ,
.IR SPC ,
and
When entering the text of a macro, single or double quotes must
be used to indicate a macro definition.
Unquoted text is assumed to be a function name.
-Tthe backslash escapes described above are expanded
+The backslash escapes described above are expanded
in the macro body.
-Backslash will quote any other character in the macro text,
+Backslash quotes any other character in the macro text,
including \*" and \*'.
.PP
.B Bash
options to the
.B set
builtin
-will change the editing mode during interactive use.
+change the editing mode during interactive use.
Other programs using this library provide similar mechanisms.
A user may always edit the
.I inputrc
when performing completion.
The value is ignored if it is less than 0 or greater than the terminal
screen width.
-A value of 0 will cause matches to be displayed one per line.
+A value of 0 causes matches to be displayed one per line.
The default value is \-1.
.TP
.B completion\-ignore\-case (Off)
It may be set to any integer value greater than or equal to zero.
If the number of possible completions is greater than
or equal to the value of this variable,
-\fBreadline\fP will ask whether or not the user wishes to view them;
+\fBreadline\fP asks whether or not the user wishes to view them;
otherwise \fBreadline\fP simply lists them on the terminal.
A zero value means \fBreadline\fP should never ask; negative values are
treated as zero.
.TP
.B convert\-meta (On)
-If set to \fBOn\fP, \fBreadline\fP will convert characters it reads
+If set to \fBOn\fP, \fBreadline\fP converts characters it reads
that have the eighth bit set to an ASCII key sequence by
clearing the eighth bit and prefixing it with an escape character
(converting the character to have the meta prefix).
-The default is \fIOn\fP, but \fBreadline\fP will set it to \fIOff\fP
+The default is \fIOn\fP, but \fBreadline\fP sets it to \fIOff\fP
if the locale contains
characters whose encodings may include bytes with the eighth bit set.
This variable is dependent on the \fBLC_CTYPE\fP locale category, and
\fBforce\-meta\-prefix\fP below.
.TP
.B disable\-completion (Off)
-If set to \fBOn\fP, \fBreadline\fP will inhibit word completion.
-Completion characters will be inserted into the line as if they
+If set to \fBOn\fP, \fBreadline\fP inhibits word completion.
+Completion characters are inserted into the line as if they
had been mapped to \fBself-insert\fP.
.TP
.B echo\-control\-characters (On)
.B enable\-active\-region (On)
When this variable is set to \fIOn\fP, \fBreadline\fP allows certain commands
to designate the region as \fIactive\fP.
-When the region is active, \fBreadline\fP highlights
-the text in the region using
-the value of the \fBactive\-region\-start\-color\fP, which defaults to the
-string that enables the terminal's standout mode.
+When the region is active, \fBreadline\fP
+highlights the text in the region using the value of the
+.B active\-region\-start\-color
+variable, which defaults to the string that enables
+the terminal's standout mode.
The active region shows the text inserted by bracketed-paste and any
matching text found by incremental and non-incremental history searches.
.TP
sequences appearing in the pasted text.
.TP
.B enable\-keypad (Off)
-When set to \fBOn\fP, \fBreadline\fP will try to enable the application
+When set to \fBOn\fP, \fBreadline\fP tries to enable the application
keypad when it is called.
Some systems need this to enable the arrow keys.
.TP
.B enable\-meta\-key (On)
-When set to \fBOn\fP, \fBreadline\fP will try to enable any meta modifier
+When set to \fBOn\fP, \fBreadline\fP tries to enable any meta modifier
key the terminal claims to support.
On many terminals, the Meta key is used to send eight-bit characters;
this variable checks for the terminal capability that indicates the
This setting is automatically enabled for terminals of height 1.
.TP
.B input\-meta (Off)
-If set to \fBOn\fP, \fBreadline\fP will enable eight-bit input (that is, it
-will not clear the eighth bit in the characters it reads),
+If set to \fBOn\fP, \fBreadline\fP enables eight-bit input (that is, it
+does not clear the eighth bit in the characters it reads),
regardless of what the terminal claims it can support.
-The default is \fIOff\fP, but \fBreadline\fP will set it to \fIOn\fP
+The default is \fIOff\fP, but \fBreadline\fP sets it to \fIOn\fP
if the locale contains characters whose encodings may include bytes
with the eighth bit set.
This variable is dependent on the \fBLC_CTYPE\fP locale category, and
The name \fBmeta\-flag\fP is a synonym for \fBinput\-meta\fP.
.TP
.BR isearch\-terminators\ ( \c
-.Q \fBC\-[C\-J\fP \fB)\fP
+.Q \fBC\-[C\-j\fP \fB)\fP
The string of characters that should terminate an incremental
search without subsequently executing the character as a command.
If this variable has not been given a value, the characters
-\fIESC\fP and \fIC\-J\fP will terminate an incremental search.
+\fIESC\fP and \fBC\-j\fP terminate an incremental search.
.TP
.B keymap (emacs)
Set the current \fBreadline\fP keymap.
(one that can form a complete key sequence using the input read so far,
or can take additional input to complete a longer key sequence).
If \fBreadline\fP does not receive any input within the timeout,
-it will use the shorter but complete key sequence.
+it uses the shorter but complete key sequence.
The value is specified in milliseconds, so a value of 1000 means that
\fBreadline\fP will wait one second for additional input.
If this variable is set to a value less than or equal to zero, or to a
-non-numeric value, \fBreadline\fP will wait until another key is pressed to
+non-numeric value, \fBreadline\fP waits until another key is pressed to
decide which key sequence to complete.
.TP
.B mark\-directories (On)
the list.
.TP
.B output\-meta (Off)
-If set to \fBOn\fP, \fBreadline\fP will display characters with the
+If set to \fBOn\fP, \fBreadline\fP displays characters with the
eighth bit set directly rather than as a meta-prefixed escape
sequence.
-The default is \fIOff\fP, but \fBreadline\fP will set it to \fIOn\fP
+The default is \fIOff\fP, but \fBreadline\fP sets it to \fIOn\fP
if the locale contains characters whose encodings may include
bytes with the eighth bit set.
This variable is dependent on the \fBLC_CTYPE\fP locale category, and
its value may change if the locale changes.
.TP
.B page\-completions (On)
-If set to \fBOn\fP, \fBreadline\fP uses an internal \fImore\fP-like pager
+If set to \fBOn\fP, \fBreadline\fP uses an internal pager resembling
+.IR more (1)
to display a screenful of possible completions at a time.
.TP
.B prefer\-visible\-bell
See \fBbell\-style\fP.
.TP
.B print\-completions\-horizontally (Off)
-If set to \fBOn\fP, \fBreadline\fP will display completions with matches
+If set to \fBOn\fP, \fBreadline\fP displays completions with matches
sorted horizontally in alphabetical order, rather than down the screen.
.TP
.B revert\-all\-at\-newline (Off)
The characters present in the value of the \fBisearch-terminators\fP
variable are used to terminate an incremental search.
If that variable has not been assigned a value,
-\fIESC\fP and \fIC\-J\fP will terminate an incremental search.
-\fIC\-g\fP will abort an incremental search and restore the original line.
+\fIESC\fP and \fBC\-j\fP terminate an incremental search.
+\fBC\-g\fP aborts an incremental search and restores the original line.
When the search is terminated, the history entry containing the
search string becomes the current line.
.PP
To find other matching entries in the history list, type \fBC\-r\fP or
\fBC\-s\fP as appropriate.
-This will search backward or forward in the history for the next
+This searches backward or forward in the history for the next
entry matching the search string typed so far.
-Any other key sequence bound to a \fBreadline\fP command will terminate
-the search and execute that command.
-For instance, a newline will terminate the search and accept
+Any other key sequence bound to a \fBreadline\fP command terminates
+the search and executes that command.
+For instance, a newline terminates the search and accepts
the line, thereby executing the command from the history list.
A movement command will terminate the search, make the last line found
the current line, and begin editing.
.B Readline
has the concept of an \fIactive region\fP:
when the region is active, \fBreadline\fP redisplay
-highlights the region using the
-value of the \fBactive-region-start-color\fP variable.
+highlights the region using the value of the
+.B active\-region\-start\-color
+variable.
The \fBenable\-active\-region\fP variable turns this on and off.
Several commands set the region to active; those are noted below.
.SS Commands for Moving
.TP
.B forward\-char (C\-f)
Move forward a character.
+This may also be bound to the right arrow key on some keyboards.
.TP
.B backward\-char (C\-b)
Move back a character.
.B previous\-history (C\-p)
Fetch the previous command from the history list, moving back in
the list.
+This may also be bound to the up arrow key on some keyboards.
.TP
.B next\-history (C\-n)
Fetch the next command from the history list, moving forward in the
list.
+This may also be bound to the down arrow key on some keyboards.
.TP
.B beginning\-of\-history (M\-<)
Move to the first line in the history.
Perform completion on the word before point as described above
and write the list of possible completions to \fBreadline\fP's output
stream using the following format, writing information on separate lines:
-.sp
-.IP
.RS
-.nf
-The number of matches;
-The word being completed;
-S:E, where S and E are the start and end offsets of the word
-in the readline line buffer; then
-Each match, one per line
-.fi
+.PD
+.IP \(bu
+.PD 0
+the number of matches \fIN\fP;
+.IP \(bu
+the word being completed;
+.IP \(bu
+\fIS\fP:\fIE\fP,
+where S and E are the start and end offsets of the word
+in the \fBreadline\fP line buffer; then
+.IP \(bu
+each match, one per line
.RE
-.sp
+.PD
.IP
-If there are no matches, the first line will be 0, and this command will
-not print any output after the S:E.
+If there are no matches, the first line will be
+.Q 0 ,
+and this command does not print any output after the \fIS\fP:\fIE\fP.
If there is only a single match, this prints a single line containing it.
If there is more than one match, this prints the common prefix of the
-matches, which may be empty, on the first line after the S:E,
+matches, which may be empty, on the first line after the \fIS\fP:\fIE\fP,
then the matches on subsequent lines.
-In this case, N will include the first line with the common prefix.
-.PD
+In this case, \fIN\fP will include the first line with the common prefix.
.IP
-.PD 0
The user or application
should be able to accommodate the possibility of a blank line.
-The intent is that the user or application reads N lines after the line
-containing S:E to obtain the match list.
+The intent is that the user or application reads \fIN\fP lines after
+the line containing \fIS\fP:\fIE\fP to obtain the match list.
This command is unbound by default.
.TP
.B delete\-char\-or\-list
.B skip\-csi\-sequence
Read enough characters to consume a multi-key sequence such as those
defined for keys like Home and End.
-CSI sequences begin with a Control Sequence Indicator (CSI), usually ESC\-[.
+CSI sequences begin with a Control Sequence Indicator (CSI), usually
+.IR "ESC [" .
If this sequence is bound to
.Q \ee[ ,
-keys producing CSI sequences will have no effect
-unless explicitly bound to a \fBreadline\fP command, instead of inserting
-stray characters into the editing buffer.
-This is unbound by default, but usually bound to ESC\-[.
+keys producing CSI sequences have no effect
+unless explicitly bound to a \fBreadline\fP command,
+instead of inserting stray characters into the editing buffer.
+This is unbound by default, but usually bound to
+.IR "ESC [" .
.TP
.B insert\-comment (M\-#)
Without a numeric argument, insert the value of the \fBreadline\fP
Once you have determined that a bug actually exists, mail a
bug report to \fIbug\-readline\fP@\fIgnu.org\fP.
If you have a fix, you are welcome to mail that
-as well! Suggestions and `philosophical' bug reports may be mailed
+as well! Suggestions and
+.Q philosophical
+bug reports may be mailed
to \fPbug-readline\fP@\fIgnu.org\fP or posted to the Usenet
newsgroup
.BR gnu.bash.bug .
<HTML>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<!-- Created on November, 1 2024 by texi2html 1.64 -->
+<!-- Created on December, 2 2024 by texi2html 1.64 -->
<!--
Written by: Lionel Cons <Lionel.Cons@cern.ch> (original author)
Karl Berry <karl@freefriends.org>
The characters present in the value of the <CODE>isearch-terminators</CODE> variable
are used to terminate an incremental search.
If that variable has not been assigned a value, the <KBD>ESC</KBD> and
-<KBD>C-J</KBD> characters will terminate an incremental search.
-<KBD>C-g</KBD> will abort an incremental search and restore the original line.
+<KBD>C-j</KBD> characters terminate an incremental search.
+<KBD>C-g</KBD> aborts an incremental search and restores the original line.
When the search is terminated, the history entry containing the
search string becomes the current line.
</P><P>
To find other matching entries in the history list, type <KBD>C-r</KBD> or
<KBD>C-s</KBD> as appropriate.
-This will search backward or forward in the history for the next
+This searches backward or forward in the history for the next
entry matching the search string typed so far.
-Any other key sequence bound to a Readline command will terminate
-the search and execute that command.
-For instance, a <KBD>RET</KBD> will terminate the search and accept
+Any other key sequence bound to a Readline command terminates
+the search and executes that command.
+For instance, a <KBD>RET</KBD> terminates the search and accepts
the line, thereby executing the command from the history list.
A movement command will terminate the search, make the last line found
the current line, and begin editing.
<TT>`/etc/inputrc'</TT>.
</P><P>
-When a program which uses the Readline library starts up, Readline reads
+When a program that uses the Readline library starts up, Readline reads
the init file and sets any variables and key bindings it contains.
</P><P>
when performing completion.
The value is ignored if it is less than 0 or greater than the terminal
screen width.
-A value of 0 will cause matches to be displayed one per line.
+A value of 0 causes matches to be displayed one per line.
The default value is -1.
<P>
The number of possible completions that determines when the user is asked
whether the list of possibilities should be displayed.
If the number of possible completions is greater than
-or equal to this value, Readline will ask whether or not
-the user wishes to view them;
+or equal to this value,
+Readline asks whether or not the user wishes to view them;
otherwise, Readline simply lists the completions.
This variable must be set to an integer value greater than or equal to zero.
A zero value means Readline should never ask; negative
<DT><CODE>convert-meta</CODE>
<DD><A NAME="IDX18"></A>
-If set to <SAMP>`on'</SAMP>, Readline will convert characters it reads
+If set to <SAMP>`on'</SAMP>, Readline converts characters it reads
that have the eighth bit set to an ASCII key sequence by
clearing the eighth bit and prefixing an <KBD>ESC</KBD> character,
converting them to a meta-prefixed key sequence.
-The default value is <SAMP>`on'</SAMP>, but Readline will set it to <SAMP>`off'</SAMP>
+The default value is <SAMP>`on'</SAMP>, but Readline sets it to <SAMP>`off'</SAMP>
if the locale contains
characters whose encodings may include bytes with the eighth bit set.
This variable is dependent on the <CODE>LC_CTYPE</CODE> locale category, and
<DT><CODE>disable-completion</CODE>
<DD><A NAME="IDX19"></A>
-If set to <SAMP>`On'</SAMP>, Readline will inhibit word completion.
-Completion characters will be inserted into the line as if they
+If set to <SAMP>`On'</SAMP>, Readline inhibits word completion.
+Completion characters are inserted into the line as if they
had been mapped to <CODE>self-insert</CODE>.
The default is <SAMP>`off'</SAMP>.
<P>
<DT><CODE>enable-keypad</CODE>
<DD><A NAME="IDX25"></A>
-When set to <SAMP>`on'</SAMP>, Readline will try to enable the application
+When set to <SAMP>`on'</SAMP>, Readline tries to enable the application
keypad when it is called.
Some systems need this to enable the arrow keys.
The default is <SAMP>`off'</SAMP>.
<DT><CODE>enable-meta-key</CODE>
<DD><A NAME="IDX26"></A>
-When set to <SAMP>`on'</SAMP>, Readline will try to enable any meta
+When set to <SAMP>`on'</SAMP>, Readline tries to enable any meta
modifier key the terminal claims to support when it is called.
On many terminals, the Meta key is used to send eight-bit characters;
this variable checks for the terminal capability that indicates the
<DT><CODE>input-meta</CODE>
<DD><A NAME="IDX32"></A>
<A NAME="IDX33"></A>
-If set to <SAMP>`on'</SAMP>, Readline will enable eight-bit input (that is, it
-will not clear the eighth bit in the characters it reads),
+If set to <SAMP>`on'</SAMP>, Readline enables eight-bit input (that is, it
+does not clear the eighth bit in the characters it reads),
regardless of what the terminal claims it can support.
-The default value is <SAMP>`off'</SAMP>, but Readline will set it to <SAMP>`on'</SAMP>
+The default value is <SAMP>`off'</SAMP>, but Readline sets it to <SAMP>`on'</SAMP>
if the locale contains characters whose encodings may include bytes
with the eighth bit set.
This variable is dependent on the <CODE>LC_CTYPE</CODE> locale category, and
The string of characters that should terminate an incremental search without
subsequently executing the character as a command (see section <A HREF="readline.html#SEC8">1.2.5 Searching for Commands in the History</A>).
If this variable has not been given a value, the characters <KBD>ESC</KBD> and
-<KBD>C-J</KBD> will terminate an incremental search.
+<KBD>C-j</KBD> terminate an incremental search.
<P>
<DT><CODE>keymap</CODE>
reading an ambiguous key sequence
(one that can form a complete key sequence using the input read so far,
or can take additional input to complete a longer key sequence).
-If Readline doesn't receive any input within the timeout, it will use the
+If Readline doesn't receive any input within the timeout, it uses the
shorter but complete key sequence.
Readline uses this value to determine whether or not input is
available on the current input source (<CODE>rl_instream</CODE> by default).
The value is specified in milliseconds, so a value of 1000 means that
Readline will wait one second for additional input.
If this variable is set to a value less than or equal to zero, or to a
-non-numeric value, Readline will wait until another key is pressed to
+non-numeric value, Readline waits until another key is pressed to
decide which key sequence to complete.
The default value is <CODE>500</CODE>.
<P>
<DT><CODE>mark-modified-lines</CODE>
<DD><A NAME="IDX36"></A>
-When this variable is set to <SAMP>`on'</SAMP>, Readline will to display an
+When this variable is set to <SAMP>`on'</SAMP>, Readline displays an
asterisk (<SAMP>`*'</SAMP>) at the start of history lines which have been modified.
This variable is <SAMP>`off'</SAMP> by default.
<P>
<DT><CODE>output-meta</CODE>
<DD><A NAME="IDX40"></A>
-If set to <SAMP>`on'</SAMP>, Readline will display characters with the
+If set to <SAMP>`on'</SAMP>, Readline displays characters with the
eighth bit set directly rather than as a meta-prefixed escape
sequence.
-The default is <SAMP>`off'</SAMP>, but Readline will set it to <SAMP>`on'</SAMP>
+The default is <SAMP>`off'</SAMP>, but Readline sets it to <SAMP>`on'</SAMP>
if the locale contains characters whose encodings may include
bytes with the eighth bit set.
This variable is dependent on the <CODE>LC_CTYPE</CODE> locale category, and
<DT><CODE>page-completions</CODE>
<DD><A NAME="IDX41"></A>
-If set to <SAMP>`on'</SAMP>, Readline uses an internal <CODE>more</CODE>-like pager
+If set to <SAMP>`on'</SAMP>, Readline uses an internal pager resembling
+<I>more</I>(1)
to display a screenful of possible completions at a time.
This variable is <SAMP>`on'</SAMP> by default.
<P>
<P>
<DT><CODE>print-completions-horizontally</CODE>
-<DD>If set to <SAMP>`on'</SAMP>, Readline will display completions with matches
+<DD>If set to <SAMP>`on'</SAMP>, Readline displays completions with matches
sorted horizontally in alphabetical order, rather than down the screen.
The default is <SAMP>`off'</SAMP>.
<P>
<VAR>NEWLINE</VAR>,
<VAR>RET</VAR>,
<VAR>RETURN</VAR>,
-<VAR>RUBOUT</VAR> (a destructive backspace),
+<VAR>RUBOUT</VAR>
+(a destructive backspace),
<VAR>SPACE</VAR>,
<VAR>SPC</VAR>,
and
<DT><CODE>forward-char (C-f)</CODE>
<DD><A NAME="IDX56"></A>
Move forward a character.
+This may also be bound to the right arrow key on some keyboards.
<P>
<A NAME="IDX57"></A>
<DT><CODE>backward-char (C-b)</CODE>
<DD><A NAME="IDX58"></A>
Move back a character.
+This may also be bound to the left arrow key on some keyboards.
<P>
<A NAME="IDX59"></A>
<DT><CODE>previous-history (C-p)</CODE>
<DD><A NAME="IDX76"></A>
Move `back' through the history list, fetching the previous command.
+This may also be bound to the up arrow key on some keyboards.
<P>
<A NAME="IDX77"></A>
<DT><CODE>next-history (C-n)</CODE>
<DD><A NAME="IDX78"></A>
Move `forward' through the history list, fetching the next command.
+This may also be bound to the down arrow key on some keyboards.
<P>
<A NAME="IDX79"></A>
<P>
<A NAME="IDX179"></A>
-<DT><CODE>delete-char-or-list ()</CODE>
+<DT><CODE>export-completions ()</CODE>
<DD><A NAME="IDX180"></A>
+Perform completion on the word before point as described above
+and write the list of possible completions to Readline's output stream
+using the following format, writing information on separate lines:
+<P>
+
+<UL>
+<A NAME="IDX181"></A>
+<LI>
+the number of matches <VAR>N</VAR>;
+<A NAME="IDX182"></A>
+<LI>
+the word being completed;
+<A NAME="IDX183"></A>
+<LI>
+<VAR>S</VAR>:<VAR>E</VAR>,
+where S and E are the start and end offsets of the word
+in the Readline line buffer; then
+<A NAME="IDX184"></A>
+<LI>
+each match, one per line
+</UL>
+<P>
+
+If there are no matches, the first line will be "0",
+and this command does not print any output after the <VAR>S</VAR>:<VAR>E</VAR>.
+If there is only a single match, this prints a single line containing it.
+If there is more than one match, this prints the common prefix of the
+matches, which may be empty, on the first line after the <VAR>S</VAR>:<VAR>E</VAR>,
+then the matches on subsequent lines.
+In this case, <VAR>N</VAR> will include the first line with the common prefix.
+</P><P>
+
+The user or application
+should be able to accommodate the possibility of a blank line.
+The intent is that the user or application reads <VAR>N</VAR> lines after
+the line containing <VAR>S</VAR>:<VAR>E</VAR> to obtain the match list.
+This command is unbound by default.
+</P><P>
+
+<A NAME="IDX185"></A>
+<DT><CODE>delete-char-or-list ()</CODE>
+<DD><A NAME="IDX186"></A>
Deletes the character under the cursor if not at the beginning or
end of the line (like <CODE>delete-char</CODE>).
At the end of the line, it behaves identically to <CODE>possible-completions</CODE>.
<!--docid::SEC20::-->
<DL COMPACT>
-<A NAME="IDX181"></A>
+<A NAME="IDX187"></A>
<DT><CODE>start-kbd-macro (C-x ()</CODE>
-<DD><A NAME="IDX182"></A>
+<DD><A NAME="IDX188"></A>
Begin saving the characters typed into the current keyboard macro.
<P>
-<A NAME="IDX183"></A>
+<A NAME="IDX189"></A>
<DT><CODE>end-kbd-macro (C-x ))</CODE>
-<DD><A NAME="IDX184"></A>
+<DD><A NAME="IDX190"></A>
Stop saving the characters typed into the current keyboard macro
and save the definition.
<P>
-<A NAME="IDX185"></A>
+<A NAME="IDX191"></A>
<DT><CODE>call-last-kbd-macro (C-x e)</CODE>
-<DD><A NAME="IDX186"></A>
+<DD><A NAME="IDX192"></A>
Re-execute the last keyboard macro defined, by making the characters
in the macro appear as if typed at the keyboard.
<P>
-<A NAME="IDX187"></A>
+<A NAME="IDX193"></A>
<DT><CODE>print-last-kbd-macro ()</CODE>
-<DD><A NAME="IDX188"></A>
+<DD><A NAME="IDX194"></A>
Print the last keyboard macro defined in a format suitable for the
<VAR>inputrc</VAR> file.
<P>
<!--docid::SEC21::-->
<DL COMPACT>
-<A NAME="IDX189"></A>
+<A NAME="IDX195"></A>
<DT><CODE>re-read-init-file (C-x C-r)</CODE>
-<DD><A NAME="IDX190"></A>
+<DD><A NAME="IDX196"></A>
Read in the contents of the <VAR>inputrc</VAR> file, and incorporate
any bindings or variable assignments found there.
<P>
-<A NAME="IDX191"></A>
+<A NAME="IDX197"></A>
<DT><CODE>abort (C-g)</CODE>
-<DD><A NAME="IDX192"></A>
+<DD><A NAME="IDX198"></A>
Abort the current editing command and
ring the terminal's bell (subject to the setting of
<CODE>bell-style</CODE>).
<P>
-<A NAME="IDX193"></A>
+<A NAME="IDX199"></A>
<DT><CODE>do-lowercase-version (M-A, M-B, M-<VAR>x</VAR>, <small>...</small>)</CODE>
-<DD><A NAME="IDX194"></A>
+<DD><A NAME="IDX200"></A>
If the metafied character <VAR>x</VAR> is upper case, run the command
that is bound to the corresponding metafied lower case character.
The behavior is undefined if <VAR>x</VAR> is already lower case.
<P>
-<A NAME="IDX195"></A>
+<A NAME="IDX201"></A>
<DT><CODE>prefix-meta (<KBD>ESC</KBD>)</CODE>
-<DD><A NAME="IDX196"></A>
+<DD><A NAME="IDX202"></A>
Metafy the next character typed.
Typing <SAMP>`<KBD>ESC</KBD> f'</SAMP> is equivalent to typing <KBD>M-f</KBD>.
<P>
-<A NAME="IDX197"></A>
+<A NAME="IDX203"></A>
<DT><CODE>undo (C-_ or C-x C-u)</CODE>
-<DD><A NAME="IDX198"></A>
+<DD><A NAME="IDX204"></A>
Incremental undo, separately remembered for each line.
<P>
-<A NAME="IDX199"></A>
+<A NAME="IDX205"></A>
<DT><CODE>revert-line (M-r)</CODE>
-<DD><A NAME="IDX200"></A>
+<DD><A NAME="IDX206"></A>
Undo all changes made to this line.
This is like executing the <CODE>undo</CODE>
command enough times to get back to the initial state.
<P>
-<A NAME="IDX201"></A>
+<A NAME="IDX207"></A>
<DT><CODE>tilde-expand (M-~)</CODE>
-<DD><A NAME="IDX202"></A>
+<DD><A NAME="IDX208"></A>
Perform tilde expansion on the current word.
<P>
-<A NAME="IDX203"></A>
+<A NAME="IDX209"></A>
<DT><CODE>set-mark (C-@)</CODE>
-<DD><A NAME="IDX204"></A>
+<DD><A NAME="IDX210"></A>
Set the mark to the point.
If a numeric argument is supplied, set the mark to that position.
<P>
-<A NAME="IDX205"></A>
+<A NAME="IDX211"></A>
<DT><CODE>exchange-point-and-mark (C-x C-x)</CODE>
-<DD><A NAME="IDX206"></A>
+<DD><A NAME="IDX212"></A>
Swap the point with the mark.
Set the current cursor position to the saved position,
then set the mark to the old cursor position.
<P>
-<A NAME="IDX207"></A>
+<A NAME="IDX213"></A>
<DT><CODE>character-search (C-])</CODE>
-<DD><A NAME="IDX208"></A>
+<DD><A NAME="IDX214"></A>
Read a character and move point to the next occurrence of that character.
A negative argument searches for previous occurrences.
<P>
-<A NAME="IDX209"></A>
+<A NAME="IDX215"></A>
<DT><CODE>character-search-backward (M-C-])</CODE>
-<DD><A NAME="IDX210"></A>
+<DD><A NAME="IDX216"></A>
Read a character and move point to the previous occurrence of that character.
A negative argument searches for subsequent occurrences.
<P>
-<A NAME="IDX211"></A>
+<A NAME="IDX217"></A>
<DT><CODE>skip-csi-sequence ()</CODE>
-<DD><A NAME="IDX212"></A>
+<DD><A NAME="IDX218"></A>
Read enough characters to consume a multi-key sequence such as those
defined for keys like Home and End.
-CSI sequences begin with a Control Sequence Indicator (CSI), usually ESC-[.
+CSI sequences begin with a Control Sequence Indicator (CSI), usually
+<KBD>ESC [</KBD>.
If this sequence is bound to "\e[",
-keys producing CSI sequences will have no effect
-unless explicitly bound to a Readline command, instead of inserting
-stray characters into the editing buffer.
-This is unbound by default, but usually bound to ESC-[.
+keys producing CSI sequences have no effect
+unless explicitly bound to a Readline command,
+instead of inserting stray characters into the editing buffer.
+This is unbound by default, but usually bound to
+<KBD>ESC [</KBD>.
<P>
-<A NAME="IDX213"></A>
+<A NAME="IDX219"></A>
<DT><CODE>insert-comment (M-#)</CODE>
-<DD><A NAME="IDX214"></A>
+<DD><A NAME="IDX220"></A>
Without a numeric argument, insert the value of the <CODE>comment-begin</CODE>
variable at the beginning of the current line.
If a numeric argument is supplied, this command acts as a toggle: if
In either case, the line is accepted as if a newline had been typed.
<P>
-<A NAME="IDX215"></A>
+<A NAME="IDX221"></A>
<DT><CODE>dump-functions ()</CODE>
-<DD><A NAME="IDX216"></A>
+<DD><A NAME="IDX222"></A>
Print all of the functions and their key bindings
to the Readline output stream.
If a numeric argument is supplied,
This command is unbound by default.
<P>
-<A NAME="IDX217"></A>
+<A NAME="IDX223"></A>
<DT><CODE>dump-variables ()</CODE>
-<DD><A NAME="IDX218"></A>
+<DD><A NAME="IDX224"></A>
Print all of the settable variables and their values
to the Readline output stream.
If a numeric argument is supplied,
This command is unbound by default.
<P>
-<A NAME="IDX219"></A>
+<A NAME="IDX225"></A>
<DT><CODE>dump-macros ()</CODE>
-<DD><A NAME="IDX220"></A>
+<DD><A NAME="IDX226"></A>
Print all of the Readline key sequences bound to macros and the
strings they output
to the Readline output stream.
This command is unbound by default.
<P>
-<A NAME="IDX221"></A>
+<A NAME="IDX227"></A>
<DT><CODE>execute-named-command (M-x)</CODE>
-<DD><A NAME="IDX222"></A>
+<DD><A NAME="IDX228"></A>
Read a bindable Readline command name from the input and execute the
function to which it's bound, as if the key sequence to which it was
bound appeared in the input.
argument to the function it executes.
<P>
-<A NAME="IDX223"></A>
+<A NAME="IDX229"></A>
<DT><CODE>emacs-editing-mode (C-e)</CODE>
-<DD><A NAME="IDX224"></A>
+<DD><A NAME="IDX230"></A>
When in <CODE>vi</CODE> command mode, this causes a switch to <CODE>emacs</CODE>
editing mode.
<P>
-<A NAME="IDX225"></A>
+<A NAME="IDX231"></A>
<DT><CODE>vi-editing-mode (M-C-j)</CODE>
-<DD><A NAME="IDX226"></A>
+<DD><A NAME="IDX232"></A>
When in <CODE>emacs</CODE> editing mode, this causes a switch to <CODE>vi</CODE>
editing mode.
<P>
<CODE>fgets()</CODE>.
</P><P>
-<A NAME="IDX227"></A>
-<A NAME="IDX228"></A>
+<A NAME="IDX233"></A>
+<A NAME="IDX234"></A>
</P><P>
The function <CODE>readline()</CODE> prints a prompt <VAR>prompt</VAR>
These variables are available to function writers.
</P><P>
-<A NAME="IDX229"></A>
+<A NAME="IDX235"></A>
<DL>
<DT><U>Variable:</U> char * <B>rl_line_buffer</B>
<DD>This is the line gathered so far.
</DL>
</P><P>
-<A NAME="IDX230"></A>
+<A NAME="IDX236"></A>
<DL>
<DT><U>Variable:</U> int <B>rl_point</B>
<DD>The offset of the current cursor position in <CODE>rl_line_buffer</CODE>
</DL>
</P><P>
-<A NAME="IDX231"></A>
+<A NAME="IDX237"></A>
<DL>
<DT><U>Variable:</U> int <B>rl_end</B>
<DD>The number of characters present in <CODE>rl_line_buffer</CODE>.
</DL>
</P><P>
-<A NAME="IDX232"></A>
+<A NAME="IDX238"></A>
<DL>
<DT><U>Variable:</U> int <B>rl_mark</B>
<DD>The <VAR>mark</VAR> (saved position) in the current line.
</DL>
</P><P>
-<A NAME="IDX233"></A>
+<A NAME="IDX239"></A>
<DL>
<DT><U>Variable:</U> int <B>rl_done</B>
<DD>Setting this to a non-zero value causes Readline to return the current
</DL>
</P><P>
-<A NAME="IDX234"></A>
+<A NAME="IDX240"></A>
<DL>
<DT><U>Variable:</U> int <B>rl_eof_found</B>
<DD>Readline will set this variable when it has read an EOF character
</DL>
</P><P>
-<A NAME="IDX235"></A>
+<A NAME="IDX241"></A>
<DL>
<DT><U>Variable:</U> int <B>rl_num_chars_to_read</B>
<DD>Setting this to a positive value before calling <CODE>readline()</CODE> causes
</DL>
</P><P>
-<A NAME="IDX236"></A>
+<A NAME="IDX242"></A>
<DL>
<DT><U>Variable:</U> int <B>rl_pending_input</B>
<DD>Setting this to a value makes it the next keystroke read.
</DL>
</P><P>
-<A NAME="IDX237"></A>
+<A NAME="IDX243"></A>
<DL>
<DT><U>Variable:</U> int <B>rl_dispatching</B>
<DD>Set to a non-zero value if a function is being called from a key binding;
</DL>
</P><P>
-<A NAME="IDX238"></A>
+<A NAME="IDX244"></A>
<DL>
<DT><U>Variable:</U> int <B>rl_erase_empty_line</B>
<DD>Setting this to a non-zero value causes Readline to completely erase
</DL>
</P><P>
-<A NAME="IDX239"></A>
+<A NAME="IDX245"></A>
<DL>
<DT><U>Variable:</U> char * <B>rl_prompt</B>
<DD>The prompt Readline uses.
</DL>
</P><P>
-<A NAME="IDX240"></A>
+<A NAME="IDX246"></A>
<DL>
<DT><U>Variable:</U> char * <B>rl_display_prompt</B>
<DD>The string displayed as the prompt.
</DL>
</P><P>
-<A NAME="IDX241"></A>
+<A NAME="IDX247"></A>
<DL>
<DT><U>Variable:</U> int <B>rl_already_prompted</B>
<DD>If an application wishes to display the prompt itself, rather than have
</DL>
</P><P>
-<A NAME="IDX242"></A>
+<A NAME="IDX248"></A>
<DL>
<DT><U>Variable:</U> const char * <B>rl_library_version</B>
<DD>The version number of this revision of the Readline library, as a string
</DL>
</P><P>
-<A NAME="IDX243"></A>
+<A NAME="IDX249"></A>
<DL>
<DT><U>Variable:</U> int <B>rl_readline_version</B>
<DD>An integer encoding the current version of the library.
</DL>
</P><P>
-<A NAME="IDX244"></A>
+<A NAME="IDX250"></A>
<DL>
<DT><U>Variable:</U> int <B>rl_gnu_readline_p</B>
<DD>Always set to 1, denoting that this is GNU Readline rather than some
</DL>
</P><P>
-<A NAME="IDX245"></A>
+<A NAME="IDX251"></A>
<DL>
<DT><U>Variable:</U> const char * <B>rl_terminal_name</B>
<DD>The terminal type, used for initialization.
</DL>
</P><P>
-<A NAME="IDX246"></A>
+<A NAME="IDX252"></A>
<DL>
<DT><U>Variable:</U> const char * <B>rl_readline_name</B>
<DD>This variable is set to a unique name by each application using Readline.
</DL>
</P><P>
-<A NAME="IDX247"></A>
+<A NAME="IDX253"></A>
<DL>
<DT><U>Variable:</U> FILE * <B>rl_instream</B>
<DD>The stdio stream from which Readline reads input.
</DL>
</P><P>
-<A NAME="IDX248"></A>
+<A NAME="IDX254"></A>
<DL>
<DT><U>Variable:</U> FILE * <B>rl_outstream</B>
<DD>The stdio stream to which Readline performs output.
</DL>
</P><P>
-<A NAME="IDX249"></A>
+<A NAME="IDX255"></A>
<DL>
<DT><U>Variable:</U> int <B>rl_prefer_env_winsize</B>
<DD>If non-zero, Readline gives values found in the <CODE>LINES</CODE> and
</DL>
</P><P>
-<A NAME="IDX250"></A>
+<A NAME="IDX256"></A>
<DL>
<DT><U>Variable:</U> rl_command_func_t * <B>rl_last_func</B>
<DD>The address of the last command function Readline executed.
</DL>
</P><P>
-<A NAME="IDX251"></A>
+<A NAME="IDX257"></A>
<DL>
<DT><U>Variable:</U> rl_hook_func_t * <B>rl_startup_hook</B>
<DD>If non-zero, this is the address of a function to call just
</DL>
</P><P>
-<A NAME="IDX252"></A>
+<A NAME="IDX258"></A>
<DL>
<DT><U>Variable:</U> rl_hook_func_t * <B>rl_pre_input_hook</B>
<DD>If non-zero, this is the address of a function to call after
</DL>
</P><P>
-<A NAME="IDX253"></A>
+<A NAME="IDX259"></A>
<DL>
<DT><U>Variable:</U> rl_hook_func_t * <B>rl_event_hook</B>
<DD>If non-zero, this is the address of a function to call periodically
</DL>
</P><P>
-<A NAME="IDX254"></A>
+<A NAME="IDX260"></A>
<DL>
<DT><U>Variable:</U> rl_getc_func_t * <B>rl_getc_function</B>
<DD>If non-zero, Readline will call indirectly through this pointer
</DL>
</P><P>
-<A NAME="IDX255"></A>
+<A NAME="IDX261"></A>
<DL>
<DT><U>Variable:</U> rl_hook_func_t * <B>rl_signal_event_hook</B>
<DD>If non-zero, this is the address of a function to call if a read system
</DL>
</P><P>
-<A NAME="IDX256"></A>
+<A NAME="IDX262"></A>
<DL>
<DT><U>Variable:</U> rl_hook_func_t * <B>rl_timeout_event_hook</B>
<DD>If non-zero, this is the address of a function to call if Readline times
</DL>
</P><P>
-<A NAME="IDX257"></A>
+<A NAME="IDX263"></A>
<DL>
<DT><U>Variable:</U> rl_hook_func_t * <B>rl_input_available_hook</B>
<DD>If non-zero, Readline will use this function's return value when it needs
</DL>
</P><P>
-<A NAME="IDX258"></A>
+<A NAME="IDX264"></A>
<DL>
<DT><U>Variable:</U> rl_voidfunc_t * <B>rl_redisplay_function</B>
<DD>Readline will call indirectly through this pointer
</DL>
</P><P>
-<A NAME="IDX259"></A>
+<A NAME="IDX265"></A>
<DL>
<DT><U>Variable:</U> rl_vintfunc_t * <B>rl_prep_term_function</B>
<DD>If non-zero, Readline will call indirectly through this pointer
</DL>
</P><P>
-<A NAME="IDX260"></A>
+<A NAME="IDX266"></A>
<DL>
<DT><U>Variable:</U> rl_voidfunc_t * <B>rl_deprep_term_function</B>
<DD>If non-zero, Readline will call indirectly through this pointer
</DL>
</P><P>
-<A NAME="IDX261"></A>
+<A NAME="IDX267"></A>
<DL>
<DT><U>Variable:</U> void <B>rl_macro_display_hook</B>
<DD>If set, this points to a function that <CODE>rl_macro_dumper</CODE> will call to
</DL>
</P><P>
-<A NAME="IDX262"></A>
+<A NAME="IDX268"></A>
<DL>
<DT><U>Variable:</U> Keymap <B>rl_executing_keymap</B>
<DD>This variable is set to the keymap (see section <A HREF="readline.html#SEC31">2.4.2 Selecting a Keymap</A>) in which the
</DL>
</P><P>
-<A NAME="IDX263"></A>
+<A NAME="IDX269"></A>
<DL>
<DT><U>Variable:</U> Keymap <B>rl_binding_keymap</B>
<DD>This variable is set to the keymap (see section <A HREF="readline.html#SEC31">2.4.2 Selecting a Keymap</A>) in which the
</DL>
</P><P>
-<A NAME="IDX264"></A>
+<A NAME="IDX270"></A>
<DL>
<DT><U>Variable:</U> char * <B>rl_executing_macro</B>
<DD>This variable is set to the text of any currently-executing macro.
</DL>
</P><P>
-<A NAME="IDX265"></A>
+<A NAME="IDX271"></A>
<DL>
<DT><U>Variable:</U> int <B>rl_executing_key</B>
<DD>The key that caused the dispatch to the currently-executing Readline function.
</DL>
</P><P>
-<A NAME="IDX266"></A>
+<A NAME="IDX272"></A>
<DL>
<DT><U>Variable:</U> char * <B>rl_executing_keyseq</B>
<DD>The full key sequence that caused the dispatch to the currently-executing
</DL>
</P><P>
-<A NAME="IDX267"></A>
+<A NAME="IDX273"></A>
<DL>
<DT><U>Variable:</U> int <B>rl_key_sequence_length</B>
<DD>The number of characters in <VAR>rl_executing_keyseq</VAR>.
</DL>
</P><P>
-<A NAME="IDX268"></A>
+<A NAME="IDX274"></A>
<DL>
<DT><U>Variable:</U> int <B>rl_readline_state</B>
<DD>A variable with bit values that encapsulate the current Readline state.
</DL>
</P><P>
-<A NAME="IDX269"></A>
+<A NAME="IDX275"></A>
<DL>
<DT><U>Variable:</U> int <B>rl_explicit_arg</B>
<DD>Set to a non-zero value if an explicit numeric argument was specified by
</DL>
</P><P>
-<A NAME="IDX270"></A>
+<A NAME="IDX276"></A>
<DL>
<DT><U>Variable:</U> int <B>rl_numeric_arg</B>
<DD>Set to the value of any numeric argument explicitly specified by the user
</DL>
</P><P>
-<A NAME="IDX271"></A>
+<A NAME="IDX277"></A>
<DL>
<DT><U>Variable:</U> int <B>rl_editing_mode</B>
<DD>Set to a value denoting Readline's current editing mode.
Readline provides a function for doing that:
</P><P>
-<A NAME="IDX272"></A>
+<A NAME="IDX278"></A>
<DL>
<DT><U>Function:</U> int <B>rl_add_defun</B> <I>(const char *name, rl_command_func_t *function, int key)</I>
<DD>Add <VAR>name</VAR> to the list of named functions.
Readline which keymap to use.
</P><P>
-<A NAME="IDX273"></A>
+<A NAME="IDX279"></A>
<DL>
<DT><U>Function:</U> Keymap <B>rl_make_bare_keymap</B> <I>(void)</I>
<DD>Returns a new, empty keymap.
</DL>
</P><P>
-<A NAME="IDX274"></A>
+<A NAME="IDX280"></A>
<DL>
<DT><U>Function:</U> Keymap <B>rl_copy_keymap</B> <I>(Keymap map)</I>
<DD>Return a new keymap which is a copy of <VAR>map</VAR>.
</DL>
</P><P>
-<A NAME="IDX275"></A>
+<A NAME="IDX281"></A>
<DL>
<DT><U>Function:</U> Keymap <B>rl_make_keymap</B> <I>(void)</I>
<DD>Return a new keymap with the printing characters bound to rl_insert,
</DL>
</P><P>
-<A NAME="IDX276"></A>
+<A NAME="IDX282"></A>
<DL>
<DT><U>Function:</U> void <B>rl_discard_keymap</B> <I>(Keymap keymap)</I>
<DD>Free the storage associated with the data in <VAR>keymap</VAR>.
</DL>
</P><P>
-<A NAME="IDX277"></A>
+<A NAME="IDX283"></A>
<DL>
<DT><U>Function:</U> void <B>rl_free_keymap</B> <I>(Keymap keymap)</I>
<DD>Free all storage associated with <VAR>keymap</VAR>.
</DL>
</P><P>
-<A NAME="IDX278"></A>
+<A NAME="IDX284"></A>
<DL>
<DT><U>Function:</U> int <B>rl_empty_keymap</B> <I>(Keymap keymap)</I>
<DD>Return non-zero if there are no keys bound to functions in <VAR>keymap</VAR>;
This is one way to switch editing modes, for example.
</P><P>
-<A NAME="IDX279"></A>
+<A NAME="IDX285"></A>
<DL>
<DT><U>Function:</U> Keymap <B>rl_get_keymap</B> <I>(void)</I>
<DD>Returns the currently active keymap.
</DL>
</P><P>
-<A NAME="IDX280"></A>
+<A NAME="IDX286"></A>
<DL>
<DT><U>Function:</U> void <B>rl_set_keymap</B> <I>(Keymap keymap)</I>
<DD>Makes <VAR>keymap</VAR> the currently active keymap.
</DL>
</P><P>
-<A NAME="IDX281"></A>
+<A NAME="IDX287"></A>
<DL>
<DT><U>Function:</U> Keymap <B>rl_get_keymap_by_name</B> <I>(const char *name)</I>
<DD>Return the keymap matching <VAR>name</VAR>.
</DL>
</P><P>
-<A NAME="IDX282"></A>
+<A NAME="IDX288"></A>
<DL>
<DT><U>Function:</U> char * <B>rl_get_keymap_name</B> <I>(Keymap keymap)</I>
<DD>Return the name matching <VAR>keymap</VAR>.
</DL>
</P><P>
-<A NAME="IDX283"></A>
+<A NAME="IDX289"></A>
<DL>
<DT><U>Function:</U> int <B>rl_set_keymap_name</B> <I>(const char *name, Keymap keymap)</I>
<DD>Set the name of <VAR>keymap</VAR>.
These functions manage key bindings.
</P><P>
-<A NAME="IDX284"></A>
+<A NAME="IDX290"></A>
<DL>
<DT><U>Function:</U> int <B>rl_bind_key</B> <I>(int key, rl_command_func_t *function)</I>
<DD>Binds <VAR>key</VAR> to <VAR>function</VAR> in the currently active keymap.
</DL>
</P><P>
-<A NAME="IDX285"></A>
+<A NAME="IDX291"></A>
<DL>
<DT><U>Function:</U> int <B>rl_bind_key_in_map</B> <I>(int key, rl_command_func_t *function, Keymap map)</I>
<DD>Bind <VAR>key</VAR> to <VAR>function</VAR> in <VAR>map</VAR>.
</DL>
</P><P>
-<A NAME="IDX286"></A>
+<A NAME="IDX292"></A>
<DL>
<DT><U>Function:</U> int <B>rl_bind_key_if_unbound</B> <I>(int key, rl_command_func_t *function)</I>
<DD>Binds <VAR>key</VAR> to <VAR>function</VAR> if it is not already bound in the
</DL>
</P><P>
-<A NAME="IDX287"></A>
+<A NAME="IDX293"></A>
<DL>
<DT><U>Function:</U> int <B>rl_bind_key_if_unbound_in_map</B> <I>(int key, rl_command_func_t *function, Keymap map)</I>
<DD>Binds <VAR>key</VAR> to <VAR>function</VAR> if it is not already bound in <VAR>map</VAR>.
</DL>
</P><P>
-<A NAME="IDX288"></A>
+<A NAME="IDX294"></A>
<DL>
<DT><U>Function:</U> int <B>rl_unbind_key</B> <I>(int key)</I>
<DD>Bind <VAR>key</VAR> to the null function in the currently active keymap.
</DL>
</P><P>
-<A NAME="IDX289"></A>
+<A NAME="IDX295"></A>
<DL>
<DT><U>Function:</U> int <B>rl_unbind_key_in_map</B> <I>(int key, Keymap map)</I>
<DD>Bind <VAR>key</VAR> to the null function in <VAR>map</VAR>.
</DL>
</P><P>
-<A NAME="IDX290"></A>
+<A NAME="IDX296"></A>
<DL>
<DT><U>Function:</U> int <B>rl_unbind_function_in_map</B> <I>(rl_command_func_t *function, Keymap map)</I>
<DD>Unbind all keys that execute <VAR>function</VAR> in <VAR>map</VAR>.
</DL>
</P><P>
-<A NAME="IDX291"></A>
+<A NAME="IDX297"></A>
<DL>
<DT><U>Function:</U> int <B>rl_unbind_command_in_map</B> <I>(const char *command, Keymap map)</I>
<DD>Unbind all keys that are bound to <VAR>command</VAR> in <VAR>map</VAR>.
</DL>
</P><P>
-<A NAME="IDX292"></A>
+<A NAME="IDX298"></A>
<DL>
<DT><U>Function:</U> int <B>rl_bind_keyseq</B> <I>(const char *keyseq, rl_command_func_t *function)</I>
<DD>Bind the key sequence represented by the string <VAR>keyseq</VAR> to the function
</DL>
</P><P>
-<A NAME="IDX293"></A>
+<A NAME="IDX299"></A>
<DL>
<DT><U>Function:</U> int <B>rl_bind_keyseq_in_map</B> <I>(const char *keyseq, rl_command_func_t *function, Keymap map)</I>
<DD>Bind the key sequence represented by the string <VAR>keyseq</VAR> to the function
</DL>
</P><P>
-<A NAME="IDX294"></A>
+<A NAME="IDX300"></A>
<DL>
<DT><U>Function:</U> int <B>rl_set_key</B> <I>(const char *keyseq, rl_command_func_t *function, Keymap map)</I>
<DD>Equivalent to <CODE>rl_bind_keyseq_in_map</CODE>.
</DL>
</P><P>
-<A NAME="IDX295"></A>
+<A NAME="IDX301"></A>
<DL>
<DT><U>Function:</U> int <B>rl_bind_keyseq_if_unbound</B> <I>(const char *keyseq, rl_command_func_t *function)</I>
<DD>Binds <VAR>keyseq</VAR> to <VAR>function</VAR> if it is not already bound in the
</DL>
</P><P>
-<A NAME="IDX296"></A>
+<A NAME="IDX302"></A>
<DL>
<DT><U>Function:</U> int <B>rl_bind_keyseq_if_unbound_in_map</B> <I>(const char *keyseq, rl_command_func_t *function, Keymap map)</I>
<DD>Binds <VAR>keyseq</VAR> to <VAR>function</VAR> if it is not already bound in <VAR>map</VAR>.
</DL>
</P><P>
-<A NAME="IDX297"></A>
+<A NAME="IDX303"></A>
<DL>
<DT><U>Function:</U> int <B>rl_generic_bind</B> <I>(int type, const char *keyseq, char *data, Keymap map)</I>
<DD>Bind the key sequence represented by the string <VAR>keyseq</VAR> to the arbitrary
</DL>
</P><P>
-<A NAME="IDX298"></A>
+<A NAME="IDX304"></A>
<DL>
<DT><U>Function:</U> int <B>rl_parse_and_bind</B> <I>(char *line)</I>
<DD>Parse <VAR>line</VAR> as if it had been read from the <CODE>inputrc</CODE> file and
</DL>
</P><P>
-<A NAME="IDX299"></A>
+<A NAME="IDX305"></A>
<DL>
<DT><U>Function:</U> int <B>rl_read_init_file</B> <I>(const char *filename)</I>
<DD>Read keybindings and variable assignments from <VAR>filename</VAR>
You may also associate a new function name with an arbitrary function.
</P><P>
-<A NAME="IDX300"></A>
+<A NAME="IDX306"></A>
<DL>
<DT><U>Function:</U> rl_command_func_t * <B>rl_named_function</B> <I>(const char *name)</I>
<DD>Return the function with name <VAR>name</VAR>.
</DL>
</P><P>
-<A NAME="IDX301"></A>
+<A NAME="IDX307"></A>
<DL>
<DT><U>Function:</U> rl_command_func_t * <B>rl_function_of_keyseq</B> <I>(const char *keyseq, Keymap map, int *type)</I>
<DD>Return the function invoked by <VAR>keyseq</VAR> in keymap <VAR>map</VAR>.
</DL>
</P><P>
-<A NAME="IDX302"></A>
+<A NAME="IDX308"></A>
<DL>
<DT><U>Function:</U> rl_command_func_t * <B>rl_function_of_keyseq_len</B> <I>(const char *keyseq, size_t len, Keymap map, int *type)</I>
<DD>Return the function invoked by <VAR>keyseq</VAR> of length <VAR>len</VAR>
</DL>
</P><P>
-<A NAME="IDX303"></A>
+<A NAME="IDX309"></A>
<DL>
<DT><U>Function:</U> int <B>rl_trim_arg_from_keyseq</B> <I>(const char *keyseq, size_t len, Keymap map)</I>
<DD>If there is a numeric argument at the beginning of <VAR>keyseq</VAR>, possibly
</DL>
</P><P>
-<A NAME="IDX304"></A>
+<A NAME="IDX310"></A>
<DL>
<DT><U>Function:</U> char ** <B>rl_invoking_keyseqs</B> <I>(rl_command_func_t *function)</I>
<DD>Return an array of strings representing the key sequences used to
</DL>
</P><P>
-<A NAME="IDX305"></A>
+<A NAME="IDX311"></A>
<DL>
<DT><U>Function:</U> char ** <B>rl_invoking_keyseqs_in_map</B> <I>(rl_command_func_t *function, Keymap map)</I>
<DD>Return an array of strings representing the key sequences used to
</DL>
</P><P>
-<A NAME="IDX306"></A>
+<A NAME="IDX312"></A>
<DL>
<DT><U>Function:</U> void <B>rl_print_keybinding</B> <I>(const char *name, Keymap map, int readable)</I>
<DD>Print key sequences bound to Readline function name <VAR>name</VAR> in
</DL>
</P><P>
-<A NAME="IDX307"></A>
+<A NAME="IDX313"></A>
<DL>
<DT><U>Function:</U> void <B>rl_function_dumper</B> <I>(int readable)</I>
<DD>Print the Readline function names and the key sequences currently
</DL>
</P><P>
-<A NAME="IDX308"></A>
+<A NAME="IDX314"></A>
<DL>
<DT><U>Function:</U> void <B>rl_list_funmap_names</B> <I>(void)</I>
<DD>Print the names of all bindable Readline functions to <CODE>rl_outstream</CODE>.
</DL>
</P><P>
-<A NAME="IDX309"></A>
+<A NAME="IDX315"></A>
<DL>
<DT><U>Function:</U> const char ** <B>rl_funmap_names</B> <I>(void)</I>
<DD>Return a NULL terminated array of known function names.
</DL>
</P><P>
-<A NAME="IDX310"></A>
+<A NAME="IDX316"></A>
<DL>
<DT><U>Function:</U> int <B>rl_add_funmap_entry</B> <I>(const char *name, rl_command_func_t *function)</I>
<DD>Add <VAR>name</VAR> to the list of bindable Readline command names, and make
undone together.
</P><P>
-<A NAME="IDX311"></A>
+<A NAME="IDX317"></A>
<DL>
<DT><U>Function:</U> int <B>rl_begin_undo_group</B> <I>(void)</I>
<DD>Begins saving undo information in a group construct.
</DL>
</P><P>
-<A NAME="IDX312"></A>
+<A NAME="IDX318"></A>
<DL>
<DT><U>Function:</U> int <B>rl_end_undo_group</B> <I>(void)</I>
<DD>Closes the current undo group started with <CODE>rl_begin_undo_group()</CODE>.
</DL>
</P><P>
-<A NAME="IDX313"></A>
+<A NAME="IDX319"></A>
<DL>
<DT><U>Function:</U> void <B>rl_add_undo</B> <I>(enum undo_code what, int start, int end, char *text)</I>
<DD>Remember how to undo an event (according to <VAR>what</VAR>).
</DL>
</P><P>
-<A NAME="IDX314"></A>
+<A NAME="IDX320"></A>
<DL>
<DT><U>Function:</U> void <B>rl_free_undo_list</B> <I>(void)</I>
<DD>Free the existing undo list.
</DL>
</P><P>
-<A NAME="IDX315"></A>
+<A NAME="IDX321"></A>
<DL>
<DT><U>Function:</U> int <B>rl_do_undo</B> <I>(void)</I>
<DD>Undo the first thing on the undo list.
Readline will create an undo group for you.
</P><P>
-<A NAME="IDX316"></A>
+<A NAME="IDX322"></A>
<DL>
<DT><U>Function:</U> int <B>rl_modifying</B> <I>(int start, int end)</I>
<DD>Tell Readline to save the text between <VAR>start</VAR> and <VAR>end</VAR> as a
<!--docid::SEC35::-->
<P>
-<A NAME="IDX317"></A>
+<A NAME="IDX323"></A>
<DL>
<DT><U>Function:</U> void <B>rl_redisplay</B> <I>(void)</I>
<DD>Change what's displayed on the screen to reflect the current contents
</DL>
</P><P>
-<A NAME="IDX318"></A>
+<A NAME="IDX324"></A>
<DL>
<DT><U>Function:</U> int <B>rl_forced_update_display</B> <I>(void)</I>
<DD>Force the line to be updated and redisplayed, whether or not
</DL>
</P><P>
-<A NAME="IDX319"></A>
+<A NAME="IDX325"></A>
<DL>
<DT><U>Function:</U> int <B>rl_on_new_line</B> <I>(void)</I>
<DD>Tell the update functions that we have moved onto a new (empty) line,
</DL>
</P><P>
-<A NAME="IDX320"></A>
+<A NAME="IDX326"></A>
<DL>
<DT><U>Function:</U> int <B>rl_on_new_line_with_prompt</B> <I>(void)</I>
<DD>Tell the update functions that we have moved onto a new line, with
</DL>
</P><P>
-<A NAME="IDX321"></A>
+<A NAME="IDX327"></A>
<DL>
<DT><U>Function:</U> int <B>rl_clear_visible_line</B> <I>(void)</I>
<DD>Clear the screen lines corresponding to the current line's contents.
</DL>
</P><P>
-<A NAME="IDX322"></A>
+<A NAME="IDX328"></A>
<DL>
<DT><U>Function:</U> int <B>rl_reset_line_state</B> <I>(void)</I>
<DD>Reset the display state to a clean state and redisplay the current line
</DL>
</P><P>
-<A NAME="IDX323"></A>
+<A NAME="IDX329"></A>
<DL>
<DT><U>Function:</U> int <B>rl_crlf</B> <I>(void)</I>
<DD>Move the cursor to the start of the next screen line.
</DL>
</P><P>
-<A NAME="IDX324"></A>
+<A NAME="IDX330"></A>
<DL>
<DT><U>Function:</U> int <B>rl_show_char</B> <I>(int c)</I>
<DD>Display character <VAR>c</VAR> on <CODE>rl_outstream</CODE>.
</DL>
</P><P>
-<A NAME="IDX325"></A>
+<A NAME="IDX331"></A>
<DL>
<DT><U>Function:</U> int <B>rl_message</B> <I>(const char *, <small>...</small>)</I>
<DD>The arguments are a format string as would be supplied to <CODE>printf</CODE>,
</DL>
</P><P>
-<A NAME="IDX326"></A>
+<A NAME="IDX332"></A>
<DL>
<DT><U>Function:</U> int <B>rl_clear_message</B> <I>(void)</I>
<DD>Clear the message in the echo area.
</DL>
</P><P>
-<A NAME="IDX327"></A>
+<A NAME="IDX333"></A>
<DL>
<DT><U>Function:</U> void <B>rl_save_prompt</B> <I>(void)</I>
<DD>Save the local Readline prompt display state in preparation for
</DL>
</P><P>
-<A NAME="IDX328"></A>
+<A NAME="IDX334"></A>
<DL>
<DT><U>Function:</U> void <B>rl_restore_prompt</B> <I>(void)</I>
<DD>Restore the local Readline prompt display state saved by the most
</DL>
</P><P>
-<A NAME="IDX329"></A>
+<A NAME="IDX335"></A>
<DL>
<DT><U>Function:</U> int <B>rl_expand_prompt</B> <I>(char *prompt)</I>
<DD>Expand any special character sequences in <VAR>prompt</VAR> and set up the
</DL>
</P><P>
-<A NAME="IDX330"></A>
+<A NAME="IDX336"></A>
<DL>
<DT><U>Function:</U> int <B>rl_set_prompt</B> <I>(const char *prompt)</I>
<DD>Make Readline use <VAR>prompt</VAR> for subsequent redisplay.
<!--docid::SEC36::-->
<P>
-<A NAME="IDX331"></A>
+<A NAME="IDX337"></A>
<DL>
<DT><U>Function:</U> int <B>rl_insert_text</B> <I>(const char *text)</I>
<DD>Insert <VAR>text</VAR> into the line at the current cursor position.
</DL>
</P><P>
-<A NAME="IDX332"></A>
+<A NAME="IDX338"></A>
<DL>
<DT><U>Function:</U> int <B>rl_delete_text</B> <I>(int start, int end)</I>
<DD>Delete the text between <VAR>start</VAR> and <VAR>end</VAR> in the current line.
</DL>
</P><P>
-<A NAME="IDX333"></A>
+<A NAME="IDX339"></A>
<DL>
<DT><U>Function:</U> char * <B>rl_copy_text</B> <I>(int start, int end)</I>
<DD>Return a copy of the text between <VAR>start</VAR> and <VAR>end</VAR> in
</DL>
</P><P>
-<A NAME="IDX334"></A>
+<A NAME="IDX340"></A>
<DL>
<DT><U>Function:</U> int <B>rl_kill_text</B> <I>(int start, int end)</I>
<DD>Copy the text between <VAR>start</VAR> and <VAR>end</VAR> in the current line
</DL>
</P><P>
-<A NAME="IDX335"></A>
+<A NAME="IDX341"></A>
<DL>
<DT><U>Function:</U> void <B>rl_replace_line</B> <I>(const char *text, int clear_undo)</I>
<DD>Replace the contents of <CODE>rl_line_buffer</CODE> with <VAR>text</VAR>.
</DL>
</P><P>
-<A NAME="IDX336"></A>
+<A NAME="IDX342"></A>
<DL>
<DT><U>Function:</U> int <B>rl_push_macro_input</B> <I>(char *macro)</I>
<DD>Insert <VAR>macro</VAR> into the line, as if it had been invoked
<!--docid::SEC37::-->
<P>
-<A NAME="IDX337"></A>
+<A NAME="IDX343"></A>
<DL>
<DT><U>Function:</U> int <B>rl_read_key</B> <I>(void)</I>
<DD>Return the next character available from Readline's current input stream.
</DL>
</P><P>
-<A NAME="IDX338"></A>
+<A NAME="IDX344"></A>
<DL>
<DT><U>Function:</U> int <B>rl_getc</B> <I>(FILE *stream)</I>
<DD>Return the next character available from <VAR>stream</VAR>, which is assumed to
</DL>
</P><P>
-<A NAME="IDX339"></A>
+<A NAME="IDX345"></A>
<DL>
<DT><U>Function:</U> int <B>rl_stuff_char</B> <I>(int c)</I>
<DD>Insert <VAR>c</VAR> into the Readline input stream.
</DL>
</P><P>
-<A NAME="IDX340"></A>
+<A NAME="IDX346"></A>
<DL>
<DT><U>Function:</U> int <B>rl_execute_next</B> <I>(int c)</I>
<DD>Make <VAR>c</VAR> be the next command to be executed when <CODE>rl_read_key()</CODE>
</DL>
</P><P>
-<A NAME="IDX341"></A>
+<A NAME="IDX347"></A>
<DL>
<DT><U>Function:</U> int <B>rl_clear_pending_input</B> <I>(void)</I>
<DD>Unset <VAR>rl_pending_input</VAR>, effectively negating the effect of any
</DL>
</P><P>
-<A NAME="IDX342"></A>
+<A NAME="IDX348"></A>
<DL>
<DT><U>Function:</U> int <B>rl_set_keyboard_input_timeout</B> <I>(int u)</I>
<DD>While waiting for keyboard input in <CODE>rl_read_key()</CODE>, Readline will
</DL>
</P><P>
-<A NAME="IDX343"></A>
+<A NAME="IDX349"></A>
<DL>
<DT><U>Function:</U> int <B>rl_set_timeout</B> <I>(unsigned int secs, unsigned int usecs)</I>
<DD>Set a timeout for subsequent calls to <CODE>readline()</CODE>.
</DL>
</P><P>
-<A NAME="IDX344"></A>
+<A NAME="IDX350"></A>
<DL>
<DT><U>Function:</U> int <B>rl_timeout_remaining</B> <I>(unsigned int *secs, unsigned int *usecs)</I>
<DD>Return the number of seconds and microseconds remaining in the current
<!--docid::SEC38::-->
<P>
-<A NAME="IDX345"></A>
+<A NAME="IDX351"></A>
<DL>
<DT><U>Function:</U> void <B>rl_prep_terminal</B> <I>(int meta_flag)</I>
<DD>Modify the terminal settings for Readline's use, so <CODE>readline()</CODE>
</DL>
</P><P>
-<A NAME="IDX346"></A>
+<A NAME="IDX352"></A>
<DL>
<DT><U>Function:</U> void <B>rl_deprep_terminal</B> <I>(void)</I>
<DD>Undo the effects of <CODE>rl_prep_terminal()</CODE>, leaving the terminal in
</DL>
</P><P>
-<A NAME="IDX347"></A>
+<A NAME="IDX353"></A>
<DL>
<DT><U>Function:</U> void <B>rl_tty_set_default_bindings</B> <I>(Keymap kmap)</I>
<DD>Read the operating system's terminal editing characters (as would be
</DL>
</P><P>
-<A NAME="IDX348"></A>
+<A NAME="IDX354"></A>
<DL>
<DT><U>Function:</U> void <B>rl_tty_unset_default_bindings</B> <I>(Keymap kmap)</I>
<DD>Reset the bindings manipulated by <CODE>rl_tty_set_default_bindings</CODE> so
</DL>
</P><P>
-<A NAME="IDX349"></A>
+<A NAME="IDX355"></A>
<DL>
<DT><U>Function:</U> int <B>rl_tty_set_echoing</B> <I>(int value)</I>
<DD>Set Readline's idea of whether or not it is
</DL>
</P><P>
-<A NAME="IDX350"></A>
+<A NAME="IDX356"></A>
<DL>
<DT><U>Function:</U> int <B>rl_reset_terminal</B> <I>(const char *terminal_name)</I>
<DD>Reinitialize Readline's idea of the terminal settings using
<!--docid::SEC39::-->
<P>
-<A NAME="IDX351"></A>
+<A NAME="IDX357"></A>
<DL>
<DT><U>Function:</U> int <B>rl_save_state</B> <I>(struct readline_state *sp)</I>
<DD>Save a snapshot of Readline's internal state to <VAR>sp</VAR>.
</DL>
</P><P>
-<A NAME="IDX352"></A>
+<A NAME="IDX358"></A>
<DL>
<DT><U>Function:</U> int <B>rl_restore_state</B> <I>(struct readline_state *sp)</I>
<DD>Restore Readline's internal state to that stored in <VAR>sp</VAR>,
</DL>
</P><P>
-<A NAME="IDX353"></A>
+<A NAME="IDX359"></A>
<DL>
<DT><U>Function:</U> void <B>rl_free</B> <I>(void *mem)</I>
<DD>Deallocate the memory pointed to by <VAR>mem</VAR>.
</DL>
</P><P>
-<A NAME="IDX354"></A>
+<A NAME="IDX360"></A>
<DL>
<DT><U>Function:</U> void <B>rl_extend_line_buffer</B> <I>(int len)</I>
<DD>Ensure that <CODE>rl_line_buffer</CODE> has enough space to hold <VAR>len</VAR>
</DL>
</P><P>
-<A NAME="IDX355"></A>
+<A NAME="IDX361"></A>
<DL>
<DT><U>Function:</U> int <B>rl_initialize</B> <I>(void)</I>
<DD>Initialize or re-initialize Readline's internal state.
</DL>
</P><P>
-<A NAME="IDX356"></A>
+<A NAME="IDX362"></A>
<DL>
<DT><U>Function:</U> int <B>rl_ding</B> <I>(void)</I>
<DD>Ring the terminal bell, obeying the setting of <CODE>bell-style</CODE>.
</DL>
</P><P>
-<A NAME="IDX357"></A>
+<A NAME="IDX363"></A>
<DL>
<DT><U>Function:</U> int <B>rl_alphabetic</B> <I>(int c)</I>
<DD>Return 1 if <VAR>c</VAR> is an alphabetic character.
</DL>
</P><P>
-<A NAME="IDX358"></A>
+<A NAME="IDX364"></A>
<DL>
<DT><U>Function:</U> void <B>rl_display_match_list</B> <I>(char **matches, int len, int max)</I>
<DD>A convenience function for displaying a list of strings in
Applications should refrain from using them.
</P><P>
-<A NAME="IDX359"></A>
+<A NAME="IDX365"></A>
<DL>
<DT><U>Function:</U> int <B>_rl_uppercase_p</B> <I>(int c)</I>
<DD>Return 1 if <VAR>c</VAR> is an uppercase alphabetic character.
</DL>
</P><P>
-<A NAME="IDX360"></A>
+<A NAME="IDX366"></A>
<DL>
<DT><U>Function:</U> int <B>_rl_lowercase_p</B> <I>(int c)</I>
<DD>Return 1 if <VAR>c</VAR> is a lowercase alphabetic character.
</DL>
</P><P>
-<A NAME="IDX361"></A>
+<A NAME="IDX367"></A>
<DL>
<DT><U>Function:</U> int <B>_rl_digit_p</B> <I>(int c)</I>
<DD>Return 1 if <VAR>c</VAR> is a numeric character.
</DL>
</P><P>
-<A NAME="IDX362"></A>
+<A NAME="IDX368"></A>
<DL>
<DT><U>Function:</U> int <B>_rl_to_upper</B> <I>(int c)</I>
<DD>If <VAR>c</VAR> is a lowercase alphabetic character, return the corresponding
</DL>
</P><P>
-<A NAME="IDX363"></A>
+<A NAME="IDX369"></A>
<DL>
<DT><U>Function:</U> int <B>_rl_to_lower</B> <I>(int c)</I>
<DD>If <VAR>c</VAR> is an uppercase alphabetic character, return the corresponding
</DL>
</P><P>
-<A NAME="IDX364"></A>
+<A NAME="IDX370"></A>
<DL>
<DT><U>Function:</U> int <B>_rl_digit_value</B> <I>(int c)</I>
<DD>If <VAR>c</VAR> is a number, return the value it represents.
<!--docid::SEC40::-->
<P>
-<A NAME="IDX365"></A>
+<A NAME="IDX371"></A>
<DL>
<DT><U>Function:</U> int <B>rl_macro_bind</B> <I>(const char *keyseq, const char *macro, Keymap map)</I>
<DD>Bind the key sequence <VAR>keyseq</VAR> to invoke the macro <VAR>macro</VAR>.
</DL>
</P><P>
-<A NAME="IDX366"></A>
+<A NAME="IDX372"></A>
<DL>
<DT><U>Function:</U> void <B>rl_macro_dumper</B> <I>(int readable)</I>
<DD>Print the key sequences bound to macros and their values, using
</DL>
</P><P>
-<A NAME="IDX367"></A>
+<A NAME="IDX373"></A>
<DL>
<DT><U>Function:</U> int <B>rl_variable_bind</B> <I>(const char *variable, const char *value)</I>
<DD>Make the Readline variable <VAR>variable</VAR> have <VAR>value</VAR>.
</DL>
</P><P>
-<A NAME="IDX368"></A>
+<A NAME="IDX374"></A>
<DL>
<DT><U>Function:</U> char * <B>rl_variable_value</B> <I>(const char *variable)</I>
<DD>Return a string representing the value of the Readline variable <VAR>variable</VAR>.
</DL>
</P><P>
-<A NAME="IDX369"></A>
+<A NAME="IDX375"></A>
<DL>
<DT><U>Function:</U> void <B>rl_variable_dumper</B> <I>(int readable)</I>
<DD>Print the Readline variable names and their current values
</DL>
</P><P>
-<A NAME="IDX370"></A>
+<A NAME="IDX376"></A>
<DL>
<DT><U>Function:</U> int <B>rl_set_paren_blink_timeout</B> <I>(int u)</I>
<DD>Set the time interval (in microseconds) that Readline waits when showing
</DL>
</P><P>
-<A NAME="IDX371"></A>
+<A NAME="IDX377"></A>
<DL>
<DT><U>Function:</U> char * <B>rl_get_termcap</B> <I>(const char *cap)</I>
<DD>Retrieve the string value of the termcap capability <VAR>cap</VAR>.
</DL>
</P><P>
-<A NAME="IDX372"></A>
+<A NAME="IDX378"></A>
<DL>
<DT><U>Function:</U> void <B>rl_reparse_colors</B> <I>(void)</I>
<DD>Read or re-read color definitions from <CODE>LS_COLORS</CODE>.
</DL>
</P><P>
-<A NAME="IDX373"></A>
+<A NAME="IDX379"></A>
<DL>
<DT><U>Function:</U> void <B>rl_clear_history</B> <I>(void)</I>
<DD>Clear the history list by deleting all of the entries, in the same manner
</DL>
</P><P>
-<A NAME="IDX374"></A>
+<A NAME="IDX380"></A>
<DL>
<DT><U>Function:</U> void <B>rl_activate_mark</B> <I>(void)</I>
<DD>Enable an <EM>active</EM> region.
</DL>
</P><P>
-<A NAME="IDX375"></A>
+<A NAME="IDX381"></A>
<DL>
<DT><U>Function:</U> void <B>rl_deactivate_mark</B> <I>(void)</I>
<DD>Turn off the active region.
</DL>
</P><P>
-<A NAME="IDX376"></A>
+<A NAME="IDX382"></A>
<DL>
<DT><U>Function:</U> void <B>rl_keep_mark_active</B> <I>(void)</I>
<DD>Indicate that the mark should remain active when the current Readline
</DL>
</P><P>
-<A NAME="IDX377"></A>
+<A NAME="IDX383"></A>
<DL>
<DT><U>Function:</U> int <B>rl_mark_active_p</B> <I>(void)</I>
<DD>Return a non-zero value if the mark is currently active; zero otherwise.
There are functions available to make this easy.
</P><P>
-<A NAME="IDX378"></A>
+<A NAME="IDX384"></A>
<DL>
<DT><U>Function:</U> void <B>rl_callback_handler_install</B> <I>(const char *prompt, rl_vcpfunc_t *line_handler)</I>
<DD>Set up the terminal for Readline I/O and display the initial
</DL>
</P><P>
-<A NAME="IDX379"></A>
+<A NAME="IDX385"></A>
<DL>
<DT><U>Function:</U> void <B>rl_callback_read_char</B> <I>(void)</I>
<DD>Whenever an application determines that keyboard input is available, it
</DL>
</P><P>
-<A NAME="IDX380"></A>
+<A NAME="IDX386"></A>
<DL>
<DT><U>Function:</U> void <B>rl_callback_sigcleanup</B> <I>(void)</I>
<DD>Clean up any internal state the callback interface uses to maintain state
</DL>
</P><P>
-<A NAME="IDX381"></A>
+<A NAME="IDX387"></A>
<DL>
<DT><U>Function:</U> void <B>rl_callback_handler_remove</B> <I>(void)</I>
<DD>Restore the terminal to its initial state and remove the line handler.
is not corrupted.
</P><P>
-<A NAME="IDX382"></A>
+<A NAME="IDX388"></A>
<DL>
<DT><U>Variable:</U> int <B>rl_catch_signals</B>
<DD>If this variable is non-zero, Readline will install signal handlers for
</DL>
</P><P>
-<A NAME="IDX383"></A>
+<A NAME="IDX389"></A>
<DL>
<DT><U>Variable:</U> int <B>rl_catch_sigwinch</B>
<DD>If this variable is set to a non-zero value,
</DL>
</P><P>
-<A NAME="IDX384"></A>
+<A NAME="IDX390"></A>
<DL>
<DT><U>Variable:</U> int <B>rl_persistent_signal_handlers</B>
<DD>If an application using the callback interface wishes Readline's signal
</DL>
</P><P>
-<A NAME="IDX385"></A>
+<A NAME="IDX391"></A>
<DL>
<DT><U>Variable:</U> int <B>rl_change_environment</B>
<DD>If this variable is set to a non-zero value,
and internal state cleanup upon receipt of a signal.
</P><P>
-<A NAME="IDX386"></A>
+<A NAME="IDX392"></A>
<DL>
<DT><U>Function:</U> int <B>rl_pending_signal</B> <I>(void)</I>
<DD>Return the signal number of the most recent signal Readline received but
</DL>
</P><P>
-<A NAME="IDX387"></A>
+<A NAME="IDX393"></A>
<DL>
<DT><U>Function:</U> void <B>rl_cleanup_after_signal</B> <I>(void)</I>
<DD>This function will reset the state of the terminal to what it was before
</DL>
</P><P>
-<A NAME="IDX388"></A>
+<A NAME="IDX394"></A>
<DL>
<DT><U>Function:</U> void <B>rl_free_line_state</B> <I>(void)</I>
<DD>This will free any partial state associated with the current input line
</DL>
</P><P>
-<A NAME="IDX389"></A>
+<A NAME="IDX395"></A>
<DL>
<DT><U>Function:</U> void <B>rl_reset_after_signal</B> <I>(void)</I>
<DD>This will reinitialize the terminal and reinstall any Readline signal
to handle signals received while waiting for input.
</P><P>
-<A NAME="IDX390"></A>
+<A NAME="IDX396"></A>
<DL>
<DT><U>Function:</U> void <B>rl_check_signals</B> <I>(void)</I>
<DD>If there are any pending signals, call Readline's internal signal
a <CODE>SIGWINCH</CODE>.
</P><P>
-<A NAME="IDX391"></A>
+<A NAME="IDX397"></A>
<DL>
<DT><U>Function:</U> void <B>rl_echo_signal_char</B> <I>(int sig)</I>
<DD>If an application wishes to install its own signal handlers, but still
</DL>
</P><P>
-<A NAME="IDX392"></A>
+<A NAME="IDX398"></A>
<DL>
<DT><U>Function:</U> void <B>rl_resize_terminal</B> <I>(void)</I>
<DD>Update Readline's internal screen size by reading values from the kernel.
</DL>
</P><P>
-<A NAME="IDX393"></A>
+<A NAME="IDX399"></A>
<DL>
<DT><U>Function:</U> void <B>rl_set_screen_size</B> <I>(int rows, int cols)</I>
<DD>Set Readline's idea of the terminal size to <VAR>rows</VAR> rows and
of the screen size.
</P><P>
-<A NAME="IDX394"></A>
+<A NAME="IDX400"></A>
<DL>
<DT><U>Function:</U> void <B>rl_get_screen_size</B> <I>(int *rows, int *cols)</I>
<DD>Return Readline's idea of the terminal's size in the
</DL>
</P><P>
-<A NAME="IDX395"></A>
+<A NAME="IDX401"></A>
<DL>
<DT><U>Function:</U> void <B>rl_reset_screen_size</B> <I>(void)</I>
<DD>Cause Readline to reobtain the screen size and recalculate its dimensions.
The following functions install and remove Readline's signal handlers.
</P><P>
-<A NAME="IDX396"></A>
+<A NAME="IDX402"></A>
<DL>
<DT><U>Function:</U> int <B>rl_set_signals</B> <I>(void)</I>
<DD>Install Readline's signal handler for <CODE>SIGINT</CODE>, <CODE>SIGQUIT</CODE>,
</DL>
</P><P>
-<A NAME="IDX397"></A>
+<A NAME="IDX403"></A>
<DL>
<DT><U>Function:</U> int <B>rl_clear_signals</B> <I>(void)</I>
<DD>Remove all of the Readline signal handlers installed by
</OL>
<P>
-<A NAME="IDX398"></A>
+<A NAME="IDX404"></A>
<DL>
<DT><U>Function:</U> int <B>rl_complete</B> <I>(int ignore, int invoking_key)</I>
<DD>Complete the word at or before point.
</DL>
</P><P>
-<A NAME="IDX399"></A>
+<A NAME="IDX405"></A>
<DL>
<DT><U>Variable:</U> rl_compentry_func_t * <B>rl_completion_entry_function</B>
<DD>This is a pointer to the generator function for
Readline.
</P><P>
-<A NAME="IDX400"></A>
+<A NAME="IDX406"></A>
<DL>
<DT><U>Function:</U> int <B>rl_complete_internal</B> <I>(int what_to_do)</I>
<DD>Complete the word at or before point.
</DL>
</P><P>
-<A NAME="IDX401"></A>
+<A NAME="IDX407"></A>
<DL>
<DT><U>Function:</U> int <B>rl_complete</B> <I>(int ignore, int invoking_key)</I>
<DD>Complete the word at or before point.
</DL>
</P><P>
-<A NAME="IDX402"></A>
+<A NAME="IDX408"></A>
<DL>
<DT><U>Function:</U> int <B>rl_possible_completions</B> <I>(int count, int invoking_key)</I>
<DD>List the possible completions.
</DL>
</P><P>
-<A NAME="IDX403"></A>
+<A NAME="IDX409"></A>
<DL>
<DT><U>Function:</U> int <B>rl_insert_completions</B> <I>(int count, int invoking_key)</I>
<DD>Insert the list of possible completions into the line, deleting the
</DL>
</P><P>
-<A NAME="IDX404"></A>
+<A NAME="IDX410"></A>
<DL>
<DT><U>Function:</U> int <B>rl_completion_mode</B> <I>(rl_command_func_t *cfunc)</I>
<DD>Returns the appropriate value to pass to <CODE>rl_complete_internal()</CODE>
</DL>
</P><P>
-<A NAME="IDX405"></A>
+<A NAME="IDX411"></A>
<DL>
<DT><U>Function:</U> char ** <B>rl_completion_matches</B> <I>(const char *text, rl_compentry_func_t *entry_func)</I>
<DD>Returns an array of strings which is a list of completions for <VAR>text</VAR>.
</DL>
</P><P>
-<A NAME="IDX406"></A>
+<A NAME="IDX412"></A>
<DL>
<DT><U>Function:</U> char * <B>rl_filename_completion_function</B> <I>(const char *text, int state)</I>
<DD>A generator function for filename completion in the general case.
</DL>
</P><P>
-<A NAME="IDX407"></A>
+<A NAME="IDX413"></A>
<DL>
<DT><U>Function:</U> char * <B>rl_username_completion_function</B> <I>(const char *text, int state)</I>
<DD>A completion generator for usernames.
<!--docid::SEC48::-->
<P>
-<A NAME="IDX408"></A>
+<A NAME="IDX414"></A>
<DL>
<DT><U>Variable:</U> rl_compentry_func_t * <B>rl_completion_entry_function</B>
<DD>A pointer to the generator function for <CODE>rl_completion_matches()</CODE>.
</DL>
</P><P>
-<A NAME="IDX409"></A>
+<A NAME="IDX415"></A>
<DL>
<DT><U>Variable:</U> rl_completion_func_t * <B>rl_attempted_completion_function</B>
<DD>A pointer to an alternative function to create matches.
</DL>
</P><P>
-<A NAME="IDX410"></A>
+<A NAME="IDX416"></A>
<DL>
<DT><U>Variable:</U> rl_quote_func_t * <B>rl_filename_quoting_function</B>
<DD>A pointer to a function that will quote a filename in an
</DL>
</P><P>
-<A NAME="IDX411"></A>
+<A NAME="IDX417"></A>
<DL>
<DT><U>Variable:</U> rl_dequote_func_t * <B>rl_filename_dequoting_function</B>
<DD>A pointer to a function that will remove application-specific quoting
</DL>
</P><P>
-<A NAME="IDX412"></A>
+<A NAME="IDX418"></A>
<DL>
<DT><U>Variable:</U> rl_linebuf_func_t * <B>rl_char_is_quoted_p</B>
<DD>A pointer to a function to call that determines whether or not a specific
</DL>
</P><P>
-<A NAME="IDX413"></A>
+<A NAME="IDX419"></A>
<DL>
<DT><U>Variable:</U> rl_compignore_func_t * <B>rl_ignore_some_completions_function</B>
<DD>Readline calls this function, if defined, when filename
</DL>
</P><P>
-<A NAME="IDX414"></A>
+<A NAME="IDX420"></A>
<DL>
<DT><U>Variable:</U> rl_icppfunc_t * <B>rl_directory_completion_hook</B>
<DD>This function, if defined, is allowed to modify the directory portion
</DL>
</P><P>
-<A NAME="IDX415"></A>
+<A NAME="IDX421"></A>
<DL>
<DT><U>Variable:</U> rl_icppfunc_t * <B>rl_directory_rewrite_hook;</B>
<DD>If non-zero, this is the address of a function to call when completing
</DL>
</P><P>
-<A NAME="IDX416"></A>
+<A NAME="IDX422"></A>
<DL>
<DT><U>Variable:</U> rl_icppfunc_t * <B>rl_filename_stat_hook</B>
<DD>If non-zero, this is the address of a function for the completer to
</DL>
</P><P>
-<A NAME="IDX417"></A>
+<A NAME="IDX423"></A>
<DL>
<DT><U>Variable:</U> rl_dequote_func_t * <B>rl_filename_rewrite_hook</B>
<DD>If non-zero, this is the address of a function
</DL>
</P><P>
-<A NAME="IDX418"></A>
+<A NAME="IDX424"></A>
<DL>
<DT><U>Variable:</U> rl_dequote_func_t * <B>rl_completion_rewrite_hook</B>
<DD>If non-zero, this is the address of a function
</DL>
</P><P>
-<A NAME="IDX419"></A>
+<A NAME="IDX425"></A>
<DL>
<DT><U>Variable:</U> rl_compdisp_func_t * <B>rl_completion_display_matches_hook</B>
<DD>If non-zero, then this is the address of a function to call when
</DL>
</P><P>
-<A NAME="IDX420"></A>
+<A NAME="IDX426"></A>
<DL>
<DT><U>Variable:</U> const char * <B>rl_basic_word_break_characters</B>
<DD>The basic list of characters that signal a break between words for the
</DL>
</P><P>
-<A NAME="IDX421"></A>
+<A NAME="IDX427"></A>
<DL>
<DT><U>Variable:</U> const char * <B>rl_basic_quote_characters</B>
<DD>A list of quote characters which can cause a word break.
</DL>
</P><P>
-<A NAME="IDX422"></A>
+<A NAME="IDX428"></A>
<DL>
<DT><U>Variable:</U> const char * <B>rl_completer_word_break_characters</B>
<DD>The list of characters that signal a break between words for
</DL>
</P><P>
-<A NAME="IDX423"></A>
+<A NAME="IDX429"></A>
<DL>
<DT><U>Variable:</U> rl_cpvfunc_t * <B>rl_completion_word_break_hook</B>
<DD>If non-zero, this is the address of a function to call when Readline is
</DL>
</P><P>
-<A NAME="IDX424"></A>
+<A NAME="IDX430"></A>
<DL>
<DT><U>Variable:</U> const char * <B>rl_completer_quote_characters</B>
<DD>A list of characters which can be used to quote a substring of the line.
</DL>
</P><P>
-<A NAME="IDX425"></A>
+<A NAME="IDX431"></A>
<DL>
<DT><U>Variable:</U> const char * <B>rl_filename_quote_characters</B>
<DD>A list of characters that cause Readline to quote a filename
</DL>
</P><P>
-<A NAME="IDX426"></A>
+<A NAME="IDX432"></A>
<DL>
<DT><U>Variable:</U> const char * <B>rl_special_prefixes</B>
<DD>The list of characters that are word break characters, but should be
</DL>
</P><P>
-<A NAME="IDX427"></A>
+<A NAME="IDX433"></A>
<DL>
<DT><U>Variable:</U> int <B>rl_completion_query_items</B>
<DD>This determines the maximum number of items
</DL>
</P><P>
-<A NAME="IDX428"></A>
+<A NAME="IDX434"></A>
<DL>
<DT><U>Variable:</U> int <B>rl_completion_append_character</B>
<DD>When a single completion alternative matches at the end of the command
</DL>
</P><P>
-<A NAME="IDX429"></A>
+<A NAME="IDX435"></A>
<DL>
<DT><U>Variable:</U> int <B>rl_completion_suppress_append</B>
<DD>If non-zero, Readline will not append the
</DL>
</P><P>
-<A NAME="IDX430"></A>
+<A NAME="IDX436"></A>
<DL>
<DT><U>Variable:</U> int <B>rl_completion_suppress_quote</B>
<DD>If non-zero, Readline does not append a matching quote character when
</DL>
</P><P>
-<A NAME="IDX431"></A>
+<A NAME="IDX437"></A>
<DL>
<DT><U>Variable:</U> int <B>rl_completion_found_quote</B>
<DD>When Readline is completing quoted text, it sets this variable
</DL>
</P><P>
-<A NAME="IDX432"></A>
+<A NAME="IDX438"></A>
<DL>
<DT><U>Variable:</U> int <B>rl_completion_quote_character</B>
<DD>When Readline is completing quoted text, as delimited by one of the
</DL>
</P><P>
-<A NAME="IDX433"></A>
+<A NAME="IDX439"></A>
<DL>
<DT><U>Variable:</U> int <B>rl_completion_mark_symlink_dirs</B>
<DD>If non-zero, Readline appends a slash to completed filenames that are
</DL>
</P><P>
-<A NAME="IDX434"></A>
+<A NAME="IDX440"></A>
<DL>
<DT><U>Variable:</U> int <B>rl_ignore_completion_duplicates</B>
<DD>If non-zero, then Readline removes duplicates in the set of possible
</DL>
</P><P>
-<A NAME="IDX435"></A>
+<A NAME="IDX441"></A>
<DL>
<DT><U>Variable:</U> int <B>rl_filename_completion_desired</B>
<DD>A non-zero value means that Readline should treat the results of the
</DL>
</P><P>
-<A NAME="IDX436"></A>
+<A NAME="IDX442"></A>
<DL>
<DT><U>Variable:</U> int <B>rl_filename_quoting_desired</B>
<DD>A non-zero value means that Readline should quote the results of the
</DL>
</P><P>
-<A NAME="IDX437"></A>
+<A NAME="IDX443"></A>
<DL>
<DT><U>Variable:</U> int <B>rl_full_quoting_desired</B>
<DD>A non-zero value means that Readline should apply filename-style quoting,
</DL>
</P><P>
-<A NAME="IDX438"></A>
+<A NAME="IDX444"></A>
<DL>
<DT><U>Variable:</U> int <B>rl_attempted_completion_over</B>
<DD>If an application-specific completion function assigned to
</DL>
</P><P>
-<A NAME="IDX439"></A>
+<A NAME="IDX445"></A>
<DL>
<DT><U>Variable:</U> int <B>rl_sort_completion_matches</B>
<DD>If an application sets this variable to 0, Readline will not sort the
</DL>
</P><P>
-<A NAME="IDX440"></A>
+<A NAME="IDX446"></A>
<DL>
<DT><U>Variable:</U> int <B>rl_completion_type</B>
<DD>Set to a character describing the type of completion Readline is currently
</DL>
</P><P>
-<A NAME="IDX441"></A>
+<A NAME="IDX447"></A>
<DL>
<DT><U>Variable:</U> int <B>rl_completion_invoking_key</B>
<DD>Set to the final character in the key sequence that invoked one of the
</DL>
</P><P>
-<A NAME="IDX442"></A>
+<A NAME="IDX448"></A>
<DL>
<DT><U>Variable:</U> int <B>rl_inhibit_completion</B>
<DD>If this variable is non-zero, Readline does not perform completion,
<TR><TD></TD><TD valign=top><A HREF="readline.html#SEC4">notation, readline</A></TD><TD valign=top><A HREF="readline.html#SEC4">1.2.1 Readline Bare Essentials</A></TD></TR>
<TR><TD COLSPAN=3> <HR></TD></TR>
<TR><TH><A NAME="cp_R"></A>R</TH><TD></TD><TD></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX228">readline, function</A></TD><TD valign=top><A HREF="readline.html#SEC24">2.1 Basic Behavior</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX234">readline, function</A></TD><TD valign=top><A HREF="readline.html#SEC24">2.1 Basic Behavior</A></TD></TR>
<TR><TD COLSPAN=3> <HR></TD></TR>
<TR><TH><A NAME="cp_V"></A>V</TH><TD></TD><TD></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX4">variables, readline</A></TD><TD valign=top><A HREF="readline.html#SEC10">1.3.1 Readline Init File Syntax</A></TD></TR>
</TR></TABLE>
<H1> Function and Variable Index </H1>
<!--docid::SEC53::-->
-<table><tr><th valign=top>Jump to: </th><td><A HREF="readline.html#fn__" style="text-decoration:none"><b>_</b></A>
+<table><tr><th valign=top>Jump to: </th><td><A HREF="readline.html#fn_" style="text-decoration:none"><b></b></A>
+
+<A HREF="readline.html#fn_ " style="text-decoration:none"><b> </b></A>
+
+<A HREF="readline.html#fn__" style="text-decoration:none"><b>_</b></A>
<BR>
<A HREF="readline.html#fn_A" style="text-decoration:none"><b>A</b></A>
<TABLE border=0>
<TR><TD></TD><TH ALIGN=LEFT>Index Entry</TH><TH ALIGN=LEFT> Section</TH></TR>
<TR><TD COLSPAN=3> <HR></TD></TR>
+<TR><TH><A NAME="fn_"></A></TH><TD></TD><TD></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX181"><CODE></CODE></A></TD><TD valign=top><A HREF="readline.html#SEC19">1.4.6 Letting Readline Type For You</A></TD></TR>
+<TR><TD COLSPAN=3> <HR></TD></TR>
+<TR><TH><A NAME="fn_ "></A> </TH><TD></TD><TD></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX182"><CODE></CODE></A></TD><TD valign=top><A HREF="readline.html#SEC19">1.4.6 Letting Readline Type For You</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX183"><CODE></CODE></A></TD><TD valign=top><A HREF="readline.html#SEC19">1.4.6 Letting Readline Type For You</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX184"><CODE></CODE></A></TD><TD valign=top><A HREF="readline.html#SEC19">1.4.6 Letting Readline Type For You</A></TD></TR>
+<TR><TD COLSPAN=3> <HR></TD></TR>
<TR><TH><A NAME="fn__"></A>_</TH><TD></TD><TD></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX361"><CODE>_rl_digit_p</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC39">2.4.10 Utility Functions</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX364"><CODE>_rl_digit_value</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC39">2.4.10 Utility Functions</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX360"><CODE>_rl_lowercase_p</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC39">2.4.10 Utility Functions</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX363"><CODE>_rl_to_lower</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC39">2.4.10 Utility Functions</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX362"><CODE>_rl_to_upper</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC39">2.4.10 Utility Functions</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX359"><CODE>_rl_uppercase_p</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC39">2.4.10 Utility Functions</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX367"><CODE>_rl_digit_p</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC39">2.4.10 Utility Functions</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX370"><CODE>_rl_digit_value</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC39">2.4.10 Utility Functions</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX366"><CODE>_rl_lowercase_p</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC39">2.4.10 Utility Functions</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX369"><CODE>_rl_to_lower</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC39">2.4.10 Utility Functions</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX368"><CODE>_rl_to_upper</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC39">2.4.10 Utility Functions</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX365"><CODE>_rl_uppercase_p</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC39">2.4.10 Utility Functions</A></TD></TR>
<TR><TD COLSPAN=3> <HR></TD></TR>
<TR><TH><A NAME="fn_A"></A>A</TH><TD></TD><TD></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX191"><CODE>abort (C-g)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX192"><CODE>abort (C-g)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX197"><CODE>abort (C-g)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX198"><CODE>abort (C-g)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX73"><CODE>accept-line (Newline or Return)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC15">1.4.2 Commands For Manipulating The History</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX74"><CODE>accept-line (Newline or Return)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC15">1.4.2 Commands For Manipulating The History</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX6">active-region-end-color</A></TD><TD valign=top><A HREF="readline.html#SEC10">1.3.1 Readline Init File Syntax</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX122"><CODE>bracketed-paste-begin ()</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC16">1.4.3 Commands For Changing Text</A></TD></TR>
<TR><TD COLSPAN=3> <HR></TD></TR>
<TR><TH><A NAME="fn_C"></A>C</TH><TD></TD><TD></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX185"><CODE>call-last-kbd-macro (C-x e)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC20">1.4.7 Keyboard Macros</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX186"><CODE>call-last-kbd-macro (C-x e)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC20">1.4.7 Keyboard Macros</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX191"><CODE>call-last-kbd-macro (C-x e)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC20">1.4.7 Keyboard Macros</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX192"><CODE>call-last-kbd-macro (C-x e)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC20">1.4.7 Keyboard Macros</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX131"><CODE>capitalize-word (M-c)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC16">1.4.3 Commands For Changing Text</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX132"><CODE>capitalize-word (M-c)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC16">1.4.3 Commands For Changing Text</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX207"><CODE>character-search (C-])</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX208"><CODE>character-search (C-])</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX209"><CODE>character-search-backward (M-C-])</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX210"><CODE>character-search-backward (M-C-])</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX213"><CODE>character-search (C-])</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX214"><CODE>character-search (C-])</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX215"><CODE>character-search-backward (M-C-])</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX216"><CODE>character-search-backward (M-C-])</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX67"><CODE>clear-display (M-C-l)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC14">1.4.1 Commands For Moving</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX68"><CODE>clear-display (M-C-l)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC14">1.4.1 Commands For Moving</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX69"><CODE>clear-screen (C-l)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC14">1.4.1 Commands For Moving</A></TD></TR>
<TR><TH><A NAME="fn_D"></A>D</TH><TD></TD><TD></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX109"><CODE>delete-char (C-d)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC16">1.4.3 Commands For Changing Text</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX110"><CODE>delete-char (C-d)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC16">1.4.3 Commands For Changing Text</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX179"><CODE>delete-char-or-list ()</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC19">1.4.6 Letting Readline Type For You</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX180"><CODE>delete-char-or-list ()</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC19">1.4.6 Letting Readline Type For You</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX185"><CODE>delete-char-or-list ()</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC19">1.4.6 Letting Readline Type For You</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX186"><CODE>delete-char-or-list ()</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC19">1.4.6 Letting Readline Type For You</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX151"><CODE>delete-horizontal-space ()</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC17">1.4.4 Killing And Yanking</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX152"><CODE>delete-horizontal-space ()</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC17">1.4.4 Killing And Yanking</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX165"><CODE>digit-argument (<KBD>M-0</KBD>, <KBD>M-1</KBD>, <small>...</small> <KBD>M--</KBD>)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC18">1.4.5 Specifying Numeric Arguments</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX166"><CODE>digit-argument (<KBD>M-0</KBD>, <KBD>M-1</KBD>, <small>...</small> <KBD>M--</KBD>)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC18">1.4.5 Specifying Numeric Arguments</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX19">disable-completion</A></TD><TD valign=top><A HREF="readline.html#SEC10">1.3.1 Readline Init File Syntax</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX193"><CODE>do-lowercase-version (M-A, M-B, M-<VAR>x</VAR>, <small>...</small>)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX194"><CODE>do-lowercase-version (M-A, M-B, M-<VAR>x</VAR>, <small>...</small>)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX199"><CODE>do-lowercase-version (M-A, M-B, M-<VAR>x</VAR>, <small>...</small>)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX200"><CODE>do-lowercase-version (M-A, M-B, M-<VAR>x</VAR>, <small>...</small>)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX129"><CODE>downcase-word (M-l)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC16">1.4.3 Commands For Changing Text</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX130"><CODE>downcase-word (M-l)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC16">1.4.3 Commands For Changing Text</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX215"><CODE>dump-functions ()</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX216"><CODE>dump-functions ()</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX219"><CODE>dump-macros ()</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX220"><CODE>dump-macros ()</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX217"><CODE>dump-variables ()</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX218"><CODE>dump-variables ()</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX221"><CODE>dump-functions ()</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX222"><CODE>dump-functions ()</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX225"><CODE>dump-macros ()</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX226"><CODE>dump-macros ()</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX223"><CODE>dump-variables ()</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX224"><CODE>dump-variables ()</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
<TR><TD COLSPAN=3> <HR></TD></TR>
<TR><TH><A NAME="fn_E"></A>E</TH><TD></TD><TD></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX20">echo-control-characters</A></TD><TD valign=top><A HREF="readline.html#SEC10">1.3.1 Readline Init File Syntax</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX21">editing-mode</A></TD><TD valign=top><A HREF="readline.html#SEC10">1.3.1 Readline Init File Syntax</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX223"><CODE>emacs-editing-mode (C-e)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX224"><CODE>emacs-editing-mode (C-e)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX229"><CODE>emacs-editing-mode (C-e)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX230"><CODE>emacs-editing-mode (C-e)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX22">emacs-mode-string</A></TD><TD valign=top><A HREF="readline.html#SEC10">1.3.1 Readline Init File Syntax</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX23">enable-active-region The</A></TD><TD valign=top><A HREF="readline.html#SEC10">1.3.1 Readline Init File Syntax</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX24">enable-bracketed-paste</A></TD><TD valign=top><A HREF="readline.html#SEC10">1.3.1 Readline Init File Syntax</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX25">enable-keypad</A></TD><TD valign=top><A HREF="readline.html#SEC10">1.3.1 Readline Init File Syntax</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX26">enable-meta-key</A></TD><TD valign=top><A HREF="readline.html#SEC10">1.3.1 Readline Init File Syntax</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX183"><CODE>end-kbd-macro (C-x ))</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC20">1.4.7 Keyboard Macros</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX184"><CODE>end-kbd-macro (C-x ))</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC20">1.4.7 Keyboard Macros</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX189"><CODE>end-kbd-macro (C-x ))</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC20">1.4.7 Keyboard Macros</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX190"><CODE>end-kbd-macro (C-x ))</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC20">1.4.7 Keyboard Macros</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX107"><CODE><I>end-of-file</I> (usually C-d)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC16">1.4.3 Commands For Changing Text</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX108"><CODE><I>end-of-file</I> (usually C-d)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC16">1.4.3 Commands For Changing Text</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX81"><CODE>end-of-history (M-&#62;)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC15">1.4.2 Commands For Manipulating The History</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX82"><CODE>end-of-history (M-&#62;)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC15">1.4.2 Commands For Manipulating The History</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX53"><CODE>end-of-line (C-e)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC14">1.4.1 Commands For Moving</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX54"><CODE>end-of-line (C-e)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC14">1.4.1 Commands For Moving</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX205"><CODE>exchange-point-and-mark (C-x C-x)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX206"><CODE>exchange-point-and-mark (C-x C-x)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX221"><CODE>execute-named-command (M-x)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX222"><CODE>execute-named-command (M-x)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX211"><CODE>exchange-point-and-mark (C-x C-x)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX212"><CODE>exchange-point-and-mark (C-x C-x)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX227"><CODE>execute-named-command (M-x)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX228"><CODE>execute-named-command (M-x)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX27">expand-tilde</A></TD><TD valign=top><A HREF="readline.html#SEC10">1.3.1 Readline Init File Syntax</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX179"><CODE>export-completions ()</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC19">1.4.6 Letting Readline Type For You</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX180"><CODE>export-completions ()</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC19">1.4.6 Letting Readline Type For You</A></TD></TR>
<TR><TD COLSPAN=3> <HR></TD></TR>
<TR><TH><A NAME="fn_F"></A>F</TH><TD></TD><TD></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX105"><CODE>fetch-history ()</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC15">1.4.2 Commands For Manipulating The History</A></TD></TR>
<TR><TD COLSPAN=3> <HR></TD></TR>
<TR><TH><A NAME="fn_I"></A>I</TH><TD></TD><TD></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX32">input-meta</A></TD><TD valign=top><A HREF="readline.html#SEC10">1.3.1 Readline Init File Syntax</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX213"><CODE>insert-comment (M-#)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX214"><CODE>insert-comment (M-#)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX219"><CODE>insert-comment (M-#)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX220"><CODE>insert-comment (M-#)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX173"><CODE>insert-completions (M-*)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC19">1.4.6 Letting Readline Type For You</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX174"><CODE>insert-completions (M-*)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC19">1.4.6 Letting Readline Type For You</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX34">isearch-terminators</A></TD><TD valign=top><A HREF="readline.html#SEC10">1.3.1 Readline Init File Syntax</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX41">page-completions</A></TD><TD valign=top><A HREF="readline.html#SEC10">1.3.1 Readline Init File Syntax</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX171"><CODE>possible-completions (M-?)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC19">1.4.6 Letting Readline Type For You</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX172"><CODE>possible-completions (M-?)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC19">1.4.6 Letting Readline Type For You</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX195"><CODE>prefix-meta (<KBD>ESC</KBD>)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX196"><CODE>prefix-meta (<KBD>ESC</KBD>)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX201"><CODE>prefix-meta (<KBD>ESC</KBD>)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX202"><CODE>prefix-meta (<KBD>ESC</KBD>)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX75"><CODE>previous-history (C-p)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC15">1.4.2 Commands For Manipulating The History</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX76"><CODE>previous-history (C-p)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC15">1.4.2 Commands For Manipulating The History</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX63"><CODE>previous-screen-line ()</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC14">1.4.1 Commands For Moving</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX64"><CODE>previous-screen-line ()</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC14">1.4.1 Commands For Moving</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX187"><CODE>print-last-kbd-macro ()</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC20">1.4.7 Keyboard Macros</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX188"><CODE>print-last-kbd-macro ()</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC20">1.4.7 Keyboard Macros</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX193"><CODE>print-last-kbd-macro ()</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC20">1.4.7 Keyboard Macros</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX194"><CODE>print-last-kbd-macro ()</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC20">1.4.7 Keyboard Macros</A></TD></TR>
<TR><TD COLSPAN=3> <HR></TD></TR>
<TR><TH><A NAME="fn_Q"></A>Q</TH><TD></TD><TD></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX115"><CODE>quoted-insert (C-q or C-v)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC16">1.4.3 Commands For Changing Text</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX116"><CODE>quoted-insert (C-q or C-v)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC16">1.4.3 Commands For Changing Text</A></TD></TR>
<TR><TD COLSPAN=3> <HR></TD></TR>
<TR><TH><A NAME="fn_R"></A>R</TH><TD></TD><TD></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX189"><CODE>re-read-init-file (C-x C-r)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX190"><CODE>re-read-init-file (C-x C-r)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX227"><CODE>readline</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC24">2.1 Basic Behavior</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX195"><CODE>re-read-init-file (C-x C-r)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX196"><CODE>re-read-init-file (C-x C-r)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX233"><CODE>readline</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC24">2.1 Basic Behavior</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX71"><CODE>redraw-current-line ()</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC14">1.4.1 Commands For Moving</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX72"><CODE>redraw-current-line ()</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC14">1.4.1 Commands For Moving</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX83"><CODE>reverse-search-history (C-r)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC15">1.4.2 Commands For Manipulating The History</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX84"><CODE>reverse-search-history (C-r)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC15">1.4.2 Commands For Manipulating The History</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX42">revert-all-at-newline</A></TD><TD valign=top><A HREF="readline.html#SEC10">1.3.1 Readline Init File Syntax</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX199"><CODE>revert-line (M-r)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX200"><CODE>revert-line (M-r)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX374"><CODE>rl_activate_mark</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC40">2.4.11 Miscellaneous Functions</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX272"><CODE>rl_add_defun</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC30">2.4.1 Naming a Function</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX310"><CODE>rl_add_funmap_entry</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC33">2.4.4 Associating Function Names and Bindings</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX313"><CODE>rl_add_undo</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC34">2.4.5 Allowing Undoing</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX357"><CODE>rl_alphabetic</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC39">2.4.10 Utility Functions</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX241">rl_already_prompted</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX409">rl_attempted_completion_function</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX438">rl_attempted_completion_over</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX421">rl_basic_quote_characters</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX420">rl_basic_word_break_characters</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX311"><CODE>rl_begin_undo_group</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC34">2.4.5 Allowing Undoing</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX284"><CODE>rl_bind_key</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC32">2.4.3 Binding Keys</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX286"><CODE>rl_bind_key_if_unbound</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC32">2.4.3 Binding Keys</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX287"><CODE>rl_bind_key_if_unbound_in_map</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC32">2.4.3 Binding Keys</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX285"><CODE>rl_bind_key_in_map</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC32">2.4.3 Binding Keys</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX292"><CODE>rl_bind_keyseq</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC32">2.4.3 Binding Keys</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX295"><CODE>rl_bind_keyseq_if_unbound</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC32">2.4.3 Binding Keys</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX296"><CODE>rl_bind_keyseq_if_unbound_in_map</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC32">2.4.3 Binding Keys</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX293"><CODE>rl_bind_keyseq_in_map</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC32">2.4.3 Binding Keys</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX263">rl_binding_keymap</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX378"><CODE>rl_callback_handler_install</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC41">2.4.12 Alternate Interface</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX381"><CODE>rl_callback_handler_remove</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC41">2.4.12 Alternate Interface</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX379"><CODE>rl_callback_read_char</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC41">2.4.12 Alternate Interface</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX380"><CODE>rl_callback_sigcleanup</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC41">2.4.12 Alternate Interface</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX382">rl_catch_signals</A></TD><TD valign=top><A HREF="readline.html#SEC44">2.5 Readline Signal Handling</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX383">rl_catch_sigwinch</A></TD><TD valign=top><A HREF="readline.html#SEC44">2.5 Readline Signal Handling</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX385">rl_change_environment</A></TD><TD valign=top><A HREF="readline.html#SEC44">2.5 Readline Signal Handling</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX412">rl_char_is_quoted_p</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX390"><CODE>rl_check_signals</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC44">2.5 Readline Signal Handling</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX387"><CODE>rl_cleanup_after_signal</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC44">2.5 Readline Signal Handling</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX373"><CODE>rl_clear_history</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC40">2.4.11 Miscellaneous Functions</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX326"><CODE>rl_clear_message</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC35">2.4.6 Redisplay</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX341"><CODE>rl_clear_pending_input</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC37">2.4.8 Character Input</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX397"><CODE>rl_clear_signals</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC44">2.5 Readline Signal Handling</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX321"><CODE>rl_clear_visible_line</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC35">2.4.6 Redisplay</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX398"><CODE>rl_complete</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC46">2.6.1 How Completing Works</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX401"><CODE>rl_complete</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC47">2.6.2 Completion Functions</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX400"><CODE>rl_complete_internal</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC47">2.6.2 Completion Functions</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX424">rl_completer_quote_characters</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX422">rl_completer_word_break_characters</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX428">rl_completion_append_character</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX419">rl_completion_display_matches_hook</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX399">rl_completion_entry_function</A></TD><TD valign=top><A HREF="readline.html#SEC46">2.6.1 How Completing Works</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX408">rl_completion_entry_function</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX431">rl_completion_found_quote</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX441">rl_completion_invoking_key</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX433">rl_completion_mark_symlink_dirs</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX405"><CODE>rl_completion_matches</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC47">2.6.2 Completion Functions</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX404"><CODE>rl_completion_mode</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC47">2.6.2 Completion Functions</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX427">rl_completion_query_items</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX432">rl_completion_quote_character</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX418">rl_completion_rewrite_hook</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX429">rl_completion_suppress_append</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX430">rl_completion_suppress_quote</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX440">rl_completion_type</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX423">rl_completion_word_break_hook</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX274"><CODE>rl_copy_keymap</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC31">2.4.2 Selecting a Keymap</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX333"><CODE>rl_copy_text</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC36">2.4.7 Modifying Text</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX323"><CODE>rl_crlf</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC35">2.4.6 Redisplay</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX375"><CODE>rl_deactivate_mark</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC40">2.4.11 Miscellaneous Functions</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX332"><CODE>rl_delete_text</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC36">2.4.7 Modifying Text</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX260">rl_deprep_term_function</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX346"><CODE>rl_deprep_terminal</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC38">2.4.9 Terminal Management</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX356"><CODE>rl_ding</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC39">2.4.10 Utility Functions</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX414">rl_directory_completion_hook</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX415">rl_directory_rewrite_hook;</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX276"><CODE>rl_discard_keymap</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC31">2.4.2 Selecting a Keymap</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX237">rl_dispatching</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX358"><CODE>rl_display_match_list</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC39">2.4.10 Utility Functions</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX240">rl_display_prompt</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX315"><CODE>rl_do_undo</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC34">2.4.5 Allowing Undoing</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX233">rl_done</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX391"><CODE>rl_echo_signal_char</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC44">2.5 Readline Signal Handling</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX271">rl_editing_mode</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX278"><CODE>rl_empty_keymap</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC31">2.4.2 Selecting a Keymap</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX231">rl_end</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX312"><CODE>rl_end_undo_group</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC34">2.4.5 Allowing Undoing</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX234">rl_eof_found</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX238">rl_erase_empty_line</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX253">rl_event_hook</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX340"><CODE>rl_execute_next</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC37">2.4.8 Character Input</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX265">rl_executing_key</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX262">rl_executing_keymap</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX266">rl_executing_keyseq</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX264">rl_executing_macro</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX329"><CODE>rl_expand_prompt</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC35">2.4.6 Redisplay</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX269">rl_explicit_arg</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX354"><CODE>rl_extend_line_buffer</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC39">2.4.10 Utility Functions</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX435">rl_filename_completion_desired</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX406"><CODE>rl_filename_completion_function</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC47">2.6.2 Completion Functions</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX411">rl_filename_dequoting_function</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX425">rl_filename_quote_characters</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX436">rl_filename_quoting_desired</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX410">rl_filename_quoting_function</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX417">rl_filename_rewrite_hook</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX416">rl_filename_stat_hook</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX318"><CODE>rl_forced_update_display</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC35">2.4.6 Redisplay</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX353"><CODE>rl_free</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC39">2.4.10 Utility Functions</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX277"><CODE>rl_free_keymap</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC31">2.4.2 Selecting a Keymap</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX388"><CODE>rl_free_line_state</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC44">2.5 Readline Signal Handling</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX314"><CODE>rl_free_undo_list</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC34">2.4.5 Allowing Undoing</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX437">rl_full_quoting_desired</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX307"><CODE>rl_function_dumper</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC33">2.4.4 Associating Function Names and Bindings</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX301"><CODE>rl_function_of_keyseq</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC33">2.4.4 Associating Function Names and Bindings</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX302"><CODE>rl_function_of_keyseq_len</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC33">2.4.4 Associating Function Names and Bindings</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX309"><CODE>rl_funmap_names</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC33">2.4.4 Associating Function Names and Bindings</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX297"><CODE>rl_generic_bind</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC32">2.4.3 Binding Keys</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX279"><CODE>rl_get_keymap</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC31">2.4.2 Selecting a Keymap</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX281"><CODE>rl_get_keymap_by_name</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC31">2.4.2 Selecting a Keymap</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX282"><CODE>rl_get_keymap_name</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC31">2.4.2 Selecting a Keymap</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX394"><CODE>rl_get_screen_size</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC44">2.5 Readline Signal Handling</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX371"><CODE>rl_get_termcap</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC40">2.4.11 Miscellaneous Functions</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX338"><CODE>rl_getc</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC37">2.4.8 Character Input</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX254">rl_getc_function</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX244">rl_gnu_readline_p</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX434">rl_ignore_completion_duplicates</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX413">rl_ignore_some_completions_function</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX442">rl_inhibit_completion</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX355"><CODE>rl_initialize</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC39">2.4.10 Utility Functions</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX257">rl_input_available_hook</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX403"><CODE>rl_insert_completions</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC47">2.6.2 Completion Functions</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX331"><CODE>rl_insert_text</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC36">2.4.7 Modifying Text</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX247">rl_instream</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX304"><CODE>rl_invoking_keyseqs</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC33">2.4.4 Associating Function Names and Bindings</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX305"><CODE>rl_invoking_keyseqs_in_map</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC33">2.4.4 Associating Function Names and Bindings</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX376"><CODE>rl_keep_mark_active</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC40">2.4.11 Miscellaneous Functions</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX267">rl_key_sequence_length</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX334"><CODE>rl_kill_text</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC36">2.4.7 Modifying Text</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX250">rl_last_func</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX242">rl_library_version</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX229">rl_line_buffer</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX308"><CODE>rl_list_funmap_names</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC33">2.4.4 Associating Function Names and Bindings</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX365"><CODE>rl_macro_bind</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC40">2.4.11 Miscellaneous Functions</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX261">rl_macro_display_hook</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX366"><CODE>rl_macro_dumper</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC40">2.4.11 Miscellaneous Functions</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX273"><CODE>rl_make_bare_keymap</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC31">2.4.2 Selecting a Keymap</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX275"><CODE>rl_make_keymap</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC31">2.4.2 Selecting a Keymap</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX232">rl_mark</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX377"><CODE>rl_mark_active_p</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC40">2.4.11 Miscellaneous Functions</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX325"><CODE>rl_message</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC35">2.4.6 Redisplay</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX316"><CODE>rl_modifying</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC34">2.4.5 Allowing Undoing</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX300"><CODE>rl_named_function</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC33">2.4.4 Associating Function Names and Bindings</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX235">rl_num_chars_to_read</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX270">rl_numeric_arg</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX319"><CODE>rl_on_new_line</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC35">2.4.6 Redisplay</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX320"><CODE>rl_on_new_line_with_prompt</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC35">2.4.6 Redisplay</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX248">rl_outstream</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX298"><CODE>rl_parse_and_bind</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC32">2.4.3 Binding Keys</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX236">rl_pending_input</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX386"><CODE>rl_pending_signal</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC44">2.5 Readline Signal Handling</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX384">rl_persistent_signal_handlers</A></TD><TD valign=top><A HREF="readline.html#SEC44">2.5 Readline Signal Handling</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX230">rl_point</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX402"><CODE>rl_possible_completions</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC47">2.6.2 Completion Functions</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX252">rl_pre_input_hook</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX249">rl_prefer_env_winsize</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX259">rl_prep_term_function</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX345"><CODE>rl_prep_terminal</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC38">2.4.9 Terminal Management</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX306"><CODE>rl_print_keybinding</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC33">2.4.4 Associating Function Names and Bindings</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX239">rl_prompt</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX336"><CODE>rl_push_macro_input</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC36">2.4.7 Modifying Text</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX299"><CODE>rl_read_init_file</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC32">2.4.3 Binding Keys</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX337"><CODE>rl_read_key</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC37">2.4.8 Character Input</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX246">rl_readline_name</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX268">rl_readline_state</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX243">rl_readline_version</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX317"><CODE>rl_redisplay</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC35">2.4.6 Redisplay</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX258">rl_redisplay_function</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX372"><CODE>rl_reparse_colors</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC40">2.4.11 Miscellaneous Functions</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX335"><CODE>rl_replace_line</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC36">2.4.7 Modifying Text</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX389"><CODE>rl_reset_after_signal</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC44">2.5 Readline Signal Handling</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX322"><CODE>rl_reset_line_state</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC35">2.4.6 Redisplay</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX395"><CODE>rl_reset_screen_size</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC44">2.5 Readline Signal Handling</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX350"><CODE>rl_reset_terminal</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC38">2.4.9 Terminal Management</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX392"><CODE>rl_resize_terminal</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC44">2.5 Readline Signal Handling</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX328"><CODE>rl_restore_prompt</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC35">2.4.6 Redisplay</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX352"><CODE>rl_restore_state</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC39">2.4.10 Utility Functions</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX327"><CODE>rl_save_prompt</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC35">2.4.6 Redisplay</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX351"><CODE>rl_save_state</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC39">2.4.10 Utility Functions</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX294"><CODE>rl_set_key</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC32">2.4.3 Binding Keys</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX342"><CODE>rl_set_keyboard_input_timeout</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC37">2.4.8 Character Input</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX280"><CODE>rl_set_keymap</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC31">2.4.2 Selecting a Keymap</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX283"><CODE>rl_set_keymap_name</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC31">2.4.2 Selecting a Keymap</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX370"><CODE>rl_set_paren_blink_timeout</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC40">2.4.11 Miscellaneous Functions</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX330"><CODE>rl_set_prompt</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC35">2.4.6 Redisplay</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX393"><CODE>rl_set_screen_size</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC44">2.5 Readline Signal Handling</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX396"><CODE>rl_set_signals</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC44">2.5 Readline Signal Handling</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX343"><CODE>rl_set_timeout</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC37">2.4.8 Character Input</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX324"><CODE>rl_show_char</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC35">2.4.6 Redisplay</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX255">rl_signal_event_hook</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX439">rl_sort_completion_matches</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX426">rl_special_prefixes</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX251">rl_startup_hook</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX339"><CODE>rl_stuff_char</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC37">2.4.8 Character Input</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX245">rl_terminal_name</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX256">rl_timeout_event_hook</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX344"><CODE>rl_timeout_remaining</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC37">2.4.8 Character Input</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX303"><CODE>rl_trim_arg_from_keyseq</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC33">2.4.4 Associating Function Names and Bindings</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX347"><CODE>rl_tty_set_default_bindings</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC38">2.4.9 Terminal Management</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX349"><CODE>rl_tty_set_echoing</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC38">2.4.9 Terminal Management</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX348"><CODE>rl_tty_unset_default_bindings</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC38">2.4.9 Terminal Management</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX291"><CODE>rl_unbind_command_in_map</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC32">2.4.3 Binding Keys</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX290"><CODE>rl_unbind_function_in_map</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC32">2.4.3 Binding Keys</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX288"><CODE>rl_unbind_key</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC32">2.4.3 Binding Keys</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX289"><CODE>rl_unbind_key_in_map</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC32">2.4.3 Binding Keys</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX407"><CODE>rl_username_completion_function</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC47">2.6.2 Completion Functions</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX367"><CODE>rl_variable_bind</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC40">2.4.11 Miscellaneous Functions</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX369"><CODE>rl_variable_dumper</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC40">2.4.11 Miscellaneous Functions</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX368"><CODE>rl_variable_value</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC40">2.4.11 Miscellaneous Functions</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX205"><CODE>revert-line (M-r)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX206"><CODE>revert-line (M-r)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX380"><CODE>rl_activate_mark</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC40">2.4.11 Miscellaneous Functions</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX278"><CODE>rl_add_defun</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC30">2.4.1 Naming a Function</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX316"><CODE>rl_add_funmap_entry</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC33">2.4.4 Associating Function Names and Bindings</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX319"><CODE>rl_add_undo</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC34">2.4.5 Allowing Undoing</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX363"><CODE>rl_alphabetic</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC39">2.4.10 Utility Functions</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX247">rl_already_prompted</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX415">rl_attempted_completion_function</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX444">rl_attempted_completion_over</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX427">rl_basic_quote_characters</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX426">rl_basic_word_break_characters</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX317"><CODE>rl_begin_undo_group</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC34">2.4.5 Allowing Undoing</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX290"><CODE>rl_bind_key</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC32">2.4.3 Binding Keys</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX292"><CODE>rl_bind_key_if_unbound</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC32">2.4.3 Binding Keys</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX293"><CODE>rl_bind_key_if_unbound_in_map</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC32">2.4.3 Binding Keys</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX291"><CODE>rl_bind_key_in_map</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC32">2.4.3 Binding Keys</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX298"><CODE>rl_bind_keyseq</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC32">2.4.3 Binding Keys</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX301"><CODE>rl_bind_keyseq_if_unbound</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC32">2.4.3 Binding Keys</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX302"><CODE>rl_bind_keyseq_if_unbound_in_map</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC32">2.4.3 Binding Keys</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX299"><CODE>rl_bind_keyseq_in_map</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC32">2.4.3 Binding Keys</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX269">rl_binding_keymap</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX384"><CODE>rl_callback_handler_install</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC41">2.4.12 Alternate Interface</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX387"><CODE>rl_callback_handler_remove</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC41">2.4.12 Alternate Interface</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX385"><CODE>rl_callback_read_char</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC41">2.4.12 Alternate Interface</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX386"><CODE>rl_callback_sigcleanup</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC41">2.4.12 Alternate Interface</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX388">rl_catch_signals</A></TD><TD valign=top><A HREF="readline.html#SEC44">2.5 Readline Signal Handling</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX389">rl_catch_sigwinch</A></TD><TD valign=top><A HREF="readline.html#SEC44">2.5 Readline Signal Handling</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX391">rl_change_environment</A></TD><TD valign=top><A HREF="readline.html#SEC44">2.5 Readline Signal Handling</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX418">rl_char_is_quoted_p</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX396"><CODE>rl_check_signals</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC44">2.5 Readline Signal Handling</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX393"><CODE>rl_cleanup_after_signal</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC44">2.5 Readline Signal Handling</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX379"><CODE>rl_clear_history</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC40">2.4.11 Miscellaneous Functions</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX332"><CODE>rl_clear_message</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC35">2.4.6 Redisplay</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX347"><CODE>rl_clear_pending_input</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC37">2.4.8 Character Input</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX403"><CODE>rl_clear_signals</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC44">2.5 Readline Signal Handling</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX327"><CODE>rl_clear_visible_line</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC35">2.4.6 Redisplay</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX404"><CODE>rl_complete</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC46">2.6.1 How Completing Works</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX407"><CODE>rl_complete</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC47">2.6.2 Completion Functions</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX406"><CODE>rl_complete_internal</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC47">2.6.2 Completion Functions</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX430">rl_completer_quote_characters</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX428">rl_completer_word_break_characters</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX434">rl_completion_append_character</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX425">rl_completion_display_matches_hook</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX405">rl_completion_entry_function</A></TD><TD valign=top><A HREF="readline.html#SEC46">2.6.1 How Completing Works</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX414">rl_completion_entry_function</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX437">rl_completion_found_quote</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX447">rl_completion_invoking_key</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX439">rl_completion_mark_symlink_dirs</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX411"><CODE>rl_completion_matches</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC47">2.6.2 Completion Functions</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX410"><CODE>rl_completion_mode</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC47">2.6.2 Completion Functions</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX433">rl_completion_query_items</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX438">rl_completion_quote_character</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX424">rl_completion_rewrite_hook</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX435">rl_completion_suppress_append</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX436">rl_completion_suppress_quote</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX446">rl_completion_type</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX429">rl_completion_word_break_hook</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX280"><CODE>rl_copy_keymap</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC31">2.4.2 Selecting a Keymap</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX339"><CODE>rl_copy_text</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC36">2.4.7 Modifying Text</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX329"><CODE>rl_crlf</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC35">2.4.6 Redisplay</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX381"><CODE>rl_deactivate_mark</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC40">2.4.11 Miscellaneous Functions</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX338"><CODE>rl_delete_text</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC36">2.4.7 Modifying Text</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX266">rl_deprep_term_function</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX352"><CODE>rl_deprep_terminal</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC38">2.4.9 Terminal Management</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX362"><CODE>rl_ding</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC39">2.4.10 Utility Functions</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX420">rl_directory_completion_hook</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX421">rl_directory_rewrite_hook;</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX282"><CODE>rl_discard_keymap</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC31">2.4.2 Selecting a Keymap</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX243">rl_dispatching</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX364"><CODE>rl_display_match_list</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC39">2.4.10 Utility Functions</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX246">rl_display_prompt</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX321"><CODE>rl_do_undo</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC34">2.4.5 Allowing Undoing</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX239">rl_done</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX397"><CODE>rl_echo_signal_char</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC44">2.5 Readline Signal Handling</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX277">rl_editing_mode</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX284"><CODE>rl_empty_keymap</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC31">2.4.2 Selecting a Keymap</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX237">rl_end</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX318"><CODE>rl_end_undo_group</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC34">2.4.5 Allowing Undoing</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX240">rl_eof_found</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX244">rl_erase_empty_line</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX259">rl_event_hook</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX346"><CODE>rl_execute_next</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC37">2.4.8 Character Input</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX271">rl_executing_key</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX268">rl_executing_keymap</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX272">rl_executing_keyseq</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX270">rl_executing_macro</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX335"><CODE>rl_expand_prompt</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC35">2.4.6 Redisplay</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX275">rl_explicit_arg</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX360"><CODE>rl_extend_line_buffer</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC39">2.4.10 Utility Functions</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX441">rl_filename_completion_desired</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX412"><CODE>rl_filename_completion_function</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC47">2.6.2 Completion Functions</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX417">rl_filename_dequoting_function</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX431">rl_filename_quote_characters</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX442">rl_filename_quoting_desired</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX416">rl_filename_quoting_function</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX423">rl_filename_rewrite_hook</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX422">rl_filename_stat_hook</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX324"><CODE>rl_forced_update_display</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC35">2.4.6 Redisplay</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX359"><CODE>rl_free</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC39">2.4.10 Utility Functions</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX283"><CODE>rl_free_keymap</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC31">2.4.2 Selecting a Keymap</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX394"><CODE>rl_free_line_state</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC44">2.5 Readline Signal Handling</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX320"><CODE>rl_free_undo_list</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC34">2.4.5 Allowing Undoing</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX443">rl_full_quoting_desired</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX313"><CODE>rl_function_dumper</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC33">2.4.4 Associating Function Names and Bindings</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX307"><CODE>rl_function_of_keyseq</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC33">2.4.4 Associating Function Names and Bindings</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX308"><CODE>rl_function_of_keyseq_len</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC33">2.4.4 Associating Function Names and Bindings</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX315"><CODE>rl_funmap_names</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC33">2.4.4 Associating Function Names and Bindings</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX303"><CODE>rl_generic_bind</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC32">2.4.3 Binding Keys</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX285"><CODE>rl_get_keymap</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC31">2.4.2 Selecting a Keymap</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX287"><CODE>rl_get_keymap_by_name</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC31">2.4.2 Selecting a Keymap</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX288"><CODE>rl_get_keymap_name</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC31">2.4.2 Selecting a Keymap</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX400"><CODE>rl_get_screen_size</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC44">2.5 Readline Signal Handling</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX377"><CODE>rl_get_termcap</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC40">2.4.11 Miscellaneous Functions</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX344"><CODE>rl_getc</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC37">2.4.8 Character Input</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX260">rl_getc_function</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX250">rl_gnu_readline_p</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX440">rl_ignore_completion_duplicates</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX419">rl_ignore_some_completions_function</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX448">rl_inhibit_completion</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX361"><CODE>rl_initialize</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC39">2.4.10 Utility Functions</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX263">rl_input_available_hook</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX409"><CODE>rl_insert_completions</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC47">2.6.2 Completion Functions</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX337"><CODE>rl_insert_text</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC36">2.4.7 Modifying Text</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX253">rl_instream</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX310"><CODE>rl_invoking_keyseqs</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC33">2.4.4 Associating Function Names and Bindings</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX311"><CODE>rl_invoking_keyseqs_in_map</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC33">2.4.4 Associating Function Names and Bindings</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX382"><CODE>rl_keep_mark_active</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC40">2.4.11 Miscellaneous Functions</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX273">rl_key_sequence_length</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX340"><CODE>rl_kill_text</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC36">2.4.7 Modifying Text</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX256">rl_last_func</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX248">rl_library_version</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX235">rl_line_buffer</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX314"><CODE>rl_list_funmap_names</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC33">2.4.4 Associating Function Names and Bindings</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX371"><CODE>rl_macro_bind</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC40">2.4.11 Miscellaneous Functions</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX267">rl_macro_display_hook</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX372"><CODE>rl_macro_dumper</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC40">2.4.11 Miscellaneous Functions</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX279"><CODE>rl_make_bare_keymap</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC31">2.4.2 Selecting a Keymap</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX281"><CODE>rl_make_keymap</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC31">2.4.2 Selecting a Keymap</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX238">rl_mark</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX383"><CODE>rl_mark_active_p</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC40">2.4.11 Miscellaneous Functions</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX331"><CODE>rl_message</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC35">2.4.6 Redisplay</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX322"><CODE>rl_modifying</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC34">2.4.5 Allowing Undoing</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX306"><CODE>rl_named_function</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC33">2.4.4 Associating Function Names and Bindings</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX241">rl_num_chars_to_read</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX276">rl_numeric_arg</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX325"><CODE>rl_on_new_line</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC35">2.4.6 Redisplay</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX326"><CODE>rl_on_new_line_with_prompt</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC35">2.4.6 Redisplay</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX254">rl_outstream</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX304"><CODE>rl_parse_and_bind</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC32">2.4.3 Binding Keys</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX242">rl_pending_input</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX392"><CODE>rl_pending_signal</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC44">2.5 Readline Signal Handling</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX390">rl_persistent_signal_handlers</A></TD><TD valign=top><A HREF="readline.html#SEC44">2.5 Readline Signal Handling</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX236">rl_point</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX408"><CODE>rl_possible_completions</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC47">2.6.2 Completion Functions</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX258">rl_pre_input_hook</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX255">rl_prefer_env_winsize</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX265">rl_prep_term_function</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX351"><CODE>rl_prep_terminal</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC38">2.4.9 Terminal Management</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX312"><CODE>rl_print_keybinding</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC33">2.4.4 Associating Function Names and Bindings</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX245">rl_prompt</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX342"><CODE>rl_push_macro_input</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC36">2.4.7 Modifying Text</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX305"><CODE>rl_read_init_file</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC32">2.4.3 Binding Keys</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX343"><CODE>rl_read_key</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC37">2.4.8 Character Input</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX252">rl_readline_name</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX274">rl_readline_state</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX249">rl_readline_version</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX323"><CODE>rl_redisplay</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC35">2.4.6 Redisplay</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX264">rl_redisplay_function</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX378"><CODE>rl_reparse_colors</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC40">2.4.11 Miscellaneous Functions</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX341"><CODE>rl_replace_line</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC36">2.4.7 Modifying Text</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX395"><CODE>rl_reset_after_signal</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC44">2.5 Readline Signal Handling</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX328"><CODE>rl_reset_line_state</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC35">2.4.6 Redisplay</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX401"><CODE>rl_reset_screen_size</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC44">2.5 Readline Signal Handling</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX356"><CODE>rl_reset_terminal</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC38">2.4.9 Terminal Management</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX398"><CODE>rl_resize_terminal</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC44">2.5 Readline Signal Handling</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX334"><CODE>rl_restore_prompt</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC35">2.4.6 Redisplay</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX358"><CODE>rl_restore_state</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC39">2.4.10 Utility Functions</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX333"><CODE>rl_save_prompt</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC35">2.4.6 Redisplay</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX357"><CODE>rl_save_state</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC39">2.4.10 Utility Functions</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX300"><CODE>rl_set_key</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC32">2.4.3 Binding Keys</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX348"><CODE>rl_set_keyboard_input_timeout</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC37">2.4.8 Character Input</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX286"><CODE>rl_set_keymap</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC31">2.4.2 Selecting a Keymap</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX289"><CODE>rl_set_keymap_name</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC31">2.4.2 Selecting a Keymap</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX376"><CODE>rl_set_paren_blink_timeout</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC40">2.4.11 Miscellaneous Functions</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX336"><CODE>rl_set_prompt</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC35">2.4.6 Redisplay</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX399"><CODE>rl_set_screen_size</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC44">2.5 Readline Signal Handling</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX402"><CODE>rl_set_signals</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC44">2.5 Readline Signal Handling</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX349"><CODE>rl_set_timeout</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC37">2.4.8 Character Input</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX330"><CODE>rl_show_char</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC35">2.4.6 Redisplay</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX261">rl_signal_event_hook</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX445">rl_sort_completion_matches</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX432">rl_special_prefixes</A></TD><TD valign=top><A HREF="readline.html#SEC48">2.6.3 Completion Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX257">rl_startup_hook</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX345"><CODE>rl_stuff_char</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC37">2.4.8 Character Input</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX251">rl_terminal_name</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX262">rl_timeout_event_hook</A></TD><TD valign=top><A HREF="readline.html#SEC28">2.3 Readline Variables</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX350"><CODE>rl_timeout_remaining</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC37">2.4.8 Character Input</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX309"><CODE>rl_trim_arg_from_keyseq</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC33">2.4.4 Associating Function Names and Bindings</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX353"><CODE>rl_tty_set_default_bindings</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC38">2.4.9 Terminal Management</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX355"><CODE>rl_tty_set_echoing</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC38">2.4.9 Terminal Management</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX354"><CODE>rl_tty_unset_default_bindings</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC38">2.4.9 Terminal Management</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX297"><CODE>rl_unbind_command_in_map</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC32">2.4.3 Binding Keys</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX296"><CODE>rl_unbind_function_in_map</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC32">2.4.3 Binding Keys</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX294"><CODE>rl_unbind_key</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC32">2.4.3 Binding Keys</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX295"><CODE>rl_unbind_key_in_map</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC32">2.4.3 Binding Keys</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX413"><CODE>rl_username_completion_function</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC47">2.6.2 Completion Functions</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX373"><CODE>rl_variable_bind</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC40">2.4.11 Miscellaneous Functions</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX375"><CODE>rl_variable_dumper</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC40">2.4.11 Miscellaneous Functions</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX374"><CODE>rl_variable_value</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC40">2.4.11 Miscellaneous Functions</A></TD></TR>
<TR><TD COLSPAN=3> <HR></TD></TR>
<TR><TH><A NAME="fn_S"></A>S</TH><TD></TD><TD></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX43">search-ignore-case</A></TD><TD valign=top><A HREF="readline.html#SEC10">1.3.1 Readline Init File Syntax</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX119"><CODE>self-insert (a, b, A, 1, !, <small>...</small>)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC16">1.4.3 Commands For Changing Text</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX120"><CODE>self-insert (a, b, A, 1, !, <small>...</small>)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC16">1.4.3 Commands For Changing Text</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX203"><CODE>set-mark (C-@)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX204"><CODE>set-mark (C-@)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX209"><CODE>set-mark (C-@)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX210"><CODE>set-mark (C-@)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX44">show-all-if-ambiguous</A></TD><TD valign=top><A HREF="readline.html#SEC10">1.3.1 Readline Init File Syntax</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX45">show-all-if-unmodified</A></TD><TD valign=top><A HREF="readline.html#SEC10">1.3.1 Readline Init File Syntax</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX46">show-mode-in-prompt</A></TD><TD valign=top><A HREF="readline.html#SEC10">1.3.1 Readline Init File Syntax</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX47">skip-completed-text</A></TD><TD valign=top><A HREF="readline.html#SEC10">1.3.1 Readline Init File Syntax</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX211"><CODE>skip-csi-sequence ()</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX212"><CODE>skip-csi-sequence ()</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX181"><CODE>start-kbd-macro (C-x ()</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC20">1.4.7 Keyboard Macros</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX182"><CODE>start-kbd-macro (C-x ()</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC20">1.4.7 Keyboard Macros</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX217"><CODE>skip-csi-sequence ()</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX218"><CODE>skip-csi-sequence ()</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX187"><CODE>start-kbd-macro (C-x ()</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC20">1.4.7 Keyboard Macros</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX188"><CODE>start-kbd-macro (C-x ()</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC20">1.4.7 Keyboard Macros</A></TD></TR>
<TR><TD COLSPAN=3> <HR></TD></TR>
<TR><TH><A NAME="fn_T"></A>T</TH><TD></TD><TD></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX117"><CODE>tab-insert (M-<KBD>TAB</KBD>)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC16">1.4.3 Commands For Changing Text</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX118"><CODE>tab-insert (M-<KBD>TAB</KBD>)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC16">1.4.3 Commands For Changing Text</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX201"><CODE>tilde-expand (M-~)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX202"><CODE>tilde-expand (M-~)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX207"><CODE>tilde-expand (M-~)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX208"><CODE>tilde-expand (M-~)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX123"><CODE>transpose-chars (C-t)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC16">1.4.3 Commands For Changing Text</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX124"><CODE>transpose-chars (C-t)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC16">1.4.3 Commands For Changing Text</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX125"><CODE>transpose-words (M-t)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC16">1.4.3 Commands For Changing Text</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX126"><CODE>transpose-words (M-t)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC16">1.4.3 Commands For Changing Text</A></TD></TR>
<TR><TD COLSPAN=3> <HR></TD></TR>
<TR><TH><A NAME="fn_U"></A>U</TH><TD></TD><TD></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX197"><CODE>undo (C-_ or C-x C-u)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX198"><CODE>undo (C-_ or C-x C-u)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX203"><CODE>undo (C-_ or C-x C-u)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX204"><CODE>undo (C-_ or C-x C-u)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX167"><CODE>universal-argument ()</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC18">1.4.5 Specifying Numeric Arguments</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX168"><CODE>universal-argument ()</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC18">1.4.5 Specifying Numeric Arguments</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX149"><CODE>unix-filename-rubout ()</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC17">1.4.4 Killing And Yanking</A></TD></TR>
<TR><TD COLSPAN=3> <HR></TD></TR>
<TR><TH><A NAME="fn_V"></A>V</TH><TD></TD><TD></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX48">vi-cmd-mode-string</A></TD><TD valign=top><A HREF="readline.html#SEC10">1.3.1 Readline Init File Syntax</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX225"><CODE>vi-editing-mode (M-C-j)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
-<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX226"><CODE>vi-editing-mode (M-C-j)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX231"><CODE>vi-editing-mode (M-C-j)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
+<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX232"><CODE>vi-editing-mode (M-C-j)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC21">1.4.8 Some Miscellaneous Commands</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX49">vi-ins-mode-string</A></TD><TD valign=top><A HREF="readline.html#SEC10">1.3.1 Readline Init File Syntax</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX50">visible-stats</A></TD><TD valign=top><A HREF="readline.html#SEC10">1.3.1 Readline Init File Syntax</A></TD></TR>
<TR><TD COLSPAN=3> <HR></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX163"><CODE>yank-pop (M-y)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC17">1.4.4 Killing And Yanking</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="readline.html#IDX164"><CODE>yank-pop (M-y)</CODE></A></TD><TD valign=top><A HREF="readline.html#SEC17">1.4.4 Killing And Yanking</A></TD></TR>
<TR><TD COLSPAN=3> <HR></TD></TR>
-</TABLE><P></P><table><tr><th valign=top>Jump to: </th><td><A HREF="readline.html#fn__" style="text-decoration:none"><b>_</b></A>
+</TABLE><P></P><table><tr><th valign=top>Jump to: </th><td><A HREF="readline.html#fn_" style="text-decoration:none"><b></b></A>
+
+<A HREF="readline.html#fn_ " style="text-decoration:none"><b> </b></A>
+
+<A HREF="readline.html#fn__" style="text-decoration:none"><b>_</b></A>
<BR>
<A HREF="readline.html#fn_A" style="text-decoration:none"><b>A</b></A>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="readline.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H1>About this document</H1>
-This document was generated by <I>Chet Ramey</I> on <I>November, 1 2024</I>
+This document was generated by <I>Chet Ramey</I> on <I>December, 2 2024</I>
using <A HREF="http://www.mathematik.uni-kl.de/~obachman/Texi2html
"><I>texi2html</I></A>
<P></P>
<BR>
<FONT SIZE="-1">
This document was generated
-by <I>Chet Ramey</I> on <I>November, 1 2024</I>
+by <I>Chet Ramey</I> on <I>December, 2 2024</I>
using <A HREF="http://www.mathematik.uni-kl.de/~obachman/Texi2html
"><I>texi2html</I></A>
This is readline.info, produced by makeinfo version 7.1 from rlman.texi.
-This manual describes the GNU Readline Library (version 8.3, 15 November
+This manual describes the GNU Readline Library (version 8.3, 29 November
2024), a library which aids in the consistency of user interface across
discrete programs which provide a command line interface.
string. Typing ‘C-s’ searches forward through the history. The
characters present in the value of the ‘isearch-terminators’ variable
are used to terminate an incremental search. If that variable has not
-been assigned a value, the <ESC> and ‘C-J’ characters will terminate an
-incremental search. ‘C-g’ will abort an incremental search and restore
-the original line. When the search is terminated, the history entry
+been assigned a value, the <ESC> and ‘C-j’ characters terminate an
+incremental search. ‘C-g’ aborts an incremental search and restores the
+original line. When the search is terminated, the history entry
containing the search string becomes the current line.
To find other matching entries in the history list, type ‘C-r’ or
-‘C-s’ as appropriate. This will search backward or forward in the
-history for the next entry matching the search string typed so far. Any
-other key sequence bound to a Readline command will terminate the search
-and execute that command. For instance, a <RET> will terminate the
-search and accept the line, thereby executing the command from the
-history list. A movement command will terminate the search, make the
-last line found the current line, and begin editing.
+‘C-s’ as appropriate. This searches backward or forward in the history
+for the next entry matching the search string typed so far. Any other
+key sequence bound to a Readline command terminates the search and
+executes that command. For instance, a <RET> terminates the search and
+accepts the line, thereby executing the command from the history list.
+A movement command will terminate the search, make the last line found
+the current line, and begin editing.
Readline remembers the last incremental search string. If two ‘C-r’s
are typed without any intervening characters defining a new search
is ‘~/.inputrc’. If that file does not exist or cannot be read,
Readline looks for ‘/etc/inputrc’.
- When a program which uses the Readline library starts up, Readline
+ When a program that uses the Readline library starts up, Readline
reads the init file and sets any variables and key bindings it contains.
In addition, the ‘C-x C-r’ command re-reads this init file, thus
The number of screen columns used to display possible matches
when performing completion. The value is ignored if it is
less than 0 or greater than the terminal screen width. A
- value of 0 will cause matches to be displayed one per line.
- The default value is -1.
+ value of 0 causes matches to be displayed one per line. The
+ default value is -1.
‘completion-ignore-case’
If set to ‘on’, Readline performs filename matching and
The number of possible completions that determines when the
user is asked whether the list of possibilities should be
displayed. If the number of possible completions is greater
- than or equal to this value, Readline will ask whether or not
- the user wishes to view them; otherwise, Readline simply lists
- the completions. This variable must be set to an integer
- value greater than or equal to zero. A zero value means
- Readline should never ask; negative values are treated as
- zero. The default limit is ‘100’.
+ than or equal to this value, Readline asks whether or not the
+ user wishes to view them; otherwise, Readline simply lists the
+ completions. This variable must be set to an integer value
+ greater than or equal to zero. A zero value means Readline
+ should never ask; negative values are treated as zero. The
+ default limit is ‘100’.
‘convert-meta’
- If set to ‘on’, Readline will convert characters it reads that
+ If set to ‘on’, Readline converts characters it reads that
have the eighth bit set to an ASCII key sequence by clearing
the eighth bit and prefixing an <ESC> character, converting
them to a meta-prefixed key sequence. The default value is
- ‘on’, but Readline will set it to ‘off’ if the locale contains
+ ‘on’, but Readline sets it to ‘off’ if the locale contains
characters whose encodings may include bytes with the eighth
bit set. This variable is dependent on the ‘LC_CTYPE’ locale
category, and may change if the locale changes. This variable
‘force-meta-prefix’ below.
‘disable-completion’
- If set to ‘On’, Readline will inhibit word completion.
- Completion characters will be inserted into the line as if
- they had been mapped to ‘self-insert’. The default is ‘off’.
+ If set to ‘On’, Readline inhibits word completion. Completion
+ characters are inserted into the line as if they had been
+ mapped to ‘self-insert’. The default is ‘off’.
‘echo-control-characters’
When set to ‘on’, on operating systems that indicate they
appearing in the pasted text. The default is ‘On’.
‘enable-keypad’
- When set to ‘on’, Readline will try to enable the application
+ When set to ‘on’, Readline tries to enable the application
keypad when it is called. Some systems need this to enable
the arrow keys. The default is ‘off’.
‘enable-meta-key’
- When set to ‘on’, Readline will try to enable any meta
- modifier key the terminal claims to support when it is called.
- On many terminals, the Meta key is used to send eight-bit
- characters; this variable checks for the terminal capability
- that indicates the terminal can enable and disable a mode that
- sets the eighth bit of a character (0200) if the Meta key is
- held down when the character is typed (a meta character). The
+ When set to ‘on’, Readline tries to enable any meta modifier
+ key the terminal claims to support when it is called. On many
+ terminals, the Meta key is used to send eight-bit characters;
+ this variable checks for the terminal capability that
+ indicates the terminal can enable and disable a mode that sets
+ the eighth bit of a character (0200) if the Meta key is held
+ down when the character is typed (a meta character). The
default is ‘on’.
‘expand-tilde’
default, this variable is set to ‘off’.
‘input-meta’
- If set to ‘on’, Readline will enable eight-bit input (that is,
- it will not clear the eighth bit in the characters it reads),
+ If set to ‘on’, Readline enables eight-bit input (that is, it
+ does not clear the eighth bit in the characters it reads),
regardless of what the terminal claims it can support. The
- default value is ‘off’, but Readline will set it to ‘on’ if
- the locale contains characters whose encodings may include
- bytes with the eighth bit set. This variable is dependent on
- the ‘LC_CTYPE’ locale category, and its value may change if
- the locale changes. The name ‘meta-flag’ is a synonym for
+ default value is ‘off’, but Readline sets it to ‘on’ if the
+ locale contains characters whose encodings may include bytes
+ with the eighth bit set. This variable is dependent on the
+ ‘LC_CTYPE’ locale category, and its value may change if the
+ locale changes. The name ‘meta-flag’ is a synonym for
‘input-meta’.
‘isearch-terminators’
The string of characters that should terminate an incremental
search without subsequently executing the character as a
command (*note Searching::). If this variable has not been
- given a value, the characters <ESC> and ‘C-J’ will terminate
- an incremental search.
+ given a value, the characters <ESC> and ‘C-j’ terminate an
+ incremental search.
‘keymap’
Sets Readline's idea of the current keymap for key binding
reading an ambiguous key sequence (one that can form a
complete key sequence using the input read so far, or can take
additional input to complete a longer key sequence). If
- Readline doesn't receive any input within the timeout, it will
- use the shorter but complete key sequence. Readline uses this
+ Readline doesn't receive any input within the timeout, it uses
+ the shorter but complete key sequence. Readline uses this
value to determine whether or not input is available on the
current input source (‘rl_instream’ by default). The value is
specified in milliseconds, so a value of 1000 means that
Readline will wait one second for additional input. If this
variable is set to a value less than or equal to zero, or to a
- non-numeric value, Readline will wait until another key is
- pressed to decide which key sequence to complete. The default
- value is ‘500’.
+ non-numeric value, Readline waits until another key is pressed
+ to decide which key sequence to complete. The default value
+ is ‘500’.
‘mark-directories’
If set to ‘on’, completed directory names have a slash
appended. The default is ‘on’.
‘mark-modified-lines’
- When this variable is set to ‘on’, Readline will to display an
+ When this variable is set to ‘on’, Readline displays an
asterisk (‘*’) at the start of history lines which have been
modified. This variable is ‘off’ by default.
cycling through the list. The default is ‘off’.
‘output-meta’
- If set to ‘on’, Readline will display characters with the
- eighth bit set directly rather than as a meta-prefixed escape
- sequence. The default is ‘off’, but Readline will set it to
- ‘on’ if the locale contains characters whose encodings may
- include bytes with the eighth bit set. This variable is
- dependent on the ‘LC_CTYPE’ locale category, and its value may
- change if the locale changes.
+ If set to ‘on’, Readline displays characters with the eighth
+ bit set directly rather than as a meta-prefixed escape
+ sequence. The default is ‘off’, but Readline sets it to ‘on’
+ if the locale contains characters whose encodings may include
+ bytes with the eighth bit set. This variable is dependent on
+ the ‘LC_CTYPE’ locale category, and its value may change if
+ the locale changes.
‘page-completions’
- If set to ‘on’, Readline uses an internal ‘more’-like pager to
- display a screenful of possible completions at a time. This
- variable is ‘on’ by default.
+ If set to ‘on’, Readline uses an internal pager resembling
+ more(1) to display a screenful of possible completions at a
+ time. This variable is ‘on’ by default.
‘prefer-visible-bell’
See ‘bell-style’.
‘print-completions-horizontally’
- If set to ‘on’, Readline will display completions with matches
+ If set to ‘on’, Readline displays completions with matches
sorted horizontally in alphabetical order, rather than down
the screen. The default is ‘off’.
on some keyboards.
‘forward-char (C-f)’
- Move forward a character.
+ Move forward a character. This may also be bound to the right
+ arrow key on some keyboards.
‘backward-char (C-b)’
- Move back a character.
+ Move back a character. This may also be bound to the left arrow
+ key on some keyboards.
‘forward-word (M-f)’
Move forward to the end of the next word. Words are composed of
‘previous-history (C-p)’
Move 'back' through the history list, fetching the previous
- command.
+ command. This may also be bound to the up arrow key on some
+ keyboards.
‘next-history (C-n)’
Move 'forward' through the history list, fetching the next command.
+ This may also be bound to the down arrow key on some keyboards.
‘beginning-of-history (M-<)’
Move to the first line in the history.
write the list of possible completions to Readline's output stream
using the following format, writing information on separate lines:
- The number of matches;
- The word being completed;
- S:E, where S and E are the start and end offsets of the word
- in the readline line buffer; then
- Each match, one per line
+ • the number of matches N;
+ • the word being completed;
+ • S:E, where S and E are the start and end offsets of the word
+ in the Readline line buffer; then
+ • each match, one per line
- If there are no matches, the first line will be 0, and this command
- will not print any output after the S:E. If there is only a single
- match, this prints a single line containing it. If there is more
- than one match, this prints the common prefix of the matches, which
- may be empty, on the first line after the S:E, then the matches on
- subsequent lines. In this case, N will include the first line with
- the common prefix.
+ If there are no matches, the first line will be "0", and this
+ command does not print any output after the S:E. If there is only
+ a single match, this prints a single line containing it. If there
+ is more than one match, this prints the common prefix of the
+ matches, which may be empty, on the first line after the S:E, then
+ the matches on subsequent lines. In this case, N will include the
+ first line with the common prefix.
The user or application should be able to accommodate the
possibility of a blank line. The intent is that the user or
‘skip-csi-sequence ()’
Read enough characters to consume a multi-key sequence such as
those defined for keys like Home and End. CSI sequences begin with
- a Control Sequence Indicator (CSI), usually ESC-[. If this
- sequence is bound to "\e[", keys producing CSI sequences will have
- no effect unless explicitly bound to a Readline command, instead of
+ a Control Sequence Indicator (CSI), usually ‘ESC [’. If this
+ sequence is bound to "\e[", keys producing CSI sequences have no
+ effect unless explicitly bound to a Readline command, instead of
inserting stray characters into the editing buffer. This is
- unbound by default, but usually bound to ESC-[.
+ unbound by default, but usually bound to ‘ESC [’.
‘insert-comment (M-#)’
Without a numeric argument, insert the value of the ‘comment-begin’
(line 48)
* active-region-start-color: Readline Init File Syntax.
(line 35)
-* backward-char (C-b): Commands For Moving. (line 17)
+* backward-char (C-b): Commands For Moving. (line 18)
* backward-delete-char (Rubout): Commands For Text. (line 18)
* backward-kill-line (C-x Rubout): Commands For Killing.
(line 11)
* backward-kill-word (M-<DEL>): Commands For Killing.
(line 28)
-* backward-word (M-b): Commands For Moving. (line 24)
+* backward-word (M-b): Commands For Moving. (line 26)
* beginning-of-history (M-<): Commands For History.
- (line 19)
+ (line 21)
* beginning-of-line (C-a): Commands For Moving. (line 6)
* bell-style: Readline Init File Syntax.
(line 61)
(line 41)
* character-search-backward (M-C-]): Miscellaneous Commands.
(line 45)
-* clear-display (M-C-l): Commands For Moving. (line 42)
-* clear-screen (C-l): Commands For Moving. (line 47)
+* clear-display (M-C-l): Commands For Moving. (line 44)
+* clear-screen (C-l): Commands For Moving. (line 49)
* colored-completion-prefix: Readline Init File Syntax.
(line 81)
* colored-stats: Readline Init File Syntax.
* end-kbd-macro (C-x )): Keyboard Macros. (line 9)
* end-of-file (usually C-d): Commands For Text. (line 6)
* end-of-history (M->): Commands For History.
- (line 22)
+ (line 24)
* end-of-line (C-e): Commands For Moving. (line 10)
* exchange-point-and-mark (C-x C-x): Miscellaneous Commands.
(line 37)
* export-completions (): Commands For Completion.
(line 38)
* fetch-history (): Commands For History.
- (line 105)
+ (line 107)
* force-meta-prefix: Readline Init File Syntax.
(line 216)
* forward-backward-delete-char (): Commands For Text. (line 23)
* forward-char (C-f): Commands For Moving. (line 14)
* forward-search-history (C-s): Commands For History.
- (line 32)
-* forward-word (M-f): Commands For Moving. (line 20)
+ (line 34)
+* forward-word (M-f): Commands For Moving. (line 22)
* history-preserve-point: Readline Init File Syntax.
(line 229)
* history-search-backward (): Commands For History.
- (line 50)
+ (line 52)
* history-search-forward (): Commands For History.
- (line 57)
+ (line 59)
* history-size: Readline Init File Syntax.
(line 235)
* history-substring-search-backward (): Commands For History.
- (line 64)
+ (line 66)
* history-substring-search-forward (): Commands For History.
- (line 70)
+ (line 72)
* horizontal-scroll-mode: Readline Init File Syntax.
(line 244)
* input-meta: Readline Init File Syntax.
* meta-flag: Readline Init File Syntax.
(line 252)
* next-history (C-n): Commands For History.
- (line 16)
-* next-screen-line (): Commands For Moving. (line 35)
+ (line 17)
+* next-screen-line (): Commands For Moving. (line 37)
* non-incremental-forward-search-history (M-n): Commands For History.
- (line 44)
+ (line 46)
* non-incremental-reverse-search-history (M-p): Commands For History.
- (line 38)
+ (line 40)
* operate-and-get-next (C-o): Commands For History.
- (line 98)
+ (line 100)
* output-meta: Readline Init File Syntax.
(line 322)
* overwrite-mode (): Commands For Text. (line 73)
(line 19)
* previous-history (C-p): Commands For History.
(line 12)
-* previous-screen-line (): Commands For Moving. (line 28)
+* previous-screen-line (): Commands For Moving. (line 30)
* print-last-kbd-macro (): Keyboard Macros. (line 17)
* quoted-insert (C-q or C-v): Commands For Text. (line 28)
* re-read-init-file (C-x C-r): Miscellaneous Commands.
(line 6)
* readline: Basic Behavior. (line 11)
-* redraw-current-line (): Commands For Moving. (line 51)
+* redraw-current-line (): Commands For Moving. (line 53)
* reverse-search-history (C-r): Commands For History.
- (line 26)
+ (line 28)
* revert-all-at-newline: Readline Init File Syntax.
(line 344)
* revert-line (M-r): Miscellaneous Commands.
* yank (C-y): Commands For Killing.
(line 63)
* yank-last-arg (M-. or M-_): Commands For History.
- (line 86)
+ (line 88)
* yank-nth-arg (M-C-y): Commands For History.
- (line 76)
+ (line 78)
* yank-pop (M-y): Commands For Killing.
(line 66)
Node: Readline Killing Commands\7f8601
Node: Readline Arguments\7f10628
Node: Searching\7f11689
-Node: Readline Init File\7f13920
-Node: Readline Init File Syntax\7f15118
-Node: Conditional Init Constructs\7f41510
-Node: Sample Init File\7f45899
-Node: Bindable Readline Commands\7f49024
-Node: Commands For Moving\7f50408
-Node: Commands For History\7f52338
-Node: Commands For Text\7f57543
-Node: Commands For Killing\7f61388
-Node: Numeric Arguments\7f63844
-Node: Commands For Completion\7f65000
-Node: Keyboard Macros\7f68270
-Node: Miscellaneous Commands\7f68975
-Node: Readline vi Mode\7f73299
-Node: Programming with GNU Readline\7f75196
-Node: Basic Behavior\7f76182
-Node: Custom Functions\7f80245
-Node: Readline Typedefs\7f81767
-Node: Function Writing\7f83653
-Node: Readline Variables\7f84959
-Node: Readline Convenience Functions\7f99913
-Node: Function Naming\7f100989
-Node: Keymaps\7f102320
-Node: Binding Keys\7f105482
-Node: Associating Function Names and Bindings\7f110307
-Node: Allowing Undoing\7f114137
-Node: Redisplay\7f116887
-Node: Modifying Text\7f121189
-Node: Character Input\7f122728
-Node: Terminal Management\7f125885
-Node: Utility Functions\7f127772
-Node: Miscellaneous Functions\7f130882
-Node: Alternate Interface\7f134772
-Node: A Readline Example\7f137667
-Node: Alternate Interface Example\7f139585
-Node: Readline Signal Handling\7f143204
-Node: Custom Completers\7f152754
-Node: How Completing Works\7f153474
-Node: Completion Functions\7f156850
-Node: Completion Variables\7f160517
-Node: A Short Completion Example\7f178835
-Node: GNU Free Documentation License\7f191504
-Node: Concept Index\7f216681
-Node: Function and Variable Index\7f218202
+Node: Readline Init File\7f13902
+Node: Readline Init File Syntax\7f15099
+Node: Conditional Init Constructs\7f41427
+Node: Sample Init File\7f45816
+Node: Bindable Readline Commands\7f48941
+Node: Commands For Moving\7f50325
+Node: Commands For History\7f52396
+Node: Commands For Text\7f57738
+Node: Commands For Killing\7f61583
+Node: Numeric Arguments\7f64039
+Node: Commands For Completion\7f65195
+Node: Keyboard Macros\7f68478
+Node: Miscellaneous Commands\7f69183
+Node: Readline vi Mode\7f73514
+Node: Programming with GNU Readline\7f75411
+Node: Basic Behavior\7f76397
+Node: Custom Functions\7f80460
+Node: Readline Typedefs\7f81982
+Node: Function Writing\7f83868
+Node: Readline Variables\7f85174
+Node: Readline Convenience Functions\7f100128
+Node: Function Naming\7f101204
+Node: Keymaps\7f102535
+Node: Binding Keys\7f105697
+Node: Associating Function Names and Bindings\7f110522
+Node: Allowing Undoing\7f114352
+Node: Redisplay\7f117102
+Node: Modifying Text\7f121404
+Node: Character Input\7f122943
+Node: Terminal Management\7f126100
+Node: Utility Functions\7f127987
+Node: Miscellaneous Functions\7f131097
+Node: Alternate Interface\7f134987
+Node: A Readline Example\7f137882
+Node: Alternate Interface Example\7f139800
+Node: Readline Signal Handling\7f143419
+Node: Custom Completers\7f152969
+Node: How Completing Works\7f153689
+Node: Completion Functions\7f157065
+Node: Completion Variables\7f160732
+Node: A Short Completion Example\7f179050
+Node: GNU Free Documentation License\7f191719
+Node: Concept Index\7f216896
+Node: Function and Variable Index\7f218417
\1f
End Tag Table
%!PS-Adobe-2.0
%%Creator: dvips(k) 2024.1 (TeX Live 2024) Copyright 2024 Radical Eye Software
%%Title: readline.dvi
-%%CreationDate: Fri Nov 1 22:18:31 2024
-%%Pages: 88
+%%CreationDate: Mon Dec 2 20:02:16 2024
+%%Pages: 89
%%PageOrder: Ascend
%%BoundingBox: 0 0 596 842
%%DocumentFonts: CMBX12 CMR10 CMTT10 CMSY10 CMMI12 CMMI10 CMCSC10
%DVIPSWebPage: (www.radicaleye.com)
%DVIPSCommandLine: dvips -D 300 -o readline.ps readline.dvi
%DVIPSParameters: dpi=300
-%DVIPSSource: TeX output 2024.11.01:1818
+%DVIPSSource: TeX output 2024.12.02:1202
%%BeginProcSet: tex.pro 0 0
%!
/TeXDict 300 dict def TeXDict begin/N{def}def/B{bind def}N/S{exch}N/X{S
dup 68 /D put
dup 69 /E put
dup 72 /H put
-dup 74 /J put
dup 76 /L put
dup 77 /M put
dup 83 /S put
+dup 91 /bracketleft put
dup 92 /backslash put
dup 95 /underscore put
dup 97 /a put
63BC50D249580DDE8BFA1CC5E1F003B30FD323F536A836A92304F7812080B30B
D64036CC285DBF1797211E99211D9372CCD56C4EBEA86DFF83984E65B641224F
2B39A7EE18E22992D6E4E6BFF82C7F4633B9EAB9C2E2F1CCA68B8A6CE9ABFCEB
-4C5110F6941B31011F6AB3972215CAE054FBFCEBD2C51B97A874285FAB6500D6
-E0D252012D7B654DEE6CFEE7B1802E0DCADCD0B96586E6E5F7781D434BF3ABDD
-D82093062FB8C568B025014DF449551DE6EA90E99AD986D6847AC06989CCA843
-5A61F955C046287886990CC2C39392E58361F03F5512031202D82BA5229E9F8D
-238F415CFB4447BBBB227D380649C4103CD64FF97DF63E1930BBA186F78D77A0
-70CD84F31652F7827FCEEF7E6186A3E3AC31361C31167C7EB24B8E5C7A7C9C32
-7152ED127379BA6E62B3EDA72679E4FAD650CBD2134D19A295E56AD0CF51E5EF
-62CAAE638112D77BF814AB4D0117290BCC7C639DF4E8176E462CD2B5BDAFFB24
-FCCF0434FFFE8EAB587EB15686AE140C5167694D5C2C179D3278712A5C0D7A54
-6152AF2975B753B14B5E641EFBEFD3136BAEB1EEA42141F7D456F3A2628256EA
-8DDEBBCE288E454243B88EE930D0F1FD96F096AA2D3B3D89DBBE2D246E114A32
-943B6ADC29DA20560E047928C5E2CF51F4CFA3DFF1863CA9F4F8A1236F175C68
-6848F983570E42646BB725306985584CB1C04EA91AED19A4BDEA7A0392D1A027
-01CD2B6E67F7EC359C3D366295B5428F468FA96FB3AD6AC55575E6AEEA3DBC3E
-0C87E738D2202228F386BCC1001E2C6ED2EF0C09ED9AE6D8915C6324A83673BF
-338CB40AA0716736918ACF34EFCB1D74858F06C717AF928C6385804D431ABFEE
-8EFA4948AFE9C8FFF18C42A9254720965B87642C74E4732A7BA2EF445480E471
-09991E6FB264446B6BCD3D45117E4241F1BCA5A7B190D9F6D22B8C8E1EDC6AC9
-E49429A72BDC06E9C381975408F1514467932C99B33B1E56D22E650A30A139A2
-9C30A7989935E5843FF97615AE53EA35414E3A89BE68EC96241382B6F1B06527
-BF325F57C91BA6613ADDC1ECCC515ADD7C5045B4C15C99F94CBB55FCA7617FDB
-1224D534059A85308F3AB3A49BAE5F36B6EDC5F4BEE21ED342AF6E5F7D6F4965
-7F87D9B4C1348C53E7178BBCB54AEFE197EA8AD41500DBF96A3B5669AB5346D1
-1DC8FC2F7E1CEDDEB84CB35152B3A8DD0298CB048910F3D70211D74988668225
-82CF8C5231705A1488ECF6AD9FAD6FB27CF846764277844A7DC46DFC69EBA6B1
-35D62458B2B54DB84F8809DFACC8DD910ACD07F577DBA983FA6E088CE237DB8E
-756B7AC10CD3C15E78357A1C767C04C346297320827F1B60E445B43BCED332F3
-6E8D02B3D98162C97DC577839177BA3F9324303116AE756C8A81595EB759BDBE
-83AFCBE7AA5A674E9F3211FD8B7A0BCBBC27F5EC64DCC49D26F07EE47EBD361E
-CDFD954183AC21BD10093673CF3F977BE7928E3851C0E44149610CA704337A94
-21C66665FCB6CA8A5A93DF2D0DB85E4FE6A76DE7D563ADCAED3A268C5AE46095
-37F51DF0E3E44E32041581954EEE3804C0CD227D687F73E9867CE8FFBE5379F9
-0F9926EDDDA61336D7133AD9F0E6726A00798E211724D8265200F2638E1D101B
-389B320CFEDC67C140A5D5478D82FD19BE881FF57FE4712530E4F2AC7BC9A051
-D2EB22C8C4B24D134159B03F5433FAC223752C2C6AADC6372E707CA91F905A50
-FE3DB39A3F42FF420696CFF77E81F47E6DEEA39085AEAE15162C50BABDC74B83
-0B683E66EC322121D44A17EF9A65303C646A1C6F822BCF22BF05188D9B8C670C
-F9C84C251F474BEF51F2C8F1D2007B3BADEACE0BE12F318FF2A7EEDD334F532F
-7947A483562C92D3093DF49405F10DAB9EB22076B004345A0AB054B7D6C30F77
-387819F781A1E9AE3450AC60E2CFA7D4304F7BCCE86DB8195DA132DC63E2ED23
-DFB3A92138A70002868B7A62FE45CB2AE476E28A2EB331D6886CD3F7422E22E0
-1A38DC4DBEFEA74ECF361B813C79B261400EC863D47EB0BFDF315FE06FAC834A
-BFEEC1053C904E34CF0DEE66A90D81DDE978FCDB6572482BD913736E5E028A3F
-271896F4DAE568FB682966AAF003B53C0D3EC294E8CDEA651C7C01940368DF71
-CAC09852EE8C6904DCAA722C23BD25F1D15F37B3FF2D7CBA7E840CCEE9E389F5
-ABE741DFA20159C327ECE4F16C85CC863B48A28B3BA2B247078FD5E215A530E0
-5CCAF3554EE41ACD2D922974A54DF2E19D68A1B631F06294B4530070EAF23A49
-A41FF9A610F38D43AB46365E9F4FD354F9CAFE3D2EA8A8A8A6D165569C6810BF
-39CADED26AA59493EF64871E0A39187D356902A1D528D32804CF267B6A8BDFA1
-61F559DF2F2AD592F8D6E717C1286014D6E3F9BAFF19CB3C7FF6D1AF35C15B9B
-CB603ED93A342D84C2FE7F67602C0815961B0093FF88524D1558D75A0AA392F9
-AA473A2777D454985D1DED29E1B73EC05F4468BA880187E11A4D312E54C7B8F2
-85828A57C0A23D0CE79C0525BAC2E28223B5DDC792AEEBACCD16D50FB857387B
-19CA13386D542079B24E3FD28929A5A51A65D7BC8378BB64A949CD2F87804FBA
-62B91F345BEEB85FA9BAFC4A6CF70A054CC2D6D1B28066BB6BE94A56B94F3D72
-FBE1984956A3C84B15A4C2B4B835EBD0484FEEC040CB21795F3841B10B51BA83
-48F1764EF9599A3A1EA9DE8AD5D2573147B307BFD28560F53DC7BB3C878D03D1
-A3931862663E9BE0CC7C911B7E092F0AF67E0710F0930ACB40D4E2BE96C54FB4
-6F126497BBC244788DC93139A942C62CD674B542C403A2D080DA0CD80D8DF77C
-CE123CDECBD4FF7057322BAB2DE448F738D8D0847A6220978093FD7DF53C46AD
-091474D7CB706945905EDEE41CCF0CF88CB3C416601E917F10FBFDCEFE280660
-5853E664F5A19DAF5176CC78E4C11E66A5F861AD062FD08A763661392B09019D
-DB92E6ECD7ED6385C11A7B06F958DE1DC58128E54FE087AC2FCB75142B2280EB
-2F303D6D89EF803FFBF51CEC3748C1C7CBB6B68D1A2D58F0C9FA4F11D6187EFF
-AF7066F115D3A92791A9B5A565D35B0C05E68E1C0CF5D3E7CF17071AD469BF24
-9776D3DD38B8E3B5EF61917345EBC145328500EA7FA7D1529172BD449154F45E
-994FC486629AB73A7C037C40756F01998F45B0C7DCDE495D6BC46F8C74A3301D
-3E67CCA6C76601B955D22419C196BCB6A364DA013D19CB3CC7C96FE623D4C297
-E40A62C9EAC215EDA4CB775D5D2E01C5DE404B41FF1AE8745DA180D347B9DC6A
-30E13E9131F01B7145B8A836352EBCACA6DCD8C5FC678B05A10FC87B99B0BE1A
-7CDF3F74F04B6311741A0CE36B0059F134DE5A4FF8BD78C0B672233A199D719C
-9FF5024147EF593B34ED944B9392CC729C14BC396F80DF850FA4FAF0DE983F50
-7B5067621AF7815C100EA9C9DCC87145B9C3C3C5CEA0E1ED48F7D5B523F29AF9
-CFE490F866987B8F7ED706E9941EED5AF5E1D5F5ECD093649398A598CDA48EF2
-1A0EEC40E73835157A7A7B30CA0657BB1B9E68E8E3A57FE6FCEC9511E579A452
-ECF2FD8A346E66CFAB96089ED734AE90988DDC478D07B188B50D245B4A4C99F7
-07902307DB82A0FF206CAC813CE35D858554034DC4AFBD6C4F9D927BA7EDE10A
-4624A888E4C2FC0D14A80B52FA76B55FB8E3FA3E42F80EECE0505316370FA477
-0F75F610C8BF4700EE5CAFD0065B63263CDB2443D7B0A6E5D746207D62AA285E
-A4F7CF22EC4A0113669B88C4FE4CB265906ADC628A2F2135B5B151878824084B
-C15A66E04D970714B40F2162A877B20D7F73F204510904B82C565098533B655B
-4BE90AFB9F680FE412058A56B7B0F26AC23C411610BF3E4594AD1D2E37DC816D
-C6D560A32EA3B7CFE827A0C866E91748A7A442CE322728ED49B31DB75590086A
-862E589797EAD60B21A267304E1D16CA28A1D3C6C32472A13A7C483D46CEFE30
-140595AA2848E963FB3B630213C82CB56A27E5CCBEC0929052EE1F131EDB4895
-230B441274D4BC7E436424919CE3E3CB117813BE96A0D7A7AE51F8257E4E1741
-F1E27E8ABA8CD17EEF372F8224A2E4FB888F33A2B2EFBB3DA4D51B8D1BCFC276
-AECBFB4273E6C087BC4EBDF8B3CB32DA1391F01886EE2C3CBE5D471E95BA6138
-0A1827806771364CC604446AE0C848FF72EE047141AF62ED1F4A1279B78BFFFF
-9808B7C82284BBED1D4EF4C9CBCB9C5628607BE65130CDDFECB6B4D392070997
-FEFDBE4F8F9ED172021B44392CD5CBA929B2CD916888B857B49AA892213F34AC
-AEA9A944D571662C599DD96CBB5A8344E4FE30334B11C91B773B1732B7004647
-EA87CB846AF8B657A6C5A4A5FF22A804B152206FE5A79AA48A9E1E2ECF3178CE
-AED5565523DED75DA94D595AD6E1F899F55F083D07AF133B5FAC44173A673A94
-CB3E232489F04A396F8D9041B26923FE100DE91CFFC05E320A9CB82A33E1508C
-EC32DB3B802D3D7C94D7D42B18A88765375723984FB80B1714335EBC38B33C3D
-CD2A23792F7FC844D682812ACF89F2C34BC30EB82747C47F18DC8568113E4E34
-A9C83F67DFAF6434BF54741FFAA0AEC52E242808E943DF5D232F418299AA2C9C
-C9AADCE9C16D9A799F19611B2859CF300F03B69F5E5F2B96F7DBE514597A5457
-C5B15FE3CB61AD13EC7D3A7A21B20361522202BDC5134215B7B0DE0F6EEB6EE0
-6784F968CD2A7B2001605D87324AC2AEF841A374C9ACF7E71468888D7086D9E2
-4CAE51380438C7955FC1984ECB01E100C99D16E827FE8ACF0A694D597EF3B303
-25553DC521AABE26B1FEDA811043CA4C9D7BDABA45288692705EE3480381DE24
-0F0699C39B1937310C0FD253DC3EEF19347B69A296CF554598DC46B86751295A
-43C055B00AD7C4017E373D2C425C911B553A00394B8E3F72DFFFBE639372145B
-135DC938E489463128CBDDBA7B84CDA85E7844F40FD2CFF0CF0DF5C666C522B5
-79BFA3B1ED50482EAB607510DDB8B1E91E12E989D39CB618514EB7B3D9865DD1
-554CEF820248E44B595B5B6269B0F5FBB0FE271CF12CAF65D167B5EE0647C8F3
-1CACC8CEAE9D5459CCF9C2E0BB95C465EFF1BAF18DC268D3CC09F7B944F4C12A
-97D95CC49A623BE263768CECCABF8C325A421A62C9467B967F420059ED04A06F
-391F3B2FBB0B63EEAA7C6BC035E3CB59B955750352FE3D941C2F597A7730816D
-CABBE5A0B549E8E017FF14F106EDD7A6E9A869FCB46F29EF7D33CBC5E05A9814
-47329E7D2A3C6AD3C9A497AD9D7AB4A6FE269009B9869F6268217F2A650B744B
-8CEEB535939B05E1985C5AEAB24FBE531010BEF0BC2B17EBB6D8F5AD961C1B3F
-990876DEC67BBCA281B7AE917B1B13188E75F0FE86C5B6B1D05FE0E3353F9BB4
-AD7AF46367AE6BF1E8C17C70AB365AC4CC11534D2590664FBDDC6FE2896679A1
-C396F4AE2DD96FCB15C6CF985F3B389F212D0204A7A37E2EA1773B32B1604833
-3A0C65721E8828BD41D8CF7B29A43955AF0A874B8608CCDB8248B0020493420E
-78FBDDB074A4BA0AC5A3172CE48B9B1EF6EF5FEC90C6100BFA807319305A0E79
-3ADA1DB52AB0A87DBB6EA98DBAF2D1FA96148E0108341C870ECC27F1364E4F99
-F5A4EFFDF0C96969A257BB7172E970A6A9D77F4430E02EA4E73C8B2D2BF989D7
-79C39B0964F2CD77185905AA1324EB0E0E604573492C4CBC309387582E616C6D
-55DE254F6D0117EF20DAFA3E1E3A7421403406797DE8905939A7B28BEBC8317B
-5DD7C98187F91758E60C765D72DEC2243F06CDF14E54484FC10E935936E140A7
-C5F47D16222F5EBEA918F59639EBFDAF63EE0E670EF4E266226DE4363DE6DF03
-DCDAAB957F81A38124F716D5D1DF20503F4B470C6E22056475519E205047CFF6
-0B268C967C3FF890DB39C5BA142568C2E15A3E857969B47977E8B23A5D6C67F1
-CBB0B132D6DEB27FBC80BD4E8967BD72E58000486DC1A0BB18DE4560BBA710F2
-165C8E63F101F5D8B52E8DF775E5212505AA4652C1332C890F8BE7939789C2C7
-C35DB69E8A53A9250269B6AC54D93F05357FA5353E7A25C230511E4F7D1DE728
-A2450A7532336A2B7F42B6FF494326A2158D8874041A3E655771AFD6F5AF345F
-235DD65C78BDC59B6B3836849F4B7621668B84A8FF131B9387D7854220820F69
-1B6F758301783B20BE04CB8B72414187E95E1DC46AE44E50AF0947580A2CC9BA
-4D760558EDAEB21BB9F6ACA87501EA5AE7353499BB9BDA2CA93C6D9260DA7E43
-6222A005996D808F690E330864336A82D329937264128E0C460D863762E8B615
-4EEF1829146F5A4C8D9E5DA499C1B5983784212008F4067A0F803AD0F155C90F
-D4FEB342E8F7DC641D3C6ACA537C2D290BA426521CF51BAD0124C1C936FDEC1B
-908B77D12C64F34FA8F9AAF179F0B9F1275BD0F3C28AA61CB5D4E7A1BD3C8250
-3F199427CF252DD24E5A69523664C2DAFC57C73457BF0008767B50D1257FD312
-50E211A636ACF39DAA659AA1384EA676B072F0134EC330EF9E57B96862A968C0
-75C246A61C63542C27FB038FF2E4B68A2020CB21AA4A8E9A5F4261ED1472384C
-C18F4030A84BB60740B3828F9044347BD9EAF2198CEED44F10504B85C03352D3
-AFDCD10AF5A20B64B2CBD6A7E5F15FDA3FE03F018605EB989F0F0466BD913DC7
-AB26BC728189D0A63DD86E6F2773DCAD12EB845AAA64A29616927DC7578862AB
-F121289CB7CAF6124EDC953BA6CBDF78F6BA5D17009DD83E95520B33CB9ECC46
-436104E264E8C5D849A074B3227B9CE2EFC4CC3A5AF227EF2556EA5DFFFA7A8F
-63574461D0F846D0D560BE25DFEA89352B6BF0D82B2ACE270064FE4151869EFE
-BC880D3B7B636BD9558E10DF49F2BE605760F7F1D3A35BDB5956F92D11807F8C
-1502375CEE05441147585AFAB3E1B069CBADA561394C5B548186AF41B218D72A
-95BA3E29C322BE7F5CA00AD443D7AB4EAD53
+4C5110F692BE72491B0DE7C86D12C9F01E33F34A8D685357FAC45C6C868BBAE1
+B4C716B0D7CD2FF33160A055F1ACB92698272397DB7C109A5B805E8201D434DF
+EC475FD7079AF8A80A8CDAAE8ED187E8A96D31DBEAE586453F16158DF3279EE0
+3F1AE8A9380FDB7CB58B065270177EBC42EC9655653FD95AC5876682B203C552
+79B6772741D26DFFF1207CCEB0EACF359DB57BFDCC03C90FD7D0C7A16E93F0D0
+44721348B49AAD73E5807B1F0756BA88EA8746A4C462BF42C11F264340DB6EAA
+C3D696257FEEBFAB6BD6F5142ACF87478477BB442E40324952C96FA267418A3E
+343211FAFF11731C9D91568BD453CC8DC124A122774D3F130732904754E4D974
+3117FC9F7009BF39D978B80FE4FC0F83C3C912EA04411D7E38EBFABC0B2EE54B
+9B73C71EFED84D4807C6B9597C7552A4C51662702376539FD2DB342B16912BF7
+04CF667C4B7D10A12937EA90F0824C7FDAD269D4DD3558EC693BF966EDC46DD9
+807A472EC2DF825494184BB301C713297DCD99F00082D8C8BC591AB0E262499B
+CFD7CAEC4F5C0E66623DF34A8E010FAC67495CBCD5E232A82D00E06A6AD4D22C
+63B7741C7AB8072BCF7D1BB321C42DC7EA4B2D3D66A81EAD5AC4BB999B3260D3
+BA5408308F83BEF0B315CF82DD572830EFBB99F401AE1C455703062C86E0AB2E
+72C8428BE5749708F9B7A90A0142D5A00E7843A2540A487AF2F92067A2028523
+72495AE9DA195F71039ADC259156A1C02F168C545E2C6037ED48D6E6914644CC
+9D67FD98B64D3571637DB06C39B713F18D0188F507159E75449BADC6FA154DA5
+CDC9A798FE4C35D239C64F45A3B2E2651433D9560314AC5D824383CD2A97BD7C
+E3FFA236E2E426113C82B5B96DBD68FB00EB240569314AC1752BB4BC4A31DBC4
+59CDF304C68B52FFBC3921C7C5CF8A5CEBF0170728D16F4479ADF1198B0DE38E
+1BFD2BDA81D150A0E723EF134C46FAE63136E07BF32A88A28E5DC5D87C95D0E4
+6126AE7309416FA301F5DC646A991682688FC48363CC37180BD264846159D76B
+B8DC18452051AB66524389E71CF057938B9D72C8B4D38F9C88D686AD172839D1
+4568FEC6D53DF6851F4259A63EAB6060F37CA8DFEE702E0FFFAF00EB5FA1C0E4
+91EAF459EDF15624FB10DE0B08A9518CB5E577CDCF0098A614479D7C23F3388D
+772D9C6404CA5FE0DC070F0A4D1F8159F5ECA87345904A424753A0E2B312EF5E
+0C1AE96901E4D0FF07B2C783CEB5EB0DF943A0D07583DD340A7A127760EEF183
+DBE42139CD06F3239B032ADD576DCF58981686F890F114E8E9C0A21F5CD209EE
+3B783113F12C9D8BB8F2880E7F3E871D66D40597E4F2F6CEFA94E26DBFF33393
+C5D8C609126630B414360BE4153F60AAD06B49FD2F8208ECCD183B5A1FE181BD
+7813C4A7158900F209F16A7065A79DA5B8EAABD077D2BFD1CD89F66918B643B0
+8B0EB1E29D37166865CB845CFC65455547DC7EEDD9C004ABC2F77B58413E6CCC
+B294951843D736EC393794352A4EBB806233A525CF54448C0CDA87008CD0F797
+A94C8BA6E49B9242964748F8B0F067BD0AE85F105F6E0AE7DF5603B55769DC0A
+9C9F38081A66FD65E792C2CDD78D6FB9BD88863F3248B6D9CA960242D7578EBB
+44BE624F8013449354E6EF74FD1FF127030A19790786A7A2197AFD72C198938D
+B4A83BFBEE36110E06E56D3FF6111A50CA3CD0F22F1D9F85B1A7446CBD236C1C
+2D9586F9A243507893784B63DFB5A08DC76363A818C3A6BB11240477ACFC9B9D
+7BF816EBDC04C04B57858265174F633DDF075B7BD7B95C5EBE29A3A055ACB11F
+EE0CADCBD9ABEF8D4B4D53FA8C0B157F2CBD73E729770C17E944B1FE9ABE2F37
+BEA7DCAF855102DF5D3794FB80C70FE81C1D20C81D7ACFA4A4FCFAA79A5ED441
+20F7A581E09E751DACA4BD728B11CF5D824D9B579487C6508FD19495C71D098D
+F237B1C0753C572543E35CB83F27948861675E76F959A3653E8559FD35900824
+5FCE5A139D309F73E14A2867E31C01A7E3FFA4E4F5914EA8B0D98900C6CE43ED
+9B0017347FB4A49908651597E632264504B7CC8D1A70E52739BE0EEBF78105DF
+1F33B7D36F8530C96D14923E011284E8FA15CF5BB646BEEC5F3915018B75B9CA
+D1692652DA60A87E601C990EAF73F40210DF1C7E17C156BBF628AB35B21944CF
+864F516D924AEB6E71C6F437BEDABFDA726B6BFDD356B5255D91C4F27A824B70
+396FD65CF250B973BF6CB8854FD80D1DE4706D1AD7B94933DDF1C22B9B5A59AD
+8F4CD19C3A1DBB73168882CBF40214C7E961DBA21E9972A6279D6D6D55FF0EC9
+BF7AB97EE96CE8938C4F4C872E2DBAF1F976D11B1A564094DC47840BF10BD010
+3A2C90FAB609124555B676E62E4F3CB785C02A75261DAA6843444248BCA31E4B
+3E542244225930DA80C8870BE5B36B77E07837CCE4049C3EE1AE9514C18890CF
+000F74D010BB4A0412C6A93C36A2460ACC5DF495C329860467DF9AF18C06208B
+6C4B3001B86B66386196CEABAF917F2A76718FB6940156669C1852A7F89053E9
+95937F161E4995AFDF1116811101E94E01D433B4EA8BE109454A7AFB34C84C40
+D2AC397AC5C1A239E476B7261B5573D5D6569F583557EBFD31793EC79621BF93
+5367E88A92E0123FB96BD6B914FFB12C70FFED1806861575A8953CE3DC00EDD0
+8706F5F2F313DB010CFE5695D89A8484E66BAC92B87F141798F65542F1296CA3
+E2E095C1E850664DD5D8846E90E82414647AD40E19B73380A2A21D4E648E866D
+E10A01E3887F015AE6EC9BB617866CBC1DE054579A1D9935D5862C9B7C79A0EA
+2A29850C27BF7826F851912EFE8F46ACD5E93B756C471E4B46509A33654EDC66
+10DEB14B9DD4A8338F8847FC4ED5F4A13015CB0CFAC335D34013C0D880619BB8
+6A532ECFDE8CACD53D9690F5B05D928E0AF889046F5634CB6AA7ACCEFC081A7D
+5E9FC3D7031021645069A8E3D8FB66B0D0A0A670C0D58AA078D463CF0A78C93E
+B47EDDF102EBBA8824A5D2ECF27EB25E692D9C986140D59817B86EFC7A2E2036
+0151BE67AF7D147BC85A9482D7805385B2585BDEF9F06FA58059FA6144BE6DC7
+DE7E5CAA6815C4110C42EE38DE63109D8BAED6B2585E8901F287C69D330FDCF1
+AE32F2854FCF36EF307641AD50FBC201E10152F843D246F4FE4578A7BA57B133
+3A51DFA3E2F7CFD63D802FE2EE7ACE96BE39CAEF3471F3B46ED5FA585DF83255
+E85E1A67B32541C1C9AD01AEB95DDC7D6F3A0B648222858700286E20D756BF06
+A42300C656827B3B49A5F458EFBA3767D9F4D438C955845992E9EA8C65F6E19F
+D655EDE99A3FC00647F070289F5BD4347FD2540B7A7F8B890DAC21501521DA56
+E8B851A66A8534E70E58356C5DD30315B7EE4A7539077F955C3A63C2D2E4486A
+9B9C54E5E3B3C10014A799ED8C5B7DE131F9DC627E5D0AC1EC806D245E0723F0
+775C00A754DEA8EE8AE04812C8D748658EB6F17288723DB1B67B26523BC0550B
+29D0C9C87E23E81D48813E87E18161F0EC9EEB4294B5A2F9860B20D5218A3072
+0125605994A2756E82C6C17E6443C464EEF1ED955AFFA8AF1A5849EA87E0802A
+A919382CCEB38D94AA048C5DED9C18F9C39E65E967144BDF08529A80334D8FC5
+956224CE3F0B086A90FFCBD6AC0435BF99A4B6F3BEFBE2612B21B964710FAC5B
+45DEF75A910C4BEECD2AF2762AAB6ED45649CF13F2B49D1B3C30958A6243163D
+9478B0BEFA84F76D1DE2DADAC93384FC82988D855E680806A45766A1D0591B13
+4095B9AD1FBE57605DB58913147F89101A796051D093755A943C5C6A25D3EFC7
+BB4BB963A32944F6CB2130FF822AFDE61D0BE7A1953C6D2E19E294469109ADCF
+689A49BE518EADD17430421AABC8CED0BE9CA8FE38568A414B4FDBAFACD52031
+7F4C80A4D703222A12F6C61A0384B1F5AD1F6B4EC3039A0D7D743AF67AF74B4C
+36D9FC6C7C14E634DF6BEE8028F91AE06BAA9BD3C7976310978417C5E2C69174
+395C0861DF8876E5EFAD9D9434C8EFEC82F557EF04E07FB56D5FA0664D875721
+73616429E847B7A1847B3B77812CAF658B3286F2D417C5AA6BAFC97E21B71D5D
+D0F84F481D7BDC33EE3C4233A8D3E29CA167C890AE25B999EE664964E9DCA0D0
+AA6A8B18593BF9A286684615F5AAABF0BBE0FDDA69D4A3E132FA9AEEF9D42A74
+0DF62A9AA45258B87D743473D8D6EE9B17232F6EEF68A1032826F92531DCBAFC
+FBFF054C1045BAE801DB3611D79415166549227A5116075BABF8BFE66B3DFEB5
+66AEE1BEDA70C4BA5A3B47DC633FF164AE128FDE527C4DEAE3567599DE3270A3
+BECCBB875493A4ECB2A2655BFCE9E4A7DC369907BA9C9420FA544B1A7D79FD72
+2AB9532081C784ACF47A40B72A0344627DDD41ECA2A0A54BE9FD29E67A4BC833
+AD32D0B52DCFDB15F1369592504918DA2EACF50449A40E3431437E0DCADC2360
+BF51DCBA9DB1656E132C786CC9FAF1E2CD209F731C4C4BB7B03404630CDF1723
+831BFA439C5BEF4421404171D43BFE8C3DE1C79BA7DBCE60BE4FCBF3D1417C76
+221B26D0C1FA2F28DEE9BE1744123AC8C0F41502D909D7E88DCD4AB2010462EA
+4C1896F8B5BFF064B4C87A800F3C2E60BC602F89595973933F055342D7B3EDBE
+D4037472764B5F832699618C570F2A88A3A515DB98F1E1A5FA10B886AC6352BA
+63EAB27A6B8227A11E7ACD8B8524207109CE6CE34CA627BD1A32FE9B413C3D93
+B4CD73EC371FF391930FDD9E1D17AEE70ED206CD8C84FC46E8733BA8404CBF13
+24C0A24EFA8DBC1649962B68A15979A9C966ACD0CF205043537BDB1F6C4E0349
+DBBF5AD3A91893692C8D01CE52808C179D0F310499E74DDF26EE5D418383BFB7
+8E9D46CAE09C435BAE4DC88F9ED2FB143C56B9ED9E424744A7DF326F99962ECD
+5A705DA529300EF7A82EE3DFCABFBB333DCE4ADDC6E6797D76756022029497B0
+F4CB467A09819039B5673F1930BEE7B04E757BE1F65B71B76A7683F48E3E19B5
+644BEA529D57155240CD7A15F341BC3D3D1308B6BE74C7E4FB0C095506F60624
+219A6C9D12CE1D500997CBF497951762770F0E39D011A6057C9F4BB6E60957FC
+873D7374F39AE88D15F4276153A6C6D461FD594ED28EC6AE64C92A9C23EF8755
+92B6BE453BAEEEB0DEE4CCAA165CBD5D9DF90DD4B1C043F17A7B75744B2A9316
+4AEB0E6651BED4F508EEEF4582A181699E7B919DF5086E221CC7380373E2758F
+0598CDDC51D4582A0CD65B7579A895A905D031A242AFA79E3D958535B3B8CF5C
+7046D15A141BB721B0880CE45A38AA81232B02B3C8FD6B21230F5DE1CF9D4288
+AB46EE8A496F490A987EB574D7E9F28E9B81E0C60550DDCA84472461B0195797
+7D3222D2E8F0491CB49A2F74E828CCF30862892D1DFA4476236D8B2BE8DB01C6
+6F6CA104E7C08F616295ACCD98D55E0FFE3008681B7AA8491FBF849BA88D11E9
+2B2B781312D14C0A4238C6FC4835EA27AE1C74C91960D25DBDFABFB9AFDD6B02
+EFE91D6BF84B7BCC1E1E13FE87C469C4CFD4FB7ABEC0077FECAB3AAAD14F7BDC
+5215A8AC939AAF8E4F46760CF9765243D666A70E31C43FBD9EE0666150ABF57C
+E4D78280D09A0A78E8250E9CCD7A3B30CD53B5474DDC0157F373113C38ECD4F2
+7C3C0ABB9693EC2A98189A0C42FC4E0B467BDD16E9A85E0169E427BA171DFEFF
+5BDF05FAA0950039AA5253FE1248FDE0B428EB051391A2DD4926E02395041D65
+139EAF85DE8BA6A183D590591E6BD09CC20EB565471D90705E7E72D0B3F11A04
+B852305B77512605F38E98FAD41553FF40721D7E1D53DFC18B288459C06D1D49
+F97EC52E1FA643E104B57CEDCDA4838934B273FDB83C25FA9F026499D97FEC37
+3845AEA45169E6F0C58E6E387CAD71F5BBBA3614103F7F3BD60D369D239EA5B4
+07938C6C1D77FF76793A3D28AB9F198A51CC7BF3F54D32E6F54727005A944DBC
+BB6AA507E0F86D323340FEE4B33E14041C6FF96CD02C209E8F832FB27C10A308
+BCFE39A26C3025D57EEC03C96403E36199C1989F4D8AD1F99E48BAA89F3AA0CE
+BF83F94E04015091D35D9E1611FCB17D8A43BCD4967BBC433B373658607F56E0
+02E747A5063A3C54B88F13A49A118EEA93FF189FA6BF0526E00E69EF1ED1F828
+F2F4C44933808A14F75A1FD77231C598749F67167EF9B9E836DF1B3D8F786A0D
+D4B6179E7D1ECBDDA7E37187DEC15CC897C5C3FFC64C6BD5E6EF6E7607298F16
+BCE634CA30B38B3FB76EEAA3B46A02095FCAA2C95F5A908D411F51ECBDEC04D3
+D7170F53AEB40A4D9919C12959945CFCD2489CA242DF79DF769C7C5AA182451C
+6D370CCC253AADE12F69C7FC77A87414F0785074179ECF9089BBF77029A09407
+3B923CFF059B9678C984728315F8D647D19EA287EFDB94AC971E8411645FB0CB
+2B17BC1A08506327437F53E5C56E6C48D68060B06DE33B5A203F6EB0D826B520
+EC8CA6AAD05596E8A89636BA993821C8622C01C573A57AB1981E35EBDCB77738
+E4E491DAA77EBCBB91AE391111A91195E0CA67D18488824CFF782B54B16DE22F
+A7D98B5056FE85CD087CC548A33AEC386436490E6A4974CD99CF29F03C7407CB
+A46420DF915F895A4841E1C287138CED2E11DC7B3BD8037FC5780B2BF596F265
+C0D5B57EA254C2D8C7232C70AE03EF45CE4BE8F39FFAF4DBF1D43C73DC0080AF
+0672668EDAEE74A09B5971EF638253076617818C2D6014DA324579B55F8D9419
+80C45B4C39F99667B1C52DAF6129463B3667D25609B35E67642DCD295717722E
+4F504131195DB04B
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
/Encoding 256 array
0 1 255 {1 index exch /.notdef put} for
dup 13 /circlecopyrt put
+dup 15 /bullet put
readonly def
currentdict end
currentfile eexec
4D5785BB0852BF472CFC97EC174491CAF961AB90629F055E75DAA6D9898E8653
5BCF379816CAE46FEA62E7BE8E9B953466E51828172C4DBD0E1BBAD1CE28B5B1
02B3E36403BE80B49A47446A6677FCED438F01D60EB10F478C89528FA337D0D8
-88D3FC123C076507ACDAF783A9A6E24ED73BF24B6E0F11C13E532DE5F70EB02A
-60651FC2E263002D3986B7B20CC2AA08330B9FC2E26765CD52266969A86EE30E
-71E0B41B6C1C6DA423D3A7E1553D2FAF26EF40DC183099322D362E4965695C52
-9FC3E5BD7ABD743CDCB717DB10372A722A39CE53FABB454EADE2179C4CBFC016
-A8E893C28EF549CA1692C8D8ADFC471DCCDE266FB4E97A1F3035801F3F034D44
-AE6ADA0192657E8078A1D27420093FEBA111333314658021B90DA4E7A8D4B829
-F1795501020D5FF0AD25584C1D47BE08ED6CE96278050BA67680A3B973613647
-A93FAEC756FC253B3693FA2D6491B276EF45751EFB306961788E7C15297A5822
-AFC5A2DABD0DBBFF0BE135267EA6B9D1B4E4760ED14895FFE1F8C3F564830001
-EFA901B8442BD2D98561BAB9A0FD939E0F856E4D2EB04A9A4496704109B8A84C
-EA06AB0999427B3B1BE776004AE906D0F22159C051D88CF573A0255D99B56781
-CF326CD11919AA40B096769CD6D0ADF3ACEC7957621084ACF21AF1F265416628
-86B67FCBDE9370D4F5C6F5CC67EBB0A2727E074090DBCA459AFA1A4778AED4C9
-AE5400775223E684BFCB
+88D3FC123C076507ACDAF783A9A6E24ED73BF24B6E0F11C13E532DE5F70B15A0
+657F5ED27D204449A841ED19E01432CFFE928E921321113780D036D34F2797DE
+D4459CFD15BB117B5C9745EF3CD2B296D91FAD48C80B136D94476967E255F808
+AD2B5D522ADEC64176833756510391815A1D4A8DA1D0AEE7CAD36A1D161889F2
+3347D5B6BC503300FDDD48F594F391D5FB42C42113C538E707C16EE24A3F375E
+7C506E8F49CE50FF9DEF3B4A4C1BEB3848EAA3477349833BA22D2A9012287D8B
+A8C4CB4307A1188ACC0E6E9338E1559BE5FAFF381BD82A6C71C267409468B3C0
+2C1A29F4281D565836EAE57F680490FEA4A952FF64C8CD11C377C294DCD1EC25
+CEFB2B6DCE959D0208F85B6E32E9B44FD455F9B134A5306D95EA29F37BB8B86D
+9E592159338E1293F449380E13C21AE42E6861DBBF4AE99A7469F871A3940835
+FFBE7F316FA9BB834EAB18625F0960352C75105A92F175850289B1AE177E0D52
+E43635C41B85F75CFB706BC92B0BF90367E180A141703EF69FD064C0FA34618A
+5D9684895C3EF50F4AAF6E0F78D483280942D3F9C1A18FE7FA657928477AAC74
+ABCC21B622EBE2C0AD9EDEDAEDAA9A6E3D96E01CC837668FAC44FB52307CE618
+BE8399078154C80E7DB52F0CD16717DC59203497E89D69B390E9966C19D36188
+E47270673493F7DFC14C72B5B4737AD52783C573B5F12D50E9D54AD65C2C310C
+72BAF2A8ADAD81ACF0C49DF971775F2DB7404FC9AD6B30C947A348B28B0C042F
+CD9756359BA6942D643D8B7BC54E6047DFE25215CE5EE74CC3076975A3F324DF
+E8D80F42AE4A1C00B155FE56A61CCC09924E4D7DA7EE07987C2EF9E91AED55CF
+524C54E553030B5F
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
25 33 1[31 35 34 42 28 35 1[16 34 1[30 31 35 33 32 34
15[23 23 2[15 2[23 28[25 25 27 11[{}51 45.4545 /CMSL10
rf /Fl 134[24 24 24 24 24 24 24 24 24 24 24 24 24 24
-24 24 24 1[24 24 24 24 24 24 24 1[24 2[24 8[24 5[24 24
-1[24 1[24 2[24 24 24 17[24 24 2[24 5[24 39[{}38 45.4545
+24 24 24 1[24 24 24 24 24 24 24 1[24 2[24 24 7[24 5[24
+24 3[24 2[24 24 24 17[24 24 2[24 5[24 39[{}38 45.4545
/CMSLTT10 rf /Fm 135[28 2[28 1[21 2[25 29 28 4[14 1[29
24 25 1[27 1[28 97[{}12 45.4545 /CMCSC10 rf /Fn 197[13
58[{}1 45.4545 /CMMI10 rf /Fo 197[16 58[{}1 59.7758 /CMMI12
rf /Fp 135[43 58 1[45 31 32 33 1[45 40 45 67 22 2[22
45 40 25 37 45 36 45 39 10[61 62 56 1[60 1[55 1[63 1[48
2[30 1[63 51 53 62 58 1[61 14[40 40 49[{}36 71.731 /CMBX12
-rf /Fq 242[45 13[{}1 45.4545 /CMSY10 rf /Fr 134[35 35
-49 35 37 26 27 27 1[37 34 37 56 19 2[19 37 34 21 31 37
-30 37 33 7[51 1[69 51 52 47 37 50 51 46 51 53 64 40 53
-1[25 53 53 42 44 52 49 48 51 6[19 1[34 34 34 34 34 34
-34 34 34 1[19 1[19 44[{}57 59.7758 /CMBX12 rf /Fs 129[24
+rf /Fq 240[23 1[45 13[{}2 45.4545 /CMSY10 rf /Fr 134[35
+35 49 35 37 26 27 27 1[37 34 37 56 19 2[19 37 34 21 31
+37 30 37 33 7[51 1[69 51 52 47 37 50 51 46 51 53 64 40
+53 1[25 53 53 42 44 52 49 48 51 6[19 1[34 34 34 34 34
+34 34 34 2[19 1[19 44[{}56 59.7758 /CMBX12 rf /Fs 129[24
24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24
24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24
24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 1[24 24
%%Page: 1 1
TeXDict begin 1 0 bop 75 659 a Fu(GNU)33 b(Readline)f(Library)p
75 709 1800 17 v 936 757 a Ft(Edition)15 b(8.3,)e(for)i
-Fs(Readline)f(Library)g Ft(V)l(ersion)h(8.3.)1608 811
-y(Octob)q(er)h(2024)75 2463 y Fr(Chet)22 b(Ramey)-6 b(,)23
-b(Case)e(W)-6 b(estern)23 b(Reserv)n(e)f(Univ)n(ersit)n(y)75
+Fs(Readline)f(Library)g Ft(V)l(ersion)h(8.3.)1569 811
+y(No)o(v)o(em)o(b)q(er)g(2024)75 2463 y Fr(Chet)22 b(Ramey)-6
+b(,)23 b(Case)e(W)-6 b(estern)23 b(Reserv)n(e)f(Univ)n(ersit)n(y)75
2534 y(Brian)g(F)-6 b(o)n(x,)23 b(F)-6 b(ree)23 b(Soft)n(w)n(are)f(F)-6
b(oundation)p 75 2570 1800 9 v eop end
%%Page: 2 2
-TeXDict begin 2 1 bop 75 2207 a Ft(This)14 b(man)o(ual)g(describ)q(es)h
-(the)g(GNU)f(Readline)h(Library)f(\(v)o(ersion)g(8.3,)f(15)h(Octob)q
-(er)h(2024\),)e(a)h(library)75 2262 y(whic)o(h)19 b(aids)h(in)f(the)h
-(consistency)f(of)g(user)h(in)o(terface)f(across)g(discrete)g(programs)
-g(whic)o(h)g(pro)o(vide)g(a)75 2316 y(command)c(line)g(in)o(terface.)75
-2384 y(Cop)o(yrigh)o(t)301 2383 y(c)289 2384 y Fq(\015)g
-Ft(1988{2024)e(F)l(ree)i(Soft)o(w)o(are)f(F)l(oundation,)g(Inc.)195
-2451 y(P)o(ermission)9 b(is)h(gran)o(ted)f(to)h(cop)o(y)l(,)h
-(distribute)e(and/or)h(mo)q(dify)g(this)f(do)q(cumen)o(t)i(under)g(the)
-195 2506 y(terms)h(of)g(the)h(GNU)g(F)l(ree)f(Do)q(cumen)o(tation)g
-(License,)h(V)l(ersion)g(1.3)f(or)g(an)o(y)g(later)g(v)o(ersion)195
-2560 y(published)23 b(b)o(y)f(the)h(F)l(ree)f(Soft)o(w)o(are)f(F)l
-(oundation;)k(with)c(no)i(In)o(v)m(arian)o(t)e(Sections,)j(no)195
-2615 y(F)l(ron)o(t-Co)o(v)o(er)13 b(T)l(exts,)h(and)g(no)h(Bac)o(k-Co)o
-(v)o(er)e(T)l(exts.)20 b(A)14 b(cop)o(y)g(of)g(the)h(license)f(is)g
-(included)195 2670 y(in)h(the)g(section)g(en)o(titled)f(\\GNU)h(F)l
-(ree)g(Do)q(cumen)o(tation)g(License".)p eop end
+TeXDict begin 2 1 bop 75 2207 a Ft(This)11 b(man)o(ual)g(describ)q(es)h
+(the)f(GNU)h(Readline)f(Library)g(\(v)o(ersion)g(8.3,)g(29)g(No)o(v)o
+(em)o(b)q(er)g(2024\),)f(a)h(library)75 2262 y(whic)o(h)19
+b(aids)h(in)f(the)h(consistency)f(of)g(user)h(in)o(terface)f(across)g
+(discrete)g(programs)g(whic)o(h)g(pro)o(vide)g(a)75 2316
+y(command)c(line)g(in)o(terface.)75 2384 y(Cop)o(yrigh)o(t)301
+2383 y(c)289 2384 y Fq(\015)g Ft(1988{2024)e(F)l(ree)i(Soft)o(w)o(are)f
+(F)l(oundation,)g(Inc.)195 2451 y(P)o(ermission)9 b(is)h(gran)o(ted)f
+(to)h(cop)o(y)l(,)h(distribute)e(and/or)h(mo)q(dify)g(this)f(do)q
+(cumen)o(t)i(under)g(the)195 2506 y(terms)h(of)g(the)h(GNU)g(F)l(ree)f
+(Do)q(cumen)o(tation)g(License,)h(V)l(ersion)g(1.3)f(or)g(an)o(y)g
+(later)g(v)o(ersion)195 2560 y(published)23 b(b)o(y)f(the)h(F)l(ree)f
+(Soft)o(w)o(are)f(F)l(oundation;)k(with)c(no)i(In)o(v)m(arian)o(t)e
+(Sections,)j(no)195 2615 y(F)l(ron)o(t-Co)o(v)o(er)13
+b(T)l(exts,)h(and)g(no)h(Bac)o(k-Co)o(v)o(er)e(T)l(exts.)20
+b(A)14 b(cop)o(y)g(of)g(the)h(license)f(is)g(included)195
+2670 y(in)h(the)g(section)g(en)o(titled)f(\\GNU)h(F)l(ree)g(Do)q(cumen)
+o(tation)g(License".)p eop end
%%Page: -1 3
TeXDict begin -1 2 bop 1862 -58 a Ft(i)75 149 y Fp(T)-7
b(able)28 b(of)e(Con)n(ten)n(ts)75 325 y Fr(1)67 b(Command)22
b Ft(24)200 1379 y(1.4.7)43 b(Keyb)q(oard)16 b(Macros)6
b Fn(:)g(:)h(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)
g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h
-(:)f(:)g(:)g(:)g(:)h(:)f(:)12 b Ft(24)200 1434 y(1.4.8)43
+(:)f(:)g(:)g(:)g(:)h(:)f(:)12 b Ft(25)200 1434 y(1.4.8)43
b(Some)16 b(Miscellaneous)e(Commands)8 b Fn(:)e(:)i(:)f(:)g(:)g(:)g(:)h
(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)
g(:)h(:)14 b Ft(25)137 1489 y(1.5)45 b(Readline)15 b(vi)g(Mo)q(de)5
b Fn(:)j(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)
f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g
-(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)12 b Ft(26)75
+(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)12 b Ft(27)75
1614 y Fr(2)67 b(Programming)22 b(with)g(GNU)g(Readline)16
b Fo(:)11 b(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)h(:)24
-b Fr(27)137 1683 y Ft(2.1)45 b(Basic)15 b(Beha)o(vior)d
+b Fr(28)137 1683 y Ft(2.1)45 b(Basic)15 b(Beha)o(vior)d
Fn(:)6 b(:)h(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)
f(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g
(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)18
-b Ft(27)137 1738 y(2.2)45 b(Custom)14 b(F)l(unctions)9
+b Ft(28)137 1738 y(2.2)45 b(Custom)14 b(F)l(unctions)9
b Fn(:)f(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)
f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g
-(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)16 b Ft(28)200
+(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)16 b Ft(29)200
1792 y(2.2.1)43 b(Readline)16 b(T)o(yp)q(edefs)9 b Fn(:)e(:)g(:)h(:)f
(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)
h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g
-(:)15 b Ft(29)200 1847 y(2.2.2)43 b(W)l(riting)14 b(a)h(New)g(F)l
+(:)15 b Ft(30)200 1847 y(2.2.2)43 b(W)l(riting)14 b(a)h(New)g(F)l
(unction)d Fn(:)7 b(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f
(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)
-h(:)f(:)18 b Ft(30)137 1902 y(2.3)45 b(Readline)15 b(V)l(ariables)6
+h(:)f(:)18 b Ft(31)137 1902 y(2.3)45 b(Readline)15 b(V)l(ariables)6
b Fn(:)g(:)h(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)
h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g
-(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)12 b Ft(30)137
+(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)12 b Ft(31)137
1957 y(2.4)45 b(Readline)15 b(Con)o(v)o(enience)h(F)l(unctions)11
b Fn(:)c(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)
f(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)17
-b Ft(36)200 2012 y(2.4.1)43 b(Naming)15 b(a)g(F)l(unction)c
+b Ft(37)200 2012 y(2.4.1)43 b(Naming)15 b(a)g(F)l(unction)c
Fn(:)6 b(:)i(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)
h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g
-(:)g(:)h(:)f(:)g(:)17 b Ft(36)200 2066 y(2.4.2)43 b(Selecting)15
+(:)g(:)h(:)f(:)g(:)17 b Ft(37)200 2066 y(2.4.2)43 b(Selecting)15
b(a)g(Keymap)5 b Fn(:)i(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f
(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)
-g(:)h(:)f(:)g(:)g(:)h(:)f(:)g(:)k Ft(36)200 2121 y(2.4.3)43
+g(:)h(:)f(:)g(:)g(:)h(:)f(:)g(:)k Ft(37)200 2121 y(2.4.3)43
b(Binding)16 b(Keys)7 b Fn(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h
(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)
g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)14
-b Ft(37)200 2176 y(2.4.4)43 b(Asso)q(ciating)14 b(F)l(unction)h(Names)g
+b Ft(38)200 2176 y(2.4.4)43 b(Asso)q(ciating)14 b(F)l(unction)h(Names)g
(and)h(Bindings)d Fn(:)7 b(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g
-(:)g(:)g(:)h(:)19 b Ft(39)200 2231 y(2.4.5)43 b(Allo)o(wing)14
+(:)g(:)g(:)h(:)19 b Ft(40)200 2231 y(2.4.5)43 b(Allo)o(wing)14
b(Undoing)f Fn(:)7 b(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)
g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g
-(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)20 b Ft(40)200 2286
+(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)20 b Ft(41)200 2286
y(2.4.6)43 b(Redispla)o(y)5 b Fn(:)i(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)
g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g
(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)h(:)f(:)g(:)
-g(:)g(:)h(:)f(:)k Ft(41)200 2340 y(2.4.7)43 b(Mo)q(difying)15
+g(:)g(:)h(:)f(:)k Ft(42)200 2340 y(2.4.7)43 b(Mo)q(difying)15
b(T)l(ext)8 b Fn(:)e(:)i(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)
g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h
-(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)14 b Ft(43)200
+(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)14 b Ft(44)200
2395 y(2.4.8)43 b(Character)15 b(Input)c Fn(:)d(:)f(:)g(:)g(:)g(:)h(:)f
(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)
g(:)h(:)f(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)17
-b Ft(43)200 2450 y(2.4.9)43 b(T)l(erminal)15 b(Managemen)o(t)8
+b Ft(44)200 2450 y(2.4.9)43 b(T)l(erminal)15 b(Managemen)o(t)8
b Fn(:)e(:)i(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)
h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g
-(:)g(:)15 b Ft(44)200 2505 y(2.4.10)43 b(Utilit)o(y)13
+(:)g(:)15 b Ft(45)200 2505 y(2.4.10)43 b(Utilit)o(y)13
b(F)l(unctions)f Fn(:)7 b(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g
(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)
-g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)18 b Ft(45)200
+g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)18 b Ft(46)200
2560 y(2.4.11)43 b(Miscellaneous)14 b(F)l(unctions)d
Fn(:)d(:)f(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g
(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)18
-b Ft(46)200 2614 y(2.4.12)43 b(Alternate)15 b(In)o(terface)d
+b Ft(47)200 2614 y(2.4.12)43 b(Alternate)15 b(In)o(terface)d
Fn(:)c(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f
(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)
-g(:)h(:)f(:)19 b Ft(47)200 2669 y(2.4.13)43 b(A)15 b(Readline)h
+g(:)h(:)f(:)19 b Ft(48)200 2669 y(2.4.13)43 b(A)15 b(Readline)h
(Example)6 b Fn(:)h(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g
(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)
-f(:)g(:)g(:)g(:)h(:)k Ft(48)p eop end
+f(:)g(:)g(:)g(:)h(:)k Ft(49)p eop end
%%Page: -2 4
TeXDict begin -2 3 bop 1850 -58 a Ft(ii)200 42 y(2.4.14)43
b(Alternate)15 b(In)o(terface)g(Example)9 b Fn(:)e(:)g(:)g(:)g(:)h(:)f
(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)
-g(:)h(:)f(:)g(:)g(:)16 b Ft(50)137 96 y(2.5)45 b(Readline)15
+g(:)h(:)f(:)g(:)g(:)16 b Ft(51)137 96 y(2.5)45 b(Readline)15
b(Signal)g(Handling)9 b Fn(:)d(:)i(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g
(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)
-g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)15 b Ft(52)137 151
+g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)15 b Ft(53)137 151
y(2.6)45 b(Custom)14 b(Completers)f Fn(:)7 b(:)g(:)g(:)h(:)f(:)g(:)g(:)
g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f
(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)
-20 b Ft(55)200 206 y(2.6.1)43 b(Ho)o(w)15 b(Completing)f(W)l(orks)6
+20 b Ft(56)200 206 y(2.6.1)43 b(Ho)o(w)15 b(Completing)f(W)l(orks)6
b Fn(:)g(:)h(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)
g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f
-(:)12 b Ft(55)200 261 y(2.6.2)43 b(Completion)14 b(F)l(unctions)g
+(:)12 b Ft(56)200 261 y(2.6.2)43 b(Completion)14 b(F)l(unctions)g
Fn(:)7 b(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)
g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h
-(:)f(:)20 b Ft(56)200 315 y(2.6.3)43 b(Completion)14
+(:)f(:)20 b Ft(57)200 315 y(2.6.3)43 b(Completion)14
b(V)l(ariables)9 b Fn(:)e(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f
(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)
-g(:)h(:)f(:)g(:)g(:)g(:)h(:)15 b Ft(57)200 370 y(2.6.4)43
+g(:)h(:)f(:)g(:)g(:)g(:)h(:)15 b Ft(58)200 370 y(2.6.4)43
b(A)16 b(Short)f(Completion)e(Example)7 b Fn(:)h(:)f(:)g(:)g(:)g(:)h(:)
f(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g
-(:)h(:)f(:)g(:)g(:)14 b Ft(63)75 496 y Fr(App)r(endix)23
+(:)h(:)f(:)g(:)g(:)14 b Ft(64)75 496 y Fr(App)r(endix)23
b(A)60 b(GNU)18 b(F)-6 b(ree)20 b(Do)r(cumen)n(tation)e(License)12
-b Fo(:)e(:)17 b Fr(72)75 635 y(Concept)22 b(Index)d Fo(:)10
+b Fo(:)e(:)17 b Fr(73)75 635 y(Concept)22 b(Index)d Fo(:)10
b(:)g(:)h(:)f(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)h(:)f(:)g
(:)g(:)g(:)h(:)f(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)h(:)f(:)
-g(:)25 b Fr(80)75 774 y(F)-6 b(unction)24 b(and)e(V)-6
+g(:)25 b Fr(81)75 774 y(F)-6 b(unction)24 b(and)e(V)-6
b(ariable)22 b(Index)10 b Fo(:)h(:)g(:)f(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)
-h(:)f(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)17 b Fr(81)p
+h(:)f(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)17 b Fr(82)p
eop end
%%Page: 1 5
TeXDict begin 1 4 bop 1852 -58 a Ft(1)75 149 y Fp(1)41
h Fs(isearch-terminators)d Ft(v)m(ariable)i(are)75 369
y(used)f(to)f(terminate)f(an)h(incremen)o(tal)g(searc)o(h.)19
b(If)13 b(that)g(v)m(ariable)g(has)g(not)g(b)q(een)h(assigned)f(a)g(v)m
-(alue,)h(the)75 423 y Fs(ESC)f Ft(and)g Fl(C-J)g Ft(c)o(haracters)f
-(will)g(terminate)g(an)h(incremen)o(tal)f(searc)o(h.)19
-b Fl(C-g)13 b Ft(will)e(ab)q(ort)i(an)g(incremen)o(tal)75
-478 y(searc)o(h)22 b(and)g(restore)f(the)h(original)e(line.)40
-b(When)22 b(the)h(searc)o(h)e(is)h(terminated,)g(the)g(history)f(en)o
-(try)75 533 y(con)o(taining)14 b(the)h(searc)o(h)g(string)f(b)q(ecomes)
-i(the)g(curren)o(t)f(line.)137 608 y(T)l(o)g(\014nd)i(other)e(matc)o
-(hing)f(en)o(tries)h(in)h(the)f(history)g(list,)f(t)o(yp)q(e)h
-Fl(C-r)g Ft(or)g Fl(C-s)g Ft(as)h(appropriate.)j(This)75
-663 y(will)12 b(searc)o(h)h(bac)o(kw)o(ard)f(or)g(forw)o(ard)g(in)h
-(the)g(history)f(for)h(the)g(next)g(en)o(try)g(matc)o(hing)f(the)h
-(searc)o(h)g(string)75 718 y(t)o(yp)q(ed)19 b(so)g(far.)30
-b(An)o(y)19 b(other)f(k)o(ey)h(sequence)h(b)q(ound)g(to)e(a)h(Readline)
-g(command)f(will)g(terminate)g(the)75 773 y(searc)o(h)13
-b(and)f(execute)i(that)e(command.)19 b(F)l(or)12 b(instance,)h(a)f
-Fs(RET)g Ft(will)g(terminate)f(the)i(searc)o(h)g(and)g(accept)75
-827 y(the)i(line,)f(thereb)o(y)h(executing)f(the)h(command)g(from)f
-(the)g(history)g(list.)k(A)d(mo)o(v)o(emen)o(t)f(command)g(will)75
-882 y(terminate)g(the)h(searc)o(h,)g(mak)o(e)g(the)g(last)f(line)h
+(alue,)h(the)75 423 y Fs(ESC)g Ft(and)g Fl(C-j)g Ft(c)o(haracters)g
+(terminate)f(an)h(incremen)o(tal)g(searc)o(h.)19 b Fl(C-g)14
+b Ft(ab)q(orts)f(an)i(incremen)o(tal)e(searc)o(h)75 478
+y(and)j(restores)e(the)i(original)d(line.)20 b(When)c(the)f(searc)o(h)g
+(is)g(terminated,)f(the)i(history)e(en)o(try)h(con)o(taining)75
+533 y(the)g(searc)o(h)g(string)f(b)q(ecomes)i(the)g(curren)o(t)f(line.)
+137 608 y(T)l(o)g(\014nd)i(other)e(matc)o(hing)f(en)o(tries)h(in)h(the)
+f(history)g(list,)f(t)o(yp)q(e)h Fl(C-r)g Ft(or)g Fl(C-s)g
+Ft(as)h(appropriate.)j(This)75 663 y(searc)o(hes)d(bac)o(kw)o(ard)g(or)
+g(forw)o(ard)f(in)h(the)g(history)g(for)f(the)i(next)f(en)o(try)g(matc)
+o(hing)f(the)i(searc)o(h)f(string)75 718 y(t)o(yp)q(ed)f(so)f(far.)19
+b(An)o(y)14 b(other)g(k)o(ey)g(sequence)i(b)q(ound)f(to)f(a)g(Readline)
+g(command)g(terminates)g(the)g(searc)o(h)75 773 y(and)19
+b(executes)h(that)e(command.)32 b(F)l(or)18 b(instance,)i(a)f
+Fs(RET)f Ft(terminates)g(the)h(searc)o(h)g(and)h(accepts)f(the)75
+827 y(line,)i(thereb)o(y)f(executing)g(the)h(command)f(from)f(the)i
+(history)e(list.)34 b(A)20 b(mo)o(v)o(emen)o(t)f(command)h(will)75
+882 y(terminate)14 b(the)h(searc)o(h,)g(mak)o(e)g(the)g(last)f(line)h
(found)h(the)f(curren)o(t)g(line,)f(and)i(b)q(egin)f(editing.)137
957 y(Readline)j(remem)o(b)q(ers)f(the)h(last)e(incremen)o(tal)h(searc)
o(h)g(string.)26 b(If)17 b(t)o(w)o(o)f Fl(C-r)p Ft(s)h(are)g(t)o(yp)q
(unset,)g(the)g(default)g(is)f Fs(~/.inputrc)p Ft(.)19
b(If)c(that)f(\014le)h(do)q(es)h(not)e(exist)h(or)f(cannot)h(b)q(e)75
1738 y(read,)g(Readline)g(lo)q(oks)g(for)f Fs(/etc/inputrc)p
-Ft(.)137 1813 y(When)j(a)f(program)f(whic)o(h)h(uses)g(the)g(Readline)h
-(library)e(starts)f(up,)j(Readline)f(reads)g(the)h(init)e(\014le)75
-1867 y(and)g(sets)g(an)o(y)g(v)m(ariables)g(and)g(k)o(ey)g(bindings)g
+Ft(.)137 1813 y(When)19 b(a)f(program)f(that)h(uses)h(the)f(Readline)h
+(library)e(starts)g(up,)i(Readline)g(reads)f(the)g(init)g(\014le)75
+1867 y(and)d(sets)g(an)o(y)g(v)m(ariables)g(and)g(k)o(ey)g(bindings)g
(it)g(con)o(tains.)137 1943 y(In)f(addition,)f(the)g
Fs(C-x)i(C-r)e Ft(command)g(re-reads)h(this)f(init)f(\014le,)i(th)o(us)
f(incorp)q(orating)f(an)o(y)h(c)o(hanges)75 1997 y(that)h(y)o(ou)h
b(n)o(um)o(b)q(er)g(of)g(screen)g(columns)f(used)i(to)e(displa)o(y)g(p)
q(ossible)g(matc)o(hes)555 1465 y(when)15 b(p)q(erforming)f
(completion.)19 b(The)14 b(v)m(alue)h(is)f(ignored)g(if)g(it)g(is)g
-(less)g(than)555 1519 y(0)f(or)f(greater)h(than)g(the)g(terminal)f
-(screen)h(width.)19 b(A)13 b(v)m(alue)g(of)g(0)g(will)f(cause)555
-1574 y(matc)o(hes)j(to)f(b)q(e)i(displa)o(y)o(ed)f(one)g(p)q(er)h
+(less)g(than)555 1519 y(0)k(or)g(greater)f(than)h(the)g(terminal)f
+(screen)i(width.)28 b(A)19 b(v)m(alue)f(of)g(0)g(causes)555
+1574 y(matc)o(hes)d(to)f(b)q(e)i(displa)o(y)o(ed)f(one)g(p)q(er)h
(line.)j(The)d(default)e(v)m(alue)i(is)f(-1.)315 1656
y Fs(completion-ignore-case)555 1711 y Ft(If)f(set)f(to)g(`)p
Fs(on)p Ft(',)g(Readline)h(p)q(erforms)f(\014lename)h(matc)o(hing)f
b(n)o(um)o(b)q(er)h(of)e(p)q(ossible)h(completions)g(that)f(determines)
h(when)h(the)f(user)555 2615 y(is)21 b(ask)o(ed)g(whether)g(the)h(list)
e(of)h(p)q(ossibilities)e(should)i(b)q(e)h(displa)o(y)o(ed.)38
-b(If)555 2670 y(the)15 b(n)o(um)o(b)q(er)f(of)h(p)q(ossible)f
-(completions)f(is)h(greater)g(than)g(or)g(equal)h(to)f(this)p
+b(If)555 2670 y(the)23 b(n)o(um)o(b)q(er)h(of)f(p)q(ossible)g
+(completions)f(is)h(greater)g(than)g(or)g(equal)g(to)p
eop end
%%Page: 7 11
TeXDict begin 7 10 bop 75 -58 a Ft(Chapter)15 b(1:)k(Command)c(Line)h
-(Editing)1075 b(7)555 149 y(v)m(alue,)22 b(Readline)f(will)f(ask)g
-(whether)i(or)e(not)g(the)h(user)g(wishes)g(to)f(view)555
-204 y(them;)c(otherwise,)f(Readline)i(simply)e(lists)g(the)h
+(Editing)1075 b(7)555 149 y(this)19 b(v)m(alue,)g(Readline)h(asks)e
+(whether)i(or)e(not)h(the)g(user)g(wishes)g(to)f(view)555
+204 y(them;)e(otherwise,)f(Readline)i(simply)e(lists)g(the)h
(completions.)22 b(This)15 b(v)m(ari-)555 259 y(able)g(m)o(ust)h(b)q(e)
g(set)g(to)f(an)g(in)o(teger)g(v)m(alue)h(greater)f(than)h(or)f(equal)g
(to)g(zero.)555 314 y(A)g(zero)g(v)m(alue)g(means)g(Readline)g(should)g
(nev)o(er)g(ask;)f(negativ)o(e)g(v)m(alues)h(are)555
369 y(treated)g(as)g(zero.)k(The)d(default)e(limit)g(is)h
-Fs(100)p Ft(.)315 451 y Fs(convert-meta)555 506 y Ft(If)e(set)f(to)f(`)
-p Fs(on)p Ft(',)h(Readline)g(will)f(con)o(v)o(ert)h(c)o(haracters)g(it)
-f(reads)h(that)g(ha)o(v)o(e)g(the)555 560 y(eigh)o(th)e(bit)g(set)g(to)
-g(an)h Fm(asci)q(i)f Ft(k)o(ey)g(sequence)i(b)o(y)e(clearing)g(the)h
-(eigh)o(th)f(bit)g(and)555 615 y(pre\014xing)k(an)f Fs(ESC)h
-Ft(c)o(haracter,)e(con)o(v)o(erting)h(them)h(to)f(a)g(meta-pre\014xed)h
-(k)o(ey)555 670 y(sequence.)20 b(The)14 b(default)f(v)m(alue)g(is)g(`)p
-Fs(on)p Ft(',)f(but)i(Readline)f(will)f(set)h(it)g(to)f(`)p
-Fs(off)p Ft(')555 725 y(if)g(the)h(lo)q(cale)f(con)o(tains)f(c)o
+Fs(100)p Ft(.)315 451 y Fs(convert-meta)555 506 y Ft(If)j(set)g(to)g(`)
+p Fs(on)p Ft(',)g(Readline)g(con)o(v)o(erts)g(c)o(haracters)f(it)g
+(reads)i(that)e(ha)o(v)o(e)h(the)555 560 y(eigh)o(th)f(bit)g(set)g(to)g
+(an)h Fm(asci)q(i)e Ft(k)o(ey)i(sequence)h(b)o(y)e(clearing)g(the)g
+(eigh)o(th)g(bit)555 615 y(and)c(pre\014xing)g(an)g Fs(ESC)f
+Ft(c)o(haracter,)h(con)o(v)o(erting)f(them)g(to)h(a)f(meta-pre\014xed)
+555 670 y(k)o(ey)g(sequence.)20 b(The)12 b(default)g(v)m(alue)g(is)f(`)
+p Fs(on)p Ft(',)h(but)g(Readline)g(sets)g(it)f(to)g(`)p
+Fs(off)p Ft(')555 725 y(if)h(the)h(lo)q(cale)f(con)o(tains)f(c)o
(haracters)h(whose)g(enco)q(dings)h(ma)o(y)f(include)h(b)o(ytes)555
780 y(with)f(the)g(eigh)o(th)f(bit)h(set.)19 b(This)12
b(v)m(ariable)f(is)h(dep)q(enden)o(t)i(on)e(the)g Fs(LC_CTYPE)555
(the)g(lo)q(cale)f(c)o(hanges.)19 b(This)12 b(v)m(ariable)555
889 y(also)e(a\013ects)h(k)o(ey)g(bindings;)h(see)f(the)h(description)f
(of)f Fs(force-meta-prefix)555 944 y Ft(b)q(elo)o(w.)315
-1026 y Fs(disable-completion)555 1081 y Ft(If)19 b(set)f(to)f(`)p
-Fs(On)p Ft(',)h(Readline)h(will)e(inhibit)g(w)o(ord)h(completion.)28
-b(Completion)555 1136 y(c)o(haracters)12 b(will)g(b)q(e)i(inserted)f
-(in)o(to)f(the)h(line)f(as)h(if)g(they)g(had)g(b)q(een)h(mapp)q(ed)555
-1191 y(to)h Fs(self-insert)p Ft(.)j(The)d(default)g(is)g(`)p
+1026 y Fs(disable-completion)555 1081 y Ft(If)k(set)f(to)h(`)p
+Fs(On)p Ft(',)e(Readline)i(inhibits)f(w)o(ord)g(completion.)19
+b(Completion)12 b(c)o(har-)555 1136 y(acters)21 b(are)g(inserted)g(in)o
+(to)g(the)g(line)h(as)f(if)g(they)g(had)h(b)q(een)g(mapp)q(ed)h(to)555
+1191 y Fs(self-insert)p Ft(.)18 b(The)e(default)f(is)f(`)p
Fs(off)p Ft('.)315 1273 y Fs(echo-control-characters)555
-1328 y Ft(When)h(set)e(to)h(`)p Fs(on)p Ft(',)f(on)h(op)q(erating)f
+1328 y Ft(When)i(set)e(to)h(`)p Fs(on)p Ft(',)f(on)h(op)q(erating)f
(systems)h(that)f(indicate)h(they)g(supp)q(ort)555 1382
y(it,)e(Readline)h(ec)o(ho)q(es)h(a)f(c)o(haracter)f(corresp)q(onding)h
(to)f(a)h(signal)f(generated)555 1437 y(from)h(the)i(k)o(eyb)q(oard.)k
734 y(prev)o(en)o(ts)15 b(Readline)g(from)f(executing)h(an)o(y)g
(editing)f(commands)h(b)q(ound)h(to)555 789 y(k)o(ey)f(sequences)h(app)
q(earing)f(in)g(the)h(pasted)f(text.)k(The)d(default)e(is)h(`)p
-Fs(On)p Ft('.)315 880 y Fs(enable-keypad)555 935 y Ft(When)d(set)f(to)h
-(`)p Fs(on)p Ft(',)e(Readline)i(will)f(try)g(to)g(enable)h(the)g
-(application)e(k)o(eypad)555 990 y(when)k(it)e(is)h(called.)19
+Fs(On)p Ft('.)315 880 y Fs(enable-keypad)555 935 y Ft(When)j(set)f(to)f
+(`)p Fs(on)p Ft(',)h(Readline)g(tries)g(to)f(enable)i(the)f
+(application)f(k)o(eypad)555 990 y(when)e(it)e(is)h(called.)19
b(Some)13 b(systems)g(need)h(this)f(to)g(enable)g(the)h(arro)o(w)e(k)o
(eys.)555 1044 y(The)j(default)g(is)g(`)p Fs(off)p Ft('.)315
-1136 y Fs(enable-meta-key)555 1191 y Ft(When)e(set)g(to)f(`)p
-Fs(on)p Ft(',)f(Readline)i(will)f(try)g(to)g(enable)h(an)o(y)f(meta)g
-(mo)q(di\014er)h(k)o(ey)555 1245 y(the)k(terminal)e(claims)h(to)g(supp)
-q(ort)h(when)g(it)f(is)g(called.)24 b(On)17 b(man)o(y)g(termi-)555
-1300 y(nals,)12 b(the)h(Meta)e(k)o(ey)i(is)e(used)i(to)f(send)h(eigh)o
-(t-bit)f(c)o(haracters;)g(this)g(v)m(ariable)555 1355
-y(c)o(hec)o(ks)18 b(for)f(the)h(terminal)f(capabilit)o(y)f(that)h
-(indicates)g(the)h(terminal)f(can)555 1410 y(enable)h(and)g(disable)f
-(a)h(mo)q(de)g(that)f(sets)g(the)h(eigh)o(th)g(bit)f(of)g(a)h(c)o
-(haracter)555 1465 y(\(0200\))12 b(if)i(the)g(Meta)f(k)o(ey)h(is)g
-(held)g(do)o(wn)g(when)h(the)f(c)o(haracter)g(is)f(t)o(yp)q(ed)i(\(a)
-555 1519 y(meta)g(c)o(haracter\).)j(The)e(default)f(is)f(`)p
-Fs(on)p Ft('.)315 1611 y Fs(expand-tilde)555 1665 y Ft(If)j(set)f(to)f
-(`)p Fs(on)p Ft(',)h(Readline)g(attempts)g(tilde)f(expansion)i(when)f
-(it)g(attempts)555 1720 y(w)o(ord)f(completion.)k(The)c(default)g(is)f
-(`)p Fs(off)p Ft('.)315 1812 y Fs(force-meta-prefix)555
-1866 y Ft(If)j(set)f(to)g(`)p Fs(on)p Ft(',)f(Readline)i(mo)q(di\014es)
-f(its)g(b)q(eha)o(vior)g(when)h(binding)f(k)o(ey)h(se-)555
+1136 y Fs(enable-meta-key)555 1191 y Ft(When)c(set)g(to)g(`)p
+Fs(on)p Ft(',)f(Readline)i(tries)e(to)g(enable)i(an)o(y)e(meta)h(mo)q
+(di\014er)g(k)o(ey)g(the)555 1245 y(terminal)16 b(claims)g(to)g(supp)q
+(ort)h(when)h(it)e(is)h(called.)25 b(On)17 b(man)o(y)g(terminals,)555
+1300 y(the)23 b(Meta)e(k)o(ey)i(is)f(used)h(to)f(send)h(eigh)o(t-bit)f
+(c)o(haracters;)j(this)d(v)m(ariable)555 1355 y(c)o(hec)o(ks)c(for)f
+(the)h(terminal)f(capabilit)o(y)f(that)h(indicates)g(the)h(terminal)f
+(can)555 1410 y(enable)h(and)g(disable)f(a)h(mo)q(de)g(that)f(sets)g
+(the)h(eigh)o(th)g(bit)f(of)g(a)h(c)o(haracter)555 1465
+y(\(0200\))12 b(if)i(the)g(Meta)f(k)o(ey)h(is)g(held)g(do)o(wn)g(when)h
+(the)f(c)o(haracter)g(is)f(t)o(yp)q(ed)i(\(a)555 1519
+y(meta)g(c)o(haracter\).)j(The)e(default)f(is)f(`)p Fs(on)p
+Ft('.)315 1611 y Fs(expand-tilde)555 1665 y Ft(If)j(set)f(to)f(`)p
+Fs(on)p Ft(',)h(Readline)g(attempts)g(tilde)f(expansion)i(when)f(it)g
+(attempts)555 1720 y(w)o(ord)f(completion.)k(The)c(default)g(is)f(`)p
+Fs(off)p Ft('.)315 1812 y Fs(force-meta-prefix)555 1866
+y Ft(If)j(set)f(to)g(`)p Fs(on)p Ft(',)f(Readline)i(mo)q(di\014es)f
+(its)g(b)q(eha)o(vior)g(when)h(binding)f(k)o(ey)h(se-)555
1921 y(quences)12 b(con)o(taining)e Fl(\\M-)h Ft(or)g
Fs(Meta-)f Ft(\(see)h Fs(Key)k(Bindings)10 b Ft(in)h(Section)h(1.3.1)
555 1976 y([Readline)18 b(Init)f(File)g(Syn)o(tax],)g(page)h(4\))f(b)o
b(This)20 b(v)m(ariable)h(is)f(automatically)e(set)j(to)f(`)p
Fs(on)p Ft(')g(for)555 829 y(terminals)14 b(of)h(heigh)o(t)f(1.)20
b(By)15 b(default,)g(this)f(v)m(ariable)h(is)f(set)h(to)g(`)p
-Fs(off)p Ft('.)315 906 y Fs(input-meta)555 960 y Ft(If)d(set)g(to)f(`)p
-Fs(on)p Ft(',)g(Readline)h(will)e(enable)i(eigh)o(t-bit)f(input)h
-(\(that)e(is,)i(it)f(will)f(not)555 1015 y(clear)17 b(the)g(eigh)o(th)f
-(bit)h(in)g(the)g(c)o(haracters)f(it)h(reads\),)g(regardless)f(of)h
-(what)555 1070 y(the)f(terminal)e(claims)g(it)h(can)h(supp)q(ort.)k
-(The)c(default)f(v)m(alue)h(is)f(`)p Fs(off)p Ft(',)f(but)555
-1125 y(Readline)k(will)e(set)h(it)g(to)g(`)p Fs(on)p
-Ft(')f(if)h(the)h(lo)q(cale)f(con)o(tains)f(c)o(haracters)h(whose)555
-1180 y(enco)q(dings)f(ma)o(y)e(include)h(b)o(ytes)g(with)g(the)g(eigh)o
+Fs(off)p Ft('.)315 906 y Fs(input-meta)555 960 y Ft(If)h(set)g(to)f(`)p
+Fs(on)p Ft(',)f(Readline)j(enables)f(eigh)o(t-bit)e(input)i(\(that)f
+(is,)g(it)g(do)q(es)h(not)555 1015 y(clear)h(the)g(eigh)o(th)f(bit)h
+(in)g(the)g(c)o(haracters)f(it)h(reads\),)g(regardless)f(of)h(what)555
+1070 y(the)23 b(terminal)e(claims)g(it)h(can)g(supp)q(ort.)42
+b(The)23 b(default)f(v)m(alue)h(is)f(`)p Fs(off)p Ft(',)555
+1125 y(but)16 b(Readline)h(sets)e(it)h(to)f(`)p Fs(on)p
+Ft(')g(if)h(the)g(lo)q(cale)g(con)o(tains)f(c)o(haracters)g(whose)555
+1180 y(enco)q(dings)h(ma)o(y)e(include)h(b)o(ytes)g(with)g(the)g(eigh)o
(th)g(bit)f(set.)20 b(This)15 b(v)m(ariable)555 1234
y(is)j(dep)q(enden)o(t)i(on)f(the)f Fs(LC_CTYPE)g Ft(lo)q(cale)g
(category)l(,)g(and)h(its)f(v)m(alue)h(ma)o(y)555 1289
b(name)g Fs(meta-flag)e Ft(is)i(a)f(synon)o(ym)555 1344
y(for)e Fs(input-meta)p Ft(.)315 1421 y Fs(isearch-terminators)555
1475 y Ft(The)26 b(string)f(of)g(c)o(haracters)g(that)g(should)h
-(terminate)f(an)h(incremen)o(tal)555 1530 y(searc)o(h)12
-b(without)g(subsequen)o(tly)g(executing)h(the)f(c)o(haracter)g(as)g(a)g
-(command)555 1585 y(\(see)22 b(Section)g(1.2.5)f([Searc)o(hing],)i
-(page)f(3\).)40 b(If)23 b(this)f(v)m(ariable)f(has)h(not)555
-1640 y(b)q(een)d(giv)o(en)e(a)g(v)m(alue,)i(the)f(c)o(haracters)e
-Fs(ESC)i Ft(and)g Fl(C-J)f Ft(will)f(terminate)h(an)555
-1695 y(incremen)o(tal)d(searc)o(h.)315 1771 y Fs(keymap)96
-b Ft(Sets)32 b(Readline's)g(idea)g(of)g(the)g(curren)o(t)g(k)o(eymap)g
-(for)g(k)o(ey)g(binding)555 1826 y(commands.)j(Built-in)19
-b Fs(keymap)h Ft(names)g(are)g Fs(emacs)p Ft(,)g Fs(emacs-standard)p
+(terminate)f(an)h(incremen)o(tal)555 1530 y(searc)o(h)41
+b(without)g(subsequen)o(tly)h(executing)g(the)f(c)o(haracter)g(as)g(a)
+555 1585 y(command)19 b(\(see)g(Section)f(1.2.5)g([Searc)o(hing],)g
+(page)h(3\).)30 b(If)19 b(this)g(v)m(ariable)555 1640
+y(has)d(not)h(b)q(een)g(giv)o(en)f(a)h(v)m(alue,)f(the)h(c)o(haracters)
+f Fs(ESC)g Ft(and)h Fl(C-j)f Ft(terminate)555 1695 y(an)f(incremen)o
+(tal)f(searc)o(h.)315 1771 y Fs(keymap)96 b Ft(Sets)32
+b(Readline's)g(idea)g(of)g(the)g(curren)o(t)g(k)o(eymap)g(for)g(k)o(ey)
+g(binding)555 1826 y(commands.)j(Built-in)19 b Fs(keymap)h
+Ft(names)g(are)g Fs(emacs)p Ft(,)g Fs(emacs-standard)p
Ft(,)555 1881 y Fs(emacs-meta)p Ft(,)49 b Fs(emacs-ctlx)p
Ft(,)g Fs(vi)p Ft(,)h Fs(vi-move)p Ft(,)f Fs(vi-command)p
Ft(,)g(and)555 1936 y Fs(vi-insert)p Ft(.)40 b Fs(vi)22
2286 y(ing)i(an)f(am)o(biguous)g(k)o(ey)h(sequence)h(\(one)f(that)f
(can)i(form)e(a)g(complete)h(k)o(ey)555 2341 y(sequence)j(using)e(the)h
(input)f(read)h(so)f(far,)g(or)g(can)h(tak)o(e)f(additional)f(input)555
-2396 y(to)21 b(complete)g(a)g(longer)f(k)o(ey)i(sequence\).)39
-b(If)21 b(Readline)h(do)q(esn't)f(receiv)o(e)555 2451
-y(an)o(y)16 b(input)g(within)f(the)h(timeout,)f(it)g(will)f(use)j(the)f
-(shorter)f(but)h(complete)555 2506 y(k)o(ey)k(sequence.)38
-b(Readline)21 b(uses)f(this)g(v)m(alue)h(to)f(determine)h(whether)f(or)
-555 2560 y(not)13 b(input)g(is)g(a)o(v)m(ailable)f(on)i(the)f(curren)o
-(t)h(input)f(source)g(\()p Fs(rl_instream)f Ft(b)o(y)555
-2615 y(default\).)24 b(The)16 b(v)m(alue)h(is)g(sp)q(eci\014ed)g(in)g
-(milliseconds,)e(so)i(a)f(v)m(alue)h(of)f(1000)555 2670
-y(means)h(that)g(Readline)h(will)e(w)o(ait)f(one)j(second)g(for)f
-(additional)e(input.)27 b(If)p eop end
+2396 y(to)e(complete)g(a)f(longer)h(k)o(ey)g(sequence\).)20
+b(If)14 b(Readline)f(do)q(esn't)g(receiv)o(e)g(an)o(y)555
+2451 y(input)j(within)g(the)g(timeout,)f(it)h(uses)g(the)h(shorter)e
+(but)i(complete)f(k)o(ey)g(se-)555 2506 y(quence.)k(Readline)13
+b(uses)g(this)f(v)m(alue)h(to)g(determine)f(whether)h(or)g(not)f(input)
+555 2560 y(is)j(a)o(v)m(ailable)f(on)h(the)g(curren)o(t)h(input)f
+(source)g(\()p Fs(rl_instream)f Ft(b)o(y)h(default\).)555
+2615 y(The)e(v)m(alue)g(is)f(sp)q(eci\014ed)i(in)e(milliseconds,)g(so)g
+(a)g(v)m(alue)h(of)g(1000)e(means)i(that)555 2670 y(Readline)j(will)e
+(w)o(ait)g(one)i(second)g(for)f(additional)f(input.)21
+b(If)16 b(this)f(v)m(ariable)p eop end
%%Page: 10 14
TeXDict begin 10 13 bop 75 -58 a Ft(Chapter)15 b(1:)k(Command)c(Line)h
-(Editing)1053 b(10)555 149 y(this)19 b(v)m(ariable)g(is)h(set)f(to)g(a)
-h(v)m(alue)g(less)f(than)h(or)f(equal)g(to)h(zero,)g(or)f(to)g(a)555
-204 y(non-n)o(umeric)d(v)m(alue,)h(Readline)f(will)f(w)o(ait)g(un)o
-(til)g(another)h(k)o(ey)g(is)f(pressed)555 259 y(to)c(decide)i(whic)o
-(h)f(k)o(ey)g(sequence)h(to)e(complete.)18 b(The)13 b(default)e(v)m
-(alue)h(is)g Fs(500)p Ft(.)315 336 y Fs(mark-directories)555
-391 y Ft(If)19 b(set)g(to)g(`)p Fs(on)p Ft(',)f(completed)h(directory)g
-(names)g(ha)o(v)o(e)f(a)h(slash)g(app)q(ended.)555 445
-y(The)c(default)g(is)g(`)p Fs(on)p Ft('.)315 522 y Fs
-(mark-modified-lines)555 577 y Ft(When)d(this)f(v)m(ariable)g(is)g(set)
-h(to)f(`)p Fs(on)p Ft(',)g(Readline)h(will)e(to)h(displa)o(y)g(an)g
-(asterisk)555 632 y(\(`)p Fs(*)p Ft('\))16 b(at)i(the)f(start)g(of)h
-(history)e(lines)i(whic)o(h)g(ha)o(v)o(e)f(b)q(een)i(mo)q(di\014ed.)28
-b(This)555 686 y(v)m(ariable)15 b(is)f(`)p Fs(off)p Ft(')g(b)o(y)h
-(default.)315 763 y Fs(mark-symlinked-directories)555
-818 y Ft(If)30 b(set)f(to)g(`)p Fs(on)p Ft(',)j(completed)e(names)g
-(whic)o(h)f(are)h(sym)o(b)q(olic)f(links)g(to)555 873
-y(directories)34 b(ha)o(v)o(e)g(a)h(slash)f(app)q(ended,)41
-b(sub)s(ject)34 b(to)h(the)f(v)m(alue)h(of)555 928 y
-Fs(mark-directories)p Ft(.)18 b(The)d(default)g(is)g(`)p
-Fs(off)p Ft('.)315 1004 y Fs(match-hidden-files)555 1059
-y Ft(This)d(v)m(ariable,)g(when)g(set)g(to)g(`)p Fs(on)p
-Ft(',)f(forces)h(Readline)h(to)e(matc)o(h)h(\014les)g(whose)555
-1114 y(names)22 b(b)q(egin)g(with)g(a)f(`)p Fs(.)p Ft(')h(\(hidden)g
-(\014les\))g(when)g(p)q(erforming)g(\014lename)555 1169
-y(completion.)d(If)c(set)f(to)g(`)p Fs(off)p Ft(',)f(the)h(user)h(m)o
-(ust)f(include)h(the)g(leading)f(`)p Fs(.)p Ft(')f(in)555
-1223 y(the)i(\014lename)h(to)e(b)q(e)i(completed.)k(This)15
-b(v)m(ariable)f(is)h(`)p Fs(on)p Ft(')f(b)o(y)h(default.)315
+(Editing)1053 b(10)555 149 y(is)19 b(set)h(to)f(a)h(v)m(alue)g(less)g
+(than)f(or)h(equal)g(to)f(zero,)h(or)g(to)f(a)h(non-n)o(umeric)555
+204 y(v)m(alue,)d(Readline)g(w)o(aits)e(un)o(til)g(another)h(k)o(ey)h
+(is)f(pressed)h(to)f(decide)h(whic)o(h)555 259 y(k)o(ey)e(sequence)h
+(to)f(complete.)20 b(The)15 b(default)g(v)m(alue)g(is)g
+Fs(500)p Ft(.)315 336 y Fs(mark-directories)555 391 y
+Ft(If)k(set)g(to)g(`)p Fs(on)p Ft(',)f(completed)h(directory)g(names)g
+(ha)o(v)o(e)f(a)h(slash)g(app)q(ended.)555 445 y(The)c(default)g(is)g
+(`)p Fs(on)p Ft('.)315 522 y Fs(mark-modified-lines)555
+577 y Ft(When)f(this)f(v)m(ariable)g(is)g(set)g(to)g(`)p
+Fs(on)p Ft(',)f(Readline)i(displa)o(ys)f(an)g(asterisk)g(\(`)p
+Fs(*)p Ft('\))555 632 y(at)e(the)h(start)e(of)i(history)e(lines)i(whic)
+o(h)f(ha)o(v)o(e)g(b)q(een)i(mo)q(di\014ed.)19 b(This)12
+b(v)m(ariable)555 686 y(is)j(`)p Fs(off)p Ft(')f(b)o(y)h(default.)315
+763 y Fs(mark-symlinked-directories)555 818 y Ft(If)30
+b(set)f(to)g(`)p Fs(on)p Ft(',)j(completed)e(names)g(whic)o(h)f(are)h
+(sym)o(b)q(olic)f(links)g(to)555 873 y(directories)34
+b(ha)o(v)o(e)g(a)h(slash)f(app)q(ended,)41 b(sub)s(ject)34
+b(to)h(the)f(v)m(alue)h(of)555 928 y Fs(mark-directories)p
+Ft(.)18 b(The)d(default)g(is)g(`)p Fs(off)p Ft('.)315
+1004 y Fs(match-hidden-files)555 1059 y Ft(This)d(v)m(ariable,)g(when)g
+(set)g(to)g(`)p Fs(on)p Ft(',)f(forces)h(Readline)h(to)e(matc)o(h)h
+(\014les)g(whose)555 1114 y(names)22 b(b)q(egin)g(with)g(a)f(`)p
+Fs(.)p Ft(')h(\(hidden)g(\014les\))g(when)g(p)q(erforming)g(\014lename)
+555 1169 y(completion.)d(If)c(set)f(to)g(`)p Fs(off)p
+Ft(',)f(the)h(user)h(m)o(ust)f(include)h(the)g(leading)f(`)p
+Fs(.)p Ft(')f(in)555 1223 y(the)i(\014lename)h(to)e(b)q(e)i(completed.)
+k(This)15 b(v)m(ariable)f(is)h(`)p Fs(on)p Ft(')f(b)o(y)h(default.)315
1300 y Fs(menu-complete-display-pref)o(ix)555 1355 y
Ft(If)i(set)g(to)f(`)p Fs(on)p Ft(',)f(men)o(u)i(completion)f(displa)o
(ys)g(the)h(common)f(pre\014x)i(of)e(the)555 1410 y(list)i(of)g(p)q
(ossible)g(completions)g(\(whic)o(h)h(ma)o(y)f(b)q(e)h(empt)o(y\))f(b)q
(efore)h(cycling)555 1465 y(through)c(the)g(list.)k(The)c(default)g(is)
g(`)p Fs(off)p Ft('.)315 1541 y Fs(output-meta)555 1596
-y Ft(If)j(set)f(to)g(`)p Fs(on)p Ft(',)g(Readline)h(will)f(displa)o(y)g
-(c)o(haracters)f(with)i(the)f(eigh)o(th)g(bit)555 1651
-y(set)h(directly)g(rather)f(than)h(as)g(a)g(meta-pre\014xed)h(escap)q
-(e)g(sequence.)30 b(The)555 1706 y(default)12 b(is)h(`)p
-Fs(off)p Ft(',)e(but)i(Readline)h(will)d(set)i(it)f(to)g(`)p
-Fs(on)p Ft(')g(if)g(the)h(lo)q(cale)f(con)o(tains)555
-1760 y(c)o(haracters)k(whose)g(enco)q(dings)h(ma)o(y)f(include)h(b)o
-(ytes)f(with)g(the)g(eigh)o(th)g(bit)555 1815 y(set.)30
-b(This)19 b(v)m(ariable)f(is)g(dep)q(enden)o(t)j(on)d(the)h
-Fs(LC_CTYPE)f Ft(lo)q(cale)g(category)l(,)555 1870 y(and)d(its)g(v)m
-(alue)g(ma)o(y)g(c)o(hange)g(if)g(the)g(lo)q(cale)f(c)o(hanges.)315
-1947 y Fs(page-completions)555 2001 y Ft(If)j(set)g(to)f(`)p
-Fs(on)p Ft(',)g(Readline)h(uses)h(an)e(in)o(ternal)g
-Fs(more)p Ft(-lik)o(e)g(pager)h(to)f(displa)o(y)555 2056
-y(a)g(screenful)g(of)g(p)q(ossible)g(completions)f(at)h(a)g(time.)22
-b(This)16 b(v)m(ariable)f(is)h(`)p Fs(on)p Ft(')555 2111
-y(b)o(y)f(default.)315 2188 y Fs(prefer-visible-bell)555
+y Ft(If)d(set)f(to)g(`)p Fs(on)p Ft(',)g(Readline)h(displa)o(ys)e(c)o
+(haracters)h(with)g(the)h(eigh)o(th)f(bit)g(set)g(di-)555
+1651 y(rectly)i(rather)h(than)f(as)h(a)g(meta-pre\014xed)g(escap)q(e)h
+(sequence.)20 b(The)14 b(default)555 1706 y(is)e(`)p
+Fs(off)p Ft(',)g(but)h(Readline)h(sets)e(it)h(to)f(`)p
+Fs(on)p Ft(')g(if)g(the)h(lo)q(cale)g(con)o(tains)f(c)o(haracters)555
+1760 y(whose)18 b(enco)q(dings)h(ma)o(y)e(include)i(b)o(ytes)f(with)f
+(the)h(eigh)o(th)g(bit)g(set.)28 b(This)555 1815 y(v)m(ariable)11
+b(is)g(dep)q(enden)o(t)i(on)e(the)g Fs(LC_CTYPE)g Ft(lo)q(cale)g
+(category)l(,)g(and)g(its)g(v)m(alue)555 1870 y(ma)o(y)j(c)o(hange)i
+(if)e(the)i(lo)q(cale)e(c)o(hanges.)315 1947 y Fs(page-completions)555
+2001 y Ft(If)e(set)g(to)g(`)p Fs(on)p Ft(',)f(Readline)h(uses)h(an)f
+(in)o(ternal)f(pager)h(resem)o(bling)f Fj(mor)n(e)s Ft(\(1\))h(to)555
+2056 y(displa)o(y)h(a)i(screenful)f(of)g(p)q(ossible)g(completions)g
+(at)g(a)g(time.)19 b(This)14 b(v)m(ariable)555 2111 y(is)h(`)p
+Fs(on)p Ft(')f(b)o(y)h(default.)315 2188 y Fs(prefer-visible-bell)555
2243 y Ft(See)h Fs(bell-style)p Ft(.)315 2319 y Fs
-(print-completions-horizont)o(ally)555 2374 y Ft(If)c(set)g(to)f(`)p
-Fs(on)p Ft(',)h(Readline)g(will)e(displa)o(y)i(completions)f(with)g
-(matc)o(hes)g(sorted)555 2429 y(horizon)o(tally)20 b(in)h(alphab)q
-(etical)g(order,)i(rather)e(than)g(do)o(wn)h(the)g(screen.)555
+(print-completions-horizont)o(ally)555 2374 y Ft(If)j(set)g(to)g(`)p
+Fs(on)p Ft(',)f(Readline)i(displa)o(ys)e(completions)g(with)h(matc)o
+(hes)f(sorted)555 2429 y(horizon)o(tally)i(in)h(alphab)q(etical)g
+(order,)i(rather)e(than)g(do)o(wn)h(the)g(screen.)555
2484 y(The)15 b(default)g(is)g(`)p Fs(off)p Ft('.)315
2560 y Fs(revert-all-at-newline)555 2615 y Ft(If)g(set)g(to)f(`)p
Fs(on)p Ft(',)f(Readline)i(will)f(undo)h(all)f(c)o(hanges)g(to)h
(Editing)1053 b(18)195 149 y Fs(#)24 b(For)f(FTP)195
204 y($if)g(Ftp)195 259 y("\\C-xg":)g("get)g(\\M-?")195
314 y("\\C-xt":)g("put)g(\\M-?")195 369 y("\\M-.":)g(yank-last-arg)195
-423 y($endif)75 548 y Fr(1.4)33 b(Bindable)22 b(Readline)f(Commands)75
-628 y Ft(This)12 b(section)h(describ)q(es)g(Readline)g(commands)g(that)
+423 y($endif)75 536 y Fr(1.4)33 b(Bindable)22 b(Readline)f(Commands)75
+616 y Ft(This)12 b(section)h(describ)q(es)g(Readline)g(commands)g(that)
f(ma)o(y)g(b)q(e)i(b)q(ound)f(to)g(k)o(ey)f(sequences.)20
-b(Command)75 682 y(names)15 b(without)f(an)h(accompan)o(ying)g(k)o(ey)g
+b(Command)75 670 y(names)15 b(without)f(an)h(accompan)o(ying)g(k)o(ey)g
(sequence)h(are)f(un)o(b)q(ound)i(b)o(y)e(default.)137
-752 y(In)f(the)f(follo)o(wing)e(descriptions,)i Fk(p)q(oin)o(t)g
+734 y(In)f(the)f(follo)o(wing)e(descriptions,)i Fk(p)q(oin)o(t)g
Ft(refers)g(to)g(the)g(curren)o(t)g(cursor)f(p)q(osition,)h(and)g
-Fk(mark)i Ft(refers)75 807 y(to)c(a)g(cursor)h(p)q(osition)f(sa)o(v)o
+Fk(mark)i Ft(refers)75 788 y(to)c(a)g(cursor)h(p)q(osition)f(sa)o(v)o
(ed)g(b)o(y)h(the)f Fs(set-mark)g Ft(command.)18 b(The)12
b(text)g(b)q(et)o(w)o(een)g(the)f(p)q(oin)o(t)h(and)g(mark)75
-862 y(is)j(referred)h(to)f(as)g(the)h Fk(region)p Ft(.)21
+843 y(is)j(referred)h(to)f(as)g(the)h Fk(region)p Ft(.)21
b(Readline)16 b(has)f(the)h(concept)g(of)f(an)h Fj(active)g(r)n(e)n
-(gion)s Ft(:)21 b(when)16 b(the)g(region)75 917 y(is)h(activ)o(e,)g
+(gion)s Ft(:)21 b(when)16 b(the)g(region)75 898 y(is)h(activ)o(e,)g
(Readline)h(redispla)o(y)e(highligh)o(ts)g(the)i(region)f(using)g(the)g
-(v)m(alue)h(of)f(the)h Fs(active-region-)75 972 y(start-color)13
+(v)m(alue)h(of)f(the)h Fs(active-region-)75 953 y(start-color)13
b Ft(v)m(ariable.)19 b(The)c Fs(enable-active-region)d
Ft(v)m(ariable)i(turns)g(this)g(on)h(and)g(o\013.)j(Sev)o(eral)75
-1026 y(commands)d(set)g(the)g(region)g(to)f(activ)o(e;)g(those)h(are)g
-(noted)g(b)q(elo)o(w.)75 1129 y Fi(1.4.1)30 b(Commands)21
-b(F)-5 b(or)19 b(Mo)n(ving)75 1216 y Fs(beginning-of-line)13
-b(\(C-a\))315 1271 y Ft(Mo)o(v)o(e)g(to)g(the)h(start)e(of)i(the)f
+1008 y(commands)d(set)g(the)g(region)g(to)f(activ)o(e;)g(those)h(are)g
+(noted)g(b)q(elo)o(w.)75 1099 y Fi(1.4.1)30 b(Commands)21
+b(F)-5 b(or)19 b(Mo)n(ving)75 1181 y Fs(beginning-of-line)13
+b(\(C-a\))315 1236 y Ft(Mo)o(v)o(e)g(to)g(the)h(start)e(of)i(the)f
(curren)o(t)h(line.)19 b(This)14 b(ma)o(y)f(also)f(b)q(e)j(b)q(ound)f
-(to)g(the)f(Home)h(k)o(ey)315 1326 y(on)h(some)g(k)o(eyb)q(oards.)75
-1408 y Fs(end-of-line)f(\(C-e\))315 1463 y Ft(Mo)o(v)o(e)h(to)g(the)i
+(to)g(the)f(Home)h(k)o(ey)315 1291 y(on)h(some)g(k)o(eyb)q(oards.)75
+1363 y Fs(end-of-line)f(\(C-e\))315 1417 y Ft(Mo)o(v)o(e)h(to)g(the)i
(end)f(of)g(the)g(line.)22 b(This)16 b(ma)o(y)f(also)g(b)q(e)i(b)q
-(ound)g(to)e(the)h(End)g(k)o(ey)g(on)g(some)315 1518
-y(k)o(eyb)q(oards.)75 1600 y Fs(forward-char)e(\(C-f\))315
-1655 y Ft(Mo)o(v)o(e)g(forw)o(ard)g(a)h(c)o(haracter.)75
-1737 y Fs(backward-char)e(\(C-b\))315 1792 y Ft(Mo)o(v)o(e)h(bac)o(k)h
-(a)g(c)o(haracter.)75 1875 y Fs(forward-word)f(\(M-f\))315
-1929 y Ft(Mo)o(v)o(e)g(forw)o(ard)g(to)g(the)i(end)g(of)e(the)h(next)h
+(ound)g(to)e(the)h(End)g(k)o(ey)g(on)g(some)315 1472
+y(k)o(eyb)q(oards.)75 1544 y Fs(forward-char)e(\(C-f\))315
+1599 y Ft(Mo)o(v)o(e)i(forw)o(ard)f(a)h(c)o(haracter.)23
+b(This)16 b(ma)o(y)g(also)f(b)q(e)i(b)q(ound)h(to)e(the)g(righ)o(t)g
+(arro)o(w)f(k)o(ey)h(on)315 1654 y(some)f(k)o(eyb)q(oards.)75
+1725 y Fs(backward-char)e(\(C-b\))315 1780 y Ft(Mo)o(v)o(e)h(bac)o(k)h
+(a)g(c)o(haracter.)k(This)c(ma)o(y)f(also)g(b)q(e)i(b)q(ound)g(to)e
+(the)h(left)g(arro)o(w)e(k)o(ey)i(on)g(some)315 1835
+y(k)o(eyb)q(oards.)75 1907 y Fs(forward-word)f(\(M-f\))315
+1962 y Ft(Mo)o(v)o(e)g(forw)o(ard)g(to)g(the)i(end)g(of)e(the)h(next)h
(w)o(ord.)j(W)l(ords)c(are)f(comp)q(osed)i(of)f(letters)f(and)315
-1984 y(digits.)75 2067 y Fs(backward-word)f(\(M-b\))315
-2122 y Ft(Mo)o(v)o(e)j(bac)o(k)g(to)h(the)f(start)g(of)g(the)h(curren)o
+2016 y(digits.)75 2088 y Fs(backward-word)f(\(M-b\))315
+2143 y Ft(Mo)o(v)o(e)j(bac)o(k)g(to)h(the)f(start)g(of)g(the)h(curren)o
(t)g(or)f(previous)h(w)o(ord.)24 b(W)l(ords)16 b(are)h(comp)q(osed)315
-2176 y(of)e(letters)f(and)h(digits.)75 2259 y Fs(previous-screen-line)d
-(\(\))315 2314 y Ft(A)o(ttempt)19 b(to)h(mo)o(v)o(e)f(p)q(oin)o(t)h(to)
+2198 y(of)e(letters)f(and)h(digits.)75 2269 y Fs(previous-screen-line)d
+(\(\))315 2324 y Ft(A)o(ttempt)19 b(to)h(mo)o(v)o(e)f(p)q(oin)o(t)h(to)
f(the)h(same)g(ph)o(ysical)f(screen)i(column)f(on)g(the)g(previous)315
-2368 y(ph)o(ysical)12 b(screen)h(line.)19 b(This)12 b(will)f(not)h(ha)o
+2379 y(ph)o(ysical)12 b(screen)h(line.)19 b(This)12 b(will)f(not)h(ha)o
(v)o(e)g(the)h(desired)f(e\013ect)h(if)f(the)g(curren)o(t)h(Readline)
-315 2423 y(line)g(do)q(es)h(not)g(tak)o(e)f(up)h(more)f(than)g(one)h
+315 2434 y(line)g(do)q(es)h(not)g(tak)o(e)f(up)h(more)f(than)g(one)h
(ph)o(ysical)f(line)g(or)h(if)f(p)q(oin)o(t)g(is)g(not)g(greater)g
-(than)315 2478 y(the)i(length)g(of)g(the)g(prompt)g(plus)g(the)g
+(than)315 2489 y(the)i(length)g(of)g(the)g(prompt)g(plus)g(the)g
(screen)h(width.)75 2560 y Fs(next-screen-line)d(\(\))315
2615 y Ft(A)o(ttempt)e(to)h(mo)o(v)o(e)g(p)q(oin)o(t)g(to)f(the)i(same)
f(ph)o(ysical)f(screen)i(column)g(on)f(the)g(next)h(ph)o(ysical)315
g(ph)o(ysical)f(line)g(or)g(if)g(the)h(length)f(of)g(the)h(curren)o(t)g
(Readline)315 204 y(line)h(is)g(not)f(greater)h(than)g(the)g(length)g
(of)g(the)g(prompt)g(plus)g(the)g(screen)h(width.)75
-291 y Fs(clear-display)d(\(M-C-l\))315 346 y Ft(Clear)j(the)g(screen)h
+282 y Fs(clear-display)d(\(M-C-l\))315 337 y Ft(Clear)j(the)g(screen)h
(and,)g(if)f(p)q(ossible,)g(the)g(terminal's)f(scrollbac)o(k)g
-(bu\013er,)i(then)g(redra)o(w)315 401 y(the)e(curren)o(t)g(line,)g(lea)
+(bu\013er,)i(then)g(redra)o(w)315 392 y(the)e(curren)o(t)g(line,)g(lea)
o(ving)f(the)h(curren)o(t)g(line)g(at)g(the)g(top)g(of)g(the)g(screen.)
-75 487 y Fs(clear-screen)f(\(C-l\))315 542 y Ft(Clear)i(the)i(screen,)g
+75 470 y Fs(clear-screen)f(\(C-l\))315 525 y Ft(Clear)i(the)i(screen,)g
(then)f(redra)o(w)g(the)g(curren)o(t)g(line,)g(lea)o(ving)f(the)h
-(curren)o(t)g(line)g(at)g(the)315 597 y(top)e(of)g(the)g(screen.)75
-684 y Fs(redraw-current-line)e(\(\))315 739 y Ft(Refresh)j(the)f
+(curren)o(t)g(line)g(at)g(the)315 579 y(top)e(of)g(the)g(screen.)75
+657 y Fs(redraw-current-line)e(\(\))315 712 y Ft(Refresh)j(the)f
(curren)o(t)g(line.)20 b(By)15 b(default,)g(this)f(is)h(un)o(b)q(ound.)
-75 845 y Fi(1.4.2)30 b(Commands)21 b(F)-5 b(or)19 b(Manipulating)i(The)
-f(History)75 935 y Fs(accept-line)14 b(\(Newline)g(or)h(Return\))315
-989 y Ft(Accept)h(the)f(line)g(regardless)f(of)g(where)i(the)f(cursor)g
+75 810 y Fi(1.4.2)30 b(Commands)21 b(F)-5 b(or)19 b(Manipulating)i(The)
+f(History)75 895 y Fs(accept-line)14 b(\(Newline)g(or)h(Return\))315
+950 y Ft(Accept)h(the)f(line)g(regardless)f(of)g(where)i(the)f(cursor)g
(is.)k(If)c(this)g(line)g(is)f(non-empt)o(y)l(,)h(y)o(ou)315
-1044 y(can)j(add)g(it)f(to)h(the)g(history)f(list)f(using)i
+1005 y(can)j(add)g(it)f(to)h(the)g(history)f(list)f(using)i
Fs(add_history\(\))p Ft(.)26 b(If)19 b(this)e(line)g(is)h(a)g(mo)q
-(di\014ed)315 1099 y(history)c(line,)h(then)g(restore)g(the)g(history)f
-(line)h(to)g(its)f(original)f(state.)75 1186 y Fs(previous-history)g
-(\(C-p\))315 1241 y Ft(Mo)o(v)o(e)h(`bac)o(k')h(through)f(the)i
-(history)e(list,)f(fetc)o(hing)i(the)g(previous)g(command.)75
-1327 y Fs(next-history)f(\(C-n\))315 1382 y Ft(Mo)o(v)o(e)g(`forw)o
-(ard')f(through)i(the)h(history)e(list,)f(fetc)o(hing)i(the)g(next)h
-(command.)75 1469 y Fs(beginning-of-history)c(\(M-<\))315
-1524 y Ft(Mo)o(v)o(e)i(to)h(the)g(\014rst)g(line)g(in)g(the)g(history)l
-(.)75 1611 y Fs(end-of-history)e(\(M->\))315 1665 y Ft(Mo)o(v)o(e)h(to)
-h(the)g(end)h(of)f(the)g(input)g(history)l(,)f(i.e.,)g(the)h(line)g
-(curren)o(tly)g(b)q(eing)g(en)o(tered.)75 1752 y Fs
-(reverse-search-history)d(\(C-r\))315 1807 y Ft(Searc)o(h)k(bac)o(kw)o
-(ard)e(starting)g(at)h(the)h(curren)o(t)f(line)h(and)f(mo)o(ving)g
-(`up')g(through)g(the)h(his-)315 1862 y(tory)c(as)h(necessary)l(.)20
-b(This)12 b(is)h(an)g(incremen)o(tal)f(searc)o(h.)19
-b(This)13 b(command)g(sets)f(the)i(region)315 1917 y(to)h(the)g(matc)o
-(hed)g(text)g(and)g(activ)m(ates)f(the)i(region.)75 2003
-y Fs(forward-search-history)c(\(C-s\))315 2058 y Ft(Searc)o(h)22
+(di\014ed)315 1060 y(history)c(line,)h(then)g(restore)g(the)g(history)f
+(line)h(to)g(its)f(original)f(state.)75 1138 y Fs(previous-history)g
+(\(C-p\))315 1192 y Ft(Mo)o(v)o(e)f(`bac)o(k')f(through)h(the)h
+(history)e(list,)h(fetc)o(hing)g(the)g(previous)h(command.)19
+b(This)12 b(ma)o(y)315 1247 y(also)i(b)q(e)i(b)q(ound)g(to)f(the)g(up)h
+(arro)o(w)d(k)o(ey)j(on)f(some)g(k)o(eyb)q(oards.)75
+1325 y Fs(next-history)f(\(C-n\))315 1380 y Ft(Mo)o(v)o(e)f(`forw)o
+(ard')g(through)g(the)i(history)e(list,)g(fetc)o(hing)h(the)g(next)g
+(command.)20 b(This)14 b(ma)o(y)315 1435 y(also)g(b)q(e)i(b)q(ound)g
+(to)f(the)g(do)o(wn)g(arro)o(w)f(k)o(ey)h(on)g(some)g(k)o(eyb)q(oards.)
+75 1513 y Fs(beginning-of-history)d(\(M-<\))315 1568
+y Ft(Mo)o(v)o(e)i(to)h(the)g(\014rst)g(line)g(in)g(the)g(history)l(.)75
+1646 y Fs(end-of-history)e(\(M->\))315 1700 y Ft(Mo)o(v)o(e)h(to)h(the)
+g(end)h(of)f(the)g(input)g(history)l(,)f(i.e.,)g(the)h(line)g(curren)o
+(tly)g(b)q(eing)g(en)o(tered.)75 1778 y Fs(reverse-search-history)d
+(\(C-r\))315 1833 y Ft(Searc)o(h)k(bac)o(kw)o(ard)e(starting)g(at)h
+(the)h(curren)o(t)f(line)h(and)f(mo)o(ving)g(`up')g(through)g(the)h
+(his-)315 1888 y(tory)c(as)h(necessary)l(.)20 b(This)12
+b(is)h(an)g(incremen)o(tal)f(searc)o(h.)19 b(This)13
+b(command)g(sets)f(the)i(region)315 1943 y(to)h(the)g(matc)o(hed)g
+(text)g(and)g(activ)m(ates)f(the)i(region.)75 2021 y
+Fs(forward-search-history)c(\(C-s\))315 2076 y Ft(Searc)o(h)22
b(forw)o(ard)e(starting)h(at)g(the)h(curren)o(t)f(line)h(and)g(mo)o
-(ving)f(`do)o(wn')f(through)i(the)315 2113 y(history)c(as)h(necessary)l
+(ving)f(`do)o(wn')f(through)i(the)315 2130 y(history)c(as)h(necessary)l
(.)32 b(This)18 b(is)h(an)g(incremen)o(tal)f(searc)o(h.)31
-b(This)19 b(command)g(sets)g(the)315 2168 y(region)14
+b(This)19 b(command)g(sets)g(the)315 2185 y(region)14
b(to)h(the)g(matc)o(hed)g(text)g(and)g(activ)m(ates)g(the)g(region.)75
-2254 y Fs(non-incremental-reverse-se)o(arch-hi)o(story)d(\(M-p\))315
-2309 y Ft(Searc)o(h)k(bac)o(kw)o(ard)e(starting)g(at)h(the)h(curren)o
+2263 y Fs(non-incremental-reverse-se)o(arch-hi)o(story)d(\(M-p\))315
+2318 y Ft(Searc)o(h)k(bac)o(kw)o(ard)e(starting)g(at)h(the)h(curren)o
(t)f(line)h(and)f(mo)o(ving)g(`up')g(through)g(the)h(his-)315
-2364 y(tory)h(as)h(necessary)g(using)g(a)f(non-incremen)o(tal)h(searc)o
-(h)g(for)f(a)h(string)f(supplied)h(b)o(y)g(the)315 2419
+2373 y(tory)h(as)h(necessary)g(using)g(a)f(non-incremen)o(tal)h(searc)o
+(h)g(for)f(a)h(string)f(supplied)h(b)o(y)g(the)315 2428
y(user.)i(The)15 b(searc)o(h)g(string)g(ma)o(y)f(matc)o(h)h(an)o
(ywhere)g(in)g(a)g(history)f(line.)75 2506 y Fs
(non-incremental-forward-se)o(arch-hi)o(story)e(\(M-n\))315
TeXDict begin 24 27 bop 75 -58 a Ft(Chapter)15 b(1:)k(Command)c(Line)h
(Editing)1053 b(24)75 149 y Fi(1.4.6)30 b(Letting)20
b(Readline)g(T)n(yp)r(e)h(F)-5 b(or)19 b(Y)-5 b(ou)75
-239 y Fs(complete)14 b(\(TAB\))315 294 y Ft(A)o(ttempt)c(to)h(p)q
+234 y Fs(complete)14 b(\(TAB\))315 289 y Ft(A)o(ttempt)c(to)h(p)q
(erform)g(completion)g(on)g(the)g(text)g(b)q(efore)h(p)q(oin)o(t.)18
-b(The)11 b(actual)g(completion)315 348 y(p)q(erformed)k(is)g
+b(The)11 b(actual)g(completion)315 344 y(p)q(erformed)k(is)g
(application-sp)q(eci\014c.)20 b(The)15 b(default)g(is)g(\014lename)g
-(completion.)75 435 y Fs(possible-completions)d(\(M-?\))315
-490 y Ft(List)17 b(the)g(p)q(ossible)g(completions)g(of)g(the)g(text)g
+(completion.)75 421 y Fs(possible-completions)d(\(M-?\))315
+476 y Ft(List)17 b(the)g(p)q(ossible)g(completions)g(of)g(the)g(text)g
(b)q(efore)h(p)q(oin)o(t.)25 b(When)18 b(displa)o(ying)e(com-)315
-545 y(pletions,)f(Readline)i(sets)f(the)g(n)o(um)o(b)q(er)h(of)e
+530 y(pletions,)f(Readline)i(sets)f(the)g(n)o(um)o(b)q(er)h(of)e
(columns)h(used)h(for)f(displa)o(y)f(to)h(the)g(v)m(alue)g(of)315
-599 y Fs(completion-display-width)p Ft(,)f(the)k(v)m(alue)f(of)g(the)g
+585 y Fs(completion-display-width)p Ft(,)f(the)k(v)m(alue)f(of)g(the)g
(en)o(vironmen)o(t)g(v)m(ariable)f Fs(COLUMNS)p Ft(,)315
-654 y(or)e(the)g(screen)h(width,)e(in)h(that)g(order.)75
-741 y Fs(insert-completions)e(\(M-*\))315 795 y Ft(Insert)j(all)e
+640 y(or)e(the)g(screen)h(width,)e(in)h(that)g(order.)75
+717 y Fs(insert-completions)e(\(M-*\))315 772 y Ft(Insert)j(all)e
(completions)g(of)h(the)g(text)g(b)q(efore)h(p)q(oin)o(t)e(that)h(w)o
-(ould)g(ha)o(v)o(e)g(b)q(een)h(generated)315 850 y(b)o(y)f
+(ould)g(ha)o(v)o(e)g(b)q(een)h(generated)315 827 y(b)o(y)f
Fs(possible-completions)p Ft(,)d(separated)j(b)o(y)g(a)g(space.)75
-937 y Fs(menu-complete)e(\(\))315 992 y Ft(Similar)d(to)i
+904 y Fs(menu-complete)e(\(\))315 958 y Ft(Similar)d(to)i
Fs(complete)p Ft(,)f(but)h(replaces)g(the)g(w)o(ord)f(to)g(b)q(e)i
-(completed)e(with)h(a)f(single)h(matc)o(h)315 1046 y(from)20
+(completed)e(with)h(a)f(single)h(matc)o(h)315 1013 y(from)20
b(the)h(list)f(of)g(p)q(ossible)h(completions.)35 b(Rep)q(eatedly)22
-b(executing)f Fs(menu-complete)315 1101 y Ft(steps)14
+b(executing)f Fs(menu-complete)315 1068 y Ft(steps)14
b(through)f(the)h(list)f(of)g(p)q(ossible)h(completions,)e(inserting)h
-(eac)o(h)h(matc)o(h)f(in)h(turn.)19 b(A)o(t)315 1156
+(eac)o(h)h(matc)o(h)f(in)h(turn.)19 b(A)o(t)315 1123
y(the)h(end)g(of)g(the)g(list)e(of)i(completions,)f Fs(menu-complete)f
-Ft(rings)i(the)f(b)q(ell)h(\(sub)s(ject)g(to)315 1211
+Ft(rings)i(the)f(b)q(ell)h(\(sub)s(ject)g(to)315 1178
y(the)e(setting)g(of)g Fs(bell-style)p Ft(\))e(and)j(restores)e(the)i
(original)d(text.)29 b(An)18 b(argumen)o(t)g(of)g Fk(n)315
-1266 y Ft(mo)o(v)o(es)f Fk(n)i Ft(p)q(ositions)e(forw)o(ard)g(in)h(the)
+1232 y Ft(mo)o(v)o(es)f Fk(n)i Ft(p)q(ositions)e(forw)o(ard)g(in)h(the)
g(list)f(of)h(matc)o(hes;)h(a)f(negativ)o(e)f(argumen)o(t)h(mo)o(v)o
-(es)315 1320 y(bac)o(kw)o(ard)c(through)g(the)g(list.)k(This)c(command)
+(es)315 1287 y(bac)o(kw)o(ard)c(through)g(the)g(list.)k(This)c(command)
h(is)f(in)o(tended)g(to)g(b)q(e)h(b)q(ound)g(to)f Fs(TAB)p
-Ft(,)g(but)315 1375 y(is)h(un)o(b)q(ound)h(b)o(y)f(default.)75
-1462 y Fs(menu-complete-backward)d(\(\))315 1516 y Ft(Iden)o(tical)17
+Ft(,)g(but)315 1342 y(is)h(un)o(b)q(ound)h(b)o(y)f(default.)75
+1419 y Fs(menu-complete-backward)d(\(\))315 1474 y Ft(Iden)o(tical)17
b(to)g Fs(menu-complete)p Ft(,)f(but)i(mo)o(v)o(es)e(bac)o(kw)o(ard)h
-(through)g(the)h(list)e(of)h(p)q(ossible)315 1571 y(completions,)g(as)h
+(through)g(the)h(list)e(of)h(p)q(ossible)315 1529 y(completions,)g(as)h
(if)f Fs(menu-complete)f Ft(had)i(b)q(een)h(giv)o(en)f(a)f(negativ)o(e)
-g(argumen)o(t.)27 b(This)315 1626 y(command)15 b(is)g(un)o(b)q(ound)h
-(b)o(y)f(default.)75 1713 y Fs(delete-char-or-list)e(\(\))315
-1767 y Ft(Deletes)19 b(the)g(c)o(haracter)g(under)h(the)g(cursor)f(if)g
-(not)g(at)g(the)g(b)q(eginning)h(or)f(end)h(of)f(the)315
-1822 y(line)24 b(\(lik)o(e)f Fs(delete-char)p Ft(\).)44
+g(argumen)o(t.)27 b(This)315 1583 y(command)15 b(is)g(un)o(b)q(ound)h
+(b)o(y)f(default.)75 1661 y Fs(export-completions)e(\(\))315
+1715 y Ft(P)o(erform)20 b(completion)h(on)g(the)h(w)o(ord)e(b)q(efore)i
+(p)q(oin)o(t)f(as)g(describ)q(ed)h(ab)q(o)o(v)o(e)f(and)h(write)315
+1770 y(the)14 b(list)f(of)g(p)q(ossible)h(completions)f(to)h
+(Readline's)f(output)h(stream)f(using)h(the)g(follo)o(wing)315
+1825 y(format,)f(writing)h(information)g(on)h(separate)f(lines:)352
+1891 y Fq(\017)30 b Ft(the)15 b(n)o(um)o(b)q(er)h(of)f(matc)o(hes)f
+Fk(N)5 b Ft(;)352 1957 y Fq(\017)30 b Ft(the)15 b(w)o(ord)g(b)q(eing)g
+(completed;)352 2023 y Fq(\017)30 b Fk(S)s Ft(:)p Fk(E)p
+Ft(,)11 b(where)h(S)g(and)g(E)f(are)g(the)h(start)e(and)i(end)g
+(o\013sets)f(of)g(the)h(w)o(ord)f(in)g(the)h(Readline)405
+2077 y(line)j(bu\013er;)g(then)352 2143 y Fq(\017)30
+b Ft(eac)o(h)15 b(matc)o(h,)g(one)g(p)q(er)h(line)315
+2220 y(If)h(there)f(are)g(no)g(matc)o(hes,)g(the)g(\014rst)g(line)g
+(will)f(b)q(e)i(\\0",)e(and)i(this)f(command)g(do)q(es)g(not)315
+2275 y(prin)o(t)k(an)o(y)h(output)g(after)g(the)g Fk(S)s
+Ft(:)p Fk(E)p Ft(.)37 b(If)21 b(there)h(is)e(only)h(a)g(single)f(matc)o
+(h,)i(this)f(prin)o(ts)315 2330 y(a)f(single)g(line)g(con)o(taining)f
+(it.)34 b(If)20 b(there)h(is)f(more)f(than)i(one)f(matc)o(h,)h(this)e
+(prin)o(ts)h(the)315 2385 y(common)15 b(pre\014x)h(of)f(the)g(matc)o
+(hes,)g(whic)o(h)g(ma)o(y)g(b)q(e)h(empt)o(y)l(,)f(on)g(the)g(\014rst)g
+(line)g(after)g(the)315 2440 y Fk(S)s Ft(:)p Fk(E)p Ft(,)e(then)h(the)f
+(matc)o(hes)g(on)h(subsequen)o(t)g(lines.)19 b(In)14
+b(this)f(case,)g Fk(N)19 b Ft(will)12 b(include)i(the)f(\014rst)315
+2494 y(line)i(with)f(the)i(common)e(pre\014x.)315 2560
+y(The)21 b(user)g(or)f(application)f(should)i(b)q(e)h(able)e(to)g
+(accommo)q(date)g(the)h(p)q(ossibilit)o(y)e(of)h(a)315
+2615 y(blank)12 b(line.)19 b(The)13 b(in)o(ten)o(t)f(is)g(that)g(the)h
+(user)g(or)f(application)f(reads)i Fk(N)k Ft(lines)c(after)f(the)g
+(line)315 2670 y(con)o(taining)h Fk(S)s Ft(:)p Fk(E)i
+Ft(to)f(obtain)f(the)g(matc)o(h)h(list.)k(This)13 b(command)h(is)f(un)o
+(b)q(ound)i(b)o(y)f(default.)p eop end
+%%Page: 25 29
+TeXDict begin 25 28 bop 75 -58 a Ft(Chapter)15 b(1:)k(Command)c(Line)h
+(Editing)1053 b(25)75 149 y Fs(delete-char-or-list)13
+b(\(\))315 204 y Ft(Deletes)19 b(the)g(c)o(haracter)g(under)h(the)g
+(cursor)f(if)g(not)g(at)g(the)g(b)q(eginning)h(or)f(end)h(of)f(the)315
+259 y(line)24 b(\(lik)o(e)f Fs(delete-char)p Ft(\).)44
b(A)o(t)24 b(the)g(end)h(of)f(the)g(line,)h(it)f(b)q(eha)o(v)o(es)g
-(iden)o(tically)f(to)315 1877 y Fs(possible-completions)p
+(iden)o(tically)f(to)315 314 y Fs(possible-completions)p
Ft(.)17 b(This)e(command)g(is)g(un)o(b)q(ound)h(b)o(y)f(default.)75
-1983 y Fi(1.4.7)30 b(Keyb)r(oard)20 b(Macros)75 2073
-y Fs(start-kbd-macro)13 b(\(C-x)i(\(\))315 2128 y Ft(Begin)g(sa)o(ving)
-f(the)i(c)o(haracters)e(t)o(yp)q(ed)i(in)o(to)e(the)h(curren)o(t)g(k)o
-(eyb)q(oard)g(macro.)75 2214 y Fs(end-kbd-macro)e(\(C-x)i(\)\))315
-2269 y Ft(Stop)f(sa)o(ving)e(the)i(c)o(haracters)f(t)o(yp)q(ed)h(in)o
+407 y Fi(1.4.7)30 b(Keyb)r(oard)20 b(Macros)75 489 y
+Fs(start-kbd-macro)13 b(\(C-x)i(\(\))315 544 y Ft(Begin)g(sa)o(ving)f
+(the)i(c)o(haracters)e(t)o(yp)q(ed)i(in)o(to)e(the)h(curren)o(t)g(k)o
+(eyb)q(oard)g(macro.)75 617 y Fs(end-kbd-macro)e(\(C-x)i(\)\))315
+671 y Ft(Stop)f(sa)o(ving)e(the)i(c)o(haracters)f(t)o(yp)q(ed)h(in)o
(to)e(the)i(curren)o(t)g(k)o(eyb)q(oard)f(macro)g(and)h(sa)o(v)o(e)f
-(the)315 2324 y(de\014nition.)75 2410 y Fs(call-last-kbd-macro)g(\(C-x)
-h(e\))315 2465 y Ft(Re-execute)19 b(the)f(last)e(k)o(eyb)q(oard)i
-(macro)f(de\014ned,)i(b)o(y)e(making)g(the)h(c)o(haracters)e(in)i(the)
-315 2520 y(macro)c(app)q(ear)i(as)f(if)f(t)o(yp)q(ed)i(at)e(the)i(k)o
-(eyb)q(oard.)75 2606 y Fs(print-last-kbd-macro)c(\(\))315
-2661 y Ft(Prin)o(t)i(the)h(last)f(k)o(eyb)q(oard)h(macro)g(de\014ned)h
-(in)f(a)g(format)e(suitable)i(for)f(the)h Fk(inputrc)j
-Ft(\014le.)p eop end
-%%Page: 25 29
-TeXDict begin 25 28 bop 75 -58 a Ft(Chapter)15 b(1:)k(Command)c(Line)h
-(Editing)1053 b(25)75 149 y Fi(1.4.8)30 b(Some)20 b(Miscellaneous)h
-(Commands)75 233 y Fs(re-read-init-file)13 b(\(C-x)h(C-r\))315
-288 y Ft(Read)e(in)e(the)h(con)o(ten)o(ts)g(of)f(the)h
-Fk(inputrc)j Ft(\014le,)d(and)h(incorp)q(orate)e(an)o(y)g(bindings)h
-(or)g(v)m(ariable)315 343 y(assignmen)o(ts)j(found)i(there.)75
-418 y Fs(abort)e(\(C-g\))315 473 y Ft(Ab)q(ort)f(the)g(curren)o(t)h
+(the)315 726 y(de\014nition.)75 799 y Fs(call-last-kbd-macro)g(\(C-x)h
+(e\))315 854 y Ft(Re-execute)19 b(the)f(last)e(k)o(eyb)q(oard)i(macro)f
+(de\014ned,)i(b)o(y)e(making)g(the)h(c)o(haracters)e(in)i(the)315
+908 y(macro)c(app)q(ear)i(as)f(if)f(t)o(yp)q(ed)i(at)e(the)i(k)o(eyb)q
+(oard.)75 981 y Fs(print-last-kbd-macro)c(\(\))315 1036
+y Ft(Prin)o(t)i(the)h(last)f(k)o(eyb)q(oard)h(macro)g(de\014ned)h(in)f
+(a)g(format)e(suitable)i(for)f(the)h Fk(inputrc)j Ft(\014le.)75
+1129 y Fi(1.4.8)30 b(Some)20 b(Miscellaneous)h(Commands)75
+1211 y Fs(re-read-init-file)13 b(\(C-x)h(C-r\))315 1266
+y Ft(Read)e(in)e(the)h(con)o(ten)o(ts)g(of)f(the)h Fk(inputrc)j
+Ft(\014le,)d(and)h(incorp)q(orate)e(an)o(y)g(bindings)h(or)g(v)m
+(ariable)315 1321 y(assignmen)o(ts)j(found)i(there.)75
+1394 y Fs(abort)e(\(C-g\))315 1448 y Ft(Ab)q(ort)f(the)g(curren)o(t)h
(editing)e(command)h(and)h(ring)e(the)i(terminal's)d(b)q(ell)i(\(sub)s
-(ject)g(to)g(the)315 528 y(setting)h(of)h Fs(bell-style)p
-Ft(\).)75 603 y Fs(do-lowercase-version)d(\(M-A,)j(M-B,)f(M-)p
-Fl(x)p Fs(,)h(...\))315 658 y Ft(If)j(the)f(meta\014ed)h(c)o(haracter)f
-Fk(x)j Ft(is)d(upp)q(er)i(case,)f(run)f(the)h(command)f(that)g(is)g(b)q
-(ound)i(to)315 712 y(the)e(corresp)q(onding)f(meta\014ed)h(lo)o(w)o(er)
-e(case)h(c)o(haracter.)23 b(The)17 b(b)q(eha)o(vior)f(is)g(unde\014ned)
-i(if)315 767 y Fk(x)g Ft(is)d(already)f(lo)o(w)o(er)g(case.)75
-842 y Fs(prefix-meta)g(\(ESC\))315 897 y Ft(Metafy)g(the)i(next)f(c)o
-(haracter)f(t)o(yp)q(ed.)21 b(T)o(yping)14 b(`)p Fs(ESC)g(f)p
-Ft(')h(is)g(equiv)m(alen)o(t)g(to)f(t)o(yping)h Fl(M-f)p
-Ft(.)75 972 y Fs(undo)g(\(C-_)f(or)h(C-x)g(C-u\))315
-1027 y Ft(Incremen)o(tal)g(undo,)g(separately)g(remem)o(b)q(ered)h(for)
-e(eac)o(h)h(line.)75 1102 y Fs(revert-line)f(\(M-r\))315
-1157 y Ft(Undo)j(all)e(c)o(hanges)i(made)f(to)g(this)g(line.)24
+(ject)g(to)g(the)315 1503 y(setting)h(of)h Fs(bell-style)p
+Ft(\).)75 1576 y Fs(do-lowercase-version)d(\(M-A,)j(M-B,)f(M-)p
+Fl(x)p Fs(,)h(...\))315 1631 y Ft(If)j(the)f(meta\014ed)h(c)o(haracter)
+f Fk(x)j Ft(is)d(upp)q(er)i(case,)f(run)f(the)h(command)f(that)g(is)g
+(b)q(ound)i(to)315 1685 y(the)e(corresp)q(onding)f(meta\014ed)h(lo)o(w)
+o(er)e(case)h(c)o(haracter.)23 b(The)17 b(b)q(eha)o(vior)f(is)g
+(unde\014ned)i(if)315 1740 y Fk(x)g Ft(is)d(already)f(lo)o(w)o(er)g
+(case.)75 1813 y Fs(prefix-meta)g(\(ESC\))315 1868 y
+Ft(Metafy)g(the)i(next)f(c)o(haracter)f(t)o(yp)q(ed.)21
+b(T)o(yping)14 b(`)p Fs(ESC)g(f)p Ft(')h(is)g(equiv)m(alen)o(t)g(to)f
+(t)o(yping)h Fl(M-f)p Ft(.)75 1941 y Fs(undo)g(\(C-_)f(or)h(C-x)g
+(C-u\))315 1995 y Ft(Incremen)o(tal)g(undo,)g(separately)g(remem)o(b)q
+(ered)h(for)e(eac)o(h)h(line.)75 2068 y Fs(revert-line)f(\(M-r\))315
+2123 y Ft(Undo)j(all)e(c)o(hanges)i(made)f(to)g(this)g(line.)24
b(This)16 b(is)g(lik)o(e)g(executing)g(the)h Fs(undo)f
-Ft(command)315 1212 y(enough)g(times)e(to)h(get)f(bac)o(k)h(to)g(the)g
-(initial)f(state.)75 1287 y Fs(tilde-expand)g(\(M-~\))315
-1342 y Ft(P)o(erform)g(tilde)h(expansion)g(on)g(the)g(curren)o(t)g(w)o
-(ord.)75 1417 y Fs(set-mark)f(\(C-@\))315 1472 y Ft(Set)i(the)g(mark)f
+Ft(command)315 2178 y(enough)g(times)e(to)h(get)f(bac)o(k)h(to)g(the)g
+(initial)f(state.)75 2250 y Fs(tilde-expand)g(\(M-~\))315
+2305 y Ft(P)o(erform)g(tilde)h(expansion)g(on)g(the)g(curren)o(t)g(w)o
+(ord.)75 2378 y Fs(set-mark)f(\(C-@\))315 2433 y Ft(Set)i(the)g(mark)f
(to)g(the)h(p)q(oin)o(t.)21 b(If)16 b(a)g(n)o(umeric)g(argumen)o(t)f
-(is)g(supplied,)h(set)g(the)f(mark)h(to)315 1527 y(that)e(p)q(osition.)
-75 1602 y Fs(exchange-point-and-mark)e(\(C-x)j(C-x\))315
-1657 y Ft(Sw)o(ap)k(the)g(p)q(oin)o(t)g(with)f(the)i(mark.)31
+(is)g(supplied,)h(set)g(the)f(mark)h(to)315 2488 y(that)e(p)q(osition.)
+75 2560 y Fs(exchange-point-and-mark)e(\(C-x)j(C-x\))315
+2615 y Ft(Sw)o(ap)k(the)g(p)q(oin)o(t)g(with)f(the)i(mark.)31
b(Set)19 b(the)g(curren)o(t)h(cursor)e(p)q(osition)h(to)f(the)h(sa)o(v)
-o(ed)315 1712 y(p)q(osition,)14 b(then)h(set)g(the)h(mark)e(to)h(the)g
-(old)g(cursor)g(p)q(osition.)75 1787 y Fs(character-search)e(\(C-]\))
-315 1842 y Ft(Read)k(a)f(c)o(haracter)g(and)h(mo)o(v)o(e)e(p)q(oin)o(t)
-h(to)g(the)h(next)f(o)q(ccurrence)i(of)e(that)g(c)o(haracter.)23
-b(A)315 1896 y(negativ)o(e)14 b(argumen)o(t)h(searc)o(hes)g(for)f
-(previous)h(o)q(ccurrences.)75 1972 y Fs(character-search-backward)d
-(\(M-C-]\))315 2026 y Ft(Read)j(a)g(c)o(haracter)f(and)h(mo)o(v)o(e)f
-(p)q(oin)o(t)g(to)g(the)h(previous)g(o)q(ccurrence)h(of)e(that)g(c)o
-(haracter.)315 2081 y(A)h(negativ)o(e)g(argumen)o(t)f(searc)o(hes)h
-(for)g(subsequen)o(t)g(o)q(ccurrences.)75 2156 y Fs(skip-csi-sequence)e
-(\(\))315 2211 y Ft(Read)h(enough)g(c)o(haracters)f(to)g(consume)h(a)g
-(m)o(ulti-k)o(ey)e(sequence)j(suc)o(h)f(as)f(those)h(de\014ned)315
-2266 y(for)19 b(k)o(eys)h(lik)o(e)g(Home)g(and)g(End.)35
-b(CSI)20 b(sequences)h(b)q(egin)g(with)e(a)h(Con)o(trol)e(Sequence)315
-2321 y(Indicator)g(\(CSI\),)g(usually)f(ESC-[.)29 b(If)19
-b(this)f(sequence)h(is)f(b)q(ound)h(to)f Fs("\\)p Ft(e[)p
-Fs(")p Ft(,)g(k)o(eys)g(pro-)315 2376 y(ducing)e(CSI)g(sequences)h
-(will)d(ha)o(v)o(e)i(no)g(e\013ect)f(unless)h(explicitly)e(b)q(ound)j
-(to)e(a)h(Readline)315 2430 y(command,)g(instead)f(of)h(inserting)f
-(stra)o(y)f(c)o(haracters)i(in)o(to)f(the)h(editing)f(bu\013er.)22
-b(This)15 b(is)315 2485 y(un)o(b)q(ound)h(b)o(y)g(default,)e(but)h
-(usually)g(b)q(ound)h(to)f(ESC-[.)75 2560 y Fs(insert-comment)e
-(\(M-#\))315 2615 y Ft(Without)j(a)g(n)o(umeric)h(argumen)o(t,)f
-(insert)g(the)h(v)m(alue)g(of)g(the)g Fs(comment-begin)e
-Ft(v)m(ariable)315 2670 y(at)j(the)h(b)q(eginning)g(of)f(the)h(curren)o
-(t)g(line.)30 b(If)19 b(a)g(n)o(umeric)g(argumen)o(t)f(is)g(supplied,)i
-(this)p eop end
+o(ed)315 2670 y(p)q(osition,)14 b(then)h(set)g(the)h(mark)e(to)h(the)g
+(old)g(cursor)g(p)q(osition.)p eop end
%%Page: 26 30
TeXDict begin 26 29 bop 75 -58 a Ft(Chapter)15 b(1:)k(Command)c(Line)h
-(Editing)1053 b(26)315 149 y(command)20 b(acts)f(as)h(a)g(toggle:)28
-b(if)19 b(the)h(c)o(haracters)f(at)h(the)g(b)q(eginning)g(of)f(the)h
-(line)g(do)315 204 y(not)d(matc)o(h)g(the)g(v)m(alue)g(of)g
-Fs(comment-begin)p Ft(,)f(insert)h(the)g(v)m(alue;)h(otherwise)e
-(delete)i(the)315 259 y(c)o(haracters)13 b(in)g Fs(comment-begin)e
-Ft(from)i(the)g(b)q(eginning)h(of)f(the)g(line.)19 b(In)14
-b(either)f(case,)h(the)315 314 y(line)h(is)g(accepted)g(as)g(if)g(a)g
-(newline)g(had)g(b)q(een)i(t)o(yp)q(ed.)75 394 y Fs(dump-functions)c
-(\(\))315 448 y Ft(Prin)o(t)f(all)g(of)h(the)g(functions)g(and)h(their)
-f(k)o(ey)g(bindings)g(to)f(the)i(Readline)f(output)g(stream.)315
-503 y(If)j(a)g(n)o(umeric)f(argumen)o(t)g(is)h(supplied,)g(the)g
+(Editing)1053 b(26)75 149 y Fs(character-search)13 b(\(C-]\))315
+204 y Ft(Read)k(a)f(c)o(haracter)g(and)h(mo)o(v)o(e)e(p)q(oin)o(t)h(to)
+g(the)h(next)f(o)q(ccurrence)i(of)e(that)g(c)o(haracter.)23
+b(A)315 259 y(negativ)o(e)14 b(argumen)o(t)h(searc)o(hes)g(for)f
+(previous)h(o)q(ccurrences.)75 343 y Fs(character-search-backward)d
+(\(M-C-]\))315 398 y Ft(Read)j(a)g(c)o(haracter)f(and)h(mo)o(v)o(e)f(p)
+q(oin)o(t)g(to)g(the)h(previous)g(o)q(ccurrence)h(of)e(that)g(c)o
+(haracter.)315 453 y(A)h(negativ)o(e)g(argumen)o(t)f(searc)o(hes)h(for)
+g(subsequen)o(t)g(o)q(ccurrences.)75 537 y Fs(skip-csi-sequence)e(\(\))
+315 592 y Ft(Read)h(enough)g(c)o(haracters)f(to)g(consume)h(a)g(m)o
+(ulti-k)o(ey)e(sequence)j(suc)o(h)f(as)f(those)h(de\014ned)315
+647 y(for)g(k)o(eys)h(lik)o(e)f(Home)h(and)g(End.)20
+b(CSI)15 b(sequences)h(b)q(egin)g(with)e(a)h(Con)o(trol)e(Sequence)j
+(In-)315 702 y(dicator)c(\(CSI\),)g(usually)h Fl(ESC)h([)p
+Ft(.)19 b(If)13 b(this)g(sequence)h(is)e(b)q(ound)i(to)f
+Fs("\\)p Ft(e[)p Fs(")p Ft(,)f(k)o(eys)h(pro)q(ducing)315
+756 y(CSI)k(sequences)h(ha)o(v)o(e)f(no)g(e\013ect)g(unless)g
+(explicitly)e(b)q(ound)j(to)f(a)f(Readline)h(command,)315
+811 y(instead)c(of)g(inserting)f(stra)o(y)g(c)o(haracters)g(in)o(to)g
+(the)i(editing)e(bu\013er.)19 b(This)13 b(is)g(un)o(b)q(ound)h(b)o(y)
+315 866 y(default,)g(but)i(usually)e(b)q(ound)i(to)f
+Fl(ESC)g([)p Ft(.)75 950 y Fs(insert-comment)e(\(M-#\))315
+1005 y Ft(Without)j(a)g(n)o(umeric)h(argumen)o(t,)f(insert)g(the)h(v)m
+(alue)g(of)g(the)g Fs(comment-begin)e Ft(v)m(ariable)315
+1060 y(at)j(the)h(b)q(eginning)g(of)f(the)h(curren)o(t)g(line.)30
+b(If)19 b(a)g(n)o(umeric)g(argumen)o(t)f(is)g(supplied,)i(this)315
+1115 y(command)g(acts)f(as)h(a)g(toggle:)28 b(if)19 b(the)h(c)o
+(haracters)f(at)h(the)g(b)q(eginning)g(of)f(the)h(line)g(do)315
+1169 y(not)d(matc)o(h)g(the)g(v)m(alue)g(of)g Fs(comment-begin)p
+Ft(,)f(insert)h(the)g(v)m(alue;)h(otherwise)e(delete)i(the)315
+1224 y(c)o(haracters)13 b(in)g Fs(comment-begin)e Ft(from)i(the)g(b)q
+(eginning)h(of)f(the)g(line.)19 b(In)14 b(either)f(case,)h(the)315
+1279 y(line)h(is)g(accepted)g(as)g(if)g(a)g(newline)g(had)g(b)q(een)i
+(t)o(yp)q(ed.)75 1363 y Fs(dump-functions)c(\(\))315
+1418 y Ft(Prin)o(t)f(all)g(of)h(the)g(functions)g(and)h(their)f(k)o(ey)
+g(bindings)g(to)f(the)i(Readline)f(output)g(stream.)315
+1473 y(If)j(a)g(n)o(umeric)f(argumen)o(t)g(is)h(supplied,)g(the)g
(output)f(is)h(formatted)e(in)i(suc)o(h)g(a)g(w)o(a)o(y)f(that)315
-558 y(it)f(can)i(b)q(e)g(made)f(part)f(of)h(an)g Fk(inputrc)j
+1528 y(it)f(can)i(b)q(e)g(made)f(part)f(of)h(an)g Fk(inputrc)j
Ft(\014le.)i(This)15 b(command)g(is)g(un)o(b)q(ound)h(b)o(y)f(default.)
-75 638 y Fs(dump-variables)e(\(\))315 692 y Ft(Prin)o(t)d(all)f(of)h
+75 1612 y Fs(dump-variables)e(\(\))315 1667 y Ft(Prin)o(t)d(all)f(of)h
(the)h(settable)f(v)m(ariables)g(and)h(their)f(v)m(alues)h(to)f(the)h
-(Readline)g(output)f(stream.)315 747 y(If)16 b(a)g(n)o(umeric)f
+(Readline)g(output)f(stream.)315 1721 y(If)16 b(a)g(n)o(umeric)f
(argumen)o(t)g(is)h(supplied,)g(the)g(output)f(is)h(formatted)e(in)i
-(suc)o(h)g(a)g(w)o(a)o(y)f(that)315 802 y(it)f(can)i(b)q(e)g(made)f
+(suc)o(h)g(a)g(w)o(a)o(y)f(that)315 1776 y(it)f(can)i(b)q(e)g(made)f
(part)f(of)h(an)g Fk(inputrc)j Ft(\014le.)i(This)15 b(command)g(is)g
-(un)o(b)q(ound)h(b)o(y)f(default.)75 882 y Fs(dump-macros)f(\(\))315
-936 y Ft(Prin)o(t)i(all)g(of)g(the)h(Readline)g(k)o(ey)g(sequences)h(b)
-q(ound)g(to)e(macros)g(and)h(the)g(strings)f(they)315
-991 y(output)g(to)f(the)i(Readline)f(output)g(stream.)22
+(un)o(b)q(ound)h(b)o(y)f(default.)75 1860 y Fs(dump-macros)f(\(\))315
+1915 y Ft(Prin)o(t)i(all)g(of)g(the)h(Readline)g(k)o(ey)g(sequences)h
+(b)q(ound)g(to)e(macros)g(and)h(the)g(strings)f(they)315
+1970 y(output)g(to)f(the)i(Readline)f(output)g(stream.)22
b(If)16 b(a)g(n)o(umeric)g(argumen)o(t)f(is)h(supplied,)g(the)315
-1046 y(output)g(is)f(formatted)g(in)h(suc)o(h)g(a)g(w)o(a)o(y)f(that)g
+2025 y(output)g(is)f(formatted)g(in)h(suc)o(h)g(a)g(w)o(a)o(y)f(that)g
(it)g(can)h(b)q(e)h(made)f(part)f(of)h(an)g Fk(inputrc)i
-Ft(\014le.)315 1101 y(This)d(command)g(is)g(un)o(b)q(ound)h(b)o(y)f
-(default.)75 1181 y Fs(execute-named-command)d(\(M-x\))315
-1235 y Ft(Read)h(a)f(bindable)h(Readline)g(command)g(name)f(from)g(the)
-h(input)f(and)h(execute)h(the)e(func-)315 1290 y(tion)g(to)g(whic)o(h)h
+Ft(\014le.)315 2080 y(This)d(command)g(is)g(un)o(b)q(ound)h(b)o(y)f
+(default.)75 2164 y Fs(execute-named-command)d(\(M-x\))315
+2219 y Ft(Read)h(a)f(bindable)h(Readline)g(command)g(name)f(from)g(the)
+h(input)f(and)h(execute)h(the)e(func-)315 2273 y(tion)g(to)g(whic)o(h)h
(it's)f(b)q(ound,)i(as)f(if)f(the)h(k)o(ey)g(sequence)h(to)e(whic)o(h)h
-(it)f(w)o(as)g(b)q(ound)i(app)q(eared)315 1345 y(in)19
+(it)f(w)o(as)g(b)q(ound)i(app)q(eared)315 2328 y(in)19
b(the)f(input.)31 b(If)19 b(this)f(function)h(is)f(supplied)h(with)f(a)
-h(n)o(umeric)g(argumen)o(t,)f(it)g(passes)315 1400 y(that)c(argumen)o
-(t)h(to)f(the)i(function)f(it)f(executes.)75 1479 y Fs
-(emacs-editing-mode)f(\(C-e\))315 1534 y Ft(When)j(in)f
+h(n)o(umeric)g(argumen)o(t,)f(it)g(passes)315 2383 y(that)c(argumen)o
+(t)h(to)f(the)i(function)f(it)f(executes.)75 2467 y Fs
+(emacs-editing-mode)f(\(C-e\))315 2522 y Ft(When)j(in)f
Fs(vi)f Ft(command)i(mo)q(de,)f(this)f(causes)i(a)f(switc)o(h)f(to)h
-Fs(emacs)f Ft(editing)h(mo)q(de.)75 1614 y Fs(vi-editing-mode)e
-(\(M-C-j\))315 1669 y Ft(When)j(in)f Fs(emacs)f Ft(editing)h(mo)q(de,)g
-(this)f(causes)i(a)f(switc)o(h)f(to)h Fs(vi)f Ft(editing)h(mo)q(de.)75
-1789 y Fr(1.5)33 b(Readline)21 b(vi)i(Mo)r(de)75 1869
-y Ft(While)15 b(the)h(Readline)g(library)f(do)q(es)h(not)f(ha)o(v)o(e)g
-(a)h(full)f(set)h(of)f Fs(vi)g Ft(editing)g(functions,)h(it)f(do)q(es)h
-(con)o(tain)75 1924 y(enough)h(to)g(allo)o(w)e(simple)h(editing)h(of)f
-(the)i(line.)25 b(The)17 b(Readline)g Fs(vi)g Ft(mo)q(de)g(b)q(eha)o(v)
-o(es)g(as)g(sp)q(eci\014ed)h(in)75 1978 y(the)d Fs(sh)g
-Ft(description)g(in)g(the)g Fm(posix)g Ft(standard.)137
-2046 y(In)g(order)g(to)f(switc)o(h)f(in)o(teractiv)o(ely)g(b)q(et)o(w)o
+Fs(emacs)f Ft(editing)h(mo)q(de.)75 2606 y Fs(vi-editing-mode)e
+(\(M-C-j\))315 2661 y Ft(When)j(in)f Fs(emacs)f Ft(editing)h(mo)q(de,)g
+(this)f(causes)i(a)f(switc)o(h)f(to)h Fs(vi)f Ft(editing)h(mo)q(de.)p
+eop end
+%%Page: 27 31
+TeXDict begin 27 30 bop 75 -58 a Ft(Chapter)15 b(1:)k(Command)c(Line)h
+(Editing)1053 b(27)75 149 y Fr(1.5)33 b(Readline)21 b(vi)i(Mo)r(de)75
+229 y Ft(While)15 b(the)h(Readline)g(library)f(do)q(es)h(not)f(ha)o(v)o
+(e)g(a)h(full)f(set)h(of)f Fs(vi)g Ft(editing)g(functions,)h(it)f(do)q
+(es)h(con)o(tain)75 284 y(enough)h(to)g(allo)o(w)e(simple)h(editing)h
+(of)f(the)i(line.)25 b(The)17 b(Readline)g Fs(vi)g Ft(mo)q(de)g(b)q
+(eha)o(v)o(es)g(as)g(sp)q(eci\014ed)h(in)75 339 y(the)d
+Fs(sh)g Ft(description)g(in)g(the)g Fm(posix)g Ft(standard.)137
+406 y(In)g(order)g(to)f(switc)o(h)f(in)o(teractiv)o(ely)g(b)q(et)o(w)o
(een)i Fs(emacs)e Ft(and)i Fs(vi)f Ft(editing)g(mo)q(des,)h(use)f(the)h
-(command)75 2100 y Fl(M-C-j)j Ft(\(b)q(ound)i(to)e(emacs-editing-mo)q
+(command)75 461 y Fl(M-C-j)j Ft(\(b)q(ound)i(to)e(emacs-editing-mo)q
(de)h(when)g(in)g Fs(vi)g Ft(mo)q(de)g(and)g(to)f(vi-editing-mo)q(de)h
-(in)g Fs(emacs)75 2155 y Ft(mo)q(de\).)h(The)15 b(Readline)h(default)f
-(is)f Fs(emacs)h Ft(mo)q(de.)137 2222 y(When)h(y)o(ou)e(en)o(ter)h(a)g
+(in)g Fs(emacs)75 516 y Ft(mo)q(de\).)h(The)15 b(Readline)h(default)f
+(is)f Fs(emacs)h Ft(mo)q(de.)137 583 y(When)h(y)o(ou)e(en)o(ter)h(a)g
(line)g(in)f Fs(vi)h Ft(mo)q(de,)g(y)o(ou)g(are)f(already)h(placed)g
-(in)g(`insertion')e(mo)q(de,)i(as)g(if)f(y)o(ou)75 2277
+(in)g(`insertion')e(mo)q(de,)i(as)g(if)f(y)o(ou)75 638
y(had)h(t)o(yp)q(ed)g(an)g(`)p Fs(i)p Ft('.)j(Pressing)c
Fs(ESC)h Ft(switc)o(hes)f(y)o(ou)g(in)o(to)g(`command')g(mo)q(de,)g
-(where)h(y)o(ou)g(can)f(edit)h(the)75 2332 y(text)h(of)h(the)g(line)f
+(where)h(y)o(ou)g(can)f(edit)h(the)75 692 y(text)h(of)h(the)g(line)f
(with)h(the)g(standard)f Fs(vi)h Ft(mo)o(v)o(emen)o(t)f(k)o(eys,)g(mo)o
-(v)o(e)g(to)h(previous)f(history)g(lines)h(with)75 2387
+(v)o(e)g(to)h(previous)f(history)g(lines)h(with)75 747
y(`)p Fs(k)p Ft(')d(and)i(subsequen)o(t)f(lines)g(with)g(`)p
Fs(j)p Ft(',)f(and)h(so)g(forth.)p eop end
-%%Page: 27 31
-TeXDict begin 27 30 bop 1830 -58 a Ft(27)75 149 y Fp(2)41
+%%Page: 28 32
+TeXDict begin 28 31 bop 1830 -58 a Ft(28)75 149 y Fp(2)41
b(Programming)29 b(with)e(GNU)h(Readline)75 271 y Ft(This)12
b(c)o(hapter)g(describ)q(es)h(the)g(in)o(terface)f(b)q(et)o(w)o(een)g
(the)h Fm(gnu)f Ft(Readline)h(Library)f(and)g(other)h(programs.)75
b(p)q(erforms)e(some)h(expansion)g(on)g(the)g Fk(prompt)g
Ft(b)q(efore)g(it)g(is)f(displa)o(y)o(ed)g(on)h(the)g(screen.)19
b(See)75 1833 y(the)14 b(description)f(of)g Fs(rl_expand_prompt)e
-Ft(\(see)j(Section)f(2.4.6)f([Redispla)o(y],)h(page)g(41\))g(for)g
+Ft(\(see)j(Section)f(2.4.6)f([Redispla)o(y],)h(page)g(42\))g(for)g
(additional)75 1887 y(details,)19 b(esp)q(ecially)f(if)h
Fk(prompt)h Ft(will)e(con)o(tain)g(c)o(haracters)g(that)h(do)g(not)f
(consume)i(ph)o(ysical)e(screen)75 1942 y(space)d(when)h(displa)o(y)o
195 2506 y(static)g(char)g(*line_read)g(=)h(\(char)f(*\)NULL;)195
2615 y(/*)h(Read)f(a)h(string,)f(and)g(return)g(a)h(pointer)f(to)g(it.)
267 2670 y(Returns)f(NULL)i(on)f(EOF.)h(*/)p eop end
-%%Page: 28 32
-TeXDict begin 28 31 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
-b(with)g(GNU)h(Readline)842 b(28)195 149 y Fs(char)23
+%%Page: 29 33
+TeXDict begin 29 32 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
+b(with)g(GNU)h(Readline)842 b(29)195 149 y Fs(char)23
b(*)195 204 y(rl_gets)g(\(\))195 259 y({)243 314 y(/*)g(If)h(the)f
(buffer)g(has)h(already)f(been)g(allocated,)314 369 y(return)g(the)h
(memory)f(to)g(the)h(free)f(pool.)g(*/)243 423 y(if)g(\(line_read\))290
Ft(whic)o(h)j(p)q(erforms)g(this)g(and)h(other)f(desired)g
(initializations,)75 2024 y(suc)o(h)g(as)e(installing)g(custom)g
(completers)h(\(see)g(Section)g(2.6)g([Custom)f(Completers],)f(page)i
-(55\).)75 2141 y Fr(2.2)33 b(Custom)21 b(F)-6 b(unctions)75
+(56\).)75 2141 y Fr(2.2)33 b(Custom)21 b(F)-6 b(unctions)75
2221 y Ft(Readline)14 b(pro)o(vides)f(man)o(y)g(functions)h(for)f
(manipulating)f(the)i(text)f(of)g(the)h(line,)f(but)h(it)e(isn't)h(p)q
(ossible)75 2275 y(to)18 b(an)o(ticipate)f(the)h(needs)h(of)f(all)f
Fs(stdio)g Ft(library)l(,)g(the)h(program)e(should)i(include)g(the)g
(\014le)f Fs(<stdio.h>)75 2670 y Ft(b)q(efore)g Fs(readline.h)p
Ft(.)p eop end
-%%Page: 29 33
-TeXDict begin 29 32 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
-b(with)g(GNU)h(Readline)842 b(29)137 149 y Fs(readline.h)14
+%%Page: 30 34
+TeXDict begin 30 33 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
+b(with)g(GNU)h(Readline)842 b(30)137 149 y Fs(readline.h)14
b Ft(de\014nes)i(a)f(C)h(prepro)q(cessor)f(v)m(ariable)g(that)f(should)
h(b)q(e)h(treated)f(as)g(an)g(in)o(teger,)f Fs(RL_)75
204 y(READLINE_VERSION)p Ft(,)9 b(whic)o(h)i(ma)o(y)g(b)q(e)g(used)h
y(typedef)f(void)h(rl_vcppfunc_t)e(\(char)i(**\);)75
2670 y Ft(The)g Fs(rltypedefs.h)f Ft(\014le)h(has)g(more)g(do)q(cumen)o
(tation)g(for)f(these)i(t)o(yp)q(es.)p eop end
-%%Page: 30 34
-TeXDict begin 30 33 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
-b(with)g(GNU)h(Readline)842 b(30)75 149 y Fi(2.2.2)30
+%%Page: 31 35
+TeXDict begin 31 34 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
+b(with)g(GNU)h(Readline)842 b(31)75 149 y Fi(2.2.2)30
b(W)-5 b(riting)20 b(a)h(New)f(F)-5 b(unction)75 223
y Ft(In)16 b(order)f(to)g(write)g(new)h(functions)f(for)g(Readline,)h
(y)o(ou)f(need)h(to)f(kno)o(w)g(the)h(calling)e(con)o(v)o(en)o(tions)h
b(*)f(rl_line_buffer)195 1449 y Ft(This)15 b(is)g(the)h(line)f
(gathered)h(so)f(far.)20 b(Y)l(ou)c(are)f(w)o(elcome)g(to)g(mo)q(dify)g
(the)h(con)o(ten)o(ts)f(of)g(the)h(line,)195 1504 y(but)i(see)g
-(Section)g(2.4.5)e([Allo)o(wing)f(Undoing],)j(page)f(40.)27
+(Section)g(2.4.5)e([Allo)o(wing)f(Undoing],)j(page)f(41.)27
b(The)18 b(function)g Fs(rl_extend_line_)195 1559 y(buffer)c
Ft(will)g(increase)h(the)h(memory)e(allo)q(cated)g(to)h
Fs(rl_line_buffer)p Ft(.)1685 1650 y([V)l(ariable])-1801
(encoun)o(tered)h(a)f(read)g(error)g(or)f(EOF)h(and)h(is)f(ab)q(out)g
(to)195 2670 y(return)g(a)g(NULL)h(line)f(to)g(the)g(caller.)p
eop end
-%%Page: 31 35
-TeXDict begin 31 34 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
-b(with)g(GNU)h(Readline)842 b(31)1685 149 y([V)l(ariable])-1801
+%%Page: 32 36
+TeXDict begin 32 35 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
+b(with)g(GNU)h(Readline)842 b(32)1685 149 y([V)l(ariable])-1801
b Fh(int)27 b(rl_num_chars_to_read)195 204 y Ft(Setting)16
b(this)g(to)g(a)g(p)q(ositiv)o(e)f(v)m(alue)i(b)q(efore)g(calling)e
Fs(readline\(\))g Ft(causes)h(Readline)h(to)f(return)195
Fs(readline\(\))p Ft(,)g(and)h(should)195 1282 y(not)g(b)q(e)h
(assigned)f(to)g(directly)l(.)19 b(The)14 b Fs(rl_set_prompt\(\))d
Ft(function)i(\(see)h(Section)f(2.4.6)f([Redis-)195 1337
-y(pla)o(y],)k(page)h(41\))g(ma)o(y)f(b)q(e)i(used)g(to)f(mo)q(dify)g
+y(pla)o(y],)k(page)h(42\))g(ma)o(y)f(b)q(e)i(used)g(to)f(mo)q(dify)g
(the)g(prompt)g(string)f(after)h(calling)f Fs(readline\(\))p
Ft(.)195 1391 y(Readline)f(p)q(erforms)f(some)g(prompt)g(expansions)h
(and)g(analyzes)f(the)g(prompt)g(for)g(line)g(breaks,)195
2670 y Ft(Alw)o(a)o(ys)14 b(set)h(to)f(1,)h(denoting)g(that)f(this)h
(is)g Fm(gnu)g Ft(Readline)g(rather)g(than)g(some)g(em)o(ulation.)p
eop end
-%%Page: 32 36
-TeXDict begin 32 35 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
-b(with)g(GNU)h(Readline)842 b(32)1685 149 y([V)l(ariable])-1801
+%%Page: 33 37
+TeXDict begin 33 36 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
+b(with)g(GNU)h(Readline)842 b(33)1685 149 y([V)l(ariable])-1801
b Fh(const)27 b(char)g(*)f(rl_terminal_name)195 204 y
Ft(The)14 b(terminal)f(t)o(yp)q(e,)h(used)h(for)e(initialization.)k(If)
d(not)f(set)h(b)o(y)g(the)g(application,)f(Readline)h(sets)195
b(By)21 b(default,)h(it)f(is)f(set)h(to)g Fs(rl_getc)p
Ft(,)g(the)h(Readline)f(c)o(haracter)g(input)195 2407
y(function)e(\(see)h(Section)f(2.4.8)f([Character)g(Input],)i(page)g
-(43\).)31 b(In)20 b(general,)g(an)f(application)195 2462
+(44\).)31 b(In)20 b(general,)g(an)f(application)195 2462
y(that)14 b(sets)h Fk(rl)p 416 2462 14 2 v 20 w(getc)p
517 2462 V 20 w(function)g Ft(should)g(consider)g(setting)f
Fk(rl)p 1216 2462 V 20 w(input)p 1342 2462 V 20 w(a)o(v)m(ailable)p
(system)f(call)f(is)h(in)o(terrupted)195 2670 y(b)o(y)i(a)g(signal)f
(when)i(Readline)f(is)g(reading)g(terminal)f(input.)p
eop end
-%%Page: 33 37
-TeXDict begin 33 36 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
-b(with)g(GNU)h(Readline)842 b(33)1685 149 y([V)l(ariable])-1801
+%%Page: 34 38
+TeXDict begin 34 37 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
+b(with)g(GNU)h(Readline)842 b(34)1685 149 y([V)l(ariable])-1801
b Fh(rl_hook_func_t)28 b(*)f(rl_timeout_event_hook)195
204 y Ft(If)13 b(non-zero,)g(this)f(is)g(the)h(address)f(of)h(a)f
(function)g(to)g(call)g(if)g(Readline)h(times)f(out)g(while)g(reading)
b Ft(v)m(ariable.)34 b(This)19 b(is)h(designed)g(for)g(use)g(b)o(y)g
(applications)e(using)i(Readline's)195 907 y(callbac)o(k)c(in)o
(terface)g(\(see)h(Section)g(2.4.12)e([Alternate)g(In)o(terface],)i
-(page)g(47\),)f(whic)o(h)g(ma)o(y)g(not)195 962 y(use)h(the)f
+(page)g(48\),)f(whic)o(h)g(ma)o(y)g(not)195 962 y(use)h(the)f
(traditional)e Fs(read\(2\))i Ft(and)g(\014le)h(descriptor)f(in)o
(terface,)f(or)h(other)g(applications)f(using)195 1017
y(a)e(di\013eren)o(t)g(input)h(mec)o(hanism.)19 b(If)14
b(of)g(the)h(editing)f(bu\013er.)37 b(By)21 b(default,)g(it)f(is)h(set)
f(to)g Fs(rl_redisplay)p Ft(,)h(the)f(default)195 1501
y(Readline)15 b(redispla)o(y)g(function)g(\(see)g(Section)g(2.4.6)f
-([Redispla)o(y],)f(page)j(41\).)1685 1601 y([V)l(ariable])-1801
+([Redispla)o(y],)f(page)j(42\).)1685 1601 y([V)l(ariable])-1801
b Fh(rl_vintfunc_t)28 b(*)e(rl_prep_term_function)195
1656 y Ft(If)12 b(non-zero,)h(Readline)f(will)f(call)g(indirectly)g
(through)h(this)f(p)q(oin)o(ter)h(to)f(initialize)f(the)j(terminal.)195
Fs(int)f Ft(\015ag)g(that)g(sa)o(ys)g(whether)g(or)h(not)f(to)g(use)195
1766 y(eigh)o(t-bit)e(c)o(haracters.)25 b(By)17 b(default,)g(this)f(is)
h(set)f(to)h Fs(rl_prep_terminal)e Ft(\(see)i(Section)g(2.4.9)195
-1821 y([T)l(erminal)d(Managemen)o(t],)f(page)i(44\).)1685
+1821 y([T)l(erminal)d(Managemen)o(t],)f(page)i(45\).)1685
1921 y([V)l(ariable])-1801 b Fh(rl_voidfunc_t)28 b(*)e
(rl_deprep_term_functi)q(on)195 1976 y Ft(If)19 b(non-zero,)g(Readline)
f(will)f(call)h(indirectly)f(through)h(this)g(p)q(oin)o(ter)f(to)h
(the)f(e\013ects)h(of)f Fs(rl_prep_term_function)p Ft(.)24
b(By)17 b(default,)h(this)195 2086 y(is)d(set)g(to)f
Fs(rl_deprep_terminal)f Ft(\(see)i(Section)g(2.4.9)f([T)l(erminal)g
-(Managemen)o(t],)f(page)i(44\).)1685 2186 y([V)l(ariable])-1801
+(Managemen)o(t],)f(page)i(45\).)1685 2186 y([V)l(ariable])-1801
b Fh(void)27 b(rl_macro_display_hook)195 2241 y Ft(If)22
b(set,)i(this)d(p)q(oin)o(ts)h(to)f(a)h(function)g(that)f
Fs(rl_macro_dumper)f Ft(will)h(call)h(to)f(displa)o(y)g(a)h(k)o(ey)195
195 2460 y(b)q(efore)j(the)h(k)o(ey)f(sequence.)1685
2560 y([V)l(ariable])-1801 b Fh(Keymap)27 b(rl_executing_keymap)195
2615 y Ft(This)18 b(v)m(ariable)f(is)g(set)h(to)g(the)g(k)o(eymap)f
-(\(see)h(Section)g(2.4.2)f([Keymaps],)g(page)h(36\))f(in)h(whic)o(h)195
+(\(see)h(Section)g(2.4.2)f([Keymaps],)g(page)h(37\))f(in)h(whic)o(h)195
2670 y(the)d(curren)o(tly)g(executing)g(Readline)h(function)f(w)o(as)f
(found.)p eop end
-%%Page: 34 38
-TeXDict begin 34 37 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
-b(with)g(GNU)h(Readline)842 b(34)1685 149 y([V)l(ariable])-1801
+%%Page: 35 39
+TeXDict begin 35 38 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
+b(with)g(GNU)h(Readline)842 b(35)1685 149 y([V)l(ariable])-1801
b Fh(Keymap)27 b(rl_binding_keymap)195 204 y Ft(This)18
b(v)m(ariable)f(is)g(set)h(to)g(the)g(k)o(eymap)f(\(see)h(Section)g
-(2.4.2)f([Keymaps],)g(page)h(36\))f(in)h(whic)o(h)195
+(2.4.2)f([Keymaps],)g(page)h(37\))f(in)h(whic)o(h)195
259 y(the)d(last)f(k)o(ey)h(binding)h(o)q(ccurred.)1685
357 y([V)l(ariable])-1801 b Fh(char)27 b(*)f(rl_executing_macro)195
412 y Ft(This)15 b(v)m(ariable)f(is)h(set)g(to)g(the)g(text)g(of)f(an)o
g(an)g(incremen)o(tal)f(history)g(searc)o(h.)195 2615
y Fs(RL_STATE_NSEARCH)435 2670 y Ft(Readline)h(is)g(p)q(erforming)g(a)g
(non-incremen)o(tal)f(history)h(searc)o(h.)p eop end
-%%Page: 35 39
-TeXDict begin 35 38 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
-b(with)g(GNU)h(Readline)842 b(35)195 149 y Fs(RL_STATE_SEARCH)435
+%%Page: 36 40
+TeXDict begin 36 39 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
+b(with)g(GNU)h(Readline)842 b(36)195 149 y Fs(RL_STATE_SEARCH)435
204 y Ft(Readline)10 b(is)g(searc)o(hing)g(bac)o(kw)o(ard)f(or)h(forw)o
(ard)f(through)h(the)g(history)f(for)g(a)h(string.)195
276 y Fs(RL_STATE_NUMERICARG)435 331 y Ft(Readline)15
y Fs(RL_STATE_CALLBACK)435 1526 y Ft(Readline)22 b(is)f(curren)o(tly)g
(using)g(the)h(alternate)e(\(callbac)o(k\))g(in)o(terface)h(\(see)g
(Sec-)435 1581 y(tion)14 b(2.4.12)g([Alternate)g(In)o(terface],)g(page)
-h(47\).)195 1653 y Fs(RL_STATE_VIMOTION)435 1708 y Ft(Readline)g(is)g
+h(48\).)195 1653 y Fs(RL_STATE_VIMOTION)435 1708 y Ft(Readline)g(is)g
(reading)g(the)g(argumen)o(t)g(to)f(a)h(vi-mo)q(de)g
Fs(")p Ft(motion)p Fs(")f Ft(command.)195 1780 y Fs(RL_STATE_MULTIKEY)
435 1834 y Ft(Readline)h(is)g(reading)g(a)g(m)o(ultiple-k)o(eystrok)o
2615 y(encoun)o(tered)e(a)g(read)f(error)g(or)g(EOF)h(and)f(is)h(ab)q
(out)f(to)g(return)g(a)h(NULL)g(line)g(to)435 2670 y(the)f(caller.)p
eop end
-%%Page: 36 40
-TeXDict begin 36 39 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
-b(with)g(GNU)h(Readline)842 b(36)1685 149 y([V)l(ariable])-1801
+%%Page: 37 41
+TeXDict begin 37 40 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
+b(with)g(GNU)h(Readline)842 b(37)1685 149 y([V)l(ariable])-1801
b Fh(int)27 b(rl_explicit_arg)195 204 y Ft(Set)16 b(to)e(a)i(non-zero)f
(v)m(alue)h(if)f(an)g(explicit)g(n)o(umeric)g(argumen)o(t)g(w)o(as)g
(sp)q(eci\014ed)h(b)o(y)g(the)f(user.)21 b(It)195 259
b Fh(Keymap)27 b(rl_copy_keymap)e Fg(\()p Ff(Keymap)15
b(map)p Fg(\))195 2670 y Ft(Return)h(a)f(new)g(k)o(eymap)g(whic)o(h)g
(is)g(a)g(cop)o(y)g(of)g Fk(map)p Ft(.)p eop end
-%%Page: 37 41
-TeXDict begin 37 40 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
-b(with)g(GNU)h(Readline)842 b(37)1675 149 y([F)l(unction])-1801
+%%Page: 38 42
+TeXDict begin 38 41 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
+b(with)g(GNU)h(Readline)842 b(38)1675 149 y([F)l(unction])-1801
b Fh(Keymap)27 b(rl_make_keymap)e Fg(\()p Ff(v)o(oid)p
Fg(\))195 204 y Ft(Return)16 b(a)g(new)g(k)o(eymap)f(with)g(the)h(prin)
o(ting)f(c)o(haracters)f(b)q(ound)j(to)e(rl)p 1455 204
(emacs_standard_keymap)18 b Ft(is)j(the)g(default,)75
2670 y(and)15 b(the)h(examples)f(in)g(this)f(man)o(ual)h(assume)g
(that.)p eop end
-%%Page: 38 42
-TeXDict begin 38 41 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
-b(with)g(GNU)h(Readline)842 b(38)137 149 y(Since)15 b
+%%Page: 39 43
+TeXDict begin 39 42 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
+b(with)g(GNU)h(Readline)842 b(39)137 149 y(Since)15 b
Fs(readline\(\))d Ft(installs)g(a)i(set)f(of)h(default)f(k)o(ey)h
(bindings)f(the)h(\014rst)g(time)f(it)g(is)g(called,)h(there)f(is)75
204 y(alw)o(a)o(ys)d(the)j(danger)f(that)f(a)h(custom)g(binding)g
(is)h(to)f(install)f(custom)h(k)o(ey)h(bindings)75 314
y(in)22 b(an)g(initialization)d(function)j(assigned)f(to)h(the)g
Fs(rl_startup_hook)e Ft(v)m(ariable)h(\(see)h(Section)g(2.3)75
-369 y([Readline)15 b(V)l(ariables],)f(page)h(30\).)137
+369 y([Readline)15 b(V)l(ariables],)f(page)h(31\).)137
432 y(These)h(functions)f(manage)f(k)o(ey)i(bindings.)1675
514 y([F)l(unction])-1801 b Fh(int)27 b(rl_bind_key)d
Fg(\()p Ff(in)o(t)16 b(k)o(ey)l(,)g(rl)p 720 514 15 3
b(Initial)15 b(bindings)h(are)f(p)q(erformed)h(in)g Fk(map)p
Ft(.)195 2670 y(The)f(return)h(v)m(alue)f(is)g(non-zero)g(if)g
Fk(k)o(eyseq)h Ft(is)f(in)o(v)m(alid.)p eop end
-%%Page: 39 43
-TeXDict begin 39 42 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
-b(with)g(GNU)h(Readline)842 b(39)1675 149 y([F)l(unction])-1801
+%%Page: 40 44
+TeXDict begin 40 43 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
+b(with)g(GNU)h(Readline)842 b(40)1675 149 y([F)l(unction])-1801
b Fh(int)27 b(rl_set_key)d Fg(\()p Ff(const)16 b(c)o(har)f(*k)o(eyseq,)
i(rl)p 955 149 15 3 v 21 w(command)p 1188 149 V 21 w(func)p
1302 149 V 21 w(t)g(*function,)283 204 y(Keymap)e(map)p
Fs(")195 2670 y Ft(k)o(ey)i(sequence)h(and)g(should)f(b)q(e)h(used)g
(if)e(the)i(k)o(ey)f(sequence)h(can)f(include)h(NUL.)p
eop end
-%%Page: 40 44
-TeXDict begin 40 43 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
-b(with)g(GNU)h(Readline)842 b(40)1675 149 y([F)l(unction])-1801
+%%Page: 41 45
+TeXDict begin 41 44 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
+b(with)g(GNU)h(Readline)842 b(41)1675 149 y([F)l(unction])-1801
b Fh(int)27 b(rl_trim_arg_from_keyseq)f Fg(\()p Ff(const)16
b(c)o(har)f(*k)o(eyseq,)i(size)p 1339 149 15 3 v 22 w(t)g(len,)283
204 y(Keymap)e(map)p Fg(\))195 259 y Ft(If)i(there)f(is)g(a)g(n)o
2615 y(text\(\))c Ft(or)f Fs(rl_delete_text\(\))g Ft(to)g(do)i(it,)e
(then)i(Readline)g(do)q(es)g(the)f(undoing)h(for)e(y)o(ou)i(automati-)
75 2670 y(cally)l(.)p eop end
-%%Page: 41 45
-TeXDict begin 41 44 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
-b(with)g(GNU)h(Readline)842 b(41)137 149 y(If)11 b(y)o(ou)f(do)g(m)o
+%%Page: 42 46
+TeXDict begin 42 45 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
+b(with)g(GNU)h(Readline)842 b(42)137 149 y(If)11 b(y)o(ou)f(do)g(m)o
(ultiple)f(insertions)g(or)h(m)o(ultiple)f(deletions,)h(or)g(an)o(y)g
(com)o(bination)f(of)h(these)g(op)q(erations,)75 204
y(y)o(ou)19 b(should)g(group)f(them)h(together)g(in)o(to)f(one)h(op)q
f(and)g(redispla)o(y)o(ed,)g(whether)g(or)g(not)f(Readline)h(thinks)g
(the)195 2670 y(screen)c(displa)o(y)e(is)h(correct.)p
eop end
-%%Page: 42 46
-TeXDict begin 42 45 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
-b(with)g(GNU)h(Readline)842 b(42)1675 149 y([F)l(unction])-1801
+%%Page: 43 47
+TeXDict begin 43 46 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
+b(with)g(GNU)h(Readline)842 b(43)1675 149 y([F)l(unction])-1801
b Fh(int)27 b(rl_on_new_line)d Fg(\()p Ff(v)o(oid)p Fg(\))195
204 y Ft(T)l(ell)14 b(the)h(up)q(date)h(functions)f(that)f(w)o(e)g(ha)o
(v)o(e)h(mo)o(v)o(ed)f(on)o(to)g(a)h(new)g(\(empt)o(y\))f(line,)g
(Readline)195 2670 y(prompt)c(redispla)o(y)g(v)m(ariables.)28
b(This)17 b(function)h(is)f(called)h(b)o(y)g Fs(readline\(\))p
Ft(.)26 b(It)18 b(ma)o(y)f(also)g(b)q(e)p eop end
-%%Page: 43 47
-TeXDict begin 43 46 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
-b(with)g(GNU)h(Readline)842 b(43)195 149 y(called)18
+%%Page: 44 48
+TeXDict begin 44 47 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
+b(with)g(GNU)h(Readline)842 b(44)195 149 y(called)18
b(to)g(expand)h(the)g(primary)f(prompt)g(if)g(the)g(application)g(uses)
g(the)h Fs(rl_on_new_line_)195 204 y(with_prompt\(\))d
Ft(function)i(or)g Fs(rl_already_prompted)d Ft(v)m(ariable.)28
b(This)c(han-)195 2506 y(dles)e(input)g(inserted)h(in)o(to)e(the)h
(input)g(stream)g(via)f Fk(rl)p 1113 2506 V 20 w(p)q(ending)p
1290 2506 V 21 w(input)i Ft(\(see)f(Section)g(2.3)g([Read-)195
-2560 y(line)19 b(V)l(ariables],)g(page)h(30\))f(and)h
+2560 y(line)19 b(V)l(ariables],)g(page)h(31\))f(and)h
Fs(rl_stuff_char\(\))p Ft(,)e(macros,)h(and)h(c)o(haracters)f(read)h
(from)195 2615 y(the)d(k)o(eyb)q(oard.)25 b(While)17
b(w)o(aiting)e(for)h(input,)i(this)e(function)h(will)f(call)g(an)o(y)g
(function)h(assigned)195 2670 y(to)e(the)g Fs(rl_event_hook)e
Ft(v)m(ariable.)p eop end
-%%Page: 44 48
-TeXDict begin 44 47 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
-b(with)g(GNU)h(Readline)842 b(44)1675 149 y([F)l(unction])-1801
+%%Page: 45 49
+TeXDict begin 45 48 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
+b(with)g(GNU)h(Readline)842 b(45)1675 149 y([F)l(unction])-1801
b Fh(int)27 b(rl_getc)c Fg(\()p Ff(FILE)16 b(*stream)p
Fg(\))195 204 y Ft(Return)11 b(the)g(next)g(c)o(haracter)f(a)o(v)m
(ailable)f(from)h Fk(stream)p Ft(,)g(whic)o(h)h(is)f(assumed)g(to)g(b)q
(the)f(state)g(in)h(whic)o(h)195 2670 y(it)e(w)o(as)h(b)q(efore)g(the)h
(most)e(recen)o(t)h(call)g(to)f Fs(rl_prep_terminal\(\))p
Ft(.)p eop end
-%%Page: 45 49
-TeXDict begin 45 48 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
-b(with)g(GNU)h(Readline)842 b(45)1675 149 y([F)l(unction])-1801
+%%Page: 46 50
+TeXDict begin 46 49 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
+b(with)g(GNU)h(Readline)842 b(46)1675 149 y([F)l(unction])-1801
b Fh(void)27 b(rl_tty_set_default_bindin)q(gs)f Fg(\()p
Ff(Keymap)15 b(kmap)p Fg(\))195 204 y Ft(Read)k(the)g(op)q(erating)e
(system's)h(terminal)f(editing)h(c)o(haracters)g(\(as)f(w)o(ould)h(b)q
b Fh(int)27 b(rl_alphabetic)d Fg(\()p Ff(in)o(t)16 b(c)p
Fg(\))195 2670 y Ft(Return)g(1)f(if)f Fk(c)k Ft(is)d(an)g(alphab)q
(etic)g(c)o(haracter.)p eop end
-%%Page: 46 50
-TeXDict begin 46 49 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
-b(with)g(GNU)h(Readline)842 b(46)1675 149 y([F)l(unction])-1801
+%%Page: 47 51
+TeXDict begin 47 50 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
+b(with)g(GNU)h(Readline)842 b(47)1675 149 y([F)l(unction])-1801
b Fh(void)27 b(rl_display_match_list)f Fg(\()p Ff(c)o(har)15
b(**matc)o(hes,)g(in)o(t)h(len,)g(in)o(t)g(max)p Fg(\))195
204 y Ft(A)h(con)o(v)o(enience)h(function)f(for)g(displa)o(ying)f(a)h
(executed)h(in)e(an)g Fs(inputrc)g Ft(\014le)g(\(see)g(Section)h(1.3.1)
195 2670 y([Readline)f(Init)g(File)g(Syn)o(tax],)f(page)h(4\))f(or)h(b)
o(y)g Fs(rl_parse_and_bind)p Ft(.)p eop end
-%%Page: 47 51
-TeXDict begin 47 50 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
-b(with)g(GNU)h(Readline)842 b(47)1675 149 y([F)l(unction])-1801
+%%Page: 48 52
+TeXDict begin 48 51 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
+b(with)g(GNU)h(Readline)842 b(48)1675 149 y([F)l(unction])-1801
b Fh(char)27 b(*)f(rl_variable_value)f Fg(\()p Ff(const)16
b(c)o(har)g(*v)m(ariable)p Fg(\))195 204 y Ft(Return)f(a)g(string)e
(represen)o(ting)h(the)h(v)m(alue)g(of)f(the)h(Readline)g(v)m(ariable)f
(I/O)i(with)e(\014le,)75 2670 y(device,)c(or)f(windo)o(w)f(system)h
(I/O,)h(t)o(ypically)d(b)o(y)j(using)f(a)g(main)g(lo)q(op)g(to)f
Fs(select\(\))h Ft(on)g(v)m(arious)g(\014le)p eop end
-%%Page: 48 52
-TeXDict begin 48 51 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
-b(with)g(GNU)h(Readline)842 b(48)75 149 y(descriptors.)30
+%%Page: 49 53
+TeXDict begin 49 52 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
+b(with)g(GNU)h(Readline)842 b(49)75 149 y(descriptors.)30
b(T)l(o)19 b(accommo)q(date)f(this)g(use)h(case,)g(Readline)h(can)f
(also)e(b)q(e)j(in)o(v)o(ok)o(ed)e(as)g(a)h(`callbac)o(k')75
204 y(function)c(from)f(an)i(ev)o(en)o(t)f(lo)q(op.)k(There)c(are)g
(*/)195 2341 y(int)195 2396 y(invert_case_line)f(\(count,)h(key\))314
2451 y(int)h(count,)f(key;)195 2506 y({)243 2560 y(int)g(start,)g(end,)
h(i;)243 2670 y(start)f(=)h(rl_point;)p eop end
-%%Page: 49 53
-TeXDict begin 49 52 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
-b(with)g(GNU)h(Readline)842 b(49)243 204 y Fs(if)23 b(\(rl_point)g(>=)h
+%%Page: 50 54
+TeXDict begin 50 53 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
+b(with)g(GNU)h(Readline)842 b(50)243 204 y Fs(if)23 b(\(rl_point)g(>=)h
(rl_end\))290 259 y(return)f(\(0\);)243 369 y(/*)g(Find)h(the)f(end)h
(of)f(the)h(range)f(to)g(modify.)g(*/)243 423 y(end)g(=)h(start)f(+)h
(count;)243 533 y(/*)f(Force)g(it)h(to)g(be)f(within)g(range.)g(*/)243
(\(rl_line_buffer[i]\)\))386 2177 y(rl_line_buffer[i])f(=)j
(_rl_to_upper)e(\(rl_line_buffer[i]\);)290 2232 y(})243
2341 y(return)h(\(0\);)195 2396 y(})p eop end
-%%Page: 50 54
-TeXDict begin 50 53 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
-b(with)g(GNU)h(Readline)842 b(50)75 149 y Fi(2.4.14)29
+%%Page: 51 55
+TeXDict begin 51 54 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
+b(with)g(GNU)h(Readline)842 b(51)75 149 y Fi(2.4.14)29
b(Alternate)21 b(In)n(terface)g(Example)75 223 y Ft(Here)f(is)e(a)h
(complete)g(program)f(that)h(illustrates)e(Readline's)i(alternate)g(in)
o(terface.)31 b(It)19 b(reads)g(lines)75 278 y(from)c(the)g(terminal)g
(executed,)h(EOF)267 2615 y(seen,)g(or)g(EOF)h(character)e(read.)47
b(This)24 b(sets)f(a)h(flag)f(and)h(returns;)e(it)i(could)267
2670 y(also)f(call)g(exit\(3\).)g(*/)p eop end
-%%Page: 51 55
-TeXDict begin 51 54 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
-b(with)g(GNU)h(Readline)842 b(51)195 149 y Fs(static)23
+%%Page: 52 56
+TeXDict begin 52 55 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
+b(with)g(GNU)h(Readline)842 b(52)195 149 y Fs(static)23
b(void)195 204 y(cb_linehandler)f(\(char)h(*line\))195
259 y({)243 314 y(/*)g(Can)h(use)f(^D)h(\(stty)f(eof\))g(or)h(`exit')f
(to)h(exit.)f(*/)243 369 y(if)g(\(line)g(==)h(NULL)f(||)h(strcmp)f
2560 y(have)g(to)f(modify)g(the)h(user's)f(terminal)g(settings.)f(*/)
243 2615 y(running)h(=)g(1;)243 2670 y(while)g(\(running\))p
eop end
-%%Page: 52 56
-TeXDict begin 52 55 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
-b(with)g(GNU)h(Readline)842 b(52)290 149 y Fs({)338 204
+%%Page: 53 57
+TeXDict begin 53 56 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
+b(with)g(GNU)h(Readline)842 b(53)290 149 y Fs({)338 204
y(FD_ZERO)23 b(\(&fds\);)338 259 y(FD_SET)g(\(fileno)g
(\(rl_instream\),)f(&fds\);)338 369 y(r)i(=)g(select)f(\(FD_SETSIZE,)f
(&fds,)h(NULL,)g(NULL,)g(NULL\);)338 423 y(if)h(\(r)f(<)h(0)g(&&)f
2670 y(pro)q(cess)k(whenev)o(er)g(the)f(terminal's)f(size)h(c)o(hanges)
g(\(for)g(example,)g(if)g(a)g(user)h(resizes)f(an)g Fs(xterm)p
Ft(\).)19 b(The)p eop end
-%%Page: 53 57
-TeXDict begin 53 56 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
-b(with)g(GNU)h(Readline)842 b(53)75 149 y(Readline)18
+%%Page: 54 58
+TeXDict begin 54 57 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
+b(with)g(GNU)h(Readline)842 b(54)75 149 y(Readline)18
b Fs(SIGWINCH)f Ft(handler)h(up)q(dates)g(Readline's)g(in)o(ternal)e
(screen)j(size)e(information,)g(and)h(then)75 204 y(calls)e(an)o(y)h
Fs(SIGWINCH)e Ft(signal)h(handler)h(the)g(calling)f(application)f(has)i
Ft(\(describ)q(ed)j(b)q(elo)o(w\),)e(to)h(restore)f(the)h(terminal)f
(state.)137 490 y(When)20 b(an)f(application)g(is)g(using)g(the)g
(callbac)o(k)g(in)o(terface)g(\(see)g(Section)g(2.4.12)f([Alternate)g
-(In-)75 545 y(terface],)k(page)f(47\),)h(Readline)g(installs)e(signal)g
+(In-)75 545 y(terface],)k(page)f(48\),)h(Readline)g(installs)e(signal)g
(handlers)h(only)g(for)g(the)h(duration)e(of)h(the)h(call)f(to)75
599 y Fs(rl_callback_read_char)p Ft(.)f(Applications)15
b(using)h(the)g(callbac)o(k)f(in)o(terface)g(should)h(b)q(e)h(prepared)
(up)q(on)i(receipt)f(of)f(a)195 2604 y Fs(SIGWINCH)p
Ft(.)195 2670 y(The)h(default)g(v)m(alue)h(of)e Fs
(rl_change_environment)f Ft(is)h(1.)p eop end
-%%Page: 54 58
-TeXDict begin 54 57 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
-b(with)g(GNU)h(Readline)842 b(54)137 149 y(If)16 b(an)f(application)g
+%%Page: 55 59
+TeXDict begin 55 58 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
+b(with)g(GNU)h(Readline)842 b(55)137 149 y(If)16 b(an)f(application)g
(do)q(es)g(not)g(wish)h(to)e(ha)o(v)o(e)h(Readline)h(catc)o(h)g(an)o(y)
f(signals,)f(or)h(to)f(handle)i(signals)75 204 y(other)j(than)g(those)g
(Readline)h(catc)o(hes)f(\()p Fs(SIGHUP)p Ft(,)g(for)g(example\),)g
(p)q(ending)h(signals.)28 b(This)18 b(is)g(primarily)e(in)o(tended)j
(for)f(those)g(applications)f(that)h(use)75 1547 y(a)h(custom)f
Fs(rl_getc_function)f Ft(\(see)i(Section)f(2.3)g([Readline)h(V)l
-(ariables],)f(page)h(30\))f(and)h(wish)g(to)75 1601 y(handle)c(signals)
+(ariables],)f(page)h(31\))f(and)h(wish)g(to)75 1601 y(handle)c(signals)
f(receiv)o(ed)i(while)e(w)o(aiting)g(for)g(input.)1675
1695 y([F)l(unction])-1801 b Fh(void)27 b(rl_check_signals)e
Fg(\()p Ff(v)o(oid)p Fg(\))195 1749 y Ft(If)c(there)f(are)g(an)o(y)g(p)
b(either)g Fk(ro)o(ws)195 2670 y Ft(or)c Fk(columns)j
Ft(is)d(less)h(than)f(or)h(equal)f(to)g(0,)h(Readline)g(do)q(esn't)g(c)
o(hange)g(that)f(terminal)g(dimension.)p eop end
-%%Page: 55 59
-TeXDict begin 55 58 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
-b(with)g(GNU)h(Readline)842 b(55)195 149 y(This)14 b(is)g(in)o(tended)h
+%%Page: 56 60
+TeXDict begin 56 59 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
+b(with)g(GNU)h(Readline)842 b(56)195 149 y(This)14 b(is)g(in)o(tended)h
(to)f(tell)g(Readline)g(the)h(ph)o(ysical)f(dimensions)g(of)g(the)h
(terminal,)e(and)h(is)g(used)195 204 y(in)o(ternally)20
b(to)g(calculate)h(the)g(maxim)o(um)f(n)o(um)o(b)q(er)i(of)f(c)o
b(caller)e(should)i(place)f(the)h(address)f(of)h(its)e(generator)h
(function)g(in)g Fs(rl_)165 2670 y(completion_entry_function)p
Ft(.)p eop end
-%%Page: 56 60
-TeXDict begin 56 59 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
-b(with)g(GNU)h(Readline)842 b(56)100 149 y(3.)29 b(The)12
+%%Page: 57 61
+TeXDict begin 57 60 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
+b(with)g(GNU)h(Readline)842 b(57)100 149 y(3.)29 b(The)12
b(generator)e(function)h(is)g(called)g(rep)q(eatedly)h(from)f
Fs(rl_completion_matches\(\))p Ft(,)d(returning)165 204
y(a)16 b(string)f(eac)o(h)i(time.)23 b(The)16 b(argumen)o(ts)g(to)f
Fs(rl_complete\(\))p Ft(.)20 b(This)c(calls)f Fs
(rl_complete_internal\(\))e Ft(with)195 2670 y(an)i(argumen)o(t)g(of)f
(`)p Fs(*)p Ft('.)p eop end
-%%Page: 57 61
-TeXDict begin 57 60 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
-b(with)g(GNU)h(Readline)842 b(57)1675 149 y([F)l(unction])-1801
+%%Page: 58 62
+TeXDict begin 58 61 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
+b(with)g(GNU)h(Readline)842 b(58)1675 149 y([F)l(unction])-1801
b Fh(int)27 b(rl_completion_mode)e Fg(\()p Ff(rl)p 728
149 15 3 v 21 w(command)p 961 149 V 20 w(func)p 1074
149 V 22 w(t)17 b(*cfunc)p Fg(\))195 204 y Ft(Returns)k(the)g
Fs(rl_)195 2670 y(filename_quote_characters)7 b Ft(app)q(ears)k(in)g(a)
g(completed)g(\014lename.)18 b(The)11 b(function)g(is)f(called)p
eop end
-%%Page: 58 62
-TeXDict begin 58 61 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
-b(with)g(GNU)h(Readline)842 b(58)195 149 y(with)11 b
+%%Page: 59 63
+TeXDict begin 59 62 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
+b(with)g(GNU)h(Readline)842 b(59)195 149 y(with)11 b
Fk(text)p Ft(,)h Fk(matc)o(h)p 526 149 14 2 v 19 w(t)o(yp)q(e)p
Ft(,)h(and)f Fk(quote)p 853 149 V 20 w(p)q(oin)o(ter)p
Ft(.)18 b(The)12 b Fk(text)h Ft(is)e(the)h(\014lename)g(to)f(b)q(e)i
(completing)f(a)g(directory)195 2670 y(name.)29 b(This)18
b(function)h(tak)o(es)e(the)i(address)f(of)g(the)g(directory)g(name)g
(to)g(b)q(e)h(mo)q(di\014ed)g(as)f(an)p eop end
-%%Page: 59 63
-TeXDict begin 59 62 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
-b(with)g(GNU)h(Readline)842 b(59)195 149 y(argumen)o(t.)32
+%%Page: 60 64
+TeXDict begin 60 63 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
+b(with)g(GNU)h(Readline)842 b(60)195 149 y(argumen)o(t.)32
b(Unlik)o(e)19 b Fs(rl_directory_completion_hoo)o(k)p
Ft(,)f(it)g(only)h(mo)q(di\014es)h(the)g(directory)195
204 y(name)f(used)g(in)g Fs(opendir\(\))p Ft(,)f(not)g(what)g(Readline)
Ft(,)195 2670 y(and)e(adds)h(an)o(y)f(matc)o(hes)f(to)h(the)g(list)f
(of)h(matc)o(hes.)k(Readline)d(will)e(free)h(the)g(allo)q(cated)f
(string.)p eop end
-%%Page: 60 64
-TeXDict begin 60 63 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
-b(with)g(GNU)h(Readline)842 b(60)1685 149 y([V)l(ariable])-1801
+%%Page: 61 65
+TeXDict begin 61 64 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
+b(with)g(GNU)h(Readline)842 b(61)1685 149 y([V)l(ariable])-1801
b Fh(rl_compdisp_func_t)29 b(*)d(rl_completion_display_)q(matches)q
(_hook)195 204 y Ft(If)20 b(non-zero,)g(then)g(this)f(is)g(the)h
(address)f(of)h(a)f(function)g(to)g(call)g(when)h(completing)e(a)i(w)o
2670 y(unconditionally)l(.)22 b(If)17 b(there)g(are)f(more)g(p)q
(ossible)g(completions)f(than)h(this,)g(Readline)h(asks)f(the)p
eop end
-%%Page: 61 65
-TeXDict begin 61 64 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
-b(with)g(GNU)h(Readline)842 b(61)195 149 y(user)18 b(for)f
+%%Page: 62 66
+TeXDict begin 62 65 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
+b(with)g(GNU)h(Readline)842 b(62)195 149 y(user)18 b(for)f
(con\014rmation)g(b)q(efore)h(displa)o(ying)e(them.)27
b(The)18 b(default)g(v)m(alue)f(is)h(100.)26 b(A)18 b(negativ)o(e)195
204 y(v)m(alue)d(indicates)g(that)g(Readline)g(should)g(nev)o(er)h(ask)
2670 y(\014lenames.)e(This)11 b(is)g Fj(always)j Ft(zero)d(when)h
(completion)e(is)g(attempted,)h(and)g(can)g(only)g(b)q(e)h(c)o(hanged)p
eop end
-%%Page: 62 66
-TeXDict begin 62 65 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
-b(with)g(GNU)h(Readline)842 b(62)195 149 y(within)19
+%%Page: 63 67
+TeXDict begin 63 66 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
+b(with)g(GNU)h(Readline)842 b(63)195 149 y(within)19
b(an)h(application-sp)q(eci\014c)g(completion)f(function.)34
b(If)20 b(it)f(is)h(set)g(to)f(a)g(non-zero)i(v)m(alue)195
204 y(b)o(y)f(suc)o(h)g(a)f(function,)i(Readline)f(app)q(ends)h(a)e
(e)h(of)f(completion)g(Readline)h(is)f(curren)o(tly)h(attempting;)195
1989 y(see)g(the)f(description)g(of)g Fs(rl_complete_internal\(\))e
Ft(\(see)i(Section)h(2.6.2)d([Completion)h(F)l(unc-)195
-2044 y(tions],)j(page)i(56\))f(for)g(the)h(list)f(of)g(c)o(haracters.)
+2044 y(tions],)j(page)i(57\))f(for)g(the)h(list)f(of)g(c)o(haracters.)
21 b(This)16 b(is)f(set)h(to)f(the)h(appropriate)f(v)m(alue)h(b)q
(efore)195 2099 y(calling)i(an)o(y)h(application-sp)q(eci\014c)h
(completion)e(function,)i(so)f(these)h(functions)f(can)h(presen)o(t)195
b(completion)g(c)o(haracter)g(is)g(inserted)g(as)g(if)g(it)g(w)o(ere)g
(b)q(ound)195 2670 y(to)g Fs(self-insert)p Ft(.)p eop
end
-%%Page: 63 67
-TeXDict begin 63 66 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
-b(with)g(GNU)h(Readline)842 b(63)75 149 y Fi(2.6.4)30
+%%Page: 64 68
+TeXDict begin 64 67 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
+b(with)g(GNU)h(Readline)842 b(64)75 149 y Fi(2.6.4)30
b(A)21 b(Short)f(Completion)g(Example)75 223 y Ft(Here)15
b(is)f(a)g(small)f(application)g(demonstrating)h(the)g(use)h(of)f(the)h
(GNU)f(Readline)h(library)l(.)k(It)14 b(is)g(called)75
75 333 y(pro)o(vides)c(command)g(name)g(completion,)f(line)h(editing)f
(features,)h(and)g(access)g(to)g(the)g(history)f(list.)p
eop end
-%%Page: 64 68
-TeXDict begin 64 67 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
-b(with)g(GNU)h(Readline)842 b(64)195 149 y Fe(/*)19 b(fileman.c)d(--)j
+%%Page: 65 69
+TeXDict begin 65 68 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
+b(with)g(GNU)h(Readline)842 b(65)195 149 y Fe(/*)19 b(fileman.c)d(--)j
(A)g(tiny)f(applicatio)o(n)e(which)i(demonstrat)o(es)e(how)j(to)f(use)h
(the)254 193 y(GNU)f(Readline)f(library.)36 b(This)18
b(applicatio)o(n)e(interactive)o(ly)g(allows)h(users)254
y(rl_icpfunc)o(_t)g(*func;)h(/*)i(Function)e(to)i(call)f(to)h(do)f(the)
h(job.)f(*/)234 2634 y(char)g(*doc;)g(/*)h(Documenta)o(tio)o(n)d(for)j
(this)f(function.)36 b(*/)p eop end
-%%Page: 65 69
-TeXDict begin 65 68 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
-b(with)g(GNU)h(Readline)842 b(65)195 149 y Fe(})19 b(COMMAND;)195
+%%Page: 66 70
+TeXDict begin 66 69 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
+b(with)g(GNU)h(Readline)842 b(66)195 149 y Fe(})19 b(COMMAND;)195
237 y(COMMAND)e(commands[)o(])g(=)i({)234 280 y({)g("cd",)f(com_cd,)f
("Change)g(to)i(directory)d(DIR")i(},)234 324 y({)h("delete",)e
(com_dele)o(te,)f("Delete)h(FILE")h(},)234 367 y({)h("help",)e
(and)h(trailing)f(whitespac)o(e)f(from)j(the)f(line.)372
2634 y(Then,)f(if)i(there)f(is)h(anything)d(left,)i(add)g(it)h(to)g
(the)f(history)f(list)p eop end
-%%Page: 66 70
-TeXDict begin 66 69 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
-b(with)g(GNU)h(Readline)842 b(66)372 149 y Fe(and)18
+%%Page: 67 71
+TeXDict begin 67 70 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
+b(with)g(GNU)h(Readline)842 b(67)372 149 y Fe(and)18
b(execute)f(it.)h(*/)313 193 y(s)h(=)g(stripwhite)d(\(line\);)313
280 y(if)j(\(*s\))352 324 y({)391 367 y(add_histor)o(y)d(\(s\);)391
411 y(execute_li)o(ne)g(\(s\);)352 455 y(})313 542 y(free)i(\(line\);)
(isn't)g(a)h(command)e(name.)h(*/)195 2503 y(COMMAND)f(*)195
2547 y(find_comma)o(nd)f(\(char)i(*name\))195 2590 y({)234
2634 y(register)f(int)h(i;)p eop end
-%%Page: 67 71
-TeXDict begin 67 70 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
-b(with)g(GNU)h(Readline)842 b(67)234 193 y Fe(for)19
+%%Page: 68 72
+TeXDict begin 68 71 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
+b(with)g(GNU)h(Readline)842 b(68)234 193 y Fe(for)19
b(\(i)g(=)g(0;)g(commands)o([i])o(.na)o(me)o(;)e(i++\))273
237 y(if)i(\(strcmp)e(\(name,)g(commands[i])o(.n)o(ame)o(\))g(==)h(0\))
313 280 y(return)f(\(&command)o(s[i)o(]\);)234 367 y(return)h
254 2547 y(or)g(NULL)f(if)h(there)e(aren't)h(any.)g(*/)195
2590 y(char)g(**)195 2634 y(fileman_co)o(mp)o(let)o(io)o(n)f(\(const)g
(char)h(*text,)f(int)i(start,)e(int)i(end\))p eop end
-%%Page: 68 72
-TeXDict begin 68 71 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
-b(with)g(GNU)h(Readline)842 b(68)195 149 y Fe({)234 193
+%%Page: 69 73
+TeXDict begin 69 72 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
+b(with)g(GNU)h(Readline)842 b(69)195 149 y Fe({)234 193
y(char)18 b(**matches;)234 280 y(matches)f(=)i(\(char)f(**\)NULL;)234
367 y(/*)h(If)g(this)f(word)g(is)h(at)g(the)f(start)g(of)h(the)f(line,)
g(then)g(it)h(is)g(a)g(command)293 411 y(to)g(complete.)36
(syscom[102)o(4];)195 2547 y(/*)h(List)f(the)g(file\(s\))f(named)h(in)h
(arg.)f(*/)195 2590 y(int)195 2634 y(com_list)f(\(char)g(*arg\))p
eop end
-%%Page: 69 73
-TeXDict begin 69 72 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
-b(with)g(GNU)h(Readline)842 b(69)195 149 y Fe({)234 193
+%%Page: 70 74
+TeXDict begin 70 73 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
+b(with)g(GNU)h(Readline)842 b(70)195 149 y Fe({)234 193
y(if)19 b(\(!arg\))273 237 y(arg)g(=)g("";)234 324 y(snprintf)e
(\(syscom,)f(sizeof)i(\(syscom\))o(,)f("ls)h(-FClg)g(\045s",)g(arg\);)
234 367 y(return)g(\(system)e(\(syscom\)\);)195 411 y(})195
(e\))o(\);)234 2503 y(printf)g(\(")77 b(Last)18 b(modified)f(at:)h
(\045s",)g(ctime)g(\(&finfo.st)o(_m)o(tim)o(e\))o(\);)234
2547 y(return)g(\(0\);)195 2590 y(})p eop end
-%%Page: 70 74
-TeXDict begin 70 73 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
-b(with)g(GNU)h(Readline)842 b(70)195 149 y Fe(int)195
+%%Page: 71 75
+TeXDict begin 71 74 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
+b(with)g(GNU)h(Readline)842 b(71)195 149 y Fe(int)195
193 y(com_delete)16 b(\(char)h(*arg\))195 237 y({)234
280 y(too_danger)o(ous)f(\("delete")o(\);)234 324 y(return)i(\(1\);)195
367 y(})195 455 y(/*)h(Print)f(out)g(help)g(for)g(ARG,)h(or)f(for)h
y({)234 2372 y(if)h(\(chdir)e(\(arg\))h(==)h(-1\))273
2416 y({)313 2460 y(perror)e(\(arg\);)313 2503 y(return)g(1;)273
2547 y(})234 2634 y(com_pwd)g(\(""\);)p eop end
-%%Page: 71 75
-TeXDict begin 71 74 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
-b(with)g(GNU)h(Readline)842 b(71)234 149 y Fe(return)18
+%%Page: 72 76
+TeXDict begin 72 75 bop 75 -58 a Ft(Chapter)15 b(2:)k(Programming)14
+b(with)g(GNU)h(Readline)842 b(72)234 149 y Fe(return)18
b(\(0\);)195 193 y(})195 280 y(/*)h(Print)f(out)g(the)g(current)f
(working)g(directory.)f(*/)195 324 y(int)195 367 y(com_pwd)h(\(char)h
(*ignore\))195 411 y({)234 455 y(char)g(dir[1024],)e(*s;)234
(\\n)o(",)f(caller\);)313 2111 y(return)h(\(0\);)273
2154 y(})234 2242 y(return)h(\(1\);)195 2285 y(})p eop
end
-%%Page: 72 76
-TeXDict begin 72 75 bop 1830 -58 a Ft(72)75 149 y Fp(App)r(endix)26
+%%Page: 73 77
+TeXDict begin 73 76 bop 1830 -58 a Ft(73)75 149 y Fp(App)r(endix)26
b(A)41 b(GNU)27 b(F)-7 b(ree)26 b(Do)r(cumen)n(tation)j(License)679
251 y Ft(V)l(ersion)15 b(1.3,)f(3)h(No)o(v)o(em)o(b)q(er)g(2008)195
318 y(Cop)o(yrigh)o(t)421 317 y(c)409 318 y Fq(\015)g
(are)i(designated,)f(as)165 2670 y(b)q(eing)i(those)f(of)g(In)o(v)m
(arian)o(t)f(Sections,)h(in)h(the)f(notice)g(that)f(sa)o(ys)h(that)g
(the)g(Do)q(cumen)o(t)g(is)g(released)p eop end
-%%Page: 73 77
-TeXDict begin 73 76 bop 75 -58 a Ft(App)q(endix)16 b(A:)f(GNU)g(F)l
-(ree)g(Do)q(cumen)o(tation)g(License)802 b(73)165 149
+%%Page: 74 78
+TeXDict begin 74 77 bop 75 -58 a Ft(App)q(endix)16 b(A:)f(GNU)g(F)l
+(ree)g(Do)q(cumen)o(tation)g(License)802 b(74)165 149
y(under)15 b(this)e(License.)20 b(If)14 b(a)g(section)f(do)q(es)h(not)g
(\014t)f(the)h(ab)q(o)o(v)o(e)g(de\014nition)g(of)f(Secondary)h(then)g
(it)f(is)165 204 y(not)j(allo)o(w)o(ed)e(to)h(b)q(e)i(designated)f(as)f
(and)h(has)f(no)165 2595 y(e\013ect)d(on)g(the)g(meaning)g(of)g(this)g
(License.)100 2670 y(2.)29 b(VERBA)l(TIM)16 b(COPYING)p
eop end
-%%Page: 74 78
-TeXDict begin 74 77 bop 75 -58 a Ft(App)q(endix)16 b(A:)f(GNU)g(F)l
-(ree)g(Do)q(cumen)o(tation)g(License)802 b(74)165 149
+%%Page: 75 79
+TeXDict begin 75 78 bop 75 -58 a Ft(App)q(endix)16 b(A:)f(GNU)g(F)l
+(ree)g(Do)q(cumen)o(tation)g(License)802 b(75)165 149
y(Y)l(ou)19 b(ma)o(y)g(cop)o(y)f(and)i(distribute)e(the)h(Do)q(cumen)o
(t)g(in)g(an)o(y)g(medium,)g(either)g(commercially)e(or)165
204 y(noncommercially)l(,)k(pro)o(vided)g(that)g(this)g(License,)i(the)
(distinct)h(from)f(that)h(of)g(the)255 2670 y(Do)q(cumen)o(t,)h(and)g
(from)f(those)h(of)f(previous)h(v)o(ersions)f(\(whic)o(h)g(should,)h
(if)g(there)g(w)o(ere)f(an)o(y)l(,)p eop end
-%%Page: 75 79
-TeXDict begin 75 78 bop 75 -58 a Ft(App)q(endix)16 b(A:)f(GNU)g(F)l
-(ree)g(Do)q(cumen)o(tation)g(License)802 b(75)255 149
+%%Page: 76 80
+TeXDict begin 76 79 bop 75 -58 a Ft(App)q(endix)16 b(A:)f(GNU)g(F)l
+(ree)g(Do)q(cumen)o(tation)g(License)802 b(76)255 149
y(b)q(e)16 b(listed)f(in)h(the)g(History)e(section)h(of)g(the)h(Do)q
(cumen)o(t\).)21 b(Y)l(ou)16 b(ma)o(y)f(use)h(the)g(same)f(title)f(as)
255 204 y(a)h(previous)g(v)o(ersion)f(if)h(the)g(original)e(publisher)j
f(ma)o(y)h(at)165 2670 y(y)o(our)i(option)f(designate)h(some)g(or)f
(all)g(of)h(these)h(sections)e(as)h(in)o(v)m(arian)o(t.)22
b(T)l(o)15 b(do)i(this,)e(add)h(their)p eop end
-%%Page: 76 80
-TeXDict begin 76 79 bop 75 -58 a Ft(App)q(endix)16 b(A:)f(GNU)g(F)l
-(ree)g(Do)q(cumen)o(tation)g(License)802 b(76)165 149
+%%Page: 77 81
+TeXDict begin 77 80 bop 75 -58 a Ft(App)q(endix)16 b(A:)f(GNU)g(F)l
+(ree)g(Do)q(cumen)o(tation)g(License)802 b(77)165 149
y(titles)16 b(to)h(the)h(list)f(of)g(In)o(v)m(arian)o(t)g(Sections)h
(in)f(the)h(Mo)q(di\014ed)g(V)l(ersion's)f(license)h(notice.)27
b(These)165 204 y(titles)14 b(m)o(ust)h(b)q(e)g(distinct)g(from)f(an)o
2615 y(do)q(cumen)o(t,)g(and)f(follo)o(w)e(this)i(License)h(in)f(all)g
(other)f(resp)q(ects)i(regarding)f(v)o(erbatim)f(cop)o(ying)g(of)165
2670 y(that)f(do)q(cumen)o(t.)p eop end
-%%Page: 77 81
-TeXDict begin 77 80 bop 75 -58 a Ft(App)q(endix)16 b(A:)f(GNU)g(F)l
-(ree)g(Do)q(cumen)o(tation)g(License)802 b(77)100 149
+%%Page: 78 82
+TeXDict begin 78 81 bop 75 -58 a Ft(App)q(endix)16 b(A:)f(GNU)g(F)l
+(ree)g(Do)q(cumen)o(tation)g(License)802 b(78)100 149
y(7.)29 b(A)o(GGREGA)l(TION)15 b(WITH)h(INDEPENDENT)e(W)o(ORKS)165
221 y(A)g(compilation)e(of)i(the)g(Do)q(cumen)o(t)g(or)f(its)h(deriv)m
(ativ)o(es)f(with)g(other)h(separate)f(and)i(indep)q(enden)o(t)165
(of)g(a)g(cop)o(y)g(of)f(some)h(or)f(all)g(of)h(the)165
2670 y(same)i(material)e(do)q(es)j(not)f(giv)o(e)f(y)o(ou)h(an)o(y)g
(righ)o(ts)f(to)g(use)i(it.)p eop end
-%%Page: 78 82
-TeXDict begin 78 81 bop 75 -58 a Ft(App)q(endix)16 b(A:)f(GNU)g(F)l
-(ree)g(Do)q(cumen)o(tation)g(License)802 b(78)77 149
+%%Page: 79 83
+TeXDict begin 79 82 bop 75 -58 a Ft(App)q(endix)16 b(A:)f(GNU)g(F)l
+(ree)g(Do)q(cumen)o(tation)g(License)802 b(79)77 149
y(10.)29 b(FUTURE)15 b(REVISIONS)j(OF)d(THIS)h(LICENSE)165
217 y(The)21 b(F)l(ree)g(Soft)o(w)o(are)e(F)l(oundation)h(ma)o(y)g
(publish)h(new,)h(revised)f(v)o(ersions)f(of)g(the)h(GNU)g(F)l(ree)165
1948 y(CC-BY-SA)d(on)f(the)g(same)g(site)f(at)h(an)o(y)f(time)h(b)q
(efore)g(August)g(1,)g(2009,)e(pro)o(vided)i(the)g(MMC)f(is)165
2002 y(eligible)g(for)h(relicensing.)p eop end
-%%Page: 79 83
-TeXDict begin 79 82 bop 75 -58 a Ft(App)q(endix)16 b(A:)f(GNU)g(F)l
-(ree)g(Do)q(cumen)o(tation)g(License)802 b(79)75 149
+%%Page: 80 84
+TeXDict begin 80 83 bop 75 -58 a Ft(App)q(endix)16 b(A:)f(GNU)g(F)l
+(ree)g(Do)q(cumen)o(tation)g(License)802 b(80)75 149
y Fr(ADDENDUM:)20 b(Ho)n(w)h(to)h(use)g(this)g(License)g(for)g(y)n(our)
h(do)r(cumen)n(ts)75 229 y Ft(T)l(o)17 b(use)h(this)e(License)i(in)g(a)
f(do)q(cumen)o(t)g(y)o(ou)g(ha)o(v)o(e)g(written,)g(include)g(a)g(cop)o
(suc)o(h)g(as)g(the)f(GNU)75 1166 y(General)15 b(Public)g(License,)g
(to)g(p)q(ermit)g(their)f(use)i(in)f(free)g(soft)o(w)o(are.)p
eop end
-%%Page: 80 84
-TeXDict begin 80 83 bop 75 -58 a Ft(Concept)15 b(Index)1466
-b(80)75 50 y Fp(Concept)27 b(Index)73 217 y Fr(A)75 275
+%%Page: 81 85
+TeXDict begin 81 84 bop 75 -58 a Ft(Concept)15 b(Index)1466
+b(81)75 50 y Fp(Concept)27 b(Index)73 217 y Fr(A)75 275
y Fb(application-sp)q(eci\014c)14 b(completion)f(functions)f
-Fa(:)7 b(:)f(:)g(:)g(:)g(:)g(:)18 b Fb(55)73 398 y Fr(C)75
+Fa(:)7 b(:)f(:)g(:)g(:)g(:)g(:)18 b Fb(56)73 398 y Fr(C)75
456 y Fb(command)c(editing)s Fa(:)6 b(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g
(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)
g(:)g(:)g(:)g(:)g(:)k Fb(2)73 580 y Fr(E)75 638 y Fb(editing)j(command)
b Fb(2)1010 485 y Fr(R)1012 551 y Fb(readline,)d(function)c
Fa(:)e(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g
(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)16
-b Fb(27)1010 753 y Fr(V)1012 820 y Fb(v)n(ariables,)d(readline)6
+b Fb(28)1010 753 y Fr(V)1012 820 y Fb(v)n(ariables,)d(readline)6
b Fa(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)
g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)13
b Fb(5)1010 1022 y Fr(Y)1012 1088 y Fb(y)o(anking)h(text)9
b Fa(:)d(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)
g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g
(:)g(:)16 b Fb(3)p eop end
-%%Page: 81 85
-TeXDict begin 81 84 bop 1830 -58 a Ft(81)75 149 y Fp(F)-7
+%%Page: 82 86
+TeXDict begin 82 85 bop 1830 -58 a Ft(82)75 149 y Fp(F)-7
b(unction)27 b(and)g(V)-7 b(ariable)28 b(Index)p 78 370
21 3 v 75 430 a Fe(_rl_digit_)o(p)5 b Fa(:)s(:)h(:)g(:)g(:)g(:)g(:)g(:)
g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f
-(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)12 b Fb(46)75
+(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)12 b Fb(47)75
474 y Fe(_rl_digit_)o(va)o(lue)c Fa(:)s(:)e(:)g(:)g(:)g(:)g(:)g(:)g(:)g
(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)
-f(:)g(:)g(:)15 b Fb(46)75 518 y Fe(_rl_lowerc)o(as)o(e_p)8
+f(:)g(:)g(:)15 b Fb(47)75 518 y Fe(_rl_lowerc)o(as)o(e_p)8
b Fa(:)s(:)e(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)
g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)15
-b Fb(46)75 562 y Fe(_rl_to_low)o(er)s Fa(:)s(:)6 b(:)g(:)h(:)f(:)g(:)g
+b Fb(47)75 562 y Fe(_rl_to_low)o(er)s Fa(:)s(:)6 b(:)g(:)h(:)f(:)g(:)g
(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)
-g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)11 b Fb(46)75 607
+g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)11 b Fb(47)75 607
y Fe(_rl_to_upp)o(er)s Fa(:)s(:)6 b(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g
(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)
-g(:)g(:)g(:)g(:)g(:)11 b Fb(46)75 650 y Fe(_rl_upperc)o(as)o(e_p)d
+g(:)g(:)g(:)g(:)g(:)11 b Fb(47)75 650 y Fe(_rl_upperc)o(as)o(e_p)d
Fa(:)s(:)e(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g
(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)15
-b Fb(46)73 785 y Fr(A)75 844 y Fe(abort)c(\(C-g\))e Fa(:)t(:)d(:)g(:)g
+b Fb(47)73 785 y Fr(A)75 844 y Fe(abort)c(\(C-g\))e Fa(:)t(:)d(:)g(:)g
(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)
g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)15
b Fb(25)75 889 y Fe(accept-lin)o(e)10 b(\(Newline)f(or)j(Return\))7
(:)g(:)g(:)g(:)g(:)16 b Fb(21)73 1745 y Fr(C)75 1805
y Fe(call-last-)o(kb)o(d-m)o(ac)o(ro)9 b(\(C-x)j(e\))d
Fa(:)c(:)h(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)15
-b Fb(24)75 1849 y Fe(capitalize)o(-w)o(ord)9 b(\(M-c\))t
+b Fb(25)75 1849 y Fe(capitalize)o(-w)o(ord)9 b(\(M-c\))t
Fa(:)c(:)h(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f
(:)g(:)g(:)g(:)g(:)g(:)g(:)11 b Fb(22)75 1893 y Fe(character-)o(se)o
(arc)o(h)f(\(C-]\))s Fa(:)t(:)c(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f
-(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)k Fb(25)75
+(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)k Fb(26)75
1938 y Fe(character-)o(se)o(arc)o(h-)o(bac)o(kwa)o(rd)f(\(M-C-]\))d
-Fa(:)t(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)13 b Fb(25)75
+Fa(:)t(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)13 b Fb(26)75
1982 y Fe(clear-disp)o(la)o(y)d(\(M-C-l\))t Fa(:)t(:)c(:)g(:)g(:)g(:)g
(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)
11 b Fb(19)75 2026 y Fe(clear-scre)o(en)e(\(C-l\))f Fa(:)t(:)f(:)f(:)g
(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)12
b Fb(23)75 2600 y Fe(copy-regio)o(n-)o(as-)o(ki)o(ll)d(\(\))s
Fa(:)d(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g
-(:)g(:)g(:)g(:)g(:)g(:)k Fb(23)1010 408 y Fr(D)1012 469
+(:)g(:)g(:)g(:)g(:)g(:)k Fb(23)1010 408 y Fr(D)1012 468
y Fe(delete-char)f(\(C-d\))e Fa(:)g(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g
(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)
-17 b Fb(21)1012 514 y Fe(delete-char)o(-o)o(r-l)o(is)o(t)10
+17 b Fb(21)1012 513 y Fe(delete-char)o(-o)o(r-l)o(is)o(t)10
b(\(\))s Fa(:)5 b(:)h(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g
-(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)k Fb(24)1012 558 y
+(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)k Fb(25)1012 557 y
Fe(delete-hori)o(zo)o(nta)o(l-)o(spa)o(ce)f(\(\))e Fa(:)e(:)h(:)g(:)g
(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)14
-b Fb(23)1012 603 y Fe(digit-argum)o(en)o(t)c(\()p Fc(M-0)p
+b Fb(23)1012 601 y Fe(digit-argum)o(en)o(t)c(\()p Fc(M-0)p
Fe(,)h Fc(M-1)p Fe(,)g(...)h Fc(M--)p Fe(\))7 b Fa(:)t(:)f(:)g(:)g(:)g
-(:)g(:)g(:)g(:)g(:)14 b Fb(23)1012 647 y(disable-completion)d
+(:)g(:)g(:)g(:)g(:)14 b Fb(23)1012 646 y(disable-completion)d
Fa(:)6 b(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)
g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)17
-b Fb(7)1012 692 y Fe(do-lowercas)o(e-)o(ver)o(si)o(on)9
+b Fb(7)1012 690 y Fe(do-lowercas)o(e-)o(ver)o(si)o(on)9
b(\(M-A,)i(M-B,)h(M-)p Fc(x)p Fe(,)f(...)o(\))6 b Fa(:)g(:)13
-b Fb(25)1012 736 y Fe(downcase-wo)o(rd)c(\(M-l\))e Fa(:)t(:)f(:)g(:)g
+b Fb(25)1012 734 y Fe(downcase-wo)o(rd)c(\(M-l\))e Fa(:)t(:)f(:)g(:)g
(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)
-f(:)g(:)g(:)g(:)14 b Fb(22)1012 780 y Fe(dump-functi)o(on)o(s)c(\(\))e
+f(:)g(:)g(:)g(:)14 b Fb(22)1012 778 y Fe(dump-functi)o(on)o(s)c(\(\))e
Fa(:)f(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f
(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)17 b Fb(26)1012
-825 y Fe(dump-macros)9 b(\(\))c Fa(:)g(:)h(:)g(:)g(:)g(:)g(:)g(:)g(:)h
+823 y Fe(dump-macros)9 b(\(\))c Fa(:)g(:)h(:)g(:)g(:)g(:)g(:)g(:)g(:)h
(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)
-g(:)g(:)g(:)g(:)g(:)12 b Fb(26)1012 869 y Fe(dump-variab)o(le)o(s)e
+g(:)g(:)g(:)g(:)g(:)12 b Fb(26)1012 866 y Fe(dump-variab)o(le)o(s)e
(\(\))e Fa(:)f(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g
(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)17
-b Fb(26)1010 1009 y Fr(E)1012 1070 y Fb(ec)o(ho-con)o(trol-c)o
+b Fb(26)1010 1002 y Fr(E)1012 1063 y Fb(ec)o(ho-con)o(trol-c)o
(haracters)7 b Fa(:)h(:)e(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g
(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)14
-b Fb(7)1012 1115 y(editing-mo)q(de)5 b Fa(:)i(:)f(:)g(:)g(:)g(:)g(:)g
+b Fb(7)1012 1107 y(editing-mo)q(de)5 b Fa(:)i(:)f(:)g(:)g(:)g(:)g(:)g
(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)
g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)12 b Fb(7)1012
-1159 y Fe(emacs-editi)o(ng)o(-mo)o(de)d(\(C-e\))g Fa(:)t(:)e(:)f(:)g(:)
+1151 y Fe(emacs-editi)o(ng)o(-mo)o(de)d(\(C-e\))g Fa(:)t(:)e(:)f(:)g(:)
g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)16
-b Fb(26)1012 1204 y(emacs-mo)q(de-string)9 b Fa(:)e(:)f(:)g(:)g(:)h(:)f
+b Fb(26)1012 1195 y(emacs-mo)q(de-string)9 b Fa(:)e(:)f(:)g(:)g(:)h(:)f
(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)
-g(:)g(:)g(:)g(:)g(:)g(:)16 b Fb(7)1012 1248 y(enable-activ)o(e-region)e
+g(:)g(:)g(:)g(:)g(:)g(:)16 b Fb(7)1012 1240 y(enable-activ)o(e-region)e
(The)d Fa(:)6 b(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g
-(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)18 b Fb(7)1012 1293
+(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)18 b Fb(7)1012 1284
y(enable-brac)o(k)o(eted-paste)9 b Fa(:)f(:)f(:)f(:)g(:)g(:)g(:)g(:)g
(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)
-16 b Fb(8)1012 1337 y(enable-k)o(eypad)t Fa(:)8 b(:)e(:)g(:)g(:)g(:)g
+16 b Fb(8)1012 1328 y(enable-k)o(eypad)t Fa(:)8 b(:)e(:)g(:)g(:)g(:)g
(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)
h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)11 b Fb(8)1012
-1381 y(enable-meta-k)o(ey)t Fa(:)c(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g
+1372 y(enable-meta-k)o(ey)t Fa(:)c(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g
(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)
-g(:)g(:)g(:)g(:)g(:)11 b Fb(8)1012 1426 y Fe(end-kbd-mac)o(ro)e(\(C-x)i
+g(:)g(:)g(:)g(:)g(:)11 b Fb(8)1012 1417 y Fe(end-kbd-mac)o(ro)e(\(C-x)i
(\)\))d Fa(:)d(:)i(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g
-(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)15 b Fb(24)1012 1470
+(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)15 b Fb(25)1012 1461
y Fc(end-of-file)9 b Fe(\(usually)h(C-d\))f Fa(:)d(:)g(:)h(:)f(:)g(:)g
(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)19
-b Fb(21)1012 1515 y Fe(end-of-hist)o(or)o(y)10 b(\(M->\))c
+b Fb(21)1012 1505 y Fe(end-of-hist)o(or)o(y)10 b(\(M->\))c
Fa(:)t(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f
-(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)13 b Fb(19)1012 1559 y
+(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)13 b Fb(19)1012 1549 y
Fe(end-of-line)c(\(C-e\))e Fa(:)g(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g
(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)
-17 b Fb(18)1012 1604 y Fe(exchange-po)o(in)o(t-a)o(nd)o(-ma)o(rk)9
+17 b Fb(18)1012 1594 y Fe(exchange-po)o(in)o(t-a)o(nd)o(-ma)o(rk)9
b(\(C-x)j(C-x\))c Fa(:)e(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)17
-b Fb(25)1012 1648 y Fe(execute-nam)o(ed)o(-co)o(mm)o(and)9
+b Fb(25)1012 1638 y Fe(execute-nam)o(ed)o(-co)o(mm)o(and)9
b(\(M-x\))c Fa(:)t(:)i(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g
-(:)g(:)g(:)13 b Fb(26)1012 1692 y(expand-tilde)f Fa(:)6
+(:)g(:)g(:)13 b Fb(26)1012 1682 y(expand-tilde)f Fa(:)6
b(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g
(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)
-17 b Fb(8)1010 1832 y Fr(F)1012 1892 y Fe(fetch-histo)o(ry)9
-b(\(\))h Fa(:)c(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g
-(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)18
-b Fb(21)1012 1937 y(force-meta-pre\014x)6 b Fa(:)i(:)e(:)g(:)g(:)g(:)g
-(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)
-g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)13 b Fb(8)1012 1981 y
-Fe(forward-bac)o(kw)o(ard)o(-d)o(ele)o(te)o(-ch)o(ar)c(\(\))g
-Fa(:)c(:)h(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)16 b
-Fb(21)1012 2026 y Fe(forward-cha)o(r)10 b(\(C-f\))e Fa(:)t(:)e(:)g(:)g
+17 b Fb(8)1012 1726 y Fe(export-comp)o(le)o(tio)o(ns)9
+b(\(\))t Fa(:)d(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g
+(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)12 b Fb(24)1010 1862
+y Fr(F)1012 1922 y Fe(fetch-histo)o(ry)d(\(\))h Fa(:)c(:)g(:)g(:)g(:)g
+(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)
+g(:)g(:)g(:)g(:)g(:)g(:)18 b Fb(21)1012 1966 y(force-meta-pre\014x)6
+b Fa(:)i(:)e(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)
+g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)13
+b Fb(8)1012 2011 y Fe(forward-bac)o(kw)o(ard)o(-d)o(ele)o(te)o(-ch)o
+(ar)c(\(\))g Fa(:)c(:)h(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)16
+b Fb(21)1012 2055 y Fe(forward-cha)o(r)10 b(\(C-f\))e
+Fa(:)t(:)e(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g
+(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)15 b Fb(18)1012
+2099 y Fe(forward-sea)o(rc)o(h-h)o(is)o(tor)o(y)10 b(\(C-s\))t
+Fa(:)t(:)c(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)11
+b Fb(19)1012 2143 y Fe(forward-wor)o(d)f(\(M-f\))e Fa(:)t(:)e(:)g(:)g
(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)
-g(:)g(:)g(:)g(:)h(:)15 b Fb(18)1012 2070 y Fe(forward-sea)o(rc)o(h-h)o
-(is)o(tor)o(y)10 b(\(C-s\))t Fa(:)t(:)c(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g
-(:)g(:)h(:)f(:)g(:)g(:)11 b Fb(19)1012 2114 y Fe(forward-wor)o(d)f
-(\(M-f\))e Fa(:)t(:)e(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g
-(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)15
-b Fb(18)1010 2250 y Fr(H)1012 2310 y Fb(history-preserv)o(e-p)q(oin)o
-(t)8 b Fa(:)g(:)e(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f
-(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)15 b Fb(8)1012
-2355 y Fe(history-sea)o(rc)o(h-b)o(ac)o(kwa)o(rd)9 b(\(\))e
-Fa(:)e(:)h(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g
-(:)14 b Fb(20)1012 2399 y Fe(history-sea)o(rc)o(h-f)o(or)o(war)o(d)c
-(\(\))e Fa(:)d(:)h(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g
-(:)g(:)g(:)g(:)15 b Fb(20)1012 2444 y(history-size)d
-Fa(:)6 b(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)
-g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g
-(:)g(:)g(:)18 b Fb(9)1012 2488 y Fe(history-sub)o(st)o(rin)o(g-)o(sea)o
-(rc)o(h-b)o(ack)o(wa)o(rd)9 b(\(\))i Fa(:)6 b(:)g(:)g(:)g(:)g(:)18
-b Fb(20)1012 2533 y Fe(history-sub)o(st)o(rin)o(g-)o(sea)o(rc)o(h-f)o
-(orw)o(ar)o(d)10 b(\(\))t Fa(:)5 b(:)h(:)g(:)g(:)g(:)g(:)g(:)11
-b Fb(20)1012 2576 y(horizon)o(tal-scroll-mo)q(de)5 b
-Fa(:)i(:)f(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g
-(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)12 b Fb(9)p eop
-end
-%%Page: 82 86
-TeXDict begin 82 85 bop 75 -58 a Ft(F)l(unction)15 b(and)g(V)l(ariable)
-g(Index)1187 b(82)73 147 y Fr(I)75 207 y Fb(input-meta)t
+g(:)g(:)g(:)g(:)h(:)15 b Fb(18)1010 2274 y Fr(H)1012
+2334 y Fb(history-preserv)o(e-p)q(oin)o(t)8 b Fa(:)g(:)e(:)g(:)g(:)g(:)
+g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g
+(:)g(:)g(:)g(:)15 b Fb(8)1012 2378 y Fe(history-sea)o(rc)o(h-b)o(ac)o
+(kwa)o(rd)9 b(\(\))e Fa(:)e(:)h(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g
+(:)g(:)g(:)g(:)g(:)g(:)14 b Fb(20)1012 2423 y Fe(history-sea)o(rc)o
+(h-f)o(or)o(war)o(d)c(\(\))e Fa(:)d(:)h(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g
+(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)15 b Fb(20)1012 2467
+y(history-size)d Fa(:)6 b(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g
+(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)
+f(:)g(:)g(:)g(:)g(:)g(:)g(:)18 b Fb(9)1012 2511 y Fe(history-sub)o(st)o
+(rin)o(g-)o(sea)o(rc)o(h-b)o(ack)o(wa)o(rd)9 b(\(\))i
+Fa(:)6 b(:)g(:)g(:)g(:)g(:)18 b Fb(20)1012 2555 y Fe(history-sub)o(st)o
+(rin)o(g-)o(sea)o(rc)o(h-f)o(orw)o(ar)o(d)10 b(\(\))t
+Fa(:)5 b(:)h(:)g(:)g(:)g(:)g(:)g(:)11 b Fb(20)1012 2599
+y(horizon)o(tal-scroll-mo)q(de)5 b Fa(:)i(:)f(:)g(:)g(:)g(:)g(:)h(:)f
+(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)
+g(:)12 b Fb(9)p eop end
+%%Page: 83 87
+TeXDict begin 83 86 bop 75 -58 a Ft(F)l(unction)15 b(and)g(V)l(ariable)
+g(Index)1187 b(83)73 147 y Fr(I)75 207 y Fb(input-meta)t
Fa(:)7 b(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)
g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g
(:)g(:)g(:)g(:)11 b Fb(9)75 252 y Fe(insert-com)o(me)o(nt)e(\(M-#\))d
Fa(:)t(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g
-(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)12 b Fb(25)75 296 y Fe(insert-com)o(pl)o
+(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)12 b Fb(26)75 296 y Fe(insert-com)o(pl)o
(eti)o(on)o(s)e(\(M-*\))f Fa(:)t(:)d(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)
g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)16 b Fb(24)75 339
y(isearc)o(h-terminators)t Fa(:)7 b(:)f(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g
o(ine)f(\(\))h Fa(:)c(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h
(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)17 b Fb(18)75 2279 y Fe(print-last)o(-k)
o(bd-)o(ma)o(cro)9 b(\(\))h Fa(:)c(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g
-(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)17 b Fb(24)73
+(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)17 b Fb(25)73
2417 y Fr(Q)75 2476 y Fe(quoted-ins)o(er)o(t)10 b(\(C-q)h(or)h(C-v\))5
b Fa(:)t(:)h(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)
g(:)h(:)k Fb(21)1010 147 y Fr(R)1012 205 y Fe(re-read-ini)o(t-)o(fil)o
(:)g(:)g(:)g(:)g(:)16 b Fb(25)1012 249 y Fe(readline)9
b Fa(:)s(:)d(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)
g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h
-(:)f(:)g(:)g(:)16 b Fb(27)1012 293 y Fe(redraw-curr)o(en)o(t-l)o(in)o
+(:)f(:)g(:)g(:)16 b Fb(28)1012 293 y Fe(redraw-curr)o(en)o(t-l)o(in)o
(e)10 b(\(\))s Fa(:)5 b(:)h(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g
(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)k Fb(19)1012 336
y Fe(reverse-sea)o(rc)o(h-h)o(is)o(tor)o(y)g(\(C-r\))t
g(:)17 b Fb(25)1012 467 y Fe(rl_activate)o(_m)o(ark)6
b Fa(:)t(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)
g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)15 b
-Fb(47)1012 511 y Fe(rl_add_defu)o(n)t Fa(:)s(:)6 b(:)g(:)g(:)g(:)g(:)g
+Fb(48)1012 511 y Fe(rl_add_defu)o(n)t Fa(:)s(:)6 b(:)g(:)g(:)g(:)g(:)g
(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)
-g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)11 b Fb(36)1012 555
+g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)11 b Fb(37)1012 555
y Fe(rl_add_funm)o(ap)o(_en)o(tr)o(y)t Fa(:)s(:)6 b(:)g(:)g(:)g(:)g(:)g
(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)
-g(:)11 b Fb(40)1012 598 y Fe(rl_add_undo)t Fa(:)s(:)6
+g(:)11 b Fb(41)1012 598 y Fe(rl_add_undo)t Fa(:)s(:)6
b(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h
(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)12
-b Fb(41)1012 642 y Fe(rl_alphabet)o(ic)c Fa(:)e(:)g(:)g(:)g(:)g(:)g(:)g
+b Fb(42)1012 642 y Fe(rl_alphabet)o(ic)c Fa(:)e(:)g(:)g(:)g(:)g(:)g(:)g
(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)
-g(:)g(:)g(:)g(:)g(:)g(:)h(:)18 b Fb(45)1012 686 y Fe(rl_begin_un)o(do)o
+g(:)g(:)g(:)g(:)g(:)g(:)h(:)18 b Fb(46)1012 686 y Fe(rl_begin_un)o(do)o
(_gr)o(ou)o(p)t Fa(:)s(:)6 b(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)
g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)11
-b Fb(41)1012 729 y Fe(rl_bind_key)t Fa(:)s(:)6 b(:)h(:)f(:)g(:)g(:)g(:)
+b Fb(42)1012 729 y Fe(rl_bind_key)t Fa(:)s(:)6 b(:)h(:)f(:)g(:)g(:)g(:)
g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g
-(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)12 b Fb(38)1012
+(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)12 b Fb(39)1012
773 y Fe(rl_bind_key)o(_i)o(f_u)o(nb)o(oun)o(d)c Fa(:)s(:)e(:)g(:)g(:)g
(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)16
-b Fb(38)1012 817 y Fe(rl_bind_key)o(_i)o(f_u)o(nb)o(oun)o(d_)o(in_)o
+b Fb(39)1012 817 y Fe(rl_bind_key)o(_i)o(f_u)o(nb)o(oun)o(d_)o(in_)o
(map)7 b Fa(:)s(:)f(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)15
-b Fb(38)1012 860 y Fe(rl_bind_key)o(_i)o(n_m)o(ap)t Fa(:)s(:)6
+b Fb(39)1012 860 y Fe(rl_bind_key)o(_i)o(n_m)o(ap)t Fa(:)s(:)6
b(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g
-(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)12 b Fb(38)1012 904 y
+(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)12 b Fb(39)1012 904 y
Fe(rl_bind_key)o(se)o(q)7 b Fa(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h
(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)
-g(:)g(:)g(:)17 b Fb(38)1012 948 y Fe(rl_bind_key)o(se)o(q_i)o(f_)o(unb)
+g(:)g(:)g(:)17 b Fb(39)1012 948 y Fe(rl_bind_key)o(se)o(q_i)o(f_)o(unb)
o(ou)o(nd)t Fa(:)s(:)6 b(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)
-g(:)g(:)g(:)g(:)g(:)12 b Fb(39)1012 991 y Fe(rl_bind_key)o(se)o(q_i)o
+g(:)g(:)g(:)g(:)g(:)12 b Fb(40)1012 991 y Fe(rl_bind_key)o(se)o(q_i)o
(f_)o(unb)o(ou)o(nd_)o(in_)o(ma)o(p)t Fa(:)s(:)6 b(:)g(:)g(:)g(:)g(:)h
-(:)f(:)g(:)g(:)11 b Fb(39)1012 1035 y Fe(rl_bind_key)o(se)o(q_i)o(n_)o
+(:)f(:)g(:)g(:)11 b Fb(40)1012 1035 y Fe(rl_bind_key)o(se)o(q_i)o(n_)o
(map)6 b Fa(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g
-(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)17 b Fb(38)1012 1079 y
+(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)17 b Fb(39)1012 1079 y
Fe(rl_callback)o(_h)o(and)o(le)o(r_i)o(ns)o(tal)o(l)7
b Fa(:)f(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)18
-b Fb(48)1012 1123 y Fe(rl_callback)o(_h)o(and)o(le)o(r_r)o(em)o(ove)r
+b Fb(49)1012 1123 y Fe(rl_callback)o(_h)o(and)o(le)o(r_r)o(em)o(ove)r
Fa(:)t(:)6 b(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)
-f(:)k Fb(48)1012 1166 y Fe(rl_callback)o(_r)o(ead)o(_c)o(har)c
+f(:)k Fb(49)1012 1166 y Fe(rl_callback)o(_r)o(ead)o(_c)o(har)c
Fa(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g
-(:)g(:)g(:)g(:)g(:)g(:)17 b Fb(48)1012 1210 y Fe(rl_callback)o(_s)o
+(:)g(:)g(:)g(:)g(:)g(:)17 b Fb(49)1012 1210 y Fe(rl_callback)o(_s)o
(igc)o(le)o(anu)o(p)8 b Fa(:)s(:)e(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g
-(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)16 b Fb(48)1012
+(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)16 b Fb(49)1012
1254 y Fe(rl_check_si)o(gn)o(als)6 b Fa(:)t(:)g(:)g(:)g(:)g(:)g(:)g(:)g
(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)
-g(:)g(:)g(:)15 b Fb(54)1012 1297 y Fe(rl_cleanup_)o(af)o(ter)o(_s)o
+g(:)g(:)g(:)15 b Fb(55)1012 1297 y Fe(rl_cleanup_)o(af)o(ter)o(_s)o
(ign)o(al)6 b Fa(:)t(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)
-g(:)g(:)h(:)f(:)g(:)g(:)g(:)14 b Fb(54)1012 1341 y Fe(rl_clear_hi)o(st)
+g(:)g(:)h(:)f(:)g(:)g(:)g(:)14 b Fb(55)1012 1341 y Fe(rl_clear_hi)o(st)
o(ory)6 b Fa(:)t(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)
h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)15
-b Fb(47)1012 1385 y Fe(rl_clear_me)o(ss)o(age)6 b Fa(:)t(:)g(:)g(:)g(:)
+b Fb(48)1012 1385 y Fe(rl_clear_me)o(ss)o(age)6 b Fa(:)t(:)g(:)g(:)g(:)
g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g
-(:)g(:)g(:)g(:)g(:)g(:)g(:)15 b Fb(42)1012 1428 y Fe(rl_clear_pe)o(nd)o
+(:)g(:)g(:)g(:)g(:)g(:)g(:)15 b Fb(43)1012 1428 y Fe(rl_clear_pe)o(nd)o
(ing)o(_i)o(npu)o(t)8 b Fa(:)s(:)e(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g
-(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)16 b Fb(44)1012
+(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)16 b Fb(45)1012
1472 y Fe(rl_clear_si)o(gn)o(als)6 b Fa(:)t(:)g(:)g(:)g(:)g(:)g(:)g(:)g
(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)
-g(:)g(:)g(:)15 b Fb(55)1012 1516 y Fe(rl_clear_vi)o(si)o(ble)o(_l)o
+g(:)g(:)g(:)15 b Fb(56)1012 1516 y Fe(rl_clear_vi)o(si)o(ble)o(_l)o
(ine)6 b Fa(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g
-(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)17 b Fb(42)1012 1559 y
+(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)17 b Fb(43)1012 1559 y
Fe(rl_complete)t Fa(:)s(:)6 b(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g
(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)
-g(:)g(:)g(:)g(:)h(:)12 b Fb(56)1012 1603 y Fe(rl_complete)o(_i)o(nte)o
+g(:)g(:)g(:)g(:)h(:)12 b Fb(57)1012 1603 y Fe(rl_complete)o(_i)o(nte)o
(rn)o(al)7 b Fa(:)f(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g
-(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)18 b Fb(56)1012
+(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)18 b Fb(57)1012
1647 y Fe(rl_completi)o(on)o(_ma)o(tc)o(hes)6 b Fa(:)g(:)g(:)g(:)g(:)g
(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)
-17 b Fb(57)1012 1690 y Fe(rl_completi)o(on)o(_mo)o(de)t
+17 b Fb(58)1012 1690 y Fe(rl_completi)o(on)o(_mo)o(de)t
Fa(:)s(:)6 b(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)
-g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)12 b Fb(57)1012
+g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)12 b Fb(58)1012
1734 y Fe(rl_copy_key)o(ma)o(p)7 b Fa(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g
(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)
-f(:)g(:)g(:)g(:)g(:)17 b Fb(36)1012 1778 y Fe(rl_copy_tex)o(t)t
+f(:)g(:)g(:)g(:)g(:)17 b Fb(37)1012 1778 y Fe(rl_copy_tex)o(t)t
Fa(:)s(:)6 b(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)
g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)11
-b Fb(43)1012 1821 y Fe(rl_crlf)d Fa(:)e(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h
+b Fb(44)1012 1821 y Fe(rl_crlf)d Fa(:)e(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h
(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)
g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)18 b
-Fb(42)1012 1865 y Fe(rl_deactiva)o(te)o(_ma)o(rk)t Fa(:)s(:)6
+Fb(43)1012 1865 y Fe(rl_deactiva)o(te)o(_ma)o(rk)t Fa(:)s(:)6
b(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g
-(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)12 b Fb(47)1012 1909 y
+(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)12 b Fb(48)1012 1909 y
Fe(rl_delete_t)o(ex)o(t)7 b Fa(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h
(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)
-g(:)g(:)g(:)17 b Fb(43)1012 1953 y Fe(rl_deprep_t)o(er)o(min)o(al)t
+g(:)g(:)g(:)17 b Fb(44)1012 1953 y Fe(rl_deprep_t)o(er)o(min)o(al)t
Fa(:)s(:)6 b(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)
-g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)12 b Fb(44)1012
+g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)12 b Fb(45)1012
1996 y Fe(rl_ding)c Fa(:)e(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g
(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)
-g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)18 b Fb(45)1012 2040
+g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)18 b Fb(46)1012 2040
y Fe(rl_discard_)o(ke)o(yma)o(p)6 b Fa(:)s(:)g(:)g(:)g(:)g(:)g(:)g(:)g
(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)
-f(:)g(:)13 b Fb(37)1012 2084 y Fe(rl_display_)o(ma)o(tch)o(_l)o(ist)6
+f(:)g(:)13 b Fb(38)1012 2084 y Fe(rl_display_)o(ma)o(tch)o(_l)o(ist)6
b Fa(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)
-g(:)g(:)g(:)g(:)g(:)g(:)17 b Fb(46)1012 2127 y Fe(rl_do_undo)6
+g(:)g(:)g(:)g(:)g(:)g(:)17 b Fb(47)1012 2127 y Fe(rl_do_undo)6
b Fa(:)s(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)
g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g
-(:)g(:)14 b Fb(41)1012 2171 y Fe(rl_echo_sig)o(na)o(l_c)o(ha)o(r)t
+(:)g(:)14 b Fb(42)1012 2171 y Fe(rl_echo_sig)o(na)o(l_c)o(ha)o(r)t
Fa(:)s(:)6 b(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)
-g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)11 b Fb(54)1012 2215
+g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)11 b Fb(55)1012 2215
y Fe(rl_empty_ke)o(ym)o(ap)d Fa(:)s(:)e(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g
(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)
-g(:)g(:)16 b Fb(37)1012 2258 y Fe(rl_end_undo)o(_g)o(rou)o(p)6
+g(:)g(:)16 b Fb(38)1012 2258 y Fe(rl_end_undo)o(_g)o(rou)o(p)6
b Fa(:)s(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)
-g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)13 b Fb(41)1012
+g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)13 b Fb(42)1012
2302 y Fe(rl_execute_)o(ne)o(xt)8 b Fa(:)s(:)e(:)g(:)g(:)h(:)f(:)g(:)g
(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)
-g(:)g(:)g(:)g(:)16 b Fb(44)1012 2346 y Fe(rl_expand_p)o(ro)o(mpt)6
+g(:)g(:)g(:)g(:)16 b Fb(45)1012 2346 y Fe(rl_expand_p)o(ro)o(mpt)6
b Fa(:)t(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)
g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)15 b
-Fb(42)1012 2389 y Fe(rl_extend_l)o(in)o(e_b)o(uf)o(fer)6
+Fb(43)1012 2389 y Fe(rl_extend_l)o(in)o(e_b)o(uf)o(fer)6
b Fa(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)
-g(:)g(:)g(:)g(:)g(:)g(:)17 b Fb(45)1012 2433 y Fe(rl_filename)o(_c)o
+g(:)g(:)g(:)g(:)g(:)g(:)17 b Fb(46)1012 2433 y Fe(rl_filename)o(_c)o
(omp)o(le)o(tio)o(n_)o(fun)o(cti)o(on)t Fa(:)t(:)6 b(:)g(:)g(:)g(:)g(:)
-g(:)g(:)g(:)g(:)g(:)13 b Fb(57)1012 2477 y Fe(rl_forced_u)o(pd)o(ate)o
+g(:)g(:)g(:)g(:)g(:)13 b Fb(58)1012 2477 y Fe(rl_forced_u)o(pd)o(ate)o
(_d)o(isp)o(la)o(y)6 b Fa(:)s(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h
-(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)13 b Fb(41)1012 2520
+(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)13 b Fb(42)1012 2520
y Fe(rl_free)8 b Fa(:)e(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g
(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)
-g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)18 b Fb(45)1012 2564
+g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)18 b Fb(46)1012 2564
y Fe(rl_free_key)o(ma)o(p)7 b Fa(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)
h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g
-(:)g(:)g(:)g(:)17 b Fb(37)p eop end
-%%Page: 83 87
-TeXDict begin 83 86 bop 75 -58 a Ft(F)l(unction)15 b(and)g(V)l(ariable)
-g(Index)1187 b(83)75 130 y Fe(rl_free_li)o(ne)o(_st)o(at)o(e)5
+(:)g(:)g(:)g(:)17 b Fb(38)p eop end
+%%Page: 84 88
+TeXDict begin 84 87 bop 75 -58 a Ft(F)l(unction)15 b(and)g(V)l(ariable)
+g(Index)1187 b(84)75 130 y Fe(rl_free_li)o(ne)o(_st)o(at)o(e)5
b Fa(:)s(:)h(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)
-g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)k Fb(54)75 174
+g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)k Fb(55)75 174
y Fe(rl_free_un)o(do)o(_li)o(st)5 b Fa(:)t(:)h(:)g(:)g(:)g(:)g(:)g(:)g
(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)
-g(:)g(:)13 b Fb(41)75 218 y Fe(rl_functio)o(n_)o(dum)o(pe)o(r)5
+g(:)g(:)13 b Fb(42)75 218 y Fe(rl_functio)o(n_)o(dum)o(pe)o(r)5
b Fa(:)s(:)h(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)
-g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)k Fb(40)75 263
+g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)k Fb(41)75 263
y Fe(rl_functio)o(n_)o(of_)o(ke)o(yse)o(q)6 b Fa(:)g(:)h(:)f(:)g(:)g(:)
g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)16
-b Fb(39)75 307 y Fe(rl_functio)o(n_)o(of_)o(ke)o(yse)o(q_l)o(en)s
+b Fb(40)75 307 y Fe(rl_functio)o(n_)o(of_)o(ke)o(yse)o(q_l)o(en)s
Fa(:)t(:)6 b(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)
-g(:)g(:)11 b Fb(39)75 351 y Fe(rl_funmap_)o(na)o(mes)d
+g(:)g(:)11 b Fb(40)75 351 y Fe(rl_funmap_)o(na)o(mes)d
Fa(:)s(:)e(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g
(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)15
-b Fb(40)75 395 y Fe(rl_generic)o(_b)o(ind)8 b Fa(:)s(:)e(:)g(:)g(:)g(:)
+b Fb(41)75 395 y Fe(rl_generic)o(_b)o(ind)8 b Fa(:)s(:)e(:)g(:)g(:)g(:)
g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g
-(:)g(:)g(:)h(:)f(:)g(:)g(:)15 b Fb(39)75 440 y Fe(rl_get_key)o(ma)o(p)8
+(:)g(:)g(:)h(:)f(:)g(:)g(:)15 b Fb(40)75 440 y Fe(rl_get_key)o(ma)o(p)8
b Fa(:)e(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)
g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)18
-b Fb(37)75 484 y Fe(rl_get_key)o(ma)o(p_b)o(y_)o(nam)o(e)6
+b Fb(38)75 484 y Fe(rl_get_key)o(ma)o(p_b)o(y_)o(nam)o(e)6
b Fa(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)
-h(:)f(:)g(:)g(:)g(:)g(:)16 b Fb(37)75 528 y Fe(rl_get_key)o(ma)o(p_n)o
+h(:)f(:)g(:)g(:)g(:)g(:)16 b Fb(38)75 528 y Fe(rl_get_key)o(ma)o(p_n)o
(am)o(e)5 b Fa(:)s(:)h(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g
(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)k
-Fb(37)75 573 y Fe(rl_get_scr)o(ee)o(n_s)o(iz)o(e)5 b
+Fb(38)75 573 y Fe(rl_get_scr)o(ee)o(n_s)o(iz)o(e)5 b
Fa(:)s(:)h(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g
-(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)k Fb(55)75 617
+(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)k Fb(56)75 617
y Fe(rl_get_ter)o(mc)o(ap)6 b Fa(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)
g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g
-(:)g(:)g(:)g(:)17 b Fb(47)75 661 y Fe(rl_getc)8 b Fa(:)e(:)g(:)g(:)g(:)
+(:)g(:)g(:)g(:)17 b Fb(48)75 661 y Fe(rl_getc)8 b Fa(:)e(:)g(:)g(:)g(:)
g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g
(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)17
-b Fb(44)75 705 y Fe(rl_initial)o(iz)o(e)8 b Fa(:)e(:)g(:)g(:)g(:)g(:)h
+b Fb(45)75 705 y Fe(rl_initial)o(iz)o(e)8 b Fa(:)e(:)g(:)g(:)g(:)g(:)h
(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)
-g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)18 b Fb(45)75 750 y Fe(rl_insert_)o(co)
+g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)18 b Fb(46)75 750 y Fe(rl_insert_)o(co)
o(mpl)o(et)o(ion)o(s)6 b Fa(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g
-(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)16 b Fb(56)75
+(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)16 b Fb(57)75
794 y Fe(rl_insert_)o(te)o(xt)6 b Fa(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)
g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g
-(:)g(:)g(:)g(:)g(:)17 b Fb(43)75 838 y Fe(rl_invokin)o(g_)o(key)o(se)o
+(:)g(:)g(:)g(:)g(:)17 b Fb(44)75 838 y Fe(rl_invokin)o(g_)o(key)o(se)o
(qs)s Fa(:)s(:)6 b(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g
-(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)k Fb(40)75
+(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)k Fb(41)75
882 y Fe(rl_invokin)o(g_)o(key)o(se)o(qs_)o(in_)o(ma)o(p)s
Fa(:)s(:)c(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g
-(:)k Fb(40)75 927 y Fe(rl_keep_ma)o(rk)o(_ac)o(ti)o(ve)s
+(:)k Fb(41)75 927 y Fe(rl_keep_ma)o(rk)o(_ac)o(ti)o(ve)s
Fa(:)s(:)c(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g
-(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)k Fb(47)75 971 y Fe(rl_kill_te)o(xt)
+(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)k Fb(48)75 971 y Fe(rl_kill_te)o(xt)
s Fa(:)s(:)c(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)
g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)11
-b Fb(43)75 1015 y Fe(rl_list_fu)o(nm)o(ap_)o(na)o(mes)c
+b Fb(44)75 1015 y Fe(rl_list_fu)o(nm)o(ap_)o(na)o(mes)c
Fa(:)f(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g
-(:)g(:)g(:)g(:)g(:)g(:)h(:)17 b Fb(40)75 1059 y Fe(rl_macro_b)o(in)o(d)
+(:)g(:)g(:)g(:)g(:)g(:)h(:)17 b Fb(41)75 1059 y Fe(rl_macro_b)o(in)o(d)
8 b Fa(:)e(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g
(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)18
-b Fb(46)75 1104 y Fe(rl_macro_d)o(um)o(per)8 b Fa(:)s(:)e(:)g(:)g(:)g
+b Fb(47)75 1104 y Fe(rl_macro_d)o(um)o(per)8 b Fa(:)s(:)e(:)g(:)g(:)g
(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)
-g(:)g(:)g(:)h(:)f(:)g(:)g(:)15 b Fb(46)75 1148 y Fe(rl_make_ba)o(re)o
+g(:)g(:)g(:)h(:)f(:)g(:)g(:)15 b Fb(47)75 1148 y Fe(rl_make_ba)o(re)o
(_ke)o(ym)o(ap)s Fa(:)s(:)6 b(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g
(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)k
-Fb(36)75 1192 y Fe(rl_make_ke)o(ym)o(ap)c Fa(:)h(:)f(:)g(:)g(:)g(:)g(:)
+Fb(37)75 1192 y Fe(rl_make_ke)o(ym)o(ap)c Fa(:)h(:)f(:)g(:)g(:)g(:)g(:)
g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g
-(:)g(:)g(:)g(:)g(:)g(:)g(:)17 b Fb(37)75 1236 y Fe(rl_mark_ac)o(ti)o
+(:)g(:)g(:)g(:)g(:)g(:)g(:)17 b Fb(38)75 1236 y Fe(rl_mark_ac)o(ti)o
(ve_)o(p)7 b Fa(:)s(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g
(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)14
-b Fb(47)75 1281 y Fe(rl_message)5 b Fa(:)t(:)h(:)g(:)g(:)g(:)g(:)g(:)g
+b Fb(48)75 1281 y Fe(rl_message)5 b Fa(:)t(:)h(:)g(:)g(:)g(:)g(:)g(:)g
(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)
-g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)13 b Fb(42)75
+g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)13 b Fb(43)75
1325 y Fe(rl_modifyi)o(ng)s Fa(:)s(:)6 b(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)
g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g
-(:)g(:)g(:)g(:)g(:)g(:)g(:)11 b Fb(41)75 1369 y Fe(rl_named_f)o(un)o
+(:)g(:)g(:)g(:)g(:)g(:)g(:)11 b Fb(42)75 1369 y Fe(rl_named_f)o(un)o
(cti)o(on)5 b Fa(:)t(:)h(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)
g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)13
-b Fb(39)75 1413 y Fe(rl_on_new_)o(li)o(ne)6 b Fa(:)h(:)f(:)g(:)g(:)g(:)
+b Fb(40)75 1413 y Fe(rl_on_new_)o(li)o(ne)6 b Fa(:)h(:)f(:)g(:)g(:)g(:)
g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g
-(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)17 b Fb(42)75 1458 y Fe(rl_on_new_)o(li)
+(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)17 b Fb(43)75 1458 y Fe(rl_on_new_)o(li)
o(ne_)o(wi)o(th_)o(pro)o(mp)o(t)s Fa(:)s(:)6 b(:)g(:)g(:)g(:)g(:)h(:)f
-(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)k Fb(42)75 1502
+(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)k Fb(43)75 1502
y Fe(rl_parse_a)o(nd)o(_bi)o(nd)5 b Fa(:)t(:)h(:)g(:)g(:)g(:)g(:)g(:)g
(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)
-g(:)g(:)13 b Fb(39)75 1546 y Fe(rl_pending)o(_s)o(ign)o(al)5
+g(:)g(:)13 b Fb(40)75 1546 y Fe(rl_pending)o(_s)o(ign)o(al)5
b Fa(:)t(:)h(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)
-f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)13 b Fb(54)75
+f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)13 b Fb(55)75
1590 y Fe(rl_possibl)o(e_)o(com)o(pl)o(eti)o(ons)6 b
Fa(:)s(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g
-(:)g(:)g(:)g(:)14 b Fb(56)75 1635 y Fe(rl_prep_te)o(rm)o(ina)o(l)7
+(:)g(:)g(:)g(:)14 b Fb(57)75 1635 y Fe(rl_prep_te)o(rm)o(ina)o(l)7
b Fa(:)s(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)
g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)14 b
-Fb(44)75 1679 y Fe(rl_print_k)o(ey)o(bin)o(di)o(ng)s
+Fb(45)75 1679 y Fe(rl_print_k)o(ey)o(bin)o(di)o(ng)s
Fa(:)s(:)6 b(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)
-g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)k Fb(40)75 1723 y
+g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)k Fb(41)75 1723 y
Fe(rl_push_ma)o(cr)o(o_i)o(np)o(ut)s Fa(:)s(:)c(:)g(:)g(:)h(:)f(:)g(:)g
(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)
-k Fb(43)75 1767 y Fe(rl_read_in)o(it)o(_fi)o(le)5 b Fa(:)t(:)h(:)g(:)g
+k Fb(44)75 1767 y Fe(rl_read_in)o(it)o(_fi)o(le)5 b Fa(:)t(:)h(:)g(:)g
(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)
-g(:)g(:)g(:)g(:)g(:)g(:)13 b Fb(39)75 1812 y Fe(rl_read_ke)o(y)5
+g(:)g(:)g(:)g(:)g(:)g(:)13 b Fb(40)75 1812 y Fe(rl_read_ke)o(y)5
b Fa(:)s(:)h(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)
g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g
-(:)12 b Fb(43)75 1856 y Fe(rl_redispl)o(ay)s Fa(:)s(:)6
+(:)12 b Fb(44)75 1856 y Fe(rl_redispl)o(ay)s Fa(:)s(:)6
b(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h
(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)11
-b Fb(41)75 1900 y Fe(rl_reparse)o(_c)o(olo)o(rs)5 b Fa(:)t(:)h(:)g(:)g
+b Fb(42)75 1900 y Fe(rl_reparse)o(_c)o(olo)o(rs)5 b Fa(:)t(:)h(:)g(:)g
(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)
-g(:)g(:)g(:)g(:)g(:)g(:)13 b Fb(47)75 1945 y Fe(rl_replace)o(_l)o(ine)8
+g(:)g(:)g(:)g(:)g(:)g(:)13 b Fb(48)75 1945 y Fe(rl_replace)o(_l)o(ine)8
b Fa(:)s(:)e(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)
g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)15
-b Fb(43)75 1989 y Fe(rl_reset_a)o(ft)o(er_)o(si)o(gna)o(l)6
+b Fb(44)75 1989 y Fe(rl_reset_a)o(ft)o(er_)o(si)o(gna)o(l)6
b Fa(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)
-h(:)f(:)g(:)g(:)g(:)g(:)16 b Fb(54)75 2033 y Fe(rl_reset_l)o(in)o(e_s)o
+h(:)f(:)g(:)g(:)g(:)g(:)16 b Fb(55)75 2033 y Fe(rl_reset_l)o(in)o(e_s)o
(ta)o(te)s Fa(:)s(:)6 b(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g
-(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)k Fb(42)75
+(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)k Fb(43)75
2077 y Fe(rl_reset_s)o(cr)o(een)o(_s)o(ize)d Fa(:)f(:)g(:)g(:)g(:)g(:)g
(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)
-17 b Fb(55)75 2122 y Fe(rl_reset_t)o(er)o(min)o(al)5
+17 b Fb(56)75 2122 y Fe(rl_reset_t)o(er)o(min)o(al)5
b Fa(:)t(:)h(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)
-f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)13 b Fb(45)75
+f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)13 b Fb(46)75
2166 y Fe(rl_resize_)o(te)o(rmi)o(na)o(l)5 b Fa(:)s(:)h(:)g(:)g(:)g(:)g
(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)
-g(:)g(:)h(:)k Fb(54)75 2210 y Fe(rl_restore)o(_p)o(rom)o(pt)5
+g(:)g(:)h(:)k Fb(55)75 2210 y Fe(rl_restore)o(_p)o(rom)o(pt)5
b Fa(:)t(:)h(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)
-f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)13 b Fb(42)75
+f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)13 b Fb(43)75
2254 y Fe(rl_restore)o(_s)o(tat)o(e)7 b Fa(:)s(:)f(:)g(:)g(:)g(:)h(:)f
(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)
-g(:)g(:)g(:)g(:)14 b Fb(45)75 2299 y Fe(rl_save_pr)o(om)o(pt)6
+g(:)g(:)g(:)g(:)14 b Fb(46)75 2299 y Fe(rl_save_pr)o(om)o(pt)6
b Fa(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)
f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)17
-b Fb(42)75 2343 y Fe(rl_save_st)o(at)o(e)8 b Fa(:)e(:)g(:)g(:)g(:)g(:)h
+b Fb(43)75 2343 y Fe(rl_save_st)o(at)o(e)8 b Fa(:)e(:)g(:)g(:)g(:)g(:)h
(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)
-g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)18 b Fb(45)75 2387 y
+g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)18 b Fb(46)75 2387 y
Fe(rl_set_key)5 b Fa(:)t(:)h(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)
g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h
-(:)f(:)g(:)g(:)g(:)g(:)13 b Fb(39)75 2431 y Fe(rl_set_key)o(bo)o(ard)o
+(:)f(:)g(:)g(:)g(:)g(:)13 b Fb(40)75 2431 y Fe(rl_set_key)o(bo)o(ard)o
(_i)o(npu)o(t_t)o(im)o(eou)o(t)8 b Fa(:)s(:)e(:)g(:)g(:)g(:)g(:)g(:)g
-(:)g(:)g(:)g(:)g(:)g(:)15 b Fb(44)75 2476 y Fe(rl_set_key)o(ma)o(p)8
+(:)g(:)g(:)g(:)g(:)g(:)15 b Fb(45)75 2476 y Fe(rl_set_key)o(ma)o(p)8
b Fa(:)e(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)
g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)18
-b Fb(37)75 2520 y Fe(rl_set_key)o(ma)o(p_n)o(am)o(e)5
+b Fb(38)75 2520 y Fe(rl_set_key)o(ma)o(p_n)o(am)o(e)5
b Fa(:)s(:)h(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)
-g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)k Fb(37)75 2564
+g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)k Fb(38)75 2564
y Fe(rl_set_par)o(en)o(_bl)o(in)o(k_t)o(ime)o(ou)o(t)s
Fa(:)s(:)6 b(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)
-g(:)k Fb(47)1012 130 y Fe(rl_set_prom)o(pt)e Fa(:)e(:)g(:)g(:)g(:)g(:)g
+g(:)k Fb(48)1012 130 y Fe(rl_set_prom)o(pt)e Fa(:)e(:)g(:)g(:)g(:)g(:)g
(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)
-g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)18 b Fb(43)1012 174 y
+g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)18 b Fb(44)1012 174 y
Fe(rl_set_scre)o(en)o(_si)o(ze)t Fa(:)s(:)6 b(:)g(:)g(:)h(:)f(:)g(:)g
(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)
-g(:)12 b Fb(54)1012 218 y Fe(rl_set_sign)o(al)o(s)7 b
+g(:)12 b Fb(55)1012 218 y Fe(rl_set_sign)o(al)o(s)7 b
Fa(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g
(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)17
-b Fb(55)1012 262 y Fe(rl_set_time)o(ou)o(t)7 b Fa(:)f(:)g(:)g(:)g(:)g
+b Fb(56)1012 262 y Fe(rl_set_time)o(ou)o(t)7 b Fa(:)f(:)g(:)g(:)g(:)g
(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)
-g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)17 b Fb(44)1012 306 y
+g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)17 b Fb(45)1012 306 y
Fe(rl_show_cha)o(r)t Fa(:)s(:)6 b(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g
(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)
-h(:)f(:)g(:)g(:)g(:)11 b Fb(42)1012 350 y Fe(rl_stuff_ch)o(ar)d
+h(:)f(:)g(:)g(:)g(:)11 b Fb(43)1012 350 y Fe(rl_stuff_ch)o(ar)d
Fa(:)e(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g
(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)18
-b Fb(44)1012 394 y Fe(rl_timeout_)o(re)o(mai)o(ni)o(ng)7
+b Fb(45)1012 394 y Fe(rl_timeout_)o(re)o(mai)o(ni)o(ng)7
b Fa(:)f(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)
-h(:)f(:)g(:)g(:)g(:)g(:)g(:)18 b Fb(44)1012 438 y Fe(rl_trim_arg)o(_f)o
+h(:)f(:)g(:)g(:)g(:)g(:)g(:)18 b Fb(45)1012 438 y Fe(rl_trim_arg)o(_f)o
(rom)o(_k)o(eys)o(eq)6 b Fa(:)t(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g
-(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)14 b Fb(40)1012
+(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)14 b Fb(41)1012
482 y Fe(rl_tty_set_)o(de)o(fau)o(lt)o(_bi)o(nd)o(ing)o(s)7
b Fa(:)f(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)18
-b Fb(45)1012 526 y Fe(rl_tty_set_)o(ec)o(hoi)o(ng)t Fa(:)s(:)6
+b Fb(46)1012 526 y Fe(rl_tty_set_)o(ec)o(hoi)o(ng)t Fa(:)s(:)6
b(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g
-(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)12 b Fb(45)1012 571 y
+(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)12 b Fb(46)1012 571 y
Fe(rl_tty_unse)o(t_)o(def)o(au)o(lt_)o(bi)o(ndi)o(ngs)7
b Fa(:)s(:)f(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)15
-b Fb(45)1012 615 y Fe(rl_unbind_c)o(om)o(man)o(d_)o(in_)o(ma)o(p)6
+b Fb(46)1012 615 y Fe(rl_unbind_c)o(om)o(man)o(d_)o(in_)o(ma)o(p)6
b Fa(:)s(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)
-g(:)g(:)g(:)13 b Fb(38)1012 659 y Fe(rl_unbind_f)o(un)o(cti)o(on)o(_in)
+g(:)g(:)g(:)13 b Fb(39)1012 659 y Fe(rl_unbind_f)o(un)o(cti)o(on)o(_in)
o(_m)o(ap)t Fa(:)s(:)6 b(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)
-g(:)g(:)g(:)g(:)g(:)12 b Fb(38)1012 703 y Fe(rl_unbind_k)o(ey)c
+g(:)g(:)g(:)g(:)g(:)12 b Fb(39)1012 703 y Fe(rl_unbind_k)o(ey)c
Fa(:)e(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g
(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)18
-b Fb(38)1012 747 y Fe(rl_unbind_k)o(ey)o(_in)o(_m)o(ap)7
+b Fb(39)1012 747 y Fe(rl_unbind_k)o(ey)o(_in)o(_m)o(ap)7
b Fa(:)f(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)
-h(:)f(:)g(:)g(:)g(:)g(:)g(:)18 b Fb(38)1012 791 y Fe(rl_username)o(_c)o
+h(:)f(:)g(:)g(:)g(:)g(:)g(:)18 b Fb(39)1012 791 y Fe(rl_username)o(_c)o
(omp)o(le)o(tio)o(n_)o(fun)o(cti)o(on)t Fa(:)t(:)6 b(:)g(:)g(:)g(:)g(:)
-g(:)g(:)g(:)g(:)g(:)13 b Fb(57)1012 835 y Fe(rl_variable)o(_b)o(ind)6
+g(:)g(:)g(:)g(:)g(:)13 b Fb(58)1012 835 y Fe(rl_variable)o(_b)o(ind)6
b Fa(:)t(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)
g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)15 b
-Fb(46)1012 879 y Fe(rl_variable)o(_d)o(ump)o(er)t Fa(:)s(:)6
+Fb(47)1012 879 y Fe(rl_variable)o(_d)o(ump)o(er)t Fa(:)s(:)6
b(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g
-(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)12 b Fb(47)1012 923 y
+(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)12 b Fb(48)1012 923 y
Fe(rl_variable)o(_v)o(alu)o(e)6 b Fa(:)s(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)
g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f
-(:)g(:)13 b Fb(47)1010 1050 y Fr(S)1012 1109 y Fb(searc)o
+(:)g(:)13 b Fb(48)1010 1050 y Fr(S)1012 1109 y Fb(searc)o
(h-ignore-case)6 b Fa(:)h(:)f(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g
(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)
13 b Fb(11)1012 1154 y Fe(self-insert)c(\(a,)j(b,)g(A,)g(1,)g(!,)g(...)
(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)
g(:)g(:)g(:)g(:)15 b Fb(11)1012 1418 y Fe(skip-csi-se)o(qu)o(enc)o(e)10
b(\(\))c Fa(:)f(:)h(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g
-(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)13 b Fb(25)1012
+(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)13 b Fb(26)1012
1461 y Fe(start-kbd-m)o(ac)o(ro)c(\(C-x)j(\(\))5 b Fa(:)g(:)h(:)g(:)g
(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)
-13 b Fb(24)1010 1588 y Fr(T)1012 1648 y Fe(tab-insert)c(\(M-TAB\))f
+13 b Fb(25)1010 1588 y Fr(T)1012 1648 y Fe(tab-insert)c(\(M-TAB\))f
Fa(:)t(:)e(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g
(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h(:)15 b Fb(21)1012
1692 y Fe(tilde-expan)o(d)10 b(\(M-~\))e Fa(:)t(:)e(:)g(:)g(:)g(:)g(:)g
g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)h
(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)13 b Fb(12)p
eop end
-%%Page: 84 88
-TeXDict begin 84 87 bop 75 -58 a Ft(F)l(unction)15 b(and)g(V)l(ariable)
-g(Index)1187 b(84)73 147 y Fr(Y)75 205 y Fe(yank)11 b(\(C-y\))d
+%%Page: 85 89
+TeXDict begin 85 88 bop 75 -58 a Ft(F)l(unction)15 b(and)g(V)l(ariable)
+g(Index)1187 b(85)73 147 y Fr(Y)75 205 y Fe(yank)11 b(\(C-y\))d
Fa(:)e(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g
(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)g(:)
g(:)17 b Fb(23)75 248 y Fe(yank-last-)o(ar)o(g)10 b(\(M-.)h(or)h(M-_\))
The characters present in the value of the @code{isearch-terminators} variable
are used to terminate an incremental search.
If that variable has not been assigned a value, the @key{ESC} and
-@kbd{C-J} characters will terminate an incremental search.
-@kbd{C-g} will abort an incremental search and restore the original line.
+@kbd{C-j} characters terminate an incremental search.
+@kbd{C-g} aborts an incremental search and restores the original line.
When the search is terminated, the history entry containing the
search string becomes the current line.
To find other matching entries in the history list, type @kbd{C-r} or
@kbd{C-s} as appropriate.
-This will search backward or forward in the history for the next
+This searches backward or forward in the history for the next
entry matching the search string typed so far.
-Any other key sequence bound to a Readline command will terminate
-the search and execute that command.
-For instance, a @key{RET} will terminate the search and accept
+Any other key sequence bound to a Readline command terminates
+the search and executes that command.
+For instance, a @key{RET} terminates the search and accepts
the line, thereby executing the command from the history list.
A movement command will terminate the search, make the last line found
the current line, and begin editing.
@xref{Bash Builtins}.
@end ifset
-When a program which uses the Readline library starts up, Readline reads
+When a program that uses the Readline library starts up, Readline reads
the init file and sets any variables and key bindings it contains.
In addition, the @code{C-x C-r} command re-reads this init file, thus
when performing completion.
The value is ignored if it is less than 0 or greater than the terminal
screen width.
-A value of 0 will cause matches to be displayed one per line.
+A value of 0 causes matches to be displayed one per line.
The default value is -1.
@item completion-ignore-case
The number of possible completions that determines when the user is asked
whether the list of possibilities should be displayed.
If the number of possible completions is greater than
-or equal to this value, Readline will ask whether or not
-the user wishes to view them;
+or equal to this value,
+Readline asks whether or not the user wishes to view them;
otherwise, Readline simply lists the completions.
This variable must be set to an integer value greater than or equal to zero.
A zero value means Readline should never ask; negative
@item convert-meta
@vindex convert-meta
-If set to @samp{on}, Readline will convert characters it reads
+If set to @samp{on}, Readline converts characters it reads
that have the eighth bit set to an @sc{ascii} key sequence by
clearing the eighth bit and prefixing an @key{ESC} character,
converting them to a meta-prefixed key sequence.
-The default value is @samp{on}, but Readline will set it to @samp{off}
+The default value is @samp{on}, but Readline sets it to @samp{off}
if the locale contains
characters whose encodings may include bytes with the eighth bit set.
This variable is dependent on the @code{LC_CTYPE} locale category, and
@item disable-completion
@vindex disable-completion
-If set to @samp{On}, Readline will inhibit word completion.
-Completion characters will be inserted into the line as if they
+If set to @samp{On}, Readline inhibits word completion.
+Completion characters are inserted into the line as if they
had been mapped to @code{self-insert}.
The default is @samp{off}.
@item enable-keypad
@vindex enable-keypad
-When set to @samp{on}, Readline will try to enable the application
+When set to @samp{on}, Readline tries to enable the application
keypad when it is called.
Some systems need this to enable the arrow keys.
The default is @samp{off}.
@item enable-meta-key
@vindex enable-meta-key
-When set to @samp{on}, Readline will try to enable any meta
+When set to @samp{on}, Readline tries to enable any meta
modifier key the terminal claims to support when it is called.
On many terminals, the Meta key is used to send eight-bit characters;
this variable checks for the terminal capability that indicates the
@item input-meta
@vindex input-meta
@vindex meta-flag
-If set to @samp{on}, Readline will enable eight-bit input (that is, it
-will not clear the eighth bit in the characters it reads),
+If set to @samp{on}, Readline enables eight-bit input (that is, it
+does not clear the eighth bit in the characters it reads),
regardless of what the terminal claims it can support.
-The default value is @samp{off}, but Readline will set it to @samp{on}
+The default value is @samp{off}, but Readline sets it to @samp{on}
if the locale contains characters whose encodings may include bytes
with the eighth bit set.
This variable is dependent on the @code{LC_CTYPE} locale category, and
The string of characters that should terminate an incremental search without
subsequently executing the character as a command (@pxref{Searching}).
If this variable has not been given a value, the characters @key{ESC} and
-@kbd{C-J} will terminate an incremental search.
+@kbd{C-j} terminate an incremental search.
@item keymap
@vindex keymap
reading an ambiguous key sequence
(one that can form a complete key sequence using the input read so far,
or can take additional input to complete a longer key sequence).
-If Readline doesn't receive any input within the timeout, it will use the
+If Readline doesn't receive any input within the timeout, it uses the
shorter but complete key sequence.
Readline uses this value to determine whether or not input is
available on the current input source (@code{rl_instream} by default).
The value is specified in milliseconds, so a value of 1000 means that
Readline will wait one second for additional input.
If this variable is set to a value less than or equal to zero, or to a
-non-numeric value, Readline will wait until another key is pressed to
+non-numeric value, Readline waits until another key is pressed to
decide which key sequence to complete.
The default value is @code{500}.
@item mark-modified-lines
@vindex mark-modified-lines
-When this variable is set to @samp{on}, Readline will to display an
+When this variable is set to @samp{on}, Readline displays an
asterisk (@samp{*}) at the start of history lines which have been modified.
This variable is @samp{off} by default.
@item output-meta
@vindex output-meta
-If set to @samp{on}, Readline will display characters with the
+If set to @samp{on}, Readline displays characters with the
eighth bit set directly rather than as a meta-prefixed escape
sequence.
-The default is @samp{off}, but Readline will set it to @samp{on}
+The default is @samp{off}, but Readline sets it to @samp{on}
if the locale contains characters whose encodings may include
bytes with the eighth bit set.
This variable is dependent on the @code{LC_CTYPE} locale category, and
@item page-completions
@vindex page-completions
-If set to @samp{on}, Readline uses an internal @code{more}-like pager
+If set to @samp{on}, Readline uses an internal pager resembling
+@i{more}(1)
to display a screenful of possible completions at a time.
This variable is @samp{on} by default.
See @code{bell-style}.
@item print-completions-horizontally
-If set to @samp{on}, Readline will display completions with matches
+If set to @samp{on}, Readline displays completions with matches
sorted horizontally in alphabetical order, rather than down the screen.
The default is @samp{off}.
@var{NEWLINE},
@var{RET},
@var{RETURN},
-@var{RUBOUT} (a destructive backspace),
+@var{RUBOUT}
+(a destructive backspace),
@var{SPACE},
@var{SPC},
and
@item forward-char (C-f)
Move forward a character.
+This may also be bound to the right arrow key on some keyboards.
@item backward-char (C-b)
Move back a character.
+This may also be bound to the left arrow key on some keyboards.
@item forward-word (M-f)
Move forward to the end of the next word.
@item previous-history (C-p)
Move `back' through the history list, fetching the previous command.
+This may also be bound to the up arrow key on some keyboards.
@item next-history (C-n)
Move `forward' through the history list, fetching the next command.
+This may also be bound to the down arrow key on some keyboards.
@item beginning-of-history (M-<)
Move to the first line in the history.
and write the list of possible completions to Readline's output stream
using the following format, writing information on separate lines:
-@example
-The number of matches;
-The word being completed;
-S:E, where S and E are the start and end offsets of the word
-in the readline line buffer; then
-Each match, one per line
-@end example
-
-If there are no matches, the first line will be 0, and this command will
-not print any output after the S:E.
+@itemize @bullet
+@item
+the number of matches @var{N};
+@item
+the word being completed;
+@item
+@var{S}:@var{E},
+where S and E are the start and end offsets of the word
+in the Readline line buffer; then
+@item
+each match, one per line
+@end itemize
+
+If there are no matches, the first line will be ``0'',
+and this command does not print any output after the @var{S}:@var{E}.
If there is only a single match, this prints a single line containing it.
If there is more than one match, this prints the common prefix of the
-matches, which may be empty, on the first line after the S:E,
+matches, which may be empty, on the first line after the @var{S}:@var{E},
then the matches on subsequent lines.
-In this case, N will include the first line with the common prefix.
+In this case, @var{N} will include the first line with the common prefix.
The user or application
should be able to accommodate the possibility of a blank line.
-The intent is that the user or application reads N lines after the line
-containing S:E to obtain the match list.
+The intent is that the user or application reads @var{N} lines after
+the line containing @var{S}:@var{E} to obtain the match list.
This command is unbound by default.
@item delete-char-or-list ()
@item skip-csi-sequence ()
Read enough characters to consume a multi-key sequence such as those
defined for keys like Home and End.
-CSI sequences begin with a Control Sequence Indicator (CSI), usually ESC-[.
+CSI sequences begin with a Control Sequence Indicator (CSI), usually
+@kbd{ESC [}.
If this sequence is bound to "\e[",
-keys producing CSI sequences will have no effect
-unless explicitly bound to a Readline command, instead of inserting
-stray characters into the editing buffer.
-This is unbound by default, but usually bound to ESC-[.
+keys producing CSI sequences have no effect
+unless explicitly bound to a Readline command,
+instead of inserting stray characters into the editing buffer.
+This is unbound by default, but usually bound to
+@kbd{ESC [}.
@item insert-comment (M-#)
Without a numeric argument, insert the value of the @code{comment-begin}
@section Programmable Completion
@cindex programmable completion
-When the user attempts word completion for an argument to a command for
-which a completion specification (a @dfn{compspec}) has been defined
-using the @code{complete} builtin (@pxref{Programmable Completion Builtins}),
+When the user attempts word completion
+for a command or an argument to a command for which a
+completion specification (a @dfn{compspec}) has been defined
+using the @code{complete} builtin
+(@pxref{Programmable Completion Builtins}),
Readline invokes the programmable completion facilities.
First, Bash identifies the command name.
If the command word is the empty string (completion attempted at the
beginning of an empty line), Bash uses any compspec defined with
the @option{-E} option to @code{complete}.
+The @option{-I} option to @code{complete}
+indicates that the command word is the first non-assignment word
+on the line, or after a command delimiter such as
+@samp{;} or @samp{|}.
+This usually indicates command name completion.
+
If the command word is a full pathname, Bash
searches for a compspec for the full pathname first.
If there is no compspec for the full pathname, Bash attempts to
find a compspec for the portion following the final slash.
-If those searches do not result in a compspec, any compspec defined with
-the @option{-D} option to @code{complete} is used as the default.
-If there is no default compspec, Bash attempts alias expansion
-on the command word as a final resort, and attempts to find a compspec
-for the command word from any successful expansion.
+If those searches do not result in a compspec,
+or if there is no compspec for the command word,
+Bash uses any compspec defined with
+the @option{-D} option to @code{complete} as the default.
+If there is no default compspec, Bash performs alias expansion
+on the command word as a final resort,
+and attempts to find a compspec for the command word
+resulting from any successful expansion.
If a compspec is not found, Bash performs its default completion
described above (@pxref{Commands For Completion}).
the list of matching words.
First, Bash performs the @var{actions} specified by the compspec.
-Only matches which are prefixed by the word being completed are
-returned.
+This only returns matches which are prefixes
+of the word being completed.
When the @option{-f} or @option{-d} option is used for filename or
directory name completion, Bash uses shell the variable @env{FIGNORE}
to filter the matches.
@xref{Bash Variables}, for a description of @env{FIGNORE}.
-Any completions specified by a filename expansion pattern to the
-@option{-G} option are generated next.
+Next, programmable completion generates matches
+specified by a pathname expansion pattern
+supplied as an argument to the
+@option{-G} option.
The words generated by the pattern need not match the word being completed.
Bash uses the @env{FIGNORE}
variable to filter the matches, but does not use the
the string specified as the argument to the @option{-W} option.
The string is first split using the characters in the @env{IFS}
special variable as delimiters.
-Shell quoting is honored within the string, in order to provide a
+This honors shell quoting within the string, in order to provide a
mechanism for the words to contain shell metacharacters or characters
in the value of @env{IFS}.
Each word is then expanded using
After these matches have been generated,
Bash executes any shell function or command
-any shell function or command
specified with the @option{-F} and @option{-C} options.
-When the command or function is invoked, the @env{COMP_LINE},
-@env{COMP_POINT}, @env{COMP_KEY}, and @env{COMP_TYPE} variables are
-assigned values as described above (@pxref{Bash Variables}).
-If a shell function is being invoked, the @env{COMP_WORDS} and
-@env{COMP_CWORD} variables are also set.
+When the command or function is invoked, Bash
+assigns values to the
+@env{COMP_LINE},
+@env{COMP_POINT},
+@env{COMP_KEY},
+and
+@env{COMP_TYPE}
+variables as described above
+(@pxref{Bash Variables}).
+If a shell function is being invoked, Bash
+also sets the
+@env{COMP_WORDS}
+and
+@env{COMP_CWORD}
+variables.
When the function or command is invoked,
the first argument ($1) is the name of the command whose arguments
are being completed,
completed on the current command line.
There is no filtering of the generated completions against the
word being completed;
-the function or command has complete freedom in generating the matches.
+the function or command has complete freedom in generating the matches
+and they do not need to match a prefix of the word.
Any function specified with @option{-F} is invoked first.
The function may use any of the shell facilities, including the
in an environment equivalent to command substitution.
It should print a list of completions, one per line, to
the standard output.
-Backslash may be used to escape a newline, if necessary.
+Backslash will escape a newline, if necessary.
These are added to the set of possible completions.
-After all of the possible completions are generated, any filter
-specified with the @option{-X} option is applied to the list.
+After generating all of the possible completions,
+Bash applies any filter
+specified with the @option{-X} option to the completions in the list.
The filter is a pattern as used for pathname expansion; a @samp{&}
in the pattern is replaced with the text of the word being completed.
A literal @samp{&} may be escaped with a backslash; the backslash
is removed before attempting a match.
-Any completion that matches the pattern will be removed from the list.
-A leading @samp{!} negates the pattern; in this case any completion
-not matching the pattern will be removed.
-If the @code{nocasematch} shell option
-(see the description of @code{shopt} in @ref{The Shopt Builtin})
-is enabled, the match is performed without regard to the case
+Any completion that matches the pattern is removed from the list.
+A leading @samp{!} negates the pattern;
+in this case Bash removes
+any completion that does not match the pattern.
+If the @code{nocasematch} shell option is enabled
+(see the description of @code{shopt} in @ref{The Shopt Builtin}),
+Bash performs the match without regard to the case
of alphabetic characters.
-Finally, any prefix and suffix specified with the @option{-P} and @option{-S}
-options are added to each member of the completion list, and the result is
-returned to Readline as the list of possible completions.
+Finally, programmable completion adds
+any prefix and suffix specified with the
+@option{-P} and @option{-S}
+options, respectively, to each completion,
+and returns the result
+to Readline as the list of possible completions.
If the previously-applied actions do not generate any matches, and the
@option{-o dirnames} option was supplied to @code{complete} when the
The default Bash completions and the Readline default
of filename completion are disabled.
If the @option{-o bashdefault} option was supplied to @code{complete} when
-the compspec was defined, if the compspec generates no matches,
+the compspec was defined, and the compspec generates no matches,
Bash attempts its default completions.
-If the @option{-o default} option was supplied to @code{complete} when the
-compspec was defined, programmable completion will perform
-Readline's default completion
-if the compspec (and, if attempted, the default Bash completions)
-generate no matches.
-
-When a compspec indicates that directory name completion is desired,
-the programmable completion functions force Readline to append a slash
-to completed names which are symbolic links to directories, subject to
-the value of the @var{mark-directories} Readline variable, regardless
-of the setting of the @var{mark-symlinked-directories} Readline variable.
+If the compspec and, if attempted, the default Bash completions
+generate no matches,
+and the @option{-o default} option was supplied to
+@code{complete} when the compspec was defined,
+programmable completion performs Readline's default completion.
+
+The options supplied to @code{complete} and @code{compopt}
+can control how Readline treats the completions.
+For instance, the @option{-o fullquote} option tells Readline
+to quote the matches as if they were filenames.
+See the description of @code{complete}
+(@pxref{Programmable Completion Builtins})
+for details.
+
+When a compspec indicates that it wants directory name completion,
+the programmable completion functions force Readline
+to append a slash to completed names which are symbolic links
+to directories, subject to the value of the
+@var{mark-directories} Readline variable,
+regardless of the setting of the
+@var{mark-symlinked-directories} Readline variable.
There is some support for dynamically modifying completions.
This is most useful when used in combination with a default completion
attempted (supplied as the first argument when the function is executed),
programmable completion restarts from the beginning, with an
attempt to find a new compspec for that command.
-This allows a set of completions to be built dynamically as completion
-is attempted, rather than being loaded all at once.
+This can be used to build a set of completions dynamically
+as completion is attempted, rather than loading them all at once.
For instance, assuming that there is a library of compspecs, each kept in a
file corresponding to the name of the command, the following default
May also be specified as @option{-e}.
@item file
-File names.
+File and directory names, similar to Readline's filename completion.
May also be specified as @option{-f}.
@item function
<HTML>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<!-- Created on November, 1 2024 by texi2html 1.64 -->
+<!-- Created on December, 2 2024 by texi2html 1.64 -->
<!--
Written by: Lionel Cons <Lionel.Cons@cern.ch> (original author)
Karl Berry <karl@freefriends.org>
The characters present in the value of the <CODE>isearch-terminators</CODE> variable
are used to terminate an incremental search.
If that variable has not been assigned a value, the <KBD>ESC</KBD> and
-<KBD>C-J</KBD> characters will terminate an incremental search.
-<KBD>C-g</KBD> will abort an incremental search and restore the original line.
+<KBD>C-j</KBD> characters terminate an incremental search.
+<KBD>C-g</KBD> aborts an incremental search and restores the original line.
When the search is terminated, the history entry containing the
search string becomes the current line.
</P><P>
To find other matching entries in the history list, type <KBD>C-r</KBD> or
<KBD>C-s</KBD> as appropriate.
-This will search backward or forward in the history for the next
+This searches backward or forward in the history for the next
entry matching the search string typed so far.
-Any other key sequence bound to a Readline command will terminate
-the search and execute that command.
-For instance, a <KBD>RET</KBD> will terminate the search and accept
+Any other key sequence bound to a Readline command terminates
+the search and executes that command.
+For instance, a <KBD>RET</KBD> terminates the search and accepts
the line, thereby executing the command from the history list.
A movement command will terminate the search, make the last line found
the current line, and begin editing.
<TT>`/etc/inputrc'</TT>.
</P><P>
-When a program which uses the Readline library starts up, Readline reads
+When a program that uses the Readline library starts up, Readline reads
the init file and sets any variables and key bindings it contains.
</P><P>
when performing completion.
The value is ignored if it is less than 0 or greater than the terminal
screen width.
-A value of 0 will cause matches to be displayed one per line.
+A value of 0 causes matches to be displayed one per line.
The default value is -1.
<P>
The number of possible completions that determines when the user is asked
whether the list of possibilities should be displayed.
If the number of possible completions is greater than
-or equal to this value, Readline will ask whether or not
-the user wishes to view them;
+or equal to this value,
+Readline asks whether or not the user wishes to view them;
otherwise, Readline simply lists the completions.
This variable must be set to an integer value greater than or equal to zero.
A zero value means Readline should never ask; negative
<DT><CODE>convert-meta</CODE>
<DD><A NAME="IDX18"></A>
-If set to <SAMP>`on'</SAMP>, Readline will convert characters it reads
+If set to <SAMP>`on'</SAMP>, Readline converts characters it reads
that have the eighth bit set to an ASCII key sequence by
clearing the eighth bit and prefixing an <KBD>ESC</KBD> character,
converting them to a meta-prefixed key sequence.
-The default value is <SAMP>`on'</SAMP>, but Readline will set it to <SAMP>`off'</SAMP>
+The default value is <SAMP>`on'</SAMP>, but Readline sets it to <SAMP>`off'</SAMP>
if the locale contains
characters whose encodings may include bytes with the eighth bit set.
This variable is dependent on the <CODE>LC_CTYPE</CODE> locale category, and
<DT><CODE>disable-completion</CODE>
<DD><A NAME="IDX19"></A>
-If set to <SAMP>`On'</SAMP>, Readline will inhibit word completion.
-Completion characters will be inserted into the line as if they
+If set to <SAMP>`On'</SAMP>, Readline inhibits word completion.
+Completion characters are inserted into the line as if they
had been mapped to <CODE>self-insert</CODE>.
The default is <SAMP>`off'</SAMP>.
<P>
<DT><CODE>enable-keypad</CODE>
<DD><A NAME="IDX25"></A>
-When set to <SAMP>`on'</SAMP>, Readline will try to enable the application
+When set to <SAMP>`on'</SAMP>, Readline tries to enable the application
keypad when it is called.
Some systems need this to enable the arrow keys.
The default is <SAMP>`off'</SAMP>.
<DT><CODE>enable-meta-key</CODE>
<DD><A NAME="IDX26"></A>
-When set to <SAMP>`on'</SAMP>, Readline will try to enable any meta
+When set to <SAMP>`on'</SAMP>, Readline tries to enable any meta
modifier key the terminal claims to support when it is called.
On many terminals, the Meta key is used to send eight-bit characters;
this variable checks for the terminal capability that indicates the
<DT><CODE>input-meta</CODE>
<DD><A NAME="IDX32"></A>
<A NAME="IDX33"></A>
-If set to <SAMP>`on'</SAMP>, Readline will enable eight-bit input (that is, it
-will not clear the eighth bit in the characters it reads),
+If set to <SAMP>`on'</SAMP>, Readline enables eight-bit input (that is, it
+does not clear the eighth bit in the characters it reads),
regardless of what the terminal claims it can support.
-The default value is <SAMP>`off'</SAMP>, but Readline will set it to <SAMP>`on'</SAMP>
+The default value is <SAMP>`off'</SAMP>, but Readline sets it to <SAMP>`on'</SAMP>
if the locale contains characters whose encodings may include bytes
with the eighth bit set.
This variable is dependent on the <CODE>LC_CTYPE</CODE> locale category, and
The string of characters that should terminate an incremental search without
subsequently executing the character as a command (see section <A HREF="rluserman.html#SEC8">1.2.5 Searching for Commands in the History</A>).
If this variable has not been given a value, the characters <KBD>ESC</KBD> and
-<KBD>C-J</KBD> will terminate an incremental search.
+<KBD>C-j</KBD> terminate an incremental search.
<P>
<DT><CODE>keymap</CODE>
reading an ambiguous key sequence
(one that can form a complete key sequence using the input read so far,
or can take additional input to complete a longer key sequence).
-If Readline doesn't receive any input within the timeout, it will use the
+If Readline doesn't receive any input within the timeout, it uses the
shorter but complete key sequence.
Readline uses this value to determine whether or not input is
available on the current input source (<CODE>rl_instream</CODE> by default).
The value is specified in milliseconds, so a value of 1000 means that
Readline will wait one second for additional input.
If this variable is set to a value less than or equal to zero, or to a
-non-numeric value, Readline will wait until another key is pressed to
+non-numeric value, Readline waits until another key is pressed to
decide which key sequence to complete.
The default value is <CODE>500</CODE>.
<P>
<DT><CODE>mark-modified-lines</CODE>
<DD><A NAME="IDX36"></A>
-When this variable is set to <SAMP>`on'</SAMP>, Readline will to display an
+When this variable is set to <SAMP>`on'</SAMP>, Readline displays an
asterisk (<SAMP>`*'</SAMP>) at the start of history lines which have been modified.
This variable is <SAMP>`off'</SAMP> by default.
<P>
<DT><CODE>output-meta</CODE>
<DD><A NAME="IDX40"></A>
-If set to <SAMP>`on'</SAMP>, Readline will display characters with the
+If set to <SAMP>`on'</SAMP>, Readline displays characters with the
eighth bit set directly rather than as a meta-prefixed escape
sequence.
-The default is <SAMP>`off'</SAMP>, but Readline will set it to <SAMP>`on'</SAMP>
+The default is <SAMP>`off'</SAMP>, but Readline sets it to <SAMP>`on'</SAMP>
if the locale contains characters whose encodings may include
bytes with the eighth bit set.
This variable is dependent on the <CODE>LC_CTYPE</CODE> locale category, and
<DT><CODE>page-completions</CODE>
<DD><A NAME="IDX41"></A>
-If set to <SAMP>`on'</SAMP>, Readline uses an internal <CODE>more</CODE>-like pager
+If set to <SAMP>`on'</SAMP>, Readline uses an internal pager resembling
+<I>more</I>(1)
to display a screenful of possible completions at a time.
This variable is <SAMP>`on'</SAMP> by default.
<P>
<P>
<DT><CODE>print-completions-horizontally</CODE>
-<DD>If set to <SAMP>`on'</SAMP>, Readline will display completions with matches
+<DD>If set to <SAMP>`on'</SAMP>, Readline displays completions with matches
sorted horizontally in alphabetical order, rather than down the screen.
The default is <SAMP>`off'</SAMP>.
<P>
<VAR>NEWLINE</VAR>,
<VAR>RET</VAR>,
<VAR>RETURN</VAR>,
-<VAR>RUBOUT</VAR> (a destructive backspace),
+<VAR>RUBOUT</VAR>
+(a destructive backspace),
<VAR>SPACE</VAR>,
<VAR>SPC</VAR>,
and
<DT><CODE>forward-char (C-f)</CODE>
<DD><A NAME="IDX56"></A>
Move forward a character.
+This may also be bound to the right arrow key on some keyboards.
<P>
<A NAME="IDX57"></A>
<DT><CODE>backward-char (C-b)</CODE>
<DD><A NAME="IDX58"></A>
Move back a character.
+This may also be bound to the left arrow key on some keyboards.
<P>
<A NAME="IDX59"></A>
<DT><CODE>previous-history (C-p)</CODE>
<DD><A NAME="IDX76"></A>
Move `back' through the history list, fetching the previous command.
+This may also be bound to the up arrow key on some keyboards.
<P>
<A NAME="IDX77"></A>
<DT><CODE>next-history (C-n)</CODE>
<DD><A NAME="IDX78"></A>
Move `forward' through the history list, fetching the next command.
+This may also be bound to the down arrow key on some keyboards.
<P>
<A NAME="IDX79"></A>
<P>
<A NAME="IDX179"></A>
-<DT><CODE>delete-char-or-list ()</CODE>
+<DT><CODE>export-completions ()</CODE>
<DD><A NAME="IDX180"></A>
+Perform completion on the word before point as described above
+and write the list of possible completions to Readline's output stream
+using the following format, writing information on separate lines:
+<P>
+
+<UL>
+<A NAME="IDX181"></A>
+<LI>
+the number of matches <VAR>N</VAR>;
+<A NAME="IDX182"></A>
+<LI>
+the word being completed;
+<A NAME="IDX183"></A>
+<LI>
+<VAR>S</VAR>:<VAR>E</VAR>,
+where S and E are the start and end offsets of the word
+in the Readline line buffer; then
+<A NAME="IDX184"></A>
+<LI>
+each match, one per line
+</UL>
+<P>
+
+If there are no matches, the first line will be "0",
+and this command does not print any output after the <VAR>S</VAR>:<VAR>E</VAR>.
+If there is only a single match, this prints a single line containing it.
+If there is more than one match, this prints the common prefix of the
+matches, which may be empty, on the first line after the <VAR>S</VAR>:<VAR>E</VAR>,
+then the matches on subsequent lines.
+In this case, <VAR>N</VAR> will include the first line with the common prefix.
+</P><P>
+
+The user or application
+should be able to accommodate the possibility of a blank line.
+The intent is that the user or application reads <VAR>N</VAR> lines after
+the line containing <VAR>S</VAR>:<VAR>E</VAR> to obtain the match list.
+This command is unbound by default.
+</P><P>
+
+<A NAME="IDX185"></A>
+<DT><CODE>delete-char-or-list ()</CODE>
+<DD><A NAME="IDX186"></A>
Deletes the character under the cursor if not at the beginning or
end of the line (like <CODE>delete-char</CODE>).
At the end of the line, it behaves identically to <CODE>possible-completions</CODE>.
<!--docid::SEC20::-->
<DL COMPACT>
-<A NAME="IDX181"></A>
+<A NAME="IDX187"></A>
<DT><CODE>start-kbd-macro (C-x ()</CODE>
-<DD><A NAME="IDX182"></A>
+<DD><A NAME="IDX188"></A>
Begin saving the characters typed into the current keyboard macro.
<P>
-<A NAME="IDX183"></A>
+<A NAME="IDX189"></A>
<DT><CODE>end-kbd-macro (C-x ))</CODE>
-<DD><A NAME="IDX184"></A>
+<DD><A NAME="IDX190"></A>
Stop saving the characters typed into the current keyboard macro
and save the definition.
<P>
-<A NAME="IDX185"></A>
+<A NAME="IDX191"></A>
<DT><CODE>call-last-kbd-macro (C-x e)</CODE>
-<DD><A NAME="IDX186"></A>
+<DD><A NAME="IDX192"></A>
Re-execute the last keyboard macro defined, by making the characters
in the macro appear as if typed at the keyboard.
<P>
-<A NAME="IDX187"></A>
+<A NAME="IDX193"></A>
<DT><CODE>print-last-kbd-macro ()</CODE>
-<DD><A NAME="IDX188"></A>
+<DD><A NAME="IDX194"></A>
Print the last keyboard macro defined in a format suitable for the
<VAR>inputrc</VAR> file.
<P>
<!--docid::SEC21::-->
<DL COMPACT>
-<A NAME="IDX189"></A>
+<A NAME="IDX195"></A>
<DT><CODE>re-read-init-file (C-x C-r)</CODE>
-<DD><A NAME="IDX190"></A>
+<DD><A NAME="IDX196"></A>
Read in the contents of the <VAR>inputrc</VAR> file, and incorporate
any bindings or variable assignments found there.
<P>
-<A NAME="IDX191"></A>
+<A NAME="IDX197"></A>
<DT><CODE>abort (C-g)</CODE>
-<DD><A NAME="IDX192"></A>
+<DD><A NAME="IDX198"></A>
Abort the current editing command and
ring the terminal's bell (subject to the setting of
<CODE>bell-style</CODE>).
<P>
-<A NAME="IDX193"></A>
+<A NAME="IDX199"></A>
<DT><CODE>do-lowercase-version (M-A, M-B, M-<VAR>x</VAR>, <small>...</small>)</CODE>
-<DD><A NAME="IDX194"></A>
+<DD><A NAME="IDX200"></A>
If the metafied character <VAR>x</VAR> is upper case, run the command
that is bound to the corresponding metafied lower case character.
The behavior is undefined if <VAR>x</VAR> is already lower case.
<P>
-<A NAME="IDX195"></A>
+<A NAME="IDX201"></A>
<DT><CODE>prefix-meta (<KBD>ESC</KBD>)</CODE>
-<DD><A NAME="IDX196"></A>
+<DD><A NAME="IDX202"></A>
Metafy the next character typed.
Typing <SAMP>`<KBD>ESC</KBD> f'</SAMP> is equivalent to typing <KBD>M-f</KBD>.
<P>
-<A NAME="IDX197"></A>
+<A NAME="IDX203"></A>
<DT><CODE>undo (C-_ or C-x C-u)</CODE>
-<DD><A NAME="IDX198"></A>
+<DD><A NAME="IDX204"></A>
Incremental undo, separately remembered for each line.
<P>
-<A NAME="IDX199"></A>
+<A NAME="IDX205"></A>
<DT><CODE>revert-line (M-r)</CODE>
-<DD><A NAME="IDX200"></A>
+<DD><A NAME="IDX206"></A>
Undo all changes made to this line.
This is like executing the <CODE>undo</CODE>
command enough times to get back to the initial state.
<P>
-<A NAME="IDX201"></A>
+<A NAME="IDX207"></A>
<DT><CODE>tilde-expand (M-~)</CODE>
-<DD><A NAME="IDX202"></A>
+<DD><A NAME="IDX208"></A>
Perform tilde expansion on the current word.
<P>
-<A NAME="IDX203"></A>
+<A NAME="IDX209"></A>
<DT><CODE>set-mark (C-@)</CODE>
-<DD><A NAME="IDX204"></A>
+<DD><A NAME="IDX210"></A>
Set the mark to the point.
If a numeric argument is supplied, set the mark to that position.
<P>
-<A NAME="IDX205"></A>
+<A NAME="IDX211"></A>
<DT><CODE>exchange-point-and-mark (C-x C-x)</CODE>
-<DD><A NAME="IDX206"></A>
+<DD><A NAME="IDX212"></A>
Swap the point with the mark.
Set the current cursor position to the saved position,
then set the mark to the old cursor position.
<P>
-<A NAME="IDX207"></A>
+<A NAME="IDX213"></A>
<DT><CODE>character-search (C-])</CODE>
-<DD><A NAME="IDX208"></A>
+<DD><A NAME="IDX214"></A>
Read a character and move point to the next occurrence of that character.
A negative argument searches for previous occurrences.
<P>
-<A NAME="IDX209"></A>
+<A NAME="IDX215"></A>
<DT><CODE>character-search-backward (M-C-])</CODE>
-<DD><A NAME="IDX210"></A>
+<DD><A NAME="IDX216"></A>
Read a character and move point to the previous occurrence of that character.
A negative argument searches for subsequent occurrences.
<P>
-<A NAME="IDX211"></A>
+<A NAME="IDX217"></A>
<DT><CODE>skip-csi-sequence ()</CODE>
-<DD><A NAME="IDX212"></A>
+<DD><A NAME="IDX218"></A>
Read enough characters to consume a multi-key sequence such as those
defined for keys like Home and End.
-CSI sequences begin with a Control Sequence Indicator (CSI), usually ESC-[.
+CSI sequences begin with a Control Sequence Indicator (CSI), usually
+<KBD>ESC [</KBD>.
If this sequence is bound to "\e[",
-keys producing CSI sequences will have no effect
-unless explicitly bound to a Readline command, instead of inserting
-stray characters into the editing buffer.
-This is unbound by default, but usually bound to ESC-[.
+keys producing CSI sequences have no effect
+unless explicitly bound to a Readline command,
+instead of inserting stray characters into the editing buffer.
+This is unbound by default, but usually bound to
+<KBD>ESC [</KBD>.
<P>
-<A NAME="IDX213"></A>
+<A NAME="IDX219"></A>
<DT><CODE>insert-comment (M-#)</CODE>
-<DD><A NAME="IDX214"></A>
+<DD><A NAME="IDX220"></A>
Without a numeric argument, insert the value of the <CODE>comment-begin</CODE>
variable at the beginning of the current line.
If a numeric argument is supplied, this command acts as a toggle: if
In either case, the line is accepted as if a newline had been typed.
<P>
-<A NAME="IDX215"></A>
+<A NAME="IDX221"></A>
<DT><CODE>dump-functions ()</CODE>
-<DD><A NAME="IDX216"></A>
+<DD><A NAME="IDX222"></A>
Print all of the functions and their key bindings
to the Readline output stream.
If a numeric argument is supplied,
This command is unbound by default.
<P>
-<A NAME="IDX217"></A>
+<A NAME="IDX223"></A>
<DT><CODE>dump-variables ()</CODE>
-<DD><A NAME="IDX218"></A>
+<DD><A NAME="IDX224"></A>
Print all of the settable variables and their values
to the Readline output stream.
If a numeric argument is supplied,
This command is unbound by default.
<P>
-<A NAME="IDX219"></A>
+<A NAME="IDX225"></A>
<DT><CODE>dump-macros ()</CODE>
-<DD><A NAME="IDX220"></A>
+<DD><A NAME="IDX226"></A>
Print all of the Readline key sequences bound to macros and the
strings they output
to the Readline output stream.
This command is unbound by default.
<P>
-<A NAME="IDX221"></A>
+<A NAME="IDX227"></A>
<DT><CODE>execute-named-command (M-x)</CODE>
-<DD><A NAME="IDX222"></A>
+<DD><A NAME="IDX228"></A>
Read a bindable Readline command name from the input and execute the
function to which it's bound, as if the key sequence to which it was
bound appeared in the input.
argument to the function it executes.
<P>
-<A NAME="IDX223"></A>
+<A NAME="IDX229"></A>
<DT><CODE>emacs-editing-mode (C-e)</CODE>
-<DD><A NAME="IDX224"></A>
+<DD><A NAME="IDX230"></A>
When in <CODE>vi</CODE> command mode, this causes a switch to <CODE>emacs</CODE>
editing mode.
<P>
-<A NAME="IDX225"></A>
+<A NAME="IDX231"></A>
<DT><CODE>vi-editing-mode (M-C-j)</CODE>
-<DD><A NAME="IDX226"></A>
+<DD><A NAME="IDX232"></A>
When in <CODE>emacs</CODE> editing mode, this causes a switch to <CODE>vi</CODE>
editing mode.
<P>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="rluserman.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H1>About this document</H1>
-This document was generated by <I>Chet Ramey</I> on <I>November, 1 2024</I>
+This document was generated by <I>Chet Ramey</I> on <I>December, 2 2024</I>
using <A HREF="http://www.mathematik.uni-kl.de/~obachman/Texi2html
"><I>texi2html</I></A>
<P></P>
<BR>
<FONT SIZE="-1">
This document was generated
-by <I>Chet Ramey</I> on <I>November, 1 2024</I>
+by <I>Chet Ramey</I> on <I>December, 2 2024</I>
using <A HREF="http://www.mathematik.uni-kl.de/~obachman/Texi2html
"><I>texi2html</I></A>
rluserman.texi.
This manual describes the end user interface of the GNU Readline Library
-(version 8.3, 15 November 2024), a library which aids in the consistency
+(version 8.3, 29 November 2024), a library which aids in the consistency
of user interface across discrete programs which provide a command line
interface.
string. Typing ‘C-s’ searches forward through the history. The
characters present in the value of the ‘isearch-terminators’ variable
are used to terminate an incremental search. If that variable has not
-been assigned a value, the <ESC> and ‘C-J’ characters will terminate an
-incremental search. ‘C-g’ will abort an incremental search and restore
-the original line. When the search is terminated, the history entry
+been assigned a value, the <ESC> and ‘C-j’ characters terminate an
+incremental search. ‘C-g’ aborts an incremental search and restores the
+original line. When the search is terminated, the history entry
containing the search string becomes the current line.
To find other matching entries in the history list, type ‘C-r’ or
-‘C-s’ as appropriate. This will search backward or forward in the
-history for the next entry matching the search string typed so far. Any
-other key sequence bound to a Readline command will terminate the search
-and execute that command. For instance, a <RET> will terminate the
-search and accept the line, thereby executing the command from the
-history list. A movement command will terminate the search, make the
-last line found the current line, and begin editing.
+‘C-s’ as appropriate. This searches backward or forward in the history
+for the next entry matching the search string typed so far. Any other
+key sequence bound to a Readline command terminates the search and
+executes that command. For instance, a <RET> terminates the search and
+accepts the line, thereby executing the command from the history list.
+A movement command will terminate the search, make the last line found
+the current line, and begin editing.
Readline remembers the last incremental search string. If two ‘C-r’s
are typed without any intervening characters defining a new search
is ‘~/.inputrc’. If that file does not exist or cannot be read,
Readline looks for ‘/etc/inputrc’.
- When a program which uses the Readline library starts up, Readline
+ When a program that uses the Readline library starts up, Readline
reads the init file and sets any variables and key bindings it contains.
In addition, the ‘C-x C-r’ command re-reads this init file, thus
The number of screen columns used to display possible matches
when performing completion. The value is ignored if it is
less than 0 or greater than the terminal screen width. A
- value of 0 will cause matches to be displayed one per line.
- The default value is -1.
+ value of 0 causes matches to be displayed one per line. The
+ default value is -1.
‘completion-ignore-case’
If set to ‘on’, Readline performs filename matching and
The number of possible completions that determines when the
user is asked whether the list of possibilities should be
displayed. If the number of possible completions is greater
- than or equal to this value, Readline will ask whether or not
- the user wishes to view them; otherwise, Readline simply lists
- the completions. This variable must be set to an integer
- value greater than or equal to zero. A zero value means
- Readline should never ask; negative values are treated as
- zero. The default limit is ‘100’.
+ than or equal to this value, Readline asks whether or not the
+ user wishes to view them; otherwise, Readline simply lists the
+ completions. This variable must be set to an integer value
+ greater than or equal to zero. A zero value means Readline
+ should never ask; negative values are treated as zero. The
+ default limit is ‘100’.
‘convert-meta’
- If set to ‘on’, Readline will convert characters it reads that
+ If set to ‘on’, Readline converts characters it reads that
have the eighth bit set to an ASCII key sequence by clearing
the eighth bit and prefixing an <ESC> character, converting
them to a meta-prefixed key sequence. The default value is
- ‘on’, but Readline will set it to ‘off’ if the locale contains
+ ‘on’, but Readline sets it to ‘off’ if the locale contains
characters whose encodings may include bytes with the eighth
bit set. This variable is dependent on the ‘LC_CTYPE’ locale
category, and may change if the locale changes. This variable
‘force-meta-prefix’ below.
‘disable-completion’
- If set to ‘On’, Readline will inhibit word completion.
- Completion characters will be inserted into the line as if
- they had been mapped to ‘self-insert’. The default is ‘off’.
+ If set to ‘On’, Readline inhibits word completion. Completion
+ characters are inserted into the line as if they had been
+ mapped to ‘self-insert’. The default is ‘off’.
‘echo-control-characters’
When set to ‘on’, on operating systems that indicate they
appearing in the pasted text. The default is ‘On’.
‘enable-keypad’
- When set to ‘on’, Readline will try to enable the application
+ When set to ‘on’, Readline tries to enable the application
keypad when it is called. Some systems need this to enable
the arrow keys. The default is ‘off’.
‘enable-meta-key’
- When set to ‘on’, Readline will try to enable any meta
- modifier key the terminal claims to support when it is called.
- On many terminals, the Meta key is used to send eight-bit
- characters; this variable checks for the terminal capability
- that indicates the terminal can enable and disable a mode that
- sets the eighth bit of a character (0200) if the Meta key is
- held down when the character is typed (a meta character). The
+ When set to ‘on’, Readline tries to enable any meta modifier
+ key the terminal claims to support when it is called. On many
+ terminals, the Meta key is used to send eight-bit characters;
+ this variable checks for the terminal capability that
+ indicates the terminal can enable and disable a mode that sets
+ the eighth bit of a character (0200) if the Meta key is held
+ down when the character is typed (a meta character). The
default is ‘on’.
‘expand-tilde’
default, this variable is set to ‘off’.
‘input-meta’
- If set to ‘on’, Readline will enable eight-bit input (that is,
- it will not clear the eighth bit in the characters it reads),
+ If set to ‘on’, Readline enables eight-bit input (that is, it
+ does not clear the eighth bit in the characters it reads),
regardless of what the terminal claims it can support. The
- default value is ‘off’, but Readline will set it to ‘on’ if
- the locale contains characters whose encodings may include
- bytes with the eighth bit set. This variable is dependent on
- the ‘LC_CTYPE’ locale category, and its value may change if
- the locale changes. The name ‘meta-flag’ is a synonym for
+ default value is ‘off’, but Readline sets it to ‘on’ if the
+ locale contains characters whose encodings may include bytes
+ with the eighth bit set. This variable is dependent on the
+ ‘LC_CTYPE’ locale category, and its value may change if the
+ locale changes. The name ‘meta-flag’ is a synonym for
‘input-meta’.
‘isearch-terminators’
The string of characters that should terminate an incremental
search without subsequently executing the character as a
command (*note Searching::). If this variable has not been
- given a value, the characters <ESC> and ‘C-J’ will terminate
- an incremental search.
+ given a value, the characters <ESC> and ‘C-j’ terminate an
+ incremental search.
‘keymap’
Sets Readline's idea of the current keymap for key binding
reading an ambiguous key sequence (one that can form a
complete key sequence using the input read so far, or can take
additional input to complete a longer key sequence). If
- Readline doesn't receive any input within the timeout, it will
- use the shorter but complete key sequence. Readline uses this
+ Readline doesn't receive any input within the timeout, it uses
+ the shorter but complete key sequence. Readline uses this
value to determine whether or not input is available on the
current input source (‘rl_instream’ by default). The value is
specified in milliseconds, so a value of 1000 means that
Readline will wait one second for additional input. If this
variable is set to a value less than or equal to zero, or to a
- non-numeric value, Readline will wait until another key is
- pressed to decide which key sequence to complete. The default
- value is ‘500’.
+ non-numeric value, Readline waits until another key is pressed
+ to decide which key sequence to complete. The default value
+ is ‘500’.
‘mark-directories’
If set to ‘on’, completed directory names have a slash
appended. The default is ‘on’.
‘mark-modified-lines’
- When this variable is set to ‘on’, Readline will to display an
+ When this variable is set to ‘on’, Readline displays an
asterisk (‘*’) at the start of history lines which have been
modified. This variable is ‘off’ by default.
cycling through the list. The default is ‘off’.
‘output-meta’
- If set to ‘on’, Readline will display characters with the
- eighth bit set directly rather than as a meta-prefixed escape
- sequence. The default is ‘off’, but Readline will set it to
- ‘on’ if the locale contains characters whose encodings may
- include bytes with the eighth bit set. This variable is
- dependent on the ‘LC_CTYPE’ locale category, and its value may
- change if the locale changes.
+ If set to ‘on’, Readline displays characters with the eighth
+ bit set directly rather than as a meta-prefixed escape
+ sequence. The default is ‘off’, but Readline sets it to ‘on’
+ if the locale contains characters whose encodings may include
+ bytes with the eighth bit set. This variable is dependent on
+ the ‘LC_CTYPE’ locale category, and its value may change if
+ the locale changes.
‘page-completions’
- If set to ‘on’, Readline uses an internal ‘more’-like pager to
- display a screenful of possible completions at a time. This
- variable is ‘on’ by default.
+ If set to ‘on’, Readline uses an internal pager resembling
+ more(1) to display a screenful of possible completions at a
+ time. This variable is ‘on’ by default.
‘prefer-visible-bell’
See ‘bell-style’.
‘print-completions-horizontally’
- If set to ‘on’, Readline will display completions with matches
+ If set to ‘on’, Readline displays completions with matches
sorted horizontally in alphabetical order, rather than down
the screen. The default is ‘off’.
on some keyboards.
‘forward-char (C-f)’
- Move forward a character.
+ Move forward a character. This may also be bound to the right
+ arrow key on some keyboards.
‘backward-char (C-b)’
- Move back a character.
+ Move back a character. This may also be bound to the left arrow
+ key on some keyboards.
‘forward-word (M-f)’
Move forward to the end of the next word. Words are composed of
‘previous-history (C-p)’
Move 'back' through the history list, fetching the previous
- command.
+ command. This may also be bound to the up arrow key on some
+ keyboards.
‘next-history (C-n)’
Move 'forward' through the history list, fetching the next command.
+ This may also be bound to the down arrow key on some keyboards.
‘beginning-of-history (M-<)’
Move to the first line in the history.
write the list of possible completions to Readline's output stream
using the following format, writing information on separate lines:
- The number of matches;
- The word being completed;
- S:E, where S and E are the start and end offsets of the word
- in the readline line buffer; then
- Each match, one per line
+ • the number of matches N;
+ • the word being completed;
+ • S:E, where S and E are the start and end offsets of the word
+ in the Readline line buffer; then
+ • each match, one per line
- If there are no matches, the first line will be 0, and this command
- will not print any output after the S:E. If there is only a single
- match, this prints a single line containing it. If there is more
- than one match, this prints the common prefix of the matches, which
- may be empty, on the first line after the S:E, then the matches on
- subsequent lines. In this case, N will include the first line with
- the common prefix.
+ If there are no matches, the first line will be "0", and this
+ command does not print any output after the S:E. If there is only
+ a single match, this prints a single line containing it. If there
+ is more than one match, this prints the common prefix of the
+ matches, which may be empty, on the first line after the S:E, then
+ the matches on subsequent lines. In this case, N will include the
+ first line with the common prefix.
The user or application should be able to accommodate the
possibility of a blank line. The intent is that the user or
‘skip-csi-sequence ()’
Read enough characters to consume a multi-key sequence such as
those defined for keys like Home and End. CSI sequences begin with
- a Control Sequence Indicator (CSI), usually ESC-[. If this
- sequence is bound to "\e[", keys producing CSI sequences will have
- no effect unless explicitly bound to a Readline command, instead of
+ a Control Sequence Indicator (CSI), usually ‘ESC [’. If this
+ sequence is bound to "\e[", keys producing CSI sequences have no
+ effect unless explicitly bound to a Readline command, instead of
inserting stray characters into the editing buffer. This is
- unbound by default, but usually bound to ESC-[.
+ unbound by default, but usually bound to ‘ESC [’.
‘insert-comment (M-#)’
Without a numeric argument, insert the value of the ‘comment-begin’
Node: Readline Killing Commands\7f8447
Node: Readline Arguments\7f10475
Node: Searching\7f11537
-Node: Readline Init File\7f13769
-Node: Readline Init File Syntax\7f14968
-Node: Conditional Init Constructs\7f41361
-Node: Sample Init File\7f45751
-Node: Bindable Readline Commands\7f48877
-Node: Commands For Moving\7f50262
-Node: Commands For History\7f52193
-Node: Commands For Text\7f57399
-Node: Commands For Killing\7f61245
-Node: Numeric Arguments\7f63702
-Node: Commands For Completion\7f64859
-Node: Keyboard Macros\7f68130
-Node: Miscellaneous Commands\7f68836
-Node: Readline vi Mode\7f73161
-Node: GNU Free Documentation License\7f74155
+Node: Readline Init File\7f13751
+Node: Readline Init File Syntax\7f14949
+Node: Conditional Init Constructs\7f41278
+Node: Sample Init File\7f45668
+Node: Bindable Readline Commands\7f48794
+Node: Commands For Moving\7f50179
+Node: Commands For History\7f52251
+Node: Commands For Text\7f57594
+Node: Commands For Killing\7f61440
+Node: Numeric Arguments\7f63897
+Node: Commands For Completion\7f65054
+Node: Keyboard Macros\7f68338
+Node: Miscellaneous Commands\7f69044
+Node: Readline vi Mode\7f73376
+Node: GNU Free Documentation License\7f74370
\1f
End Tag Table
%!PS-Adobe-2.0
%%Creator: dvips(k) 2024.1 (TeX Live 2024) Copyright 2024 Radical Eye Software
%%Title: rluserman.dvi
-%%CreationDate: Fri Nov 1 22:18:32 2024
-%%Pages: 37
+%%CreationDate: Mon Dec 2 20:02:17 2024
+%%Pages: 38
%%PageOrder: Ascend
%%BoundingBox: 0 0 596 842
%%DocumentFonts: CMBX12 CMR10 CMTT10 CMSY10 CMMI12 CMMI10 CMCSC10
%DVIPSWebPage: (www.radicaleye.com)
%DVIPSCommandLine: dvips -D 300 -o rluserman.ps rluserman.dvi
%DVIPSParameters: dpi=300
-%DVIPSSource: TeX output 2024.11.01:1818
+%DVIPSSource: TeX output 2024.12.02:1202
%%BeginProcSet: tex.pro 0 0
%!
/TeXDict 300 dict def TeXDict begin/N{def}def/B{bind def}N/S{exch}N/X{S
dup 68 /D put
dup 69 /E put
dup 72 /H put
-dup 74 /J put
dup 76 /L put
dup 77 /M put
dup 83 /S put
+dup 91 /bracketleft put
dup 92 /backslash put
dup 95 /underscore put
dup 97 /a put
DC2E3EF01671869440E2B8A5094B264B54C494BBBA49A40D64B0CE8720816F80
7C620CAEC962056D3629FAC6544F204CFB6E4EF7233E95BCFB6BCD26A36428C1
414006B5F24C36A88533E17157F2DEB3BA613D206EC58D9B8B93B85CA932E9F6
-213A492E89ED9995C662F932D9ACE5DBDC3A4A9E731307AEF6B7024FA2B60167
-58997E676C7DDDE205F44C3706C7DBC0C7B97935B6205EA3449D1FEFB40246D4
-3FA2B7625F42E2C450116BF623764EE89938E7173C5A84B4C330E0B13C46F4E4
-42EB786468435588068F1E6B64805FDE78A900A9E50B69A35F32E126DE6ED927
-D95D1E2E67EA9A50A58E507BDE68F48D2233A5AE5F98EFED675F39CBA614B334
-949E54770FFE9C834C3256982CE2F18677AFC1784954D517F49A4E3B2AC3FF42
-7D3FFF2C4BF40FA3F3B97ACFF30559D70C406DB550E17DAC50B6A3D9C254EFCD
-8108EB18E4B2EE7A6A90C449095EFA75F3205E18193F1BE944D8F46567C7A207
-0C21C04C8B3FE5DACF16D48B3422C8049A124F03C10F8FCA2C12E4A9F711380A
-54EC1F3358924E4709040A40F9768EBB39B699DDE06C0F1AC37FEF99658457F5
-1A398AC402A2CA21FFB4DBA6E481D08EBEDCC43D382F43A2C9FF1EE5EEC478C5
-3C3E8440F7D19924DA661ADFF69C4C135EF8166C556D37F953C41FD7A1C0F20E
-9486508DC5B3FE41EB5C9490E98A7F4BFB27085738755A7B50ABB4BC63C4E69B
-13AF1ABE244E3BDC2BEDECC661FDB353CF4284A7B1E2DDDCB2BC124949BD9C0D
-23C3F548FA3966DCCEC8B8DFCB3CBB2F88E4BFA149B963E4299A20E2AE9939D8
-E1760E49E4BF4B5F08E07BB88E6094A10AA8B906ABA73B044A47A1E14A52419F
-FC93092C6C5C2473AB63670401A8DDD77B57879650F34A3E99ADE59BF5EB033B
-EDE95A15197F771CB03882A6B99E173786114F2D75FD3A05A3D1591E1BF2F1D6
-3E51FE8141C49BE8C9985061D88379855CA7259A988935721F7E8187EFECFC6D
-38C40C57DBE59D17A2DC7244EB99890F725D3DC3B5B90ADD7A34F495AB006F37
-3FFBB953D2558F07B2FDD7C27F0212F940CAFF9235EE574D1370DD12DEE8DF32
-64C876571BDE0C2107C54A50ABA0182196DF167AB3F79E990BDBF19401E263C5
-1CC374F86EDA0A1FA82B57AF6AD34E928070EBA3B58D04C1D947829D3E69AA0F
-62230BEAD9ED7A68CBABE5D719CDFED23A5276D0F5393DAF1D8ACBAEBFED57B8
-81DF69DEFE1934207B1C12E1B6392B61566AF147E804EA2AF7D1E5EC95BAB05F
-12E1B07F9E2FEE3289A4466E72254174F5A1A8540812D60BD7537CAA49BEDE7C
-A1B8B30534FEC88329F78D845940E7CEE87B567780790D0BF10C9485B17E7F41
-85D483B8076C02293AF375A6C3DB2413F1458DFC8F900E5E418278C26A5512BF
-7F831BFD308D85A5C8A75A6CE10A8276C6C2BECB66FC57BB33AB3A008BE6886A
-3A59D280DB1DFA9E90551314BD98BC768C1EC0AA0B3EF362160F3F2AF7CD4035
-D344BD90880B00621C56E836326D7E005970B4B490D3DFF110F4E03CD3556F89
-6FF5DC1454C963635993E7D42F66137C2378AF90D8279185E1B5D6F7D8769760
-3E59331B4F5AC53D81D85155B1A1343E3A09BF32F167B4DAA693FD35E4AD99BC
-AECA3D7177725715C9027F73BB280AD72351057AFF0BB2C480C41EEF179A9E95
-7C140E8481982B0B8201346C92A053084B4C06B90D81192165E5AE06E3BDF1A7
-4D04AC1057D951384E1A87785AF84AACA6BEE5B2BA9BDC83A8D1C641CB94394E
-E43C6AAA14842F17431F118F0A70D576096583A07A47FDA9CC685DB95DFE0C3A
-7C1CA8AB03AC0E2DECC7F6ADF379823C7514756AB6039C49EE4BF802FFD0F20C
-8AE9154C298170097F6545B67A9CD8AC919D7A72DDFBC9B5AEBE290CA3130E22
-9B74A32031FD665927C182DC0673FC32A669EE710B9BF0DC17F96DA9964C4135
-EEE589F0FA3E4A2F867CFD216C2D1AEFE62F5D2E8FFF237C2B2ACC783FA32267
-A9BD792E895FA78573BC1FF74EDF6A51DA6CD678D309B97F480A50FA337CC5D4
-F3768553CF501FF11EDB27D8CA0DBD9C5F31EE06F6E7E7C5BA0E35161A714F07
-0388E2DF6CE041DFDB2D58F963BBDD1FA7A584E47A2F7C5A77AAC8744DC5FA75
-78EEA9BCBA5530C7EA0FAEEDA5C5991DF4A24CC2EB9107DE7A67004CAAE424A0
-1F1E6BC10E1BC23DAA76D2ECDA20EA54F678B9ADC653E7C5CCFBF3DB31CB7453
-3D51D500175F5D7CD3058ED0209F6FA2430F604885AB74A098A9B145B1D32386
-11FEE1982CAC6684CFE2389F647BE595260BB70CF1A106AC217BA527BEC1A46E
-69D366461B88A3331A0D6A54CB4EBBCFC5965A18686B49FFB9808DF67D2C220F
-FD371CDD2862F8945A3C46779344198106C5FFD4D606D221ED044D1A99A94C28
-E7834321000722AF436535E2DE453B740E3EAAC6B9345DAD6ADE5B1A95DFA225
-846BDA14DFDEB6C42C0B6184999DFA106D5504D19116177FE46142D13A8E0C78
-E5BA364A80F431E4D19AF212C0966D76338C008A9EB93E493D0B690D10D9502C
-D467D4B41C6C9F17E316D2CA3ABB477F94B9523659C692D2BB733E6093C8665D
-580FD12DA1532A8D9A7508870A67EB9C1A7D222C02030BA7923848CDA5A506B9
-DE4D054F3B038769E6E094C7A061C4577C8F4814D7F3DFACA87D314AF9AFC5D5
-65DC186FE396DAB006768FF0C7BBB6FDC3BA8BB6BD2AC55F601498A5E69CF676
-44FED6D3BAD572A854F9211D1B5D7C2289284BBA2F51A65AB78854163F98AD3F
-CE13D5120EB48C8E5438DA0B1CC7B608C7E7B48F7825F8BA30E4966A5A23C88E
-4958F6FFFFF5A7FC222476C40DC8C142DDD8D3E05074E92514924C8D9A63FB30
-7549B06CA8770A0BCF5C5A7D3ED1CBD7BF21598DE1064D3D38BCFDDF9523F851
-7FE1464AA3591FFD9877BE6680727C3F9496DF9FCF7A9E56B67AF2BBE448ACD8
-6261E9987D0A62E05E9001AFC01D50BD07868C0509A6A0607E78D9CC36DF11C5
-5FA107BB3F44823D7A7C65CA3CD55BC66965AE7ACA29D99ABED6DAD24E02F3D2
-4700667132C8CB48DA6611E0ED9DBA50100B6FE9699DCD909CD5619FD9B127DF
-DBC129E20BDAC4457D35E899164F92ED74DE845D59BD085136288717B987FE61
-715D5335C5062D39F33B8B8D31E0DA140FDE859FCC77A2D89E1DA37A9286CF21
-A1BCF104C0A44F063378266701329B6A74EB70EDC742AB9C5713E9025996E85F
-D1C941E31FA2B16986F2B817E923910064C1326EC4D7384A9D9A0936811CC347
-172C1AEDEEBAA821835EA1DA3BA9263FFDA1933C05DC99B0E27CFF98968478D3
-DE12CA80EDA4E207CDF2302A22F6B1EF58B3C29B6DFBDD6EE0360EA54DDAC927
-E4B1AAB150100446E720F54E5C1557FABFCE22D193127C747A4E0B408C3B0872
-9FF46110101E5151D7CE7A70B8B1FD7013357FB74859BB3329E54ED0EE943231
-CE0C515FF7AD758A0E9ADC2C27820FDB9248A6338124CC92DC6ED1B64CEC1BD7
-E59301182787A9B2C04618D40ECD402F3AF5F906786DDBC17FCC4B51A62C794B
-C0A54345F0B66B9B7974A7D2745D5F271DA1E6D6A175AB3CBAF45CB32E44D30C
-15648D82BB2342BE82B97EB6500F9EB19240E9312A699E118707A0EF960A0461
-4873D6AE4CB9E3B1270C1BEB1C40C5FCC572D72D5B0627F965850C864EA5B29A
-3E26EC83FD25CDBE5A32A603837DCFCF4B4CC9804C4BFB3B5003C62EA6E0CC8B
-1A8AFC681B71691C5952CA4F2D9C0B5E8172E000499DC821D2FD56349CC49A77
-B9ECC20780362CD29DD3EFB5BAD66B9FAAD1836BCC4016BCEF8852DB7F622C44
-13B91BD09E30BE7CDFCE3DF557ACC917FB5E61F1129039039E2DE642833770D5
-432A35277DCD6BFA28D3A4759615BA2731AAFE9DDD9B6CC44B4E6F3BFD11D534
-3419764C082A4235EF3540E80C079C814F8AE7D5068740D699E9C2A911B52973
-E9F245CD0B37C1A2418979B8E643B13A8C83397B11928402EFEF0C51C049AD4A
-0B404628B4066C9F27D4F9A8D35AAE0B6D1E7121670656FD2ABD854C3AF94F7D
-A020D3EAC4F903C5DFDBAD1DFFB45AC984616CF18B24D27536FC64B0DD5294BA
-8F3C75C70D90158B083ECE966807B8147F290CB8C9F6CE6C4E1ED71A53938973
-A2B7D7F9FE30A82E47D6C912F07999FC7E90B4784FC229D551F3BB14E941FAC3
-A3C9FE667401E69C8CBA2273B3E5958DB7261135882F9850B1E071372B6B2119
-B582456D7DD7C8C29205FEE75C26C352A026FF6FE74914AF91223207870F5125
-183633FDAE732AFC7FB08635830030F8103D2B037FF7774695D5F9F90499A4A4
-DEFD914C3A09F8DE76C18549ACB09723CB5C0FCB6210CEE079C2CDE157EC885E
-A0DF47B932893701E5D0904FC58AAB1D123E51F909CFBA4EA6AAF8383BB3CCF3
-F4D9416F0F8F0F1EBDD7CAFB84D7247BFAAB758AF3DBEE9B239E267EDC53EF7A
-1CC4103FAD9A29A687DE7BC5B00DB183FCD9D1DBD3F4BBEEE5BE006DD6ACB302
-C85C7633855E33C79ABEEC16AB8A0F39A615750DF451276065EA8EDBFD868EB1
-61316FC8D3462D41790B8E714498B2700EB7A30511FBADB27871E711B7F0AB75
-74F5177D8B9AD8436B4F71AE0C1D12EF9F8651A32F0CA31179C8D38E9D36DC20
-0B8021DDD22240E92BEB7470866FD71EBFD2D8F6580EC2BDA0D9405E30B722DA
-C5AC818178D95E8A5F874D51AB35A60EFFB97B94439319F055FDD7E51550C084
-B6B955BD5E08775AE40BABD8C3B96597D87B15D0930A10EF9A7C4E085785C12D
-06336757F65FB6E18EC620E319088EF1BE9A6CBE3D55F4941480ED6A3DCDD1C9
-D2794EF4C93C9D646B86B6F4B6E77CA865C6393485FFCE50FA12845492B7A9E7
-C89C15DEAD45FF6DB68E0C656D3B6CD03ED4714DD9E43645625B1AC0200B23CD
-1A4C63D973B94FE3D95107208A561C643BC5E69DF65A12B6BF264D388C8B8F4C
-9C9ED501487C96A83E616F1667BC7089457A17507EC0B7F3F3F379E86FCD9174
-24A97F063039FD44939A11BB0D3010066E5824CA8126679B174765FC7D16FF24
-4F2CBFE9F7430C53026210A19097A64299EF8C261336F0DFAC19872B97A4194E
-9577EFA2C9D0FCC504D6D45C4592F560740CDE0D86A3DD23AE5F23CD3D4773E0
-98CCC4C07DF2028D542EDAA934E7A71448931FAF2CD376F75EA68B381B8FDAD0
-25FCB392B1BCE5F315E827E2FB5FB55E69764B3C43DD6759668E36635FFAA211
-586FAE259550895FC95F0546D57015C2C88A955A6054DC42FE85DCD2A5DC1833
-6532477B5F60A5FF07CCB998161405A8C67C6F69A1187D684A8796D36CBCBE40
-608832C87F4723A159125CACF518F6F9B722E8EEA3224C424BDDA70FC4EA66E5
-6444EBCF83A4189C8879D747A22011A44298822470689B08836A43B140643E71
-915754031B11B0C962070F866CEEC02AEF3A8297A4F3C87D8D25B954129A2D11
-FD00DA5775FD90B9837AA03B0CB050FCEE6614B3679149CBB68A2CE869A75ED6
-FE176856114C316F2D00AF2E59E71911DBC2AA3C14A9A89333D45E8D7015DF08
-A6F65994AC85BB771948DB83AE4CAE531C93056E1B0D5FA8C35653E0CB450C45
-259F188B105EDD4B0BB55DFA8D21386EF5C60DA9AFCDBF417A15C72F1166155E
-799A341C1580A30EAC595D87B17FB21924616DDC2B199CF7465E27FB9F3DC3E3
-9625274B43772AA40E46478DA4B3D059728EC305071E6A30F9CE38249945BE60
-3E4F4608D77B71EE01790BEB1FE970DFC53FD871135E8CD324B05D7F1A32AEEE
-B62E9AD33BF2F793BEF5C1504507AF45012E95ABB7B8E9111698E133A31D6981
-DE1484065CB44647B54D99991CBBFAA6ED813DE2C1DAEFB2FEE754BA1C8A9FDF
-5346A1ACD762A3B3864598B95448A9B973B4397259890A45D242B39AE94CB98C
-1F0B040CBA4637341164B3B543BDDAE46AED9F9980C6046A6BA2D8D8D639FFD9
-E3500CE95A91A98AE3B9E7FB1D1B5E12E069B144566C473210CB62FEC5AE7244
-5749A707116EEBCEBAC85880668AB98E8FDD15CCFB7B9A65536373CF15AF6E8F
-ECF5FD5D49695107B16B5300FB94FB85EEB985C6E52E4A585184DBF1EE2486DA
-A6F94EB6885034FA3332EFAC16895211CCEA78D3AD1961E25D2AC48CE843F8F1
-F483F30C9B2C80DF464F2363BBFF6C8D471FBA6F5A9B291A98DC10168FC16868
-61009D1B31BC4C06527559F865C79145E3204239252DF6F09FED68FE6E8BE115
-46D448B0EB3808FD73C5AB372697F4AE7A84A4C1394CD1383601C96472F173FF
-BEFD19916766A565AF972660C24AC3D1460AB141A393B8E34547466D70CE6492
-7393BD4FE4D4B6007DDF862AA4AF400CA7ABDA0190C60F50901F5D43ECC2B882
-9FB4E880C25FB050469F9784D3F32F6EE67DB0B13218C6F87C67D06CCF2F4F1B
-00AC5408900C9D443FDF317907A476599225996C7EC90484B9A3BBA0C79494D5
-D24DCD12BD005F7BCA4B1B854845BC404CC3126CD4D774733D7448B99D0224EA
-C52B788E63E681C477AA5270401F88BE61A5762E5322000C16AA01FA206D07DA
-D6783EC57D775A593B2034BE2C2246EFC6D3EBBB31A06C
+213A492E8F84A5414BE3D8ED6F50AE60AF9A2BA23FC473A4E7505FF2D4268E66
+448D801C1AF5306D881C0D8D8054FC5C561344D0B3E5A5E82E9A61098344D069
+8BCE9F4C6E144E946EAA76D763177948DE55A1650289D58A0A395BADA1AFDBD9
+6C227103CAC0FD85276E825AB66BB5655FC25A4FE6A4F55C1D2D43E0685E046A
+E1B99FFB1FED702090062E0F92D56F71F7157C698F31B69BB8BFF27EAFF29A81
+FA962DF70983723EFED932260AEAE8408B3281EC6766103E7D22B47E173B359A
+58778EB7831BCCB95ED6FB53B77F27C01FB7002E53BB299CA6118D1EED4E64BC
+AD613C548F7B6EC125C06C30978CE8CCA85A03BFA775E596E9184B72365799AE
+A37F753B4FC4A7B68DFCC35574087AF4B7E75CD0BA11324918F6B4DAF4802D9C
+91077FA9EBBBC0277FD1B3544D508008AC121A78C1DD8F74AFFB7EB6ACE1DBF7
+ED7D872B9606E8E074B674E3CEFDD77CBCB8E6B18F01C81CB03E9278423BAA8E
+34A15518B55F52329AA8FB3F5415DB791471201259828ABBA53A0E77085572C4
+BBFC26AEEB595C8A12546F17186636B50E5083BD29AD0A6FAC326928D61BA79D
+289F0B2A478D6F91FF09D43C0068E4B4E6B02A35FC8902C34C011D381877BDBA
+7F07B7F6DAFBBA37499AF60D7575AF550D1232210EA231FB23C61F4EC2688410
+5BCCAF4229F270CAE250FD6F7C63BFFCF842C2A7E4CB378D728A5A231F9B633D
+EC9F917ABDF53DF8875B8277DEC6E67E71AF956143BC596B02397CA19C3E4CB6
+78A92B10D61B6204A09A32FB888F23C380C07DD6A3E9FDAD30A09C830E69FC43
+40E1A9F09EBCB1038494528DE36F4C3075F9718290F690DD4719F0270D30D946
+C6ED1B3A4B5760875316DCB6BEC920AEDDDA3DD4F8546654C04A32E6423F8A59
+45BD7839075ADACF3CA7BA1D0BC73C149C6E4410F848E7ED4DD36AEC0524C6FA
+273C589D2D80ABC94B01B02B320D5553C9E802B4DC8E5939BC2C47044D848A03
+95DEC79FE672B809691ADDD43A581912A8C574842F8E56A87BAA03F1BC1AF3AA
+027BC35B95E1FF1613AB38B1C20D59F9CF6CEEF86C1D994616754E6F0F2968BD
+2C97F96E41E9D9F69CA9B61D2D91AFEA73069FE9E51ACD30706FFA6E779168E0
+F7F9C0A45BF7A46BD69BCC9CA32F449486E68216D07EF576A8D09C722B7C631E
+25B74ABD107077491ADF7AE6FCE3EFE24E3C0C8A00BA1D6048D40B5FBE4EEFBF
+B42E2F68A18AD1D4BBB1F2755E4B969115AF347F4503CBA91E6F6B06D7B04071
+F12A0C7976E7DE55C0FA7438E8E14FF3973451B09B232565771DE2B6360F17B5
+925A9FC376F5E766051AD02CDF1CD443B5F3E244ADDB0EBE2719797F055B7189
+DA50DCC4CEDBAE865A1A4470D76AAFAB846B28514D38D88E7719EFD7A3098746
+587A1C99653154846A61DB722E4225C79A7928A7D05C9E5F10CB0DFE2BA02D26
+8ADF69D869A929920EA81D56755988FA482A0116806E909947460EB600AB144A
+AFB3C20CC1B004089342CE2E405F2ADDAC4883F517B5B7B5F118E38A06707FE0
+2700E0A29CB2F59A8B7D1E21A4EF94F86B47F789FBA741DF547E3BCD917C5FD8
+4254C2A10FF57C0F0F043DBF082AF3C7EC652BABAB5D80C4804325872262F501
+08F942D06663DFEC1532E9AF83430E9192B52FEEFECFD51625697E305DE10D3F
+94645A484FD434D5813D258BC03363A9FA9677A421C87586A20FF6C85C114849
+6BC98CF29FEF3B5AA4732D5940BB3AE0F25E4333E3C9A1BBCA7DD69F9F2EBD77
+7D7ABD1D8FC71362581AAB38E51C106373DF1D25A6A7C457DC7525F7831A260C
+2ACFFC48AA0288B6BC149974CBF8BF29C1646D84FBAD6B272D0450BD3E1AD5DF
+97AF94164C2F85DFF54F970C1C417ED3258FD4406C9CC7FF6E6F93AEE5B273E7
+97DCD626D25FB8619C0363A83DDF1B14854CB51175B088CC4A49A1BEC0178882
+29305FC77EB68CFC2380E526806BEB9EF355C8044A5B600F87C6A41BFA832FBF
+0BD2BFDDFE8B54C0AAE2D538093E93406CD08EEE5B5A97882DB515A604AF3222
+11D4DC5B9E66BDC51C32CB516ED254AC2E4B37F25425C3955389AD139390461C
+F01AB26E34C8136D6B47A4D71AA1159891300AE010539544D7791E540F264F57
+7E31D7AE561EA78C8C5C6A05BC6935AF8E4BC809BD25CD6CAA462A12A8083DAC
+3AB7E7A27296D8B28AF8F291439B150C0CD44039E166323723C76DDF837A18C4
+6EAB518516DB5835934341941ECF336D64E8D8C3DC4CEA183A219814F748894D
+9919480C416517CF7BDFB0A70FA1ACE29115A8DC3585200ADCE3E55C425B3256
+74767CA569F1D0BE767427FA46DDA360B1EF0CF5455A80F983D1C783D62DA71A
+B2EA9B39212F41291B68AE0D671A971E8A85A3CC67A06673EA751BF5E844E0DF
+E109F4E77FC056AF17EEF33EE3423EAE54B8C1022D7403886552068D03F7951E
+09DFAFB9F1A81EA05105B58ED652B88F644F6327C2FB99B97F231221E9D5143A
+9CC3AA5F2A1FCC75799DF35313D0A38C371A75095F9629B6AC390C02329324B2
+F11552C071FD02FB0F1138B76C1C923423BEC19DBCDCCBBC78E702632269E1E4
+19981222099F9526E01F6ED9600C8A87B56D968C1B0602DA92B8AD45D446E286
+8CD4EE3DEE161DD97FBF40E39CC709EDD315472179D4EE538BFF2182716DBB98
+E58350DCB5AFE831877B292B893FC8182E8F0DBF6810B9179A089E7D3094FF83
+EBC19F52DCE376D84A4DB9520C5179B625D7A6A4FAB5D8B8874AC07E02A46EC5
+97C8A608A07A6470828FFF506A92949AB74DB433ACBA8043EF93249F51E40684
+0B4804891AC868EA0CD94DCDD70D7293854453F14A1292D39DE3EA6DF4067E92
+FE23AA95C0571696F821722D472CB429A935E602683B2F52C11B82AC5702DCF4
+89B585F5B3290F4FED79D5D1281A0FA5D52B5EEF7E489C0833A7824921EFF030
+A5CB915FAAF1588B6A05AB8D84D51B899AAA356E9256F3C210CD7CFC9DACB8E2
+DE4A4FA6E1340C98D06D5962D914EA9EC7A2DA431536DDF8329B92F1B7EA52B9
+E6504B2021F7FD1EA8BB61A15CAEBA2B5301555F63E029EDA2AF989502CE4AC5
+94207EE11CEC5D7DAC50A455543A5C9B30E1F87DBE74117AA0F2A22E24BED067
+8CE3D7626BD0F7FE095F3A047F54261B579672CC94E26B850CEB3852EE618B98
+B5FD5DF47690914033C2F94794F8ACBBB5841A8B9BEBF3EF73F315F03B97EE26
+47C87D3FA96BF2D61D36EAE69157809F4F55B5BD34CEA5F6ABD00B00E66C7D96
+8DEB424B710B505F5D999108C8C31A0EAF421F881EFDE8CD08ECB745BF396F47
+A18ACB96E1738C0513FBD1088A0F3DC777FD5996DD7CF5A3C5F0C2C8834BE9EC
+41F48E24B4E94E3B54D51994E21BDA788A9DF9589814BC28675BD9DC4BCD9B16
+E1894F525EBBD603D38F694EC411B7FAC3147C07BC2967C7164762A9EBEAF0B9
+09668542BC75FFE1E9C0EC0A2A2B3268737B6ED55C0590F792DAD6143CC87BA9
+8F5A4185BB9B608A8E6B3530925EC3DA664B0F3059C31CCDF4B6B3869495B886
+DAEBBBB3C1D82C42AAD482F8ACC6F71EF1502369507B73C7FE24EF8FEEB97950
+CDB8A68FA5804ECE1821775903D39A0119726E7782C8DCC05FA99F268DF559F5
+EE94154AF767E87CD724C9E9A9106110404AE090F9BBC0093D84B495FC10CB77
+EBA16890D691158FF94CF9826E0E2DD0A77FDFC44D5F7112D942DEE89F586D16
+0967FD269D359E6E136546AA924E7F7D69D3CF9B440EBC405717566690377310
+2863E27F546760F671F65A077BA7DE6456F7B4327B21925F89CD3ABFF189B793
+89E29A8E86BADF6FFE83DC47F7ABE674C00968CB85CC7406D5FB35AB32E7C315
+8038AAC30E07FD3497A280BB2C2D539D69A3C51BE2088D8127B8AECEC7ACE4BD
+1A52E4B442BF23D40BD23FC1501486716D66C2912D3A51713AAB38F0C7B3A3BD
+3D80C5AE5CA8331C13D86831BE0C53DEEE8898E8228DC80050732F6D4AAFAE37
+667537D16276FC967F118C36EEB990EEF320A82A95E45EB1287627C30CA586C0
+7E419965D7299168556FF97EFE2DD72FD72ECAF88C2AC1AF24E2C9DC3EC105F0
+11B4D67DC09DCBEC2C667025B653709B5F0BACF691AC97FEFC3638D600896355
+AF4F308D2BC3ECA1B544EB6A444F0B8F1BBF6525D909FBECE36E618C0619752C
+B1F7D39F7E743DF86B2EB9706E30A89604486DCCFA49ACFFDFC2B27414BCE582
+4596C8002CAB12B1FB8B66C3C8185A95FD6030C52922355667DC328B86C3E3BB
+82331D81472D3B71298A4523C0A1DA5F99E4B9B20A55FDF9D231EDB86F67E57A
+776A2F39E4E4EC4EEFA0497788DE61AFD492AAEBA7EA2F2717B7AB7CD5424E32
+CC5F4F8EEB5BC46262D26051A60472C4D304358A072CC1E9C5823B094E552269
+8D9457811E879204EA078E52F77FCADE8149571F4B3B5AA04FC814896A2FBA7F
+3968BDBE3F2BB603CC18C85F5FA686D6A39F40DE7E61F28E3162DA7CF15A9C7C
+2524AC07BCF594F50ADBEE9E7FE9168E17AADAC9C920C782D0742E87AC975807
+2D756772484138FF3427B11E3F2F17DB00A807725EC1A401F072A68CE879C4D6
+1C1BFD1D6140DCDD1A0EB5253F632FE978DDAF82BE23557FE0A12B475731FD2C
+D7D21F0C19DE7B2D4BF9B131847134BBAB1E69AB8DF02AACFB17E92C0B47C60D
+4E114EAA7C6EE2CDEC9736E69E003228EA0D3A5485EF238197488AA5316DA561
+81A6FE3D21B7CB49769B822FC4CBEA2ED23FECF6EF455EFEA9A1290554F520A6
+95032DB7441047B7F12C5BB697348322F9F97076E730D3D107C08DB2892BD02C
+8246D13D8D95B9C0DB4101E3852E88D5C288F7A1B90DEF048C0496ABE030538B
+7B763BB2DD1681AA5EEC13F7ED55FC31590F567D1D45E3042FD9D9E7AAAD6DE5
+07BF6AA2F4A6CE3DA270FBF543B0D4BA8C5048E137DF2E745E0F199AC5AFD8F7
+6B1EC2839F6684458575F825A3384E5743587F2FA2FDC71CB834D6741D6054F1
+1B93B6B62DCC401E2E75255091DBD5B53DEC866E6618858609B5696F1DACBBA9
+AAB36FD550E468D331D9C4459377FDF090028FECDFC15C60B82D4728C279AD7F
+000923B5A29B2935E66E18A783D9C37F1A9F6C0750BF39758749493DEBF83A1D
+32187970E10E94D7042C5EF00EDC64B36842ED4131194BE424AF720745095751
+36914FBD349A7E99CC25B4476B8DCA7062BD3782939294141CF36E2D48D992A7
+1146E7E76225EC092EC75022F67DD2EBDE201F916F7FB9AC217CBF7F16FA1952
+2E27DF6A4E5FCDCF54E87C9EF8C65BD4980EA957495A66993C4998668A4A1535
+1502179F0A76254E49436A9EFC8388DE0AE6ED74FCE37B42326B1991CC3A00F0
+84F582C7958C8275430321E2DE4682A7E128497CA29E0369BAD9216E248BD1AF
+D882208ABC3A73782467DAD378DAEC85A1F35BECFDA1F01F43EBEDFD77135282
+A7111FA0099A7D4CC51740D147B6C54123F3977C95E730AD6D4B93E8C81294F8
+943CD8065BA1688458346234C0AD30CA75E5C026F07BF14345B568069363CA47
+2EC6122BAB27E9EA3C2FC86A29DB26DA06CF0810B2259081BC1E105D6E718494
+574AA2D6BB6EC3BF394F50B384E36ACB5A3C1D55FEE883CAB08BA2F111D4B669
+B7F8F909B1AA27ACF54CB991CF4BB8FD798F58A54C8E7081ACD1EA0E50946B3E
+C8B9C0328DDDC77192D772FE80A1DA4AFCFADE9E80C7991E30D1DCC1B4A106BC
+22A61E23D89A93E153FD7E27B3BA4243B395ACDE1DA0486C6BA6DC86351C3EE5
+A292E26EF1B5D7B1F2B55CCA4499A91776BA83D892F2CCD7397A17D4F695B5D6
+9957239A5A6FC44920E29891D92DB4BAED589DC8B9172AA7ECAA71A99344A250
+FBF76567F4E653DDA7B037843E0B484FC0A7F8591D256196FCE6A0A008D45B2C
+44061930752FD9CB48487564C301C965DB814D2CA6A73B3A87274CDD9240A1DF
+3DC80859259C1082D68460E627B3D6F85844FCC7C445DFC24C4506A665BC3F2D
+81903DCB7909EF2D8FE45CEA058C96E278E6F66BA996174E27783075F20E77AD
+29C08959F77D10499EA5F9A39CD82CE174BF626B87CF0AF02110A35EE66BB6E3
+6ECA1E21CCF2FBD34F42569345F248D14B7948EAF7B8BAB1B5D8FD619CFAAE29
+C0A3F006E3841C63F6661C5E5755AF8D4C3CC8B5B3F6BF096C526DAB12E6FBB1
+CD26A51A99C3E7C5BA9EC3006D213F7EE3D48E479E8E067A1EFAA0920C06488B
+9F77E52C3279FBF8B21AE48E978DC67CB720D446263282C8D9904D26E98FA8CA
+DF2364A7C38ACF8015618FD96D8ABA832BF7CA3EA7AE6409F2FCC491258B4BA6
+2A683A2685AC9916DC6AC53382E9A34840D9B8A339CEACA641C1B59B361A6819
+C91734F768447463C587598676D946F027836ECE96B42117EA49C0EB01E21C9C
+91297EC2E6E4979F607E97956B
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
dup 101 /e put
dup 103 /g put
dup 105 /i put
+dup 109 /m put
dup 110 /n put
dup 111 /o put
dup 114 /r put
8D716F6B7F3BC9AABBFBF1DDF2779CDD19CBBB60DDA40D5DFC85ACDD2A0FD2D7
6402B7768E5B1D7CAACE9241F5891F922CD586255D1D9DDAF0910E14F3A2F8A4
631394010C96EB7EB6E3009591E12C0C80F511D1FF14AAF65FD0A74E56361BF7
-07826E5FDC23C1AC2A50347CA313AFA7CDFA9E42A7DC32E55DDA210716ED92FA
-4331BA732369112447602F9493143B5D3328E0CBE8D4C57EE4EB8468C9C31064
-4F6C71EAF60B7BF1B2E2DF13C4B64CE23087B85E78A8C367A6105C15269DD87B
-49003975D793B30D858690491A4BD6E09BF7D7C582A78DFD0F1FAE877C3B2CFD
-660C587003A3A8B4362939D0BA2A5B76508A551186EE271759D589AFBBA309D3
-33478C99AC3159283CF08DBE9E7D58042EB9062EF8B6FA510B458A55E3C85212
-AF9987ACE2062C82A91ED4F218B975055A49E1F6C4B14FC2F2D823D74E71AF19
-DB3801202C03215258CD203EEFF4F97199C3D6F6A2BF64E515E833772B5F3B23
-4E690439F39A5DDFC4E9D2601D1E0323F078063AB6D64B9AA92951EB3E371816
-DA019DB05B1A8B566B9A533F10069AA7750B50FF7BE1E5E0BD62EA4DE2B9CC72
-CABE82D563B39D6F1411A85FF362563B0C6FE46FFB6897FDFA0F42473767D528
-6788EDDEAE31BBE0B4D69E8BF4949601F436D81926014F6AD17D84C62C888369
-210CCFFC2BEBF144C5174388744DF5B2887B80F264D1E5558A687F8AC3F07756
-1DB478B1379E9DBA6DAF50FFD54182FA592BF25142999AA5175A05AAC03120FC
-62EC894BF4DA0BC161405D400E8AE6AD1278235EE873BD585E07D7A56FD5D5DF
-3DAC00BED890FEE9D9EE683E1D509D3277668DE2595810EE68EC5F19D537B83F
-9448AF17FEF1B09563D6264E7D2A44D12BAE42F33C6C8ACF744803730F5F2A88
-94E7999A8A8F8789F85DEB7A1589DA15D909F7575E8659936CCC6E73C8144A41
-766DA8DECC6368927FC0024AD38C50682258D56F3C8180FC97FC621E661898CF
-0DA95B5653444C6B87EAF1A4A5EB14AF652FA6A61BCC213ECB48E79DE1B19C1E
-0A95F66AB1AFBEFDB39E1881056DA237514D8FA2750623779158FBC442246D6A
-83C13A4C8751F90B0BD6ABF6360F3C1BB068D850BD1DA7EE25884E56FA40145D
-7E90ED6DFAA9777B9282BB664A166B394FE984B93806C7DF2AA54801B89BFC54
-373EA0BBF32B14FA3D609828F444A1040BAEA7C4E126F2D7A3AD2B12FAB44FBE
-18B4DF6BB7E05A16CDDFFF2B854167C2C35AE87A1B92DB0187EB03B31A698E4B
-0269CE0F8F1937214062CD7E73FFB5D7D038C2140BEE7358BC9F0D89DEE895C5
-08D4F62FE683E9469039A30F41CCDB700DA6028677A96B4BBE46A7CE68F7EEE7
-71A78CCE0F8234C444ED49F0FF446EB53E13C8F7EF7DA5C918FE926E376D9F1E
-9D94780C38D4C37997EB82FB94150E7A00D11CAB0CB27D14D04B4A70E77CAD44
-D38B11D4C8A2F93373940F9F3E6EE3791146AFD95CD5DC863F3FB15D3335E1B0
-5640015233B403BA1E1C1A05157AD94D44C97C9E64EE26BD36BF416E8F6CD8A7
-4932C2AC172C4B904719D1B8CA8DA4739430755E16D1DF1510E8200F7BF3A132
-5B3DB0EE283A10C6DB402DF9E5CD1BD320A486F4E6C447825E74F20C73237797
-7CAF39791DC0E9225B3BD9E4B044C99DD8FC0EA13B439CB8E8E7B28D411F156C
-8E273DF55A6333466CA184D7473C5F86224DA898CDE44037A76B99EF17B1CD7A
-B5145537C8100DFD678C4026CA7BFD246AA9FFCBF00CBF798FF45ADA18819677
-948C533E22ED956832FC363319A957F9B496BE117E4871D267CB5994516361D2
-DDC0E92B560AEEC752123BDC54D4C1EA96ECA7D405015C7F6F19A11D419EE538
-37B45452F7CEE447C8B38953C119592593B75869405466A63CD80121C7027E74
-25DF968834F9354026E4E604A5A90E47DE8E9276B873AA3B7EF40EACC8777A4D
-0C0AC68C938CB9CFFF0E11363481B84B46BDFAD1DB8987C683B2776517700AB3
-0FE03AFEA160A1C8A64500902387150537C8B201A6B2571058E66822165FEB4C
-0F8F3F8C5C2200A7D3EB21AE0AB2E420882DFF951BCF0A7DE6A4765F980C735F
-FC1EDF12C6DF51EF05C79F2AE5A178E37F9AB9811C22A7E2AF61414C10C49D39
-7E86AEA151FA63BB8E100014398FA872A1D5E7B101AE65F3F0D41E02996B4686
-28D361C8626FC8B7AEE7870D48BDE4EB991F5126CE7F041900EDA3D65DB3DC68
-2A8CEFB710AE461957F7C8B8FD796223834286D09D85BBDB927A0938C784C9BB
-4BCE589823E038D93AB6AFA3B09244E8A6F390D6A04E91CB6B130EEC58565049
-986813F8CF5D941F8664FEBB784FBCAD2F5C3385602CF6DA84559BBE18A83CFF
-C4957E9FDA287373C6E9A850ABCFD1E785001391BE172E0B2E53B7033E64D44A
-9FEB9A57C0BC63D39C1B1E7D0E2B3AA0EF60C444B429C7B3598C45AD1FE80AAB
-BBBCDF95EFD1C13FD6B5D429CF61909CD167FAD992D98C9A8615D52B5FD936ED
-1E8A36E159DF544154BABF408D227E4C80357BC950BCB9EAC4AA1A570C8A5B76
-B26B23632625459EE6A3511B6868C2F6AF3C32E162925168329664D96AFA8A8F
-0BABC996C15E5D5AA289EC7F00502CC0B0073113683D76CC0635376FF61F2D40
-DA4C3AABE779808F1B9FEAC6D5E78DF9BFE62EF1EE89C7365B9FA6D0B47BB17F
-7A133223697C6295A139524BAFBCF2BDC0C3AD1D35216EEB44074B7EB5118AF5
-E24966E8E9642E6FD56DA4411C4CA4679BC73132E07C46D286CEEFBB71E5AA1D
-97391E6A30525C36935598F74C5BD4D72D4302B8109A6568CC5D79C17EAF8F4F
-F4FD2AA5AEB3DFDA78454CEB2C631BEDD822938964F3AC6D685D1008F3547F9B
-81C2D70A79AA7E4289D27137DEB9C219387071B5FAF4D14C24D78F38A5D2A57B
-1E128E9B5D2805062AB4BAF8CB749CD103057E2E529A75BDA174029ADE79F679
-5DD7BE5AC9F72BE105B07A8D3FD60D3B341412E0B012504C320FCE8CE68E882E
-E7D13EBB47ACE4A2A4851BE1FE93BC4571A86A4A1A49374914B755C9EBD78C28
-76C8A6DD79E3F6352F147F4B8776F0AFC462F814E5B66FDB076B29C1C94192A7
-6F9382B0C066A9
+07826E5FDC23C1AC2A50347CA313AFA7CDFA9E42A077C9D301A351A89C4DBFAD
+5DC8757C93A6869B2EB9BD784B298CE59E14C1F64C508CBC1F0E3EF713F173CE
+E4139B6AB00D513BBA722CA46E21F6EE9B689E29A6CF80BB91656FDD6FECCAC4
+932E55395B6770AC6A86EAB50AC58FADC1408B43F0D45378E762A9FF61DA68BA
+315AEFC5A5C2B929919FFB3AFCAE5ED7D739567E868D77E76D4B70AED79F2AE7
+21CA3C966D95AA795904FBBDC8098C3DD628F503B3778D9D7583D25AD7DFA289
+204F6DC33211530ECC8E9D28B7F53F2AB48F21536F2FA00CC12DF01116D011E6
+F97FCCAFC752452AEF7E6D141205AC701FF1482E02C8021E7A50E515EB1531D5
+F0A3B72FB8B97F1EA6DDF4823AC8C1B492384AB5C4DA7035400A0A71C7FBD379
+410391CBEC1B137DEFAD3EF4F45F19A594C0E51FFBB619C7D111D213FBBB2693
+43CAE9833E9ACE422DBB6993DADDDE44DE3E990CD7ED0590FFCAD9DABEA857C7
+F5FE4C18C260F7428E4A71A65E9610CE16932F7405085CD9C5562CA83347414B
+EE167A0EEB80E43C1C9251882267B404676D5A4266C3F22C3CF38FB9E2414A43
+A82971C7A66DAE9474153572B8B92BA81F3253890A6CEB715B72E1E8C218422B
+5F12B8E5155A544FBF3A105DC23132C30030E335AAC5A5B1DF44F2EBFB93DF1C
+AD8A7D6E1DE1EFEE889DDD22BC30D51B5D0A6BD9743DEA811F718D243F589B41
+FD0E2DAEC6CA60E7DFF1B79F53C4E1A2D5D5903D85F35CBF76BC5BDD296B1BCA
+F3CDA8F0C8C61EDD7A5572763D566283D08BD014B18A1EEC712A0B8CDD4CB96E
+08E991E0E78223C434B338C6F78E2741DA608167AFBA9A05CFE5B6B4499D88CA
+99AF98FED3A5B1C10B71F74A5EBA7E4BFD7479D7C0C93217C7F1EB956F9A3EB1
+7AC6A9485D4EA93066EC87F135A82CFA6D2B4F252D4DE83621899D8C72270A9A
+BF5C17098895A7DC73DC69042D7D2F1E517A39996B75332DFB966FE556682E9F
+AA043C5C66837F618CFE04262B8EE2E34C047B2B8DC03171B4A485289C392DEB
+7CA7A789D1A58642B114D535141283C659EAA77970125248DE0994BE1BD57667
+520E755850D131351E0BD4C1BF71141843CE981E0506DB539A3A867D16D1FEE5
+F409C71D115BA2C90D27B2A8F5197EADD4FAB34D0EF448542EB07B9B2FE8EED6
+BAFF794AAC03C9AF50ADED1D99BD9859D0538229F1415CA971325DF855723A81
+C04DC9D5256E376A66835ED86671E18C539279615B0798D07798BD8C4F5A6FB9
+4F7322D74669AAFA796AE5B2B5F1F971E510C1A22A05576C98075DDA9EB886BE
+711211EA5F9C03986948964732849438ABDB47B88AC23E24CB4B82162533D0CB
+FE408BE676FF0BEAF32E558F0F8FA82AD625A8F7F18560E3601E815A6D94820D
+0CAE42EF0F650F7B954B1A52228F16683DF4E4F78B007011C8140FB87ACDA2FC
+664F1F24B9212D1D44D1172CA1F8E532DFA474FF9D8343FFB4B750C6C90BD0B4
+2D4E71CD8CDE8A88ED9417FAEB3096EE16FA2FE8B8BB4B93A1B7291D8893D19A
+38E7D0B6E8858E8A261560DF58DBA0493BC15ED4FB7C5B5671F20A8B9ED157ED
+0A16C7C529FA39C9C26F4CDE79989610EDFECED5A70764F2C0B3AEC681E185A4
+54AD806385483A3793368913D5351AED0FF9DB1D30BCE9BF97FEBDF97E184979
+99A3B8C0855FB96D08784FB9C32FA33F3F438DE6740C2A1FB058D176FFCF2570
+CEEF50E5829EE952EEA0C0291719B70CC98BB26847013B3B2738D4EE672F93CC
+EAF8EEB7EF7172D6CE655415578339C0AA5189500D84CBE2241956D96907CB50
+F0510DF0982BA9DA4C0AD9865DDC397D8DA8A2F8CCF9B43B8AA377609645CC41
+196E536A7335F607747DA7C1F19DC1FED671A1212A7E8CD004369156647B3116
+60D4505A1121B2C09C52DB0EA388AF25C9BCFF0755E8C8E45EE19CBC8096161A
+F9BAF9DEB300F107D5604BA2CD0084C6082CB5EC9685A5A2F40008097E25C4D2
+7AD3197DA77D7D0AFE9081CB56E9F95FF08F99BE64C44B974B899030460344F3
+D29BF2C2AD07CA47DCAA864CCFF49E0E614B5C603A57B81E7F61AD07EC325638
+4AEF374CD469ED8A58861BCB288A7A59D2736BE7054DDA2A9FCAC1B291C7FABA
+31D1984811322B1608B99EA1AAF21E3BA5C3C791950863A03AC672DCBB3F2A22
+0A3D8233C95CEA246FA59BC7AE6DBFFF4C36BBD77104003FF4A9EC40BE3B33C6
+41B06172198B32F961B282B4683B3BDBA80018CB87260FD9121BC2F71C08AD76
+DA624F72A31349184A01D880D61B403A3BE88E0F7AE9B91FF47A8F995D9D57FF
+6C2D45FCCAA4797819E66CA2AD846B691CF703524B04326D1A1DE1F516DE0C6D
+959609EB64D8C11AFD111EBABC081DCF5608D367345BDBE9B8E19C68C1EB6C10
+BC84CE8D3DC7CA736C321B20B72EEAD657531BE8499ADE8E9C3ED24808650A07
+1E11C61322F0C7925979BBC97EE2E08670611C2BCC53E8CF10299AAFA3C2B090
+D4CC25D05DB896974028255897F9B47C4EDFEA190599BDDF07B880B9183250E7
+1F78B127205DE63C650E3C2EA8DEF0AC541AE04CAC8AAACDFACFFB3E70040444
+0DF0519F49FAA3F8F67D73A4B2F86D6DA3B48DF87B5C7E32897477BA5BFECD08
+2E31D01A4854D4B722E35DD2CEEF7C25D9B42F70F8166059B7B77D13B35DB276
+782ED2E67CE99197D5D9C3DB309753AE6282DE86FC5D5569AE515CE57B20A121
+8CF4A3DFA3F568E830D2A10599FFFCCB46AD93127B2C31CEB53548CDA7CB01E1
+7B90B42645AB93805AB3A9AE907FE548E42A8440EBEE66DB7F27BEA5D9E2FA56
+04C414C309DEF3B99991596AF93383BEFFAEBAF10E1186AB4908CE0E6E87EEA5
+8711794D7100CCB6A004A8780418310F57F51690502624EB3900E9935AE34F20
+3BB5A5186E5296819C0D941CEDCF7B033AB4D204C554D8FC0104B43D4F3F6D02
+C98A0AACBF7670455AA04C4DBEA7DC5982F1E28ECA23FD93F99090A725DBC8A8
+71D7A96FB5FE11224A880F0F60656056993870BEC61C9F646885BBA4265427E3
+FD54A6E677F0AE7D565B427349A19E944085DCC2D69151F11E7ABDDBFA5BE301
+0B80292C2EEBCF7F69A6C2BB585F84043BA125B3034F8887483B9FDAF97FF25E
+551046ABE700C7CAF96791818B1207A8069C06600AFBFE97A7DFB1DB7E311A2F
+ADF9F81A60A2C90F3D482DDC304A21B624C3B482F5B60D3EC4DCF86EC86BD810
+C02DB88D23C0883C60D41D6824769991C689B3221A83E5CEBCA46BFB576B32CC
+5E0FEB47A1CC1C8BFD93F86C93A814A651071546B2644DD2205A9D6738C6D644
+70B04D32C3691C532CD57BE4ACA821412EB0D4BA69B7B574A1C149DA18371F9F
+7B02E444006C9426D2F0DFF2F28C58A2DA59FA
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
/Encoding 256 array
0 1 255 {1 index exch /.notdef put} for
dup 13 /circlecopyrt put
+dup 15 /bullet put
readonly def
currentdict end
currentfile eexec
4D5785BB0852BF472CFC97EC174491CAF961AB90629F055E75DAA6D9898E8653
5BCF379816CAE46FEA62E7BE8E9B953466E51828172C4DBD0E1BBAD1CE28B5B1
02B3E36403BE80B49A47446A6677FCED438F01D60EB10F478C89528FA337D0D8
-88D3FC123C076507ACDAF783A9A6E24ED73BF24B6E0F11C13E532DE5F70EB02A
-60651FC2E263002D3986B7B20CC2AA08330B9FC2E26765CD52266969A86EE30E
-71E0B41B6C1C6DA423D3A7E1553D2FAF26EF40DC183099322D362E4965695C52
-9FC3E5BD7ABD743CDCB717DB10372A722A39CE53FABB454EADE2179C4CBFC016
-A8E893C28EF549CA1692C8D8ADFC471DCCDE266FB4E97A1F3035801F3F034D44
-AE6ADA0192657E8078A1D27420093FEBA111333314658021B90DA4E7A8D4B829
-F1795501020D5FF0AD25584C1D47BE08ED6CE96278050BA67680A3B973613647
-A93FAEC756FC253B3693FA2D6491B276EF45751EFB306961788E7C15297A5822
-AFC5A2DABD0DBBFF0BE135267EA6B9D1B4E4760ED14895FFE1F8C3F564830001
-EFA901B8442BD2D98561BAB9A0FD939E0F856E4D2EB04A9A4496704109B8A84C
-EA06AB0999427B3B1BE776004AE906D0F22159C051D88CF573A0255D99B56781
-CF326CD11919AA40B096769CD6D0ADF3ACEC7957621084ACF21AF1F265416628
-86B67FCBDE9370D4F5C6F5CC67EBB0A2727E074090DBCA459AFA1A4778AED4C9
-AE5400775223E684BFCB
+88D3FC123C076507ACDAF783A9A6E24ED73BF24B6E0F11C13E532DE5F70B15A0
+657F5ED27D204449A841ED19E01432CFFE928E921321113780D036D34F2797DE
+D4459CFD15BB117B5C9745EF3CD2B296D91FAD48C80B136D94476967E255F808
+AD2B5D522ADEC64176833756510391815A1D4A8DA1D0AEE7CAD36A1D161889F2
+3347D5B6BC503300FDDD48F594F391D5FB42C42113C538E707C16EE24A3F375E
+7C506E8F49CE50FF9DEF3B4A4C1BEB3848EAA3477349833BA22D2A9012287D8B
+A8C4CB4307A1188ACC0E6E9338E1559BE5FAFF381BD82A6C71C267409468B3C0
+2C1A29F4281D565836EAE57F680490FEA4A952FF64C8CD11C377C294DCD1EC25
+CEFB2B6DCE959D0208F85B6E32E9B44FD455F9B134A5306D95EA29F37BB8B86D
+9E592159338E1293F449380E13C21AE42E6861DBBF4AE99A7469F871A3940835
+FFBE7F316FA9BB834EAB18625F0960352C75105A92F175850289B1AE177E0D52
+E43635C41B85F75CFB706BC92B0BF90367E180A141703EF69FD064C0FA34618A
+5D9684895C3EF50F4AAF6E0F78D483280942D3F9C1A18FE7FA657928477AAC74
+ABCC21B622EBE2C0AD9EDEDAEDAA9A6E3D96E01CC837668FAC44FB52307CE618
+BE8399078154C80E7DB52F0CD16717DC59203497E89D69B390E9966C19D36188
+E47270673493F7DFC14C72B5B4737AD52783C573B5F12D50E9D54AD65C2C310C
+72BAF2A8ADAD81ACF0C49DF971775F2DB7404FC9AD6B30C947A348B28B0C042F
+CD9756359BA6942D643D8B7BC54E6047DFE25215CE5EE74CC3076975A3F324DF
+E8D80F42AE4A1C00B155FE56A61CCC09924E4D7DA7EE07987C2EF9E91AED55CF
+524C54E553030B5F
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
1[17 34 31 19 28 34 27 34 30 7[46 4[43 34 46 3[48 58
37 48 1[23 48 1[39 40 1[44 44 46 8[31 31 31 31 31 31
31 31 2[17 46[{}46 54.5455 /CMBX12 rf /Fe 137[21 1[15
-19 19 2[23 26 4[14 1[21 1[21 1[21 1[23 84[26 12[{}12
+19 19 2[23 26 37 3[14 1[21 1[21 1[21 1[23 84[26 12[{}13
45.4545 /CMTI10 rf /Ff 133[20 24 24 33 24 25 18 18 18
24 25 23 25 38 13 24 1[13 25 23 14 20 25 20 25 23 9[47
1[34 33 25 33 1[31 35 34 1[28 35 1[16 34 1[30 31 35 33
32 34 19[15 32[25 27 11[{}46 45.4545 /CMSL10 rf /Fg 134[24
24 24 24 24 1[24 24 24 1[24 24 1[24 24 24 24 1[24 24
-24 24 1[24 24 1[24 2[24 8[24 5[24 24 1[24 1[24 2[24 24
+24 24 1[24 24 1[24 2[24 24 7[24 5[24 24 3[24 2[24 24
24 17[24 24 2[24 5[24 39[{}34 45.4545 /CMSLTT10 rf /Fh
135[28 2[28 1[21 2[25 29 28 4[14 1[29 24 25 1[27 1[28
97[{}12 45.4545 /CMCSC10 rf /Fi 197[13 58[{}1 45.4545
/CMMI10 rf /Fj 197[16 58[{}1 59.7758 /CMMI12 rf /Fk 135[43
2[45 31 32 33 1[45 40 45 67 22 2[22 1[40 25 37 45 36
45 39 11[62 56 5[63 1[48 4[63 51 53 62 58 1[61 15[40
-49[{}29 71.731 /CMBX12 rf /Fl 242[45 13[{}1 45.4545 /CMSY10
-rf /Fm 134[35 35 49 35 37 26 27 27 1[37 34 37 56 19 2[19
-37 34 21 31 37 30 37 33 9[69 1[52 1[37 50 3[53 64 40
-2[25 53 53 42 44 52 49 48 51 6[19 2[34 1[34 34 34 34
-34 2[19 1[19 44[{}47 59.7758 /CMBX12 rf /Fn 129[24 24
-1[24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24
-24 24 24 24 24 24 24 24 24 24 1[24 1[24 24 24 1[24 2[24
-24 24 24 24 24 24 24 24 24 24 24 1[24 24 24 24 24 24
-24 24 24 24 24 24 24 24 24 24 1[24 24 24 24 1[24 24 24
-24 24 24 24 24 1[24 24 24 24 2[24 24 24 24 33[{}82 45.4545
-/CMTT10 rf /Fo 131[45 23 20 24 24 33 24 25 18 18 18 24
-25 23 25 38 13 24 14 13 25 23 14 20 25 20 25 23 13 2[13
-23 13 28 34 34 47 34 34 33 25 33 35 31 35 34 42 28 35
-23 16 34 36 30 31 35 33 32 34 5[13 13 23 23 23 23 23
-23 23 23 23 23 23 13 15 13 2[18 18 13 4[23 19[38 25 25
-27 11[{}82 45.4545 /CMR10 rf /Fp 134[51 4[38 38 40 3[54
-1[27 2[27 2[30 44 54 43 54 47 11[74 2[72 3[76 1[58 2[36
-1[76 71[{}19 86.0772 /CMBX12 rf end
+49[{}29 71.731 /CMBX12 rf /Fl 240[23 1[45 13[{}2 45.4545
+/CMSY10 rf /Fm 134[35 35 49 35 37 26 27 27 1[37 34 37
+56 19 2[19 37 34 21 31 37 30 37 33 9[69 1[52 1[37 50
+3[53 64 40 2[25 53 53 42 44 52 49 48 51 6[19 1[34 2[34
+34 34 34 34 2[19 1[19 44[{}47 59.7758 /CMBX12 rf /Fn
+129[24 24 1[24 24 24 24 24 24 24 24 24 24 24 24 24 24
+24 24 24 24 24 24 24 24 24 24 24 24 24 1[24 1[24 24 24
+1[24 2[24 24 24 24 24 24 24 24 24 24 24 24 1[24 24 24
+24 24 24 24 24 24 24 24 24 24 24 24 24 1[24 24 24 24
+1[24 24 24 24 24 24 24 24 1[24 24 24 24 2[24 24 24 24
+33[{}82 45.4545 /CMTT10 rf /Fo 131[45 23 20 24 24 33
+24 25 18 18 18 24 25 23 25 38 13 24 14 13 25 23 14 20
+25 20 25 23 13 2[13 23 13 28 34 34 47 34 34 33 25 33
+35 31 35 34 42 28 35 23 16 34 36 30 31 35 33 32 34 5[13
+13 23 23 23 23 23 23 23 23 23 23 23 13 15 13 2[18 18
+13 4[23 19[38 25 25 27 11[{}82 45.4545 /CMR10 rf /Fp
+134[51 4[38 38 40 3[54 1[27 2[27 2[30 44 54 43 54 47
+11[74 2[72 3[76 1[58 2[36 1[76 71[{}19 86.0772 /CMBX12
+rf end
%%EndProlog
%%BeginSetup
%%Feature: *Resolution 300dpi
%%Page: 1 1
TeXDict begin 1 0 bop 75 659 a Fp(GNU)33 b(Readline)f(Library)f(User)i
(In)m(terface)p 75 709 1800 17 v 936 757 a Fo(Edition)15
-b(8.3,)e(for)i Fn(Readline)f(Library)g Fo(V)l(ersion)h(8.3.)1608
-811 y(Octob)q(er)h(2024)75 2463 y Fm(Chet)22 b(Ramey)-6
-b(,)23 b(Case)e(W)-6 b(estern)23 b(Reserv)n(e)f(Univ)n(ersit)n(y)75
-2534 y(Brian)g(F)-6 b(o)n(x,)23 b(F)-6 b(ree)23 b(Soft)n(w)n(are)f(F)-6
-b(oundation)p 75 2570 1800 9 v eop end
+b(8.3,)e(for)i Fn(Readline)f(Library)g Fo(V)l(ersion)h(8.3.)1569
+811 y(No)o(v)o(em)o(b)q(er)g(2024)75 2463 y Fm(Chet)22
+b(Ramey)-6 b(,)23 b(Case)e(W)-6 b(estern)23 b(Reserv)n(e)f(Univ)n
+(ersit)n(y)75 2534 y(Brian)g(F)-6 b(o)n(x,)23 b(F)-6
+b(ree)23 b(Soft)n(w)n(are)f(F)-6 b(oundation)p 75 2570
+1800 9 v eop end
%%Page: 2 2
-TeXDict begin 2 1 bop 75 2207 a Fo(This)19 b(man)o(ual)f(describ)q(es)i
-(the)g(end)g(user)f(in)o(terface)g(of)g(the)g(GNU)g(Readline)h(Library)
-f(\(v)o(ersion)f(8.3,)75 2262 y(15)f(Octob)q(er)g(2024\),)f(a)h
-(library)f(whic)o(h)h(aids)g(in)g(the)g(consistency)g(of)g(user)g(in)o
-(terface)g(across)f(discrete)75 2316 y(programs)e(whic)o(h)h(pro)o
-(vide)g(a)g(command)g(line)g(in)o(terface.)75 2384 y(Cop)o(yrigh)o(t)
-301 2383 y(c)289 2384 y Fl(\015)g Fo(1988{2024)e(F)l(ree)i(Soft)o(w)o
-(are)f(F)l(oundation,)g(Inc.)195 2451 y(P)o(ermission)9
-b(is)h(gran)o(ted)f(to)h(cop)o(y)l(,)h(distribute)e(and/or)h(mo)q(dify)
-g(this)f(do)q(cumen)o(t)i(under)g(the)195 2506 y(terms)h(of)g(the)h
-(GNU)g(F)l(ree)f(Do)q(cumen)o(tation)g(License,)h(V)l(ersion)g(1.3)f
-(or)g(an)o(y)g(later)g(v)o(ersion)195 2560 y(published)23
-b(b)o(y)f(the)h(F)l(ree)f(Soft)o(w)o(are)f(F)l(oundation;)k(with)c(no)i
-(In)o(v)m(arian)o(t)e(Sections,)j(no)195 2615 y(F)l(ron)o(t-Co)o(v)o
-(er)13 b(T)l(exts,)h(and)g(no)h(Bac)o(k-Co)o(v)o(er)e(T)l(exts.)20
-b(A)14 b(cop)o(y)g(of)g(the)h(license)f(is)g(included)195
-2670 y(in)h(the)g(section)g(en)o(titled)f(\\GNU)h(F)l(ree)g(Do)q(cumen)
-o(tation)g(License".)p eop end
+TeXDict begin 2 1 bop 75 2207 a Fo(This)14 b(man)o(ual)g(describ)q(es)i
+(the)e(end)i(user)f(in)o(terface)f(of)g(the)h(GNU)f(Readline)h(Library)
+f(\(v)o(ersion)g(8.3,)g(29)75 2262 y(No)o(v)o(em)o(b)q(er)19
+b(2024\),)f(a)g(library)g(whic)o(h)h(aids)f(in)h(the)g(consistency)g
+(of)g(user)g(in)o(terface)f(across)g(discrete)75 2316
+y(programs)c(whic)o(h)h(pro)o(vide)g(a)g(command)g(line)g(in)o
+(terface.)75 2384 y(Cop)o(yrigh)o(t)301 2383 y(c)289
+2384 y Fl(\015)g Fo(1988{2024)e(F)l(ree)i(Soft)o(w)o(are)f(F)l
+(oundation,)g(Inc.)195 2451 y(P)o(ermission)9 b(is)h(gran)o(ted)f(to)h
+(cop)o(y)l(,)h(distribute)e(and/or)h(mo)q(dify)g(this)f(do)q(cumen)o(t)
+i(under)g(the)195 2506 y(terms)h(of)g(the)h(GNU)g(F)l(ree)f(Do)q(cumen)
+o(tation)g(License,)h(V)l(ersion)g(1.3)f(or)g(an)o(y)g(later)g(v)o
+(ersion)195 2560 y(published)23 b(b)o(y)f(the)h(F)l(ree)f(Soft)o(w)o
+(are)f(F)l(oundation;)k(with)c(no)i(In)o(v)m(arian)o(t)e(Sections,)j
+(no)195 2615 y(F)l(ron)o(t-Co)o(v)o(er)13 b(T)l(exts,)h(and)g(no)h(Bac)
+o(k-Co)o(v)o(er)e(T)l(exts.)20 b(A)14 b(cop)o(y)g(of)g(the)h(license)f
+(is)g(included)195 2670 y(in)h(the)g(section)g(en)o(titled)f(\\GNU)h(F)
+l(ree)g(Do)q(cumen)o(tation)g(License".)p eop end
%%Page: -1 3
TeXDict begin -1 2 bop 1862 -58 a Fo(i)75 149 y Fk(T)-7
b(able)28 b(of)e(Con)n(ten)n(ts)75 325 y Fm(1)67 b(Command)22
b Fo(24)200 1379 y(1.4.7)43 b(Keyb)q(oard)16 b(Macros)6
b Fi(:)g(:)h(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)
g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h
-(:)f(:)g(:)g(:)g(:)h(:)f(:)12 b Fo(24)200 1434 y(1.4.8)43
+(:)f(:)g(:)g(:)g(:)h(:)f(:)12 b Fo(25)200 1434 y(1.4.8)43
b(Some)16 b(Miscellaneous)e(Commands)8 b Fi(:)e(:)i(:)f(:)g(:)g(:)g(:)h
(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)
g(:)h(:)14 b Fo(25)137 1489 y(1.5)45 b(Readline)15 b(vi)g(Mo)q(de)5
b Fi(:)j(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)
f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g
-(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)12 b Fo(26)75
+(:)g(:)h(:)f(:)g(:)g(:)g(:)h(:)f(:)g(:)g(:)g(:)12 b Fo(27)75
1614 y Fm(App)r(endix)23 b(A)60 b(GNU)18 b(F)-6 b(ree)20
-b(Do)r(cumen)n(tation)e(License)12 b Fj(:)e(:)17 b Fm(27)p
+b(Do)r(cumen)n(tation)e(License)12 b Fj(:)e(:)17 b Fm(28)p
eop end
%%Page: 1 4
TeXDict begin 1 3 bop 1852 -58 a Fo(1)75 149 y Fk(1)41
h Fn(isearch-terminators)d Fo(v)m(ariable)i(are)75 369
y(used)f(to)f(terminate)f(an)h(incremen)o(tal)g(searc)o(h.)19
b(If)13 b(that)g(v)m(ariable)g(has)g(not)g(b)q(een)h(assigned)f(a)g(v)m
-(alue,)h(the)75 423 y Fn(ESC)f Fo(and)g Fg(C-J)g Fo(c)o(haracters)f
-(will)g(terminate)g(an)h(incremen)o(tal)f(searc)o(h.)19
-b Fg(C-g)13 b Fo(will)e(ab)q(ort)i(an)g(incremen)o(tal)75
-478 y(searc)o(h)22 b(and)g(restore)f(the)h(original)e(line.)40
-b(When)22 b(the)h(searc)o(h)e(is)h(terminated,)g(the)g(history)f(en)o
-(try)75 533 y(con)o(taining)14 b(the)h(searc)o(h)g(string)f(b)q(ecomes)
-i(the)g(curren)o(t)f(line.)137 608 y(T)l(o)g(\014nd)i(other)e(matc)o
-(hing)f(en)o(tries)h(in)h(the)f(history)g(list,)f(t)o(yp)q(e)h
-Fg(C-r)g Fo(or)g Fg(C-s)g Fo(as)h(appropriate.)j(This)75
-663 y(will)12 b(searc)o(h)h(bac)o(kw)o(ard)f(or)g(forw)o(ard)g(in)h
-(the)g(history)f(for)h(the)g(next)g(en)o(try)g(matc)o(hing)f(the)h
-(searc)o(h)g(string)75 718 y(t)o(yp)q(ed)19 b(so)g(far.)30
-b(An)o(y)19 b(other)f(k)o(ey)h(sequence)h(b)q(ound)g(to)e(a)h(Readline)
-g(command)f(will)g(terminate)g(the)75 773 y(searc)o(h)13
-b(and)f(execute)i(that)e(command.)19 b(F)l(or)12 b(instance,)h(a)f
-Fn(RET)g Fo(will)g(terminate)f(the)i(searc)o(h)g(and)g(accept)75
-827 y(the)i(line,)f(thereb)o(y)h(executing)f(the)h(command)g(from)f
-(the)g(history)g(list.)k(A)d(mo)o(v)o(emen)o(t)f(command)g(will)75
-882 y(terminate)g(the)h(searc)o(h,)g(mak)o(e)g(the)g(last)f(line)h
+(alue,)h(the)75 423 y Fn(ESC)g Fo(and)g Fg(C-j)g Fo(c)o(haracters)g
+(terminate)f(an)h(incremen)o(tal)g(searc)o(h.)19 b Fg(C-g)14
+b Fo(ab)q(orts)f(an)i(incremen)o(tal)e(searc)o(h)75 478
+y(and)j(restores)e(the)i(original)d(line.)20 b(When)c(the)f(searc)o(h)g
+(is)g(terminated,)f(the)i(history)e(en)o(try)h(con)o(taining)75
+533 y(the)g(searc)o(h)g(string)f(b)q(ecomes)i(the)g(curren)o(t)f(line.)
+137 608 y(T)l(o)g(\014nd)i(other)e(matc)o(hing)f(en)o(tries)h(in)h(the)
+f(history)g(list,)f(t)o(yp)q(e)h Fg(C-r)g Fo(or)g Fg(C-s)g
+Fo(as)h(appropriate.)j(This)75 663 y(searc)o(hes)d(bac)o(kw)o(ard)g(or)
+g(forw)o(ard)f(in)h(the)g(history)g(for)f(the)i(next)f(en)o(try)g(matc)
+o(hing)f(the)i(searc)o(h)f(string)75 718 y(t)o(yp)q(ed)f(so)f(far.)19
+b(An)o(y)14 b(other)g(k)o(ey)g(sequence)i(b)q(ound)f(to)f(a)g(Readline)
+g(command)g(terminates)g(the)g(searc)o(h)75 773 y(and)19
+b(executes)h(that)e(command.)32 b(F)l(or)18 b(instance,)i(a)f
+Fn(RET)f Fo(terminates)g(the)h(searc)o(h)g(and)h(accepts)f(the)75
+827 y(line,)i(thereb)o(y)f(executing)g(the)h(command)f(from)f(the)i
+(history)e(list.)34 b(A)20 b(mo)o(v)o(emen)o(t)f(command)h(will)75
+882 y(terminate)14 b(the)h(searc)o(h,)g(mak)o(e)g(the)g(last)f(line)h
(found)h(the)f(curren)o(t)g(line,)f(and)i(b)q(egin)f(editing.)137
957 y(Readline)j(remem)o(b)q(ers)f(the)h(last)e(incremen)o(tal)h(searc)
o(h)g(string.)26 b(If)17 b(t)o(w)o(o)f Fg(C-r)p Fo(s)h(are)g(t)o(yp)q
(unset,)g(the)g(default)g(is)f Fn(~/.inputrc)p Fo(.)19
b(If)c(that)f(\014le)h(do)q(es)h(not)e(exist)h(or)f(cannot)h(b)q(e)75
1738 y(read,)g(Readline)g(lo)q(oks)g(for)f Fn(/etc/inputrc)p
-Fo(.)137 1813 y(When)j(a)f(program)f(whic)o(h)h(uses)g(the)g(Readline)h
-(library)e(starts)f(up,)j(Readline)f(reads)g(the)h(init)e(\014le)75
-1867 y(and)g(sets)g(an)o(y)g(v)m(ariables)g(and)g(k)o(ey)g(bindings)g
+Fo(.)137 1813 y(When)19 b(a)f(program)f(that)h(uses)h(the)f(Readline)h
+(library)e(starts)g(up,)i(Readline)g(reads)f(the)g(init)g(\014le)75
+1867 y(and)d(sets)g(an)o(y)g(v)m(ariables)g(and)g(k)o(ey)g(bindings)g
(it)g(con)o(tains.)137 1943 y(In)f(addition,)f(the)g
Fn(C-x)i(C-r)e Fo(command)g(re-reads)h(this)f(init)f(\014le,)i(th)o(us)
f(incorp)q(orating)f(an)o(y)h(c)o(hanges)75 1997 y(that)h(y)o(ou)h
b(n)o(um)o(b)q(er)g(of)g(screen)g(columns)f(used)i(to)e(displa)o(y)g(p)
q(ossible)g(matc)o(hes)555 1465 y(when)15 b(p)q(erforming)f
(completion.)19 b(The)14 b(v)m(alue)h(is)f(ignored)g(if)g(it)g(is)g
-(less)g(than)555 1519 y(0)f(or)f(greater)h(than)g(the)g(terminal)f
-(screen)h(width.)19 b(A)13 b(v)m(alue)g(of)g(0)g(will)f(cause)555
-1574 y(matc)o(hes)j(to)f(b)q(e)i(displa)o(y)o(ed)f(one)g(p)q(er)h
+(less)g(than)555 1519 y(0)k(or)g(greater)f(than)h(the)g(terminal)f
+(screen)i(width.)28 b(A)19 b(v)m(alue)f(of)g(0)g(causes)555
+1574 y(matc)o(hes)d(to)f(b)q(e)i(displa)o(y)o(ed)f(one)g(p)q(er)h
(line.)j(The)d(default)e(v)m(alue)i(is)f(-1.)315 1656
y Fn(completion-ignore-case)555 1711 y Fo(If)f(set)f(to)g(`)p
Fn(on)p Fo(',)g(Readline)h(p)q(erforms)f(\014lename)h(matc)o(hing)f
b(n)o(um)o(b)q(er)h(of)e(p)q(ossible)h(completions)g(that)f(determines)
h(when)h(the)f(user)555 2615 y(is)21 b(ask)o(ed)g(whether)g(the)h(list)
e(of)h(p)q(ossibilities)e(should)i(b)q(e)h(displa)o(y)o(ed.)38
-b(If)555 2670 y(the)15 b(n)o(um)o(b)q(er)f(of)h(p)q(ossible)f
-(completions)f(is)h(greater)g(than)g(or)g(equal)h(to)f(this)p
+b(If)555 2670 y(the)23 b(n)o(um)o(b)q(er)h(of)f(p)q(ossible)g
+(completions)f(is)h(greater)g(than)g(or)g(equal)g(to)p
eop end
%%Page: 7 10
TeXDict begin 7 9 bop 75 -58 a Fo(Chapter)15 b(1:)k(Command)c(Line)h
-(Editing)1075 b(7)555 149 y(v)m(alue,)22 b(Readline)f(will)f(ask)g
-(whether)i(or)e(not)g(the)h(user)g(wishes)g(to)f(view)555
-204 y(them;)c(otherwise,)f(Readline)i(simply)e(lists)g(the)h
+(Editing)1075 b(7)555 149 y(this)19 b(v)m(alue,)g(Readline)h(asks)e
+(whether)i(or)e(not)h(the)g(user)g(wishes)g(to)f(view)555
+204 y(them;)e(otherwise,)f(Readline)i(simply)e(lists)g(the)h
(completions.)22 b(This)15 b(v)m(ari-)555 259 y(able)g(m)o(ust)h(b)q(e)
g(set)g(to)f(an)g(in)o(teger)g(v)m(alue)h(greater)f(than)h(or)f(equal)g
(to)g(zero.)555 314 y(A)g(zero)g(v)m(alue)g(means)g(Readline)g(should)g
(nev)o(er)g(ask;)f(negativ)o(e)g(v)m(alues)h(are)555
369 y(treated)g(as)g(zero.)k(The)d(default)e(limit)g(is)h
-Fn(100)p Fo(.)315 451 y Fn(convert-meta)555 506 y Fo(If)e(set)f(to)f(`)
-p Fn(on)p Fo(',)h(Readline)g(will)f(con)o(v)o(ert)h(c)o(haracters)g(it)
-f(reads)h(that)g(ha)o(v)o(e)g(the)555 560 y(eigh)o(th)e(bit)g(set)g(to)
-g(an)h Fh(asci)q(i)f Fo(k)o(ey)g(sequence)i(b)o(y)e(clearing)g(the)h
-(eigh)o(th)f(bit)g(and)555 615 y(pre\014xing)k(an)f Fn(ESC)h
-Fo(c)o(haracter,)e(con)o(v)o(erting)h(them)h(to)f(a)g(meta-pre\014xed)h
-(k)o(ey)555 670 y(sequence.)20 b(The)14 b(default)f(v)m(alue)g(is)g(`)p
-Fn(on)p Fo(',)f(but)i(Readline)f(will)f(set)h(it)g(to)f(`)p
-Fn(off)p Fo(')555 725 y(if)g(the)h(lo)q(cale)f(con)o(tains)f(c)o
+Fn(100)p Fo(.)315 451 y Fn(convert-meta)555 506 y Fo(If)j(set)g(to)g(`)
+p Fn(on)p Fo(',)g(Readline)g(con)o(v)o(erts)g(c)o(haracters)f(it)g
+(reads)i(that)e(ha)o(v)o(e)h(the)555 560 y(eigh)o(th)f(bit)g(set)g(to)g
+(an)h Fh(asci)q(i)e Fo(k)o(ey)i(sequence)h(b)o(y)e(clearing)g(the)g
+(eigh)o(th)g(bit)555 615 y(and)c(pre\014xing)g(an)g Fn(ESC)f
+Fo(c)o(haracter,)h(con)o(v)o(erting)f(them)g(to)h(a)f(meta-pre\014xed)
+555 670 y(k)o(ey)g(sequence.)20 b(The)12 b(default)g(v)m(alue)g(is)f(`)
+p Fn(on)p Fo(',)h(but)g(Readline)g(sets)g(it)f(to)g(`)p
+Fn(off)p Fo(')555 725 y(if)h(the)h(lo)q(cale)f(con)o(tains)f(c)o
(haracters)h(whose)g(enco)q(dings)h(ma)o(y)f(include)h(b)o(ytes)555
780 y(with)f(the)g(eigh)o(th)f(bit)h(set.)19 b(This)12
b(v)m(ariable)f(is)h(dep)q(enden)o(t)i(on)e(the)g Fn(LC_CTYPE)555
(the)g(lo)q(cale)f(c)o(hanges.)19 b(This)12 b(v)m(ariable)555
889 y(also)e(a\013ects)h(k)o(ey)g(bindings;)h(see)f(the)h(description)f
(of)f Fn(force-meta-prefix)555 944 y Fo(b)q(elo)o(w.)315
-1026 y Fn(disable-completion)555 1081 y Fo(If)19 b(set)f(to)f(`)p
-Fn(On)p Fo(',)h(Readline)h(will)e(inhibit)g(w)o(ord)h(completion.)28
-b(Completion)555 1136 y(c)o(haracters)12 b(will)g(b)q(e)i(inserted)f
-(in)o(to)f(the)h(line)f(as)h(if)g(they)g(had)g(b)q(een)h(mapp)q(ed)555
-1191 y(to)h Fn(self-insert)p Fo(.)j(The)d(default)g(is)g(`)p
+1026 y Fn(disable-completion)555 1081 y Fo(If)k(set)f(to)h(`)p
+Fn(On)p Fo(',)e(Readline)i(inhibits)f(w)o(ord)g(completion.)19
+b(Completion)12 b(c)o(har-)555 1136 y(acters)21 b(are)g(inserted)g(in)o
+(to)g(the)g(line)h(as)f(if)g(they)g(had)h(b)q(een)g(mapp)q(ed)h(to)555
+1191 y Fn(self-insert)p Fo(.)18 b(The)e(default)f(is)f(`)p
Fn(off)p Fo('.)315 1273 y Fn(echo-control-characters)555
-1328 y Fo(When)h(set)e(to)h(`)p Fn(on)p Fo(',)f(on)h(op)q(erating)f
+1328 y Fo(When)i(set)e(to)h(`)p Fn(on)p Fo(',)f(on)h(op)q(erating)f
(systems)h(that)f(indicate)h(they)g(supp)q(ort)555 1382
y(it,)e(Readline)h(ec)o(ho)q(es)h(a)f(c)o(haracter)f(corresp)q(onding)h
(to)f(a)h(signal)f(generated)555 1437 y(from)h(the)i(k)o(eyb)q(oard.)k
734 y(prev)o(en)o(ts)15 b(Readline)g(from)f(executing)h(an)o(y)g
(editing)f(commands)h(b)q(ound)h(to)555 789 y(k)o(ey)f(sequences)h(app)
q(earing)f(in)g(the)h(pasted)f(text.)k(The)d(default)e(is)h(`)p
-Fn(On)p Fo('.)315 880 y Fn(enable-keypad)555 935 y Fo(When)d(set)f(to)h
-(`)p Fn(on)p Fo(',)e(Readline)i(will)f(try)g(to)g(enable)h(the)g
-(application)e(k)o(eypad)555 990 y(when)k(it)e(is)h(called.)19
+Fn(On)p Fo('.)315 880 y Fn(enable-keypad)555 935 y Fo(When)j(set)f(to)f
+(`)p Fn(on)p Fo(',)h(Readline)g(tries)g(to)f(enable)i(the)f
+(application)f(k)o(eypad)555 990 y(when)e(it)e(is)h(called.)19
b(Some)13 b(systems)g(need)h(this)f(to)g(enable)g(the)h(arro)o(w)e(k)o
(eys.)555 1044 y(The)j(default)g(is)g(`)p Fn(off)p Fo('.)315
-1136 y Fn(enable-meta-key)555 1191 y Fo(When)e(set)g(to)f(`)p
-Fn(on)p Fo(',)f(Readline)i(will)f(try)g(to)g(enable)h(an)o(y)f(meta)g
-(mo)q(di\014er)h(k)o(ey)555 1245 y(the)k(terminal)e(claims)h(to)g(supp)
-q(ort)h(when)g(it)f(is)g(called.)24 b(On)17 b(man)o(y)g(termi-)555
-1300 y(nals,)12 b(the)h(Meta)e(k)o(ey)i(is)e(used)i(to)f(send)h(eigh)o
-(t-bit)f(c)o(haracters;)g(this)g(v)m(ariable)555 1355
-y(c)o(hec)o(ks)18 b(for)f(the)h(terminal)f(capabilit)o(y)f(that)h
-(indicates)g(the)h(terminal)f(can)555 1410 y(enable)h(and)g(disable)f
-(a)h(mo)q(de)g(that)f(sets)g(the)h(eigh)o(th)g(bit)f(of)g(a)h(c)o
-(haracter)555 1465 y(\(0200\))12 b(if)i(the)g(Meta)f(k)o(ey)h(is)g
-(held)g(do)o(wn)g(when)h(the)f(c)o(haracter)g(is)f(t)o(yp)q(ed)i(\(a)
-555 1519 y(meta)g(c)o(haracter\).)j(The)e(default)f(is)f(`)p
-Fn(on)p Fo('.)315 1611 y Fn(expand-tilde)555 1665 y Fo(If)j(set)f(to)f
-(`)p Fn(on)p Fo(',)h(Readline)g(attempts)g(tilde)f(expansion)i(when)f
-(it)g(attempts)555 1720 y(w)o(ord)f(completion.)k(The)c(default)g(is)f
-(`)p Fn(off)p Fo('.)315 1812 y Fn(force-meta-prefix)555
-1866 y Fo(If)j(set)f(to)g(`)p Fn(on)p Fo(',)f(Readline)i(mo)q(di\014es)
-f(its)g(b)q(eha)o(vior)g(when)h(binding)f(k)o(ey)h(se-)555
+1136 y Fn(enable-meta-key)555 1191 y Fo(When)c(set)g(to)g(`)p
+Fn(on)p Fo(',)f(Readline)i(tries)e(to)g(enable)i(an)o(y)e(meta)h(mo)q
+(di\014er)g(k)o(ey)g(the)555 1245 y(terminal)16 b(claims)g(to)g(supp)q
+(ort)h(when)h(it)e(is)h(called.)25 b(On)17 b(man)o(y)g(terminals,)555
+1300 y(the)23 b(Meta)e(k)o(ey)i(is)f(used)h(to)f(send)h(eigh)o(t-bit)f
+(c)o(haracters;)j(this)d(v)m(ariable)555 1355 y(c)o(hec)o(ks)c(for)f
+(the)h(terminal)f(capabilit)o(y)f(that)h(indicates)g(the)h(terminal)f
+(can)555 1410 y(enable)h(and)g(disable)f(a)h(mo)q(de)g(that)f(sets)g
+(the)h(eigh)o(th)g(bit)f(of)g(a)h(c)o(haracter)555 1465
+y(\(0200\))12 b(if)i(the)g(Meta)f(k)o(ey)h(is)g(held)g(do)o(wn)g(when)h
+(the)f(c)o(haracter)g(is)f(t)o(yp)q(ed)i(\(a)555 1519
+y(meta)g(c)o(haracter\).)j(The)e(default)f(is)f(`)p Fn(on)p
+Fo('.)315 1611 y Fn(expand-tilde)555 1665 y Fo(If)j(set)f(to)f(`)p
+Fn(on)p Fo(',)h(Readline)g(attempts)g(tilde)f(expansion)i(when)f(it)g
+(attempts)555 1720 y(w)o(ord)f(completion.)k(The)c(default)g(is)f(`)p
+Fn(off)p Fo('.)315 1812 y Fn(force-meta-prefix)555 1866
+y Fo(If)j(set)f(to)g(`)p Fn(on)p Fo(',)f(Readline)i(mo)q(di\014es)f
+(its)g(b)q(eha)o(vior)g(when)h(binding)f(k)o(ey)h(se-)555
1921 y(quences)12 b(con)o(taining)e Fg(\\M-)h Fo(or)g
Fn(Meta-)f Fo(\(see)h Fn(Key)k(Bindings)10 b Fo(in)h(Section)h(1.3.1)
555 1976 y([Readline)18 b(Init)f(File)g(Syn)o(tax],)g(page)h(4\))f(b)o
b(This)20 b(v)m(ariable)h(is)f(automatically)e(set)j(to)f(`)p
Fn(on)p Fo(')g(for)555 829 y(terminals)14 b(of)h(heigh)o(t)f(1.)20
b(By)15 b(default,)g(this)f(v)m(ariable)h(is)f(set)h(to)g(`)p
-Fn(off)p Fo('.)315 906 y Fn(input-meta)555 960 y Fo(If)d(set)g(to)f(`)p
-Fn(on)p Fo(',)g(Readline)h(will)e(enable)i(eigh)o(t-bit)f(input)h
-(\(that)e(is,)i(it)f(will)f(not)555 1015 y(clear)17 b(the)g(eigh)o(th)f
-(bit)h(in)g(the)g(c)o(haracters)f(it)h(reads\),)g(regardless)f(of)h
-(what)555 1070 y(the)f(terminal)e(claims)g(it)h(can)h(supp)q(ort.)k
-(The)c(default)f(v)m(alue)h(is)f(`)p Fn(off)p Fo(',)f(but)555
-1125 y(Readline)k(will)e(set)h(it)g(to)g(`)p Fn(on)p
-Fo(')f(if)h(the)h(lo)q(cale)f(con)o(tains)f(c)o(haracters)h(whose)555
-1180 y(enco)q(dings)f(ma)o(y)e(include)h(b)o(ytes)g(with)g(the)g(eigh)o
+Fn(off)p Fo('.)315 906 y Fn(input-meta)555 960 y Fo(If)h(set)g(to)f(`)p
+Fn(on)p Fo(',)f(Readline)j(enables)f(eigh)o(t-bit)e(input)i(\(that)f
+(is,)g(it)g(do)q(es)h(not)555 1015 y(clear)h(the)g(eigh)o(th)f(bit)h
+(in)g(the)g(c)o(haracters)f(it)h(reads\),)g(regardless)f(of)h(what)555
+1070 y(the)23 b(terminal)e(claims)g(it)h(can)g(supp)q(ort.)42
+b(The)23 b(default)f(v)m(alue)h(is)f(`)p Fn(off)p Fo(',)555
+1125 y(but)16 b(Readline)h(sets)e(it)h(to)f(`)p Fn(on)p
+Fo(')g(if)h(the)g(lo)q(cale)g(con)o(tains)f(c)o(haracters)g(whose)555
+1180 y(enco)q(dings)h(ma)o(y)e(include)h(b)o(ytes)g(with)g(the)g(eigh)o
(th)g(bit)f(set.)20 b(This)15 b(v)m(ariable)555 1234
y(is)j(dep)q(enden)o(t)i(on)f(the)f Fn(LC_CTYPE)g Fo(lo)q(cale)g
(category)l(,)g(and)h(its)f(v)m(alue)h(ma)o(y)555 1289
b(name)g Fn(meta-flag)e Fo(is)i(a)f(synon)o(ym)555 1344
y(for)e Fn(input-meta)p Fo(.)315 1421 y Fn(isearch-terminators)555
1475 y Fo(The)26 b(string)f(of)g(c)o(haracters)g(that)g(should)h
-(terminate)f(an)h(incremen)o(tal)555 1530 y(searc)o(h)12
-b(without)g(subsequen)o(tly)g(executing)h(the)f(c)o(haracter)g(as)g(a)g
-(command)555 1585 y(\(see)22 b(Section)g(1.2.5)f([Searc)o(hing],)i
-(page)f(3\).)40 b(If)23 b(this)f(v)m(ariable)f(has)h(not)555
-1640 y(b)q(een)d(giv)o(en)e(a)g(v)m(alue,)i(the)f(c)o(haracters)e
-Fn(ESC)i Fo(and)g Fg(C-J)f Fo(will)f(terminate)h(an)555
-1695 y(incremen)o(tal)d(searc)o(h.)315 1771 y Fn(keymap)96
-b Fo(Sets)32 b(Readline's)g(idea)g(of)g(the)g(curren)o(t)g(k)o(eymap)g
-(for)g(k)o(ey)g(binding)555 1826 y(commands.)j(Built-in)19
-b Fn(keymap)h Fo(names)g(are)g Fn(emacs)p Fo(,)g Fn(emacs-standard)p
+(terminate)f(an)h(incremen)o(tal)555 1530 y(searc)o(h)41
+b(without)g(subsequen)o(tly)h(executing)g(the)f(c)o(haracter)g(as)g(a)
+555 1585 y(command)19 b(\(see)g(Section)f(1.2.5)g([Searc)o(hing],)g
+(page)h(3\).)30 b(If)19 b(this)g(v)m(ariable)555 1640
+y(has)d(not)h(b)q(een)g(giv)o(en)f(a)h(v)m(alue,)f(the)h(c)o(haracters)
+f Fn(ESC)g Fo(and)h Fg(C-j)f Fo(terminate)555 1695 y(an)f(incremen)o
+(tal)f(searc)o(h.)315 1771 y Fn(keymap)96 b Fo(Sets)32
+b(Readline's)g(idea)g(of)g(the)g(curren)o(t)g(k)o(eymap)g(for)g(k)o(ey)
+g(binding)555 1826 y(commands.)j(Built-in)19 b Fn(keymap)h
+Fo(names)g(are)g Fn(emacs)p Fo(,)g Fn(emacs-standard)p
Fo(,)555 1881 y Fn(emacs-meta)p Fo(,)49 b Fn(emacs-ctlx)p
Fo(,)g Fn(vi)p Fo(,)h Fn(vi-move)p Fo(,)f Fn(vi-command)p
Fo(,)g(and)555 1936 y Fn(vi-insert)p Fo(.)40 b Fn(vi)22
2286 y(ing)i(an)f(am)o(biguous)g(k)o(ey)h(sequence)h(\(one)f(that)f
(can)i(form)e(a)g(complete)h(k)o(ey)555 2341 y(sequence)j(using)e(the)h
(input)f(read)h(so)f(far,)g(or)g(can)h(tak)o(e)f(additional)f(input)555
-2396 y(to)21 b(complete)g(a)g(longer)f(k)o(ey)i(sequence\).)39
-b(If)21 b(Readline)h(do)q(esn't)f(receiv)o(e)555 2451
-y(an)o(y)16 b(input)g(within)f(the)h(timeout,)f(it)g(will)f(use)j(the)f
-(shorter)f(but)h(complete)555 2506 y(k)o(ey)k(sequence.)38
-b(Readline)21 b(uses)f(this)g(v)m(alue)h(to)f(determine)h(whether)f(or)
-555 2560 y(not)13 b(input)g(is)g(a)o(v)m(ailable)f(on)i(the)f(curren)o
-(t)h(input)f(source)g(\()p Fn(rl_instream)f Fo(b)o(y)555
-2615 y(default\).)24 b(The)16 b(v)m(alue)h(is)g(sp)q(eci\014ed)g(in)g
-(milliseconds,)e(so)i(a)f(v)m(alue)h(of)f(1000)555 2670
-y(means)h(that)g(Readline)h(will)e(w)o(ait)f(one)j(second)g(for)f
-(additional)e(input.)27 b(If)p eop end
+2396 y(to)e(complete)g(a)f(longer)h(k)o(ey)g(sequence\).)20
+b(If)14 b(Readline)f(do)q(esn't)g(receiv)o(e)g(an)o(y)555
+2451 y(input)j(within)g(the)g(timeout,)f(it)h(uses)g(the)h(shorter)e
+(but)i(complete)f(k)o(ey)g(se-)555 2506 y(quence.)k(Readline)13
+b(uses)g(this)f(v)m(alue)h(to)g(determine)f(whether)h(or)g(not)f(input)
+555 2560 y(is)j(a)o(v)m(ailable)f(on)h(the)g(curren)o(t)h(input)f
+(source)g(\()p Fn(rl_instream)f Fo(b)o(y)h(default\).)555
+2615 y(The)e(v)m(alue)g(is)f(sp)q(eci\014ed)i(in)e(milliseconds,)g(so)g
+(a)g(v)m(alue)h(of)g(1000)e(means)i(that)555 2670 y(Readline)j(will)e
+(w)o(ait)g(one)i(second)g(for)f(additional)f(input.)21
+b(If)16 b(this)f(v)m(ariable)p eop end
%%Page: 10 13
TeXDict begin 10 12 bop 75 -58 a Fo(Chapter)15 b(1:)k(Command)c(Line)h
-(Editing)1053 b(10)555 149 y(this)19 b(v)m(ariable)g(is)h(set)f(to)g(a)
-h(v)m(alue)g(less)f(than)h(or)f(equal)g(to)h(zero,)g(or)f(to)g(a)555
-204 y(non-n)o(umeric)d(v)m(alue,)h(Readline)f(will)f(w)o(ait)g(un)o
-(til)g(another)h(k)o(ey)g(is)f(pressed)555 259 y(to)c(decide)i(whic)o
-(h)f(k)o(ey)g(sequence)h(to)e(complete.)18 b(The)13 b(default)e(v)m
-(alue)h(is)g Fn(500)p Fo(.)315 336 y Fn(mark-directories)555
-391 y Fo(If)19 b(set)g(to)g(`)p Fn(on)p Fo(',)f(completed)h(directory)g
-(names)g(ha)o(v)o(e)f(a)h(slash)g(app)q(ended.)555 445
-y(The)c(default)g(is)g(`)p Fn(on)p Fo('.)315 522 y Fn
-(mark-modified-lines)555 577 y Fo(When)d(this)f(v)m(ariable)g(is)g(set)
-h(to)f(`)p Fn(on)p Fo(',)g(Readline)h(will)e(to)h(displa)o(y)g(an)g
-(asterisk)555 632 y(\(`)p Fn(*)p Fo('\))16 b(at)i(the)f(start)g(of)h
-(history)e(lines)i(whic)o(h)g(ha)o(v)o(e)f(b)q(een)i(mo)q(di\014ed.)28
-b(This)555 686 y(v)m(ariable)15 b(is)f(`)p Fn(off)p Fo(')g(b)o(y)h
-(default.)315 763 y Fn(mark-symlinked-directories)555
-818 y Fo(If)30 b(set)f(to)g(`)p Fn(on)p Fo(',)j(completed)e(names)g
-(whic)o(h)f(are)h(sym)o(b)q(olic)f(links)g(to)555 873
-y(directories)34 b(ha)o(v)o(e)g(a)h(slash)f(app)q(ended,)41
-b(sub)s(ject)34 b(to)h(the)f(v)m(alue)h(of)555 928 y
-Fn(mark-directories)p Fo(.)18 b(The)d(default)g(is)g(`)p
-Fn(off)p Fo('.)315 1004 y Fn(match-hidden-files)555 1059
-y Fo(This)d(v)m(ariable,)g(when)g(set)g(to)g(`)p Fn(on)p
-Fo(',)f(forces)h(Readline)h(to)e(matc)o(h)h(\014les)g(whose)555
-1114 y(names)22 b(b)q(egin)g(with)g(a)f(`)p Fn(.)p Fo(')h(\(hidden)g
-(\014les\))g(when)g(p)q(erforming)g(\014lename)555 1169
-y(completion.)d(If)c(set)f(to)g(`)p Fn(off)p Fo(',)f(the)h(user)h(m)o
-(ust)f(include)h(the)g(leading)f(`)p Fn(.)p Fo(')f(in)555
-1223 y(the)i(\014lename)h(to)e(b)q(e)i(completed.)k(This)15
-b(v)m(ariable)f(is)h(`)p Fn(on)p Fo(')f(b)o(y)h(default.)315
+(Editing)1053 b(10)555 149 y(is)19 b(set)h(to)f(a)h(v)m(alue)g(less)g
+(than)f(or)h(equal)g(to)f(zero,)h(or)g(to)f(a)h(non-n)o(umeric)555
+204 y(v)m(alue,)d(Readline)g(w)o(aits)e(un)o(til)g(another)h(k)o(ey)h
+(is)f(pressed)h(to)f(decide)h(whic)o(h)555 259 y(k)o(ey)e(sequence)h
+(to)f(complete.)20 b(The)15 b(default)g(v)m(alue)g(is)g
+Fn(500)p Fo(.)315 336 y Fn(mark-directories)555 391 y
+Fo(If)k(set)g(to)g(`)p Fn(on)p Fo(',)f(completed)h(directory)g(names)g
+(ha)o(v)o(e)f(a)h(slash)g(app)q(ended.)555 445 y(The)c(default)g(is)g
+(`)p Fn(on)p Fo('.)315 522 y Fn(mark-modified-lines)555
+577 y Fo(When)f(this)f(v)m(ariable)g(is)g(set)g(to)g(`)p
+Fn(on)p Fo(',)f(Readline)i(displa)o(ys)f(an)g(asterisk)g(\(`)p
+Fn(*)p Fo('\))555 632 y(at)e(the)h(start)e(of)i(history)e(lines)i(whic)
+o(h)f(ha)o(v)o(e)g(b)q(een)i(mo)q(di\014ed.)19 b(This)12
+b(v)m(ariable)555 686 y(is)j(`)p Fn(off)p Fo(')f(b)o(y)h(default.)315
+763 y Fn(mark-symlinked-directories)555 818 y Fo(If)30
+b(set)f(to)g(`)p Fn(on)p Fo(',)j(completed)e(names)g(whic)o(h)f(are)h
+(sym)o(b)q(olic)f(links)g(to)555 873 y(directories)34
+b(ha)o(v)o(e)g(a)h(slash)f(app)q(ended,)41 b(sub)s(ject)34
+b(to)h(the)f(v)m(alue)h(of)555 928 y Fn(mark-directories)p
+Fo(.)18 b(The)d(default)g(is)g(`)p Fn(off)p Fo('.)315
+1004 y Fn(match-hidden-files)555 1059 y Fo(This)d(v)m(ariable,)g(when)g
+(set)g(to)g(`)p Fn(on)p Fo(',)f(forces)h(Readline)h(to)e(matc)o(h)h
+(\014les)g(whose)555 1114 y(names)22 b(b)q(egin)g(with)g(a)f(`)p
+Fn(.)p Fo(')h(\(hidden)g(\014les\))g(when)g(p)q(erforming)g(\014lename)
+555 1169 y(completion.)d(If)c(set)f(to)g(`)p Fn(off)p
+Fo(',)f(the)h(user)h(m)o(ust)f(include)h(the)g(leading)f(`)p
+Fn(.)p Fo(')f(in)555 1223 y(the)i(\014lename)h(to)e(b)q(e)i(completed.)
+k(This)15 b(v)m(ariable)f(is)h(`)p Fn(on)p Fo(')f(b)o(y)h(default.)315
1300 y Fn(menu-complete-display-pref)o(ix)555 1355 y
Fo(If)i(set)g(to)f(`)p Fn(on)p Fo(',)f(men)o(u)i(completion)f(displa)o
(ys)g(the)h(common)f(pre\014x)i(of)e(the)555 1410 y(list)i(of)g(p)q
(ossible)g(completions)g(\(whic)o(h)h(ma)o(y)f(b)q(e)h(empt)o(y\))f(b)q
(efore)h(cycling)555 1465 y(through)c(the)g(list.)k(The)c(default)g(is)
g(`)p Fn(off)p Fo('.)315 1541 y Fn(output-meta)555 1596
-y Fo(If)j(set)f(to)g(`)p Fn(on)p Fo(',)g(Readline)h(will)f(displa)o(y)g
-(c)o(haracters)f(with)i(the)f(eigh)o(th)g(bit)555 1651
-y(set)h(directly)g(rather)f(than)h(as)g(a)g(meta-pre\014xed)h(escap)q
-(e)g(sequence.)30 b(The)555 1706 y(default)12 b(is)h(`)p
-Fn(off)p Fo(',)e(but)i(Readline)h(will)d(set)i(it)f(to)g(`)p
-Fn(on)p Fo(')g(if)g(the)h(lo)q(cale)f(con)o(tains)555
-1760 y(c)o(haracters)k(whose)g(enco)q(dings)h(ma)o(y)f(include)h(b)o
-(ytes)f(with)g(the)g(eigh)o(th)g(bit)555 1815 y(set.)30
-b(This)19 b(v)m(ariable)f(is)g(dep)q(enden)o(t)j(on)d(the)h
-Fn(LC_CTYPE)f Fo(lo)q(cale)g(category)l(,)555 1870 y(and)d(its)g(v)m
-(alue)g(ma)o(y)g(c)o(hange)g(if)g(the)g(lo)q(cale)f(c)o(hanges.)315
-1947 y Fn(page-completions)555 2001 y Fo(If)j(set)g(to)f(`)p
-Fn(on)p Fo(',)g(Readline)h(uses)h(an)e(in)o(ternal)g
-Fn(more)p Fo(-lik)o(e)g(pager)h(to)f(displa)o(y)555 2056
-y(a)g(screenful)g(of)g(p)q(ossible)g(completions)f(at)h(a)g(time.)22
-b(This)16 b(v)m(ariable)f(is)h(`)p Fn(on)p Fo(')555 2111
-y(b)o(y)f(default.)315 2188 y Fn(prefer-visible-bell)555
+y Fo(If)d(set)f(to)g(`)p Fn(on)p Fo(',)g(Readline)h(displa)o(ys)e(c)o
+(haracters)h(with)g(the)h(eigh)o(th)f(bit)g(set)g(di-)555
+1651 y(rectly)i(rather)h(than)f(as)h(a)g(meta-pre\014xed)g(escap)q(e)h
+(sequence.)20 b(The)14 b(default)555 1706 y(is)e(`)p
+Fn(off)p Fo(',)g(but)h(Readline)h(sets)e(it)h(to)f(`)p
+Fn(on)p Fo(')g(if)g(the)h(lo)q(cale)g(con)o(tains)f(c)o(haracters)555
+1760 y(whose)18 b(enco)q(dings)h(ma)o(y)e(include)i(b)o(ytes)f(with)f
+(the)h(eigh)o(th)g(bit)g(set.)28 b(This)555 1815 y(v)m(ariable)11
+b(is)g(dep)q(enden)o(t)i(on)e(the)g Fn(LC_CTYPE)g Fo(lo)q(cale)g
+(category)l(,)g(and)g(its)g(v)m(alue)555 1870 y(ma)o(y)j(c)o(hange)i
+(if)e(the)i(lo)q(cale)e(c)o(hanges.)315 1947 y Fn(page-completions)555
+2001 y Fo(If)e(set)g(to)g(`)p Fn(on)p Fo(',)f(Readline)h(uses)h(an)f
+(in)o(ternal)f(pager)h(resem)o(bling)f Fe(mor)n(e)s Fo(\(1\))h(to)555
+2056 y(displa)o(y)h(a)i(screenful)f(of)g(p)q(ossible)g(completions)g
+(at)g(a)g(time.)19 b(This)14 b(v)m(ariable)555 2111 y(is)h(`)p
+Fn(on)p Fo(')f(b)o(y)h(default.)315 2188 y Fn(prefer-visible-bell)555
2243 y Fo(See)h Fn(bell-style)p Fo(.)315 2319 y Fn
-(print-completions-horizont)o(ally)555 2374 y Fo(If)c(set)g(to)f(`)p
-Fn(on)p Fo(',)h(Readline)g(will)e(displa)o(y)i(completions)f(with)g
-(matc)o(hes)g(sorted)555 2429 y(horizon)o(tally)20 b(in)h(alphab)q
-(etical)g(order,)i(rather)e(than)g(do)o(wn)h(the)g(screen.)555
+(print-completions-horizont)o(ally)555 2374 y Fo(If)j(set)g(to)g(`)p
+Fn(on)p Fo(',)f(Readline)i(displa)o(ys)e(completions)g(with)h(matc)o
+(hes)f(sorted)555 2429 y(horizon)o(tally)i(in)h(alphab)q(etical)g
+(order,)i(rather)e(than)g(do)o(wn)h(the)g(screen.)555
2484 y(The)15 b(default)g(is)g(`)p Fn(off)p Fo('.)315
2560 y Fn(revert-all-at-newline)555 2615 y Fo(If)g(set)g(to)f(`)p
Fn(on)p Fo(',)f(Readline)i(will)f(undo)h(all)f(c)o(hanges)g(to)h
(Editing)1053 b(18)195 149 y Fn(#)24 b(For)f(FTP)195
204 y($if)g(Ftp)195 259 y("\\C-xg":)g("get)g(\\M-?")195
314 y("\\C-xt":)g("put)g(\\M-?")195 369 y("\\M-.":)g(yank-last-arg)195
-423 y($endif)75 548 y Fm(1.4)33 b(Bindable)22 b(Readline)f(Commands)75
-628 y Fo(This)12 b(section)h(describ)q(es)g(Readline)g(commands)g(that)
+423 y($endif)75 536 y Fm(1.4)33 b(Bindable)22 b(Readline)f(Commands)75
+616 y Fo(This)12 b(section)h(describ)q(es)g(Readline)g(commands)g(that)
f(ma)o(y)g(b)q(e)i(b)q(ound)f(to)g(k)o(ey)f(sequences.)20
-b(Command)75 682 y(names)15 b(without)f(an)h(accompan)o(ying)g(k)o(ey)g
+b(Command)75 670 y(names)15 b(without)f(an)h(accompan)o(ying)g(k)o(ey)g
(sequence)h(are)f(un)o(b)q(ound)i(b)o(y)e(default.)137
-752 y(In)f(the)f(follo)o(wing)e(descriptions,)i Ff(p)q(oin)o(t)g
+734 y(In)f(the)f(follo)o(wing)e(descriptions,)i Ff(p)q(oin)o(t)g
Fo(refers)g(to)g(the)g(curren)o(t)g(cursor)f(p)q(osition,)h(and)g
-Ff(mark)i Fo(refers)75 807 y(to)c(a)g(cursor)h(p)q(osition)f(sa)o(v)o
+Ff(mark)i Fo(refers)75 788 y(to)c(a)g(cursor)h(p)q(osition)f(sa)o(v)o
(ed)g(b)o(y)h(the)f Fn(set-mark)g Fo(command.)18 b(The)12
b(text)g(b)q(et)o(w)o(een)g(the)f(p)q(oin)o(t)h(and)g(mark)75
-862 y(is)j(referred)h(to)f(as)g(the)h Ff(region)p Fo(.)21
+843 y(is)j(referred)h(to)f(as)g(the)h Ff(region)p Fo(.)21
b(Readline)16 b(has)f(the)h(concept)g(of)f(an)h Fe(active)g(r)n(e)n
-(gion)s Fo(:)21 b(when)16 b(the)g(region)75 917 y(is)h(activ)o(e,)g
+(gion)s Fo(:)21 b(when)16 b(the)g(region)75 898 y(is)h(activ)o(e,)g
(Readline)h(redispla)o(y)e(highligh)o(ts)g(the)i(region)f(using)g(the)g
-(v)m(alue)h(of)f(the)h Fn(active-region-)75 972 y(start-color)13
+(v)m(alue)h(of)f(the)h Fn(active-region-)75 953 y(start-color)13
b Fo(v)m(ariable.)19 b(The)c Fn(enable-active-region)d
Fo(v)m(ariable)i(turns)g(this)g(on)h(and)g(o\013.)j(Sev)o(eral)75
-1026 y(commands)d(set)g(the)g(region)g(to)f(activ)o(e;)g(those)h(are)g
-(noted)g(b)q(elo)o(w.)75 1129 y Fd(1.4.1)30 b(Commands)21
-b(F)-5 b(or)19 b(Mo)n(ving)75 1216 y Fn(beginning-of-line)13
-b(\(C-a\))315 1271 y Fo(Mo)o(v)o(e)g(to)g(the)h(start)e(of)i(the)f
+1008 y(commands)d(set)g(the)g(region)g(to)f(activ)o(e;)g(those)h(are)g
+(noted)g(b)q(elo)o(w.)75 1099 y Fd(1.4.1)30 b(Commands)21
+b(F)-5 b(or)19 b(Mo)n(ving)75 1181 y Fn(beginning-of-line)13
+b(\(C-a\))315 1236 y Fo(Mo)o(v)o(e)g(to)g(the)h(start)e(of)i(the)f
(curren)o(t)h(line.)19 b(This)14 b(ma)o(y)f(also)f(b)q(e)j(b)q(ound)f
-(to)g(the)f(Home)h(k)o(ey)315 1326 y(on)h(some)g(k)o(eyb)q(oards.)75
-1408 y Fn(end-of-line)f(\(C-e\))315 1463 y Fo(Mo)o(v)o(e)h(to)g(the)i
+(to)g(the)f(Home)h(k)o(ey)315 1291 y(on)h(some)g(k)o(eyb)q(oards.)75
+1363 y Fn(end-of-line)f(\(C-e\))315 1417 y Fo(Mo)o(v)o(e)h(to)g(the)i
(end)f(of)g(the)g(line.)22 b(This)16 b(ma)o(y)f(also)g(b)q(e)i(b)q
-(ound)g(to)e(the)h(End)g(k)o(ey)g(on)g(some)315 1518
-y(k)o(eyb)q(oards.)75 1600 y Fn(forward-char)e(\(C-f\))315
-1655 y Fo(Mo)o(v)o(e)g(forw)o(ard)g(a)h(c)o(haracter.)75
-1737 y Fn(backward-char)e(\(C-b\))315 1792 y Fo(Mo)o(v)o(e)h(bac)o(k)h
-(a)g(c)o(haracter.)75 1875 y Fn(forward-word)f(\(M-f\))315
-1929 y Fo(Mo)o(v)o(e)g(forw)o(ard)g(to)g(the)i(end)g(of)e(the)h(next)h
+(ound)g(to)e(the)h(End)g(k)o(ey)g(on)g(some)315 1472
+y(k)o(eyb)q(oards.)75 1544 y Fn(forward-char)e(\(C-f\))315
+1599 y Fo(Mo)o(v)o(e)i(forw)o(ard)f(a)h(c)o(haracter.)23
+b(This)16 b(ma)o(y)g(also)f(b)q(e)i(b)q(ound)h(to)e(the)g(righ)o(t)g
+(arro)o(w)f(k)o(ey)h(on)315 1654 y(some)f(k)o(eyb)q(oards.)75
+1725 y Fn(backward-char)e(\(C-b\))315 1780 y Fo(Mo)o(v)o(e)h(bac)o(k)h
+(a)g(c)o(haracter.)k(This)c(ma)o(y)f(also)g(b)q(e)i(b)q(ound)g(to)e
+(the)h(left)g(arro)o(w)e(k)o(ey)i(on)g(some)315 1835
+y(k)o(eyb)q(oards.)75 1907 y Fn(forward-word)f(\(M-f\))315
+1962 y Fo(Mo)o(v)o(e)g(forw)o(ard)g(to)g(the)i(end)g(of)e(the)h(next)h
(w)o(ord.)j(W)l(ords)c(are)f(comp)q(osed)i(of)f(letters)f(and)315
-1984 y(digits.)75 2067 y Fn(backward-word)f(\(M-b\))315
-2122 y Fo(Mo)o(v)o(e)j(bac)o(k)g(to)h(the)f(start)g(of)g(the)h(curren)o
+2016 y(digits.)75 2088 y Fn(backward-word)f(\(M-b\))315
+2143 y Fo(Mo)o(v)o(e)j(bac)o(k)g(to)h(the)f(start)g(of)g(the)h(curren)o
(t)g(or)f(previous)h(w)o(ord.)24 b(W)l(ords)16 b(are)h(comp)q(osed)315
-2176 y(of)e(letters)f(and)h(digits.)75 2259 y Fn(previous-screen-line)d
-(\(\))315 2314 y Fo(A)o(ttempt)19 b(to)h(mo)o(v)o(e)f(p)q(oin)o(t)h(to)
+2198 y(of)e(letters)f(and)h(digits.)75 2269 y Fn(previous-screen-line)d
+(\(\))315 2324 y Fo(A)o(ttempt)19 b(to)h(mo)o(v)o(e)f(p)q(oin)o(t)h(to)
f(the)h(same)g(ph)o(ysical)f(screen)i(column)f(on)g(the)g(previous)315
-2368 y(ph)o(ysical)12 b(screen)h(line.)19 b(This)12 b(will)f(not)h(ha)o
+2379 y(ph)o(ysical)12 b(screen)h(line.)19 b(This)12 b(will)f(not)h(ha)o
(v)o(e)g(the)h(desired)f(e\013ect)h(if)f(the)g(curren)o(t)h(Readline)
-315 2423 y(line)g(do)q(es)h(not)g(tak)o(e)f(up)h(more)f(than)g(one)h
+315 2434 y(line)g(do)q(es)h(not)g(tak)o(e)f(up)h(more)f(than)g(one)h
(ph)o(ysical)f(line)g(or)h(if)f(p)q(oin)o(t)g(is)g(not)g(greater)g
-(than)315 2478 y(the)i(length)g(of)g(the)g(prompt)g(plus)g(the)g
+(than)315 2489 y(the)i(length)g(of)g(the)g(prompt)g(plus)g(the)g
(screen)h(width.)75 2560 y Fn(next-screen-line)d(\(\))315
2615 y Fo(A)o(ttempt)e(to)h(mo)o(v)o(e)g(p)q(oin)o(t)g(to)f(the)i(same)
f(ph)o(ysical)f(screen)i(column)g(on)f(the)g(next)h(ph)o(ysical)315
g(ph)o(ysical)f(line)g(or)g(if)g(the)h(length)f(of)g(the)h(curren)o(t)g
(Readline)315 204 y(line)h(is)g(not)f(greater)h(than)g(the)g(length)g
(of)g(the)g(prompt)g(plus)g(the)g(screen)h(width.)75
-291 y Fn(clear-display)d(\(M-C-l\))315 346 y Fo(Clear)j(the)g(screen)h
+282 y Fn(clear-display)d(\(M-C-l\))315 337 y Fo(Clear)j(the)g(screen)h
(and,)g(if)f(p)q(ossible,)g(the)g(terminal's)f(scrollbac)o(k)g
-(bu\013er,)i(then)g(redra)o(w)315 401 y(the)e(curren)o(t)g(line,)g(lea)
+(bu\013er,)i(then)g(redra)o(w)315 392 y(the)e(curren)o(t)g(line,)g(lea)
o(ving)f(the)h(curren)o(t)g(line)g(at)g(the)g(top)g(of)g(the)g(screen.)
-75 487 y Fn(clear-screen)f(\(C-l\))315 542 y Fo(Clear)i(the)i(screen,)g
+75 470 y Fn(clear-screen)f(\(C-l\))315 525 y Fo(Clear)i(the)i(screen,)g
(then)f(redra)o(w)g(the)g(curren)o(t)g(line,)g(lea)o(ving)f(the)h
-(curren)o(t)g(line)g(at)g(the)315 597 y(top)e(of)g(the)g(screen.)75
-684 y Fn(redraw-current-line)e(\(\))315 739 y Fo(Refresh)j(the)f
+(curren)o(t)g(line)g(at)g(the)315 579 y(top)e(of)g(the)g(screen.)75
+657 y Fn(redraw-current-line)e(\(\))315 712 y Fo(Refresh)j(the)f
(curren)o(t)g(line.)20 b(By)15 b(default,)g(this)f(is)h(un)o(b)q(ound.)
-75 845 y Fd(1.4.2)30 b(Commands)21 b(F)-5 b(or)19 b(Manipulating)i(The)
-f(History)75 935 y Fn(accept-line)14 b(\(Newline)g(or)h(Return\))315
-989 y Fo(Accept)h(the)f(line)g(regardless)f(of)g(where)i(the)f(cursor)g
+75 810 y Fd(1.4.2)30 b(Commands)21 b(F)-5 b(or)19 b(Manipulating)i(The)
+f(History)75 895 y Fn(accept-line)14 b(\(Newline)g(or)h(Return\))315
+950 y Fo(Accept)h(the)f(line)g(regardless)f(of)g(where)i(the)f(cursor)g
(is.)k(If)c(this)g(line)g(is)f(non-empt)o(y)l(,)h(y)o(ou)315
-1044 y(can)j(add)g(it)f(to)h(the)g(history)f(list)f(using)i
+1005 y(can)j(add)g(it)f(to)h(the)g(history)f(list)f(using)i
Fn(add_history\(\))p Fo(.)26 b(If)19 b(this)e(line)g(is)h(a)g(mo)q
-(di\014ed)315 1099 y(history)c(line,)h(then)g(restore)g(the)g(history)f
-(line)h(to)g(its)f(original)f(state.)75 1186 y Fn(previous-history)g
-(\(C-p\))315 1241 y Fo(Mo)o(v)o(e)h(`bac)o(k')h(through)f(the)i
-(history)e(list,)f(fetc)o(hing)i(the)g(previous)g(command.)75
-1327 y Fn(next-history)f(\(C-n\))315 1382 y Fo(Mo)o(v)o(e)g(`forw)o
-(ard')f(through)i(the)h(history)e(list,)f(fetc)o(hing)i(the)g(next)h
-(command.)75 1469 y Fn(beginning-of-history)c(\(M-<\))315
-1524 y Fo(Mo)o(v)o(e)i(to)h(the)g(\014rst)g(line)g(in)g(the)g(history)l
-(.)75 1611 y Fn(end-of-history)e(\(M->\))315 1665 y Fo(Mo)o(v)o(e)h(to)
-h(the)g(end)h(of)f(the)g(input)g(history)l(,)f(i.e.,)g(the)h(line)g
-(curren)o(tly)g(b)q(eing)g(en)o(tered.)75 1752 y Fn
-(reverse-search-history)d(\(C-r\))315 1807 y Fo(Searc)o(h)k(bac)o(kw)o
-(ard)e(starting)g(at)h(the)h(curren)o(t)f(line)h(and)f(mo)o(ving)g
-(`up')g(through)g(the)h(his-)315 1862 y(tory)c(as)h(necessary)l(.)20
-b(This)12 b(is)h(an)g(incremen)o(tal)f(searc)o(h.)19
-b(This)13 b(command)g(sets)f(the)i(region)315 1917 y(to)h(the)g(matc)o
-(hed)g(text)g(and)g(activ)m(ates)f(the)i(region.)75 2003
-y Fn(forward-search-history)c(\(C-s\))315 2058 y Fo(Searc)o(h)22
+(di\014ed)315 1060 y(history)c(line,)h(then)g(restore)g(the)g(history)f
+(line)h(to)g(its)f(original)f(state.)75 1138 y Fn(previous-history)g
+(\(C-p\))315 1192 y Fo(Mo)o(v)o(e)f(`bac)o(k')f(through)h(the)h
+(history)e(list,)h(fetc)o(hing)g(the)g(previous)h(command.)19
+b(This)12 b(ma)o(y)315 1247 y(also)i(b)q(e)i(b)q(ound)g(to)f(the)g(up)h
+(arro)o(w)d(k)o(ey)j(on)f(some)g(k)o(eyb)q(oards.)75
+1325 y Fn(next-history)f(\(C-n\))315 1380 y Fo(Mo)o(v)o(e)f(`forw)o
+(ard')g(through)g(the)i(history)e(list,)g(fetc)o(hing)h(the)g(next)g
+(command.)20 b(This)14 b(ma)o(y)315 1435 y(also)g(b)q(e)i(b)q(ound)g
+(to)f(the)g(do)o(wn)g(arro)o(w)f(k)o(ey)h(on)g(some)g(k)o(eyb)q(oards.)
+75 1513 y Fn(beginning-of-history)d(\(M-<\))315 1568
+y Fo(Mo)o(v)o(e)i(to)h(the)g(\014rst)g(line)g(in)g(the)g(history)l(.)75
+1646 y Fn(end-of-history)e(\(M->\))315 1700 y Fo(Mo)o(v)o(e)h(to)h(the)
+g(end)h(of)f(the)g(input)g(history)l(,)f(i.e.,)g(the)h(line)g(curren)o
+(tly)g(b)q(eing)g(en)o(tered.)75 1778 y Fn(reverse-search-history)d
+(\(C-r\))315 1833 y Fo(Searc)o(h)k(bac)o(kw)o(ard)e(starting)g(at)h
+(the)h(curren)o(t)f(line)h(and)f(mo)o(ving)g(`up')g(through)g(the)h
+(his-)315 1888 y(tory)c(as)h(necessary)l(.)20 b(This)12
+b(is)h(an)g(incremen)o(tal)f(searc)o(h.)19 b(This)13
+b(command)g(sets)f(the)i(region)315 1943 y(to)h(the)g(matc)o(hed)g
+(text)g(and)g(activ)m(ates)f(the)i(region.)75 2021 y
+Fn(forward-search-history)c(\(C-s\))315 2076 y Fo(Searc)o(h)22
b(forw)o(ard)e(starting)h(at)g(the)h(curren)o(t)f(line)h(and)g(mo)o
-(ving)f(`do)o(wn')f(through)i(the)315 2113 y(history)c(as)h(necessary)l
+(ving)f(`do)o(wn')f(through)i(the)315 2130 y(history)c(as)h(necessary)l
(.)32 b(This)18 b(is)h(an)g(incremen)o(tal)f(searc)o(h.)31
-b(This)19 b(command)g(sets)g(the)315 2168 y(region)14
+b(This)19 b(command)g(sets)g(the)315 2185 y(region)14
b(to)h(the)g(matc)o(hed)g(text)g(and)g(activ)m(ates)g(the)g(region.)75
-2254 y Fn(non-incremental-reverse-se)o(arch-hi)o(story)d(\(M-p\))315
-2309 y Fo(Searc)o(h)k(bac)o(kw)o(ard)e(starting)g(at)h(the)h(curren)o
+2263 y Fn(non-incremental-reverse-se)o(arch-hi)o(story)d(\(M-p\))315
+2318 y Fo(Searc)o(h)k(bac)o(kw)o(ard)e(starting)g(at)h(the)h(curren)o
(t)f(line)h(and)f(mo)o(ving)g(`up')g(through)g(the)h(his-)315
-2364 y(tory)h(as)h(necessary)g(using)g(a)f(non-incremen)o(tal)h(searc)o
-(h)g(for)f(a)h(string)f(supplied)h(b)o(y)g(the)315 2419
+2373 y(tory)h(as)h(necessary)g(using)g(a)f(non-incremen)o(tal)h(searc)o
+(h)g(for)f(a)h(string)f(supplied)h(b)o(y)g(the)315 2428
y(user.)i(The)15 b(searc)o(h)g(string)g(ma)o(y)f(matc)o(h)h(an)o
(ywhere)g(in)g(a)g(history)f(line.)75 2506 y Fn
(non-incremental-forward-se)o(arch-hi)o(story)e(\(M-n\))315
TeXDict begin 24 26 bop 75 -58 a Fo(Chapter)15 b(1:)k(Command)c(Line)h
(Editing)1053 b(24)75 149 y Fd(1.4.6)30 b(Letting)20
b(Readline)g(T)n(yp)r(e)h(F)-5 b(or)19 b(Y)-5 b(ou)75
-239 y Fn(complete)14 b(\(TAB\))315 294 y Fo(A)o(ttempt)c(to)h(p)q
+234 y Fn(complete)14 b(\(TAB\))315 289 y Fo(A)o(ttempt)c(to)h(p)q
(erform)g(completion)g(on)g(the)g(text)g(b)q(efore)h(p)q(oin)o(t.)18
-b(The)11 b(actual)g(completion)315 348 y(p)q(erformed)k(is)g
+b(The)11 b(actual)g(completion)315 344 y(p)q(erformed)k(is)g
(application-sp)q(eci\014c.)20 b(The)15 b(default)g(is)g(\014lename)g
-(completion.)75 435 y Fn(possible-completions)d(\(M-?\))315
-490 y Fo(List)17 b(the)g(p)q(ossible)g(completions)g(of)g(the)g(text)g
+(completion.)75 421 y Fn(possible-completions)d(\(M-?\))315
+476 y Fo(List)17 b(the)g(p)q(ossible)g(completions)g(of)g(the)g(text)g
(b)q(efore)h(p)q(oin)o(t.)25 b(When)18 b(displa)o(ying)e(com-)315
-545 y(pletions,)f(Readline)i(sets)f(the)g(n)o(um)o(b)q(er)h(of)e
+530 y(pletions,)f(Readline)i(sets)f(the)g(n)o(um)o(b)q(er)h(of)e
(columns)h(used)h(for)f(displa)o(y)f(to)h(the)g(v)m(alue)g(of)315
-599 y Fn(completion-display-width)p Fo(,)f(the)k(v)m(alue)f(of)g(the)g
+585 y Fn(completion-display-width)p Fo(,)f(the)k(v)m(alue)f(of)g(the)g
(en)o(vironmen)o(t)g(v)m(ariable)f Fn(COLUMNS)p Fo(,)315
-654 y(or)e(the)g(screen)h(width,)e(in)h(that)g(order.)75
-741 y Fn(insert-completions)e(\(M-*\))315 795 y Fo(Insert)j(all)e
+640 y(or)e(the)g(screen)h(width,)e(in)h(that)g(order.)75
+717 y Fn(insert-completions)e(\(M-*\))315 772 y Fo(Insert)j(all)e
(completions)g(of)h(the)g(text)g(b)q(efore)h(p)q(oin)o(t)e(that)h(w)o
-(ould)g(ha)o(v)o(e)g(b)q(een)h(generated)315 850 y(b)o(y)f
+(ould)g(ha)o(v)o(e)g(b)q(een)h(generated)315 827 y(b)o(y)f
Fn(possible-completions)p Fo(,)d(separated)j(b)o(y)g(a)g(space.)75
-937 y Fn(menu-complete)e(\(\))315 992 y Fo(Similar)d(to)i
+904 y Fn(menu-complete)e(\(\))315 958 y Fo(Similar)d(to)i
Fn(complete)p Fo(,)f(but)h(replaces)g(the)g(w)o(ord)f(to)g(b)q(e)i
-(completed)e(with)h(a)f(single)h(matc)o(h)315 1046 y(from)20
+(completed)e(with)h(a)f(single)h(matc)o(h)315 1013 y(from)20
b(the)h(list)f(of)g(p)q(ossible)h(completions.)35 b(Rep)q(eatedly)22
-b(executing)f Fn(menu-complete)315 1101 y Fo(steps)14
+b(executing)f Fn(menu-complete)315 1068 y Fo(steps)14
b(through)f(the)h(list)f(of)g(p)q(ossible)h(completions,)e(inserting)h
-(eac)o(h)h(matc)o(h)f(in)h(turn.)19 b(A)o(t)315 1156
+(eac)o(h)h(matc)o(h)f(in)h(turn.)19 b(A)o(t)315 1123
y(the)h(end)g(of)g(the)g(list)e(of)i(completions,)f Fn(menu-complete)f
-Fo(rings)i(the)f(b)q(ell)h(\(sub)s(ject)g(to)315 1211
+Fo(rings)i(the)f(b)q(ell)h(\(sub)s(ject)g(to)315 1178
y(the)e(setting)g(of)g Fn(bell-style)p Fo(\))e(and)j(restores)e(the)i
(original)d(text.)29 b(An)18 b(argumen)o(t)g(of)g Ff(n)315
-1266 y Fo(mo)o(v)o(es)f Ff(n)i Fo(p)q(ositions)e(forw)o(ard)g(in)h(the)
+1232 y Fo(mo)o(v)o(es)f Ff(n)i Fo(p)q(ositions)e(forw)o(ard)g(in)h(the)
g(list)f(of)h(matc)o(hes;)h(a)f(negativ)o(e)f(argumen)o(t)h(mo)o(v)o
-(es)315 1320 y(bac)o(kw)o(ard)c(through)g(the)g(list.)k(This)c(command)
+(es)315 1287 y(bac)o(kw)o(ard)c(through)g(the)g(list.)k(This)c(command)
h(is)f(in)o(tended)g(to)g(b)q(e)h(b)q(ound)g(to)f Fn(TAB)p
-Fo(,)g(but)315 1375 y(is)h(un)o(b)q(ound)h(b)o(y)f(default.)75
-1462 y Fn(menu-complete-backward)d(\(\))315 1516 y Fo(Iden)o(tical)17
+Fo(,)g(but)315 1342 y(is)h(un)o(b)q(ound)h(b)o(y)f(default.)75
+1419 y Fn(menu-complete-backward)d(\(\))315 1474 y Fo(Iden)o(tical)17
b(to)g Fn(menu-complete)p Fo(,)f(but)i(mo)o(v)o(es)e(bac)o(kw)o(ard)h
-(through)g(the)h(list)e(of)h(p)q(ossible)315 1571 y(completions,)g(as)h
+(through)g(the)h(list)e(of)h(p)q(ossible)315 1529 y(completions,)g(as)h
(if)f Fn(menu-complete)f Fo(had)i(b)q(een)h(giv)o(en)f(a)f(negativ)o(e)
-g(argumen)o(t.)27 b(This)315 1626 y(command)15 b(is)g(un)o(b)q(ound)h
-(b)o(y)f(default.)75 1713 y Fn(delete-char-or-list)e(\(\))315
-1767 y Fo(Deletes)19 b(the)g(c)o(haracter)g(under)h(the)g(cursor)f(if)g
-(not)g(at)g(the)g(b)q(eginning)h(or)f(end)h(of)f(the)315
-1822 y(line)24 b(\(lik)o(e)f Fn(delete-char)p Fo(\).)44
+g(argumen)o(t.)27 b(This)315 1583 y(command)15 b(is)g(un)o(b)q(ound)h
+(b)o(y)f(default.)75 1661 y Fn(export-completions)e(\(\))315
+1715 y Fo(P)o(erform)20 b(completion)h(on)g(the)h(w)o(ord)e(b)q(efore)i
+(p)q(oin)o(t)f(as)g(describ)q(ed)h(ab)q(o)o(v)o(e)f(and)h(write)315
+1770 y(the)14 b(list)f(of)g(p)q(ossible)h(completions)f(to)h
+(Readline's)f(output)h(stream)f(using)h(the)g(follo)o(wing)315
+1825 y(format,)f(writing)h(information)g(on)h(separate)f(lines:)352
+1891 y Fl(\017)30 b Fo(the)15 b(n)o(um)o(b)q(er)h(of)f(matc)o(hes)f
+Ff(N)5 b Fo(;)352 1957 y Fl(\017)30 b Fo(the)15 b(w)o(ord)g(b)q(eing)g
+(completed;)352 2023 y Fl(\017)30 b Ff(S)s Fo(:)p Ff(E)p
+Fo(,)11 b(where)h(S)g(and)g(E)f(are)g(the)h(start)e(and)i(end)g
+(o\013sets)f(of)g(the)h(w)o(ord)f(in)g(the)h(Readline)405
+2077 y(line)j(bu\013er;)g(then)352 2143 y Fl(\017)30
+b Fo(eac)o(h)15 b(matc)o(h,)g(one)g(p)q(er)h(line)315
+2220 y(If)h(there)f(are)g(no)g(matc)o(hes,)g(the)g(\014rst)g(line)g
+(will)f(b)q(e)i(\\0",)e(and)i(this)f(command)g(do)q(es)g(not)315
+2275 y(prin)o(t)k(an)o(y)h(output)g(after)g(the)g Ff(S)s
+Fo(:)p Ff(E)p Fo(.)37 b(If)21 b(there)h(is)e(only)h(a)g(single)f(matc)o
+(h,)i(this)f(prin)o(ts)315 2330 y(a)f(single)g(line)g(con)o(taining)f
+(it.)34 b(If)20 b(there)h(is)f(more)f(than)i(one)f(matc)o(h,)h(this)e
+(prin)o(ts)h(the)315 2385 y(common)15 b(pre\014x)h(of)f(the)g(matc)o
+(hes,)g(whic)o(h)g(ma)o(y)g(b)q(e)h(empt)o(y)l(,)f(on)g(the)g(\014rst)g
+(line)g(after)g(the)315 2440 y Ff(S)s Fo(:)p Ff(E)p Fo(,)e(then)h(the)f
+(matc)o(hes)g(on)h(subsequen)o(t)g(lines.)19 b(In)14
+b(this)f(case,)g Ff(N)19 b Fo(will)12 b(include)i(the)f(\014rst)315
+2494 y(line)i(with)f(the)i(common)e(pre\014x.)315 2560
+y(The)21 b(user)g(or)f(application)f(should)i(b)q(e)h(able)e(to)g
+(accommo)q(date)g(the)h(p)q(ossibilit)o(y)e(of)h(a)315
+2615 y(blank)12 b(line.)19 b(The)13 b(in)o(ten)o(t)f(is)g(that)g(the)h
+(user)g(or)f(application)f(reads)i Ff(N)k Fo(lines)c(after)f(the)g
+(line)315 2670 y(con)o(taining)h Ff(S)s Fo(:)p Ff(E)i
+Fo(to)f(obtain)f(the)g(matc)o(h)h(list.)k(This)13 b(command)h(is)f(un)o
+(b)q(ound)i(b)o(y)f(default.)p eop end
+%%Page: 25 28
+TeXDict begin 25 27 bop 75 -58 a Fo(Chapter)15 b(1:)k(Command)c(Line)h
+(Editing)1053 b(25)75 149 y Fn(delete-char-or-list)13
+b(\(\))315 204 y Fo(Deletes)19 b(the)g(c)o(haracter)g(under)h(the)g
+(cursor)f(if)g(not)g(at)g(the)g(b)q(eginning)h(or)f(end)h(of)f(the)315
+259 y(line)24 b(\(lik)o(e)f Fn(delete-char)p Fo(\).)44
b(A)o(t)24 b(the)g(end)h(of)f(the)g(line,)h(it)f(b)q(eha)o(v)o(es)g
-(iden)o(tically)f(to)315 1877 y Fn(possible-completions)p
+(iden)o(tically)f(to)315 314 y Fn(possible-completions)p
Fo(.)17 b(This)e(command)g(is)g(un)o(b)q(ound)h(b)o(y)f(default.)75
-1983 y Fd(1.4.7)30 b(Keyb)r(oard)20 b(Macros)75 2073
-y Fn(start-kbd-macro)13 b(\(C-x)i(\(\))315 2128 y Fo(Begin)g(sa)o(ving)
-f(the)i(c)o(haracters)e(t)o(yp)q(ed)i(in)o(to)e(the)h(curren)o(t)g(k)o
-(eyb)q(oard)g(macro.)75 2214 y Fn(end-kbd-macro)e(\(C-x)i(\)\))315
-2269 y Fo(Stop)f(sa)o(ving)e(the)i(c)o(haracters)f(t)o(yp)q(ed)h(in)o
+407 y Fd(1.4.7)30 b(Keyb)r(oard)20 b(Macros)75 489 y
+Fn(start-kbd-macro)13 b(\(C-x)i(\(\))315 544 y Fo(Begin)g(sa)o(ving)f
+(the)i(c)o(haracters)e(t)o(yp)q(ed)i(in)o(to)e(the)h(curren)o(t)g(k)o
+(eyb)q(oard)g(macro.)75 617 y Fn(end-kbd-macro)e(\(C-x)i(\)\))315
+671 y Fo(Stop)f(sa)o(ving)e(the)i(c)o(haracters)f(t)o(yp)q(ed)h(in)o
(to)e(the)i(curren)o(t)g(k)o(eyb)q(oard)f(macro)g(and)h(sa)o(v)o(e)f
-(the)315 2324 y(de\014nition.)75 2410 y Fn(call-last-kbd-macro)g(\(C-x)
-h(e\))315 2465 y Fo(Re-execute)19 b(the)f(last)e(k)o(eyb)q(oard)i
-(macro)f(de\014ned,)i(b)o(y)e(making)g(the)h(c)o(haracters)e(in)i(the)
-315 2520 y(macro)c(app)q(ear)i(as)f(if)f(t)o(yp)q(ed)i(at)e(the)i(k)o
-(eyb)q(oard.)75 2606 y Fn(print-last-kbd-macro)c(\(\))315
-2661 y Fo(Prin)o(t)i(the)h(last)f(k)o(eyb)q(oard)h(macro)g(de\014ned)h
-(in)f(a)g(format)e(suitable)i(for)f(the)h Ff(inputrc)j
-Fo(\014le.)p eop end
-%%Page: 25 28
-TeXDict begin 25 27 bop 75 -58 a Fo(Chapter)15 b(1:)k(Command)c(Line)h
-(Editing)1053 b(25)75 149 y Fd(1.4.8)30 b(Some)20 b(Miscellaneous)h
-(Commands)75 233 y Fn(re-read-init-file)13 b(\(C-x)h(C-r\))315
-288 y Fo(Read)e(in)e(the)h(con)o(ten)o(ts)g(of)f(the)h
-Ff(inputrc)j Fo(\014le,)d(and)h(incorp)q(orate)e(an)o(y)g(bindings)h
-(or)g(v)m(ariable)315 343 y(assignmen)o(ts)j(found)i(there.)75
-418 y Fn(abort)e(\(C-g\))315 473 y Fo(Ab)q(ort)f(the)g(curren)o(t)h
+(the)315 726 y(de\014nition.)75 799 y Fn(call-last-kbd-macro)g(\(C-x)h
+(e\))315 854 y Fo(Re-execute)19 b(the)f(last)e(k)o(eyb)q(oard)i(macro)f
+(de\014ned,)i(b)o(y)e(making)g(the)h(c)o(haracters)e(in)i(the)315
+908 y(macro)c(app)q(ear)i(as)f(if)f(t)o(yp)q(ed)i(at)e(the)i(k)o(eyb)q
+(oard.)75 981 y Fn(print-last-kbd-macro)c(\(\))315 1036
+y Fo(Prin)o(t)i(the)h(last)f(k)o(eyb)q(oard)h(macro)g(de\014ned)h(in)f
+(a)g(format)e(suitable)i(for)f(the)h Ff(inputrc)j Fo(\014le.)75
+1129 y Fd(1.4.8)30 b(Some)20 b(Miscellaneous)h(Commands)75
+1211 y Fn(re-read-init-file)13 b(\(C-x)h(C-r\))315 1266
+y Fo(Read)e(in)e(the)h(con)o(ten)o(ts)g(of)f(the)h Ff(inputrc)j
+Fo(\014le,)d(and)h(incorp)q(orate)e(an)o(y)g(bindings)h(or)g(v)m
+(ariable)315 1321 y(assignmen)o(ts)j(found)i(there.)75
+1394 y Fn(abort)e(\(C-g\))315 1448 y Fo(Ab)q(ort)f(the)g(curren)o(t)h
(editing)e(command)h(and)h(ring)e(the)i(terminal's)d(b)q(ell)i(\(sub)s
-(ject)g(to)g(the)315 528 y(setting)h(of)h Fn(bell-style)p
-Fo(\).)75 603 y Fn(do-lowercase-version)d(\(M-A,)j(M-B,)f(M-)p
-Fg(x)p Fn(,)h(...\))315 658 y Fo(If)j(the)f(meta\014ed)h(c)o(haracter)f
-Ff(x)j Fo(is)d(upp)q(er)i(case,)f(run)f(the)h(command)f(that)g(is)g(b)q
-(ound)i(to)315 712 y(the)e(corresp)q(onding)f(meta\014ed)h(lo)o(w)o(er)
-e(case)h(c)o(haracter.)23 b(The)17 b(b)q(eha)o(vior)f(is)g(unde\014ned)
-i(if)315 767 y Ff(x)g Fo(is)d(already)f(lo)o(w)o(er)g(case.)75
-842 y Fn(prefix-meta)g(\(ESC\))315 897 y Fo(Metafy)g(the)i(next)f(c)o
-(haracter)f(t)o(yp)q(ed.)21 b(T)o(yping)14 b(`)p Fn(ESC)g(f)p
-Fo(')h(is)g(equiv)m(alen)o(t)g(to)f(t)o(yping)h Fg(M-f)p
-Fo(.)75 972 y Fn(undo)g(\(C-_)f(or)h(C-x)g(C-u\))315
-1027 y Fo(Incremen)o(tal)g(undo,)g(separately)g(remem)o(b)q(ered)h(for)
-e(eac)o(h)h(line.)75 1102 y Fn(revert-line)f(\(M-r\))315
-1157 y Fo(Undo)j(all)e(c)o(hanges)i(made)f(to)g(this)g(line.)24
+(ject)g(to)g(the)315 1503 y(setting)h(of)h Fn(bell-style)p
+Fo(\).)75 1576 y Fn(do-lowercase-version)d(\(M-A,)j(M-B,)f(M-)p
+Fg(x)p Fn(,)h(...\))315 1631 y Fo(If)j(the)f(meta\014ed)h(c)o(haracter)
+f Ff(x)j Fo(is)d(upp)q(er)i(case,)f(run)f(the)h(command)f(that)g(is)g
+(b)q(ound)i(to)315 1685 y(the)e(corresp)q(onding)f(meta\014ed)h(lo)o(w)
+o(er)e(case)h(c)o(haracter.)23 b(The)17 b(b)q(eha)o(vior)f(is)g
+(unde\014ned)i(if)315 1740 y Ff(x)g Fo(is)d(already)f(lo)o(w)o(er)g
+(case.)75 1813 y Fn(prefix-meta)g(\(ESC\))315 1868 y
+Fo(Metafy)g(the)i(next)f(c)o(haracter)f(t)o(yp)q(ed.)21
+b(T)o(yping)14 b(`)p Fn(ESC)g(f)p Fo(')h(is)g(equiv)m(alen)o(t)g(to)f
+(t)o(yping)h Fg(M-f)p Fo(.)75 1941 y Fn(undo)g(\(C-_)f(or)h(C-x)g
+(C-u\))315 1995 y Fo(Incremen)o(tal)g(undo,)g(separately)g(remem)o(b)q
+(ered)h(for)e(eac)o(h)h(line.)75 2068 y Fn(revert-line)f(\(M-r\))315
+2123 y Fo(Undo)j(all)e(c)o(hanges)i(made)f(to)g(this)g(line.)24
b(This)16 b(is)g(lik)o(e)g(executing)g(the)h Fn(undo)f
-Fo(command)315 1212 y(enough)g(times)e(to)h(get)f(bac)o(k)h(to)g(the)g
-(initial)f(state.)75 1287 y Fn(tilde-expand)g(\(M-~\))315
-1342 y Fo(P)o(erform)g(tilde)h(expansion)g(on)g(the)g(curren)o(t)g(w)o
-(ord.)75 1417 y Fn(set-mark)f(\(C-@\))315 1472 y Fo(Set)i(the)g(mark)f
+Fo(command)315 2178 y(enough)g(times)e(to)h(get)f(bac)o(k)h(to)g(the)g
+(initial)f(state.)75 2250 y Fn(tilde-expand)g(\(M-~\))315
+2305 y Fo(P)o(erform)g(tilde)h(expansion)g(on)g(the)g(curren)o(t)g(w)o
+(ord.)75 2378 y Fn(set-mark)f(\(C-@\))315 2433 y Fo(Set)i(the)g(mark)f
(to)g(the)h(p)q(oin)o(t.)21 b(If)16 b(a)g(n)o(umeric)g(argumen)o(t)f
-(is)g(supplied,)h(set)g(the)f(mark)h(to)315 1527 y(that)e(p)q(osition.)
-75 1602 y Fn(exchange-point-and-mark)e(\(C-x)j(C-x\))315
-1657 y Fo(Sw)o(ap)k(the)g(p)q(oin)o(t)g(with)f(the)i(mark.)31
+(is)g(supplied,)h(set)g(the)f(mark)h(to)315 2488 y(that)e(p)q(osition.)
+75 2560 y Fn(exchange-point-and-mark)e(\(C-x)j(C-x\))315
+2615 y Fo(Sw)o(ap)k(the)g(p)q(oin)o(t)g(with)f(the)i(mark.)31
b(Set)19 b(the)g(curren)o(t)h(cursor)e(p)q(osition)h(to)f(the)h(sa)o(v)
-o(ed)315 1712 y(p)q(osition,)14 b(then)h(set)g(the)h(mark)e(to)h(the)g
-(old)g(cursor)g(p)q(osition.)75 1787 y Fn(character-search)e(\(C-]\))
-315 1842 y Fo(Read)k(a)f(c)o(haracter)g(and)h(mo)o(v)o(e)e(p)q(oin)o(t)
-h(to)g(the)h(next)f(o)q(ccurrence)i(of)e(that)g(c)o(haracter.)23
-b(A)315 1896 y(negativ)o(e)14 b(argumen)o(t)h(searc)o(hes)g(for)f
-(previous)h(o)q(ccurrences.)75 1972 y Fn(character-search-backward)d
-(\(M-C-]\))315 2026 y Fo(Read)j(a)g(c)o(haracter)f(and)h(mo)o(v)o(e)f
-(p)q(oin)o(t)g(to)g(the)h(previous)g(o)q(ccurrence)h(of)e(that)g(c)o
-(haracter.)315 2081 y(A)h(negativ)o(e)g(argumen)o(t)f(searc)o(hes)h
-(for)g(subsequen)o(t)g(o)q(ccurrences.)75 2156 y Fn(skip-csi-sequence)e
-(\(\))315 2211 y Fo(Read)h(enough)g(c)o(haracters)f(to)g(consume)h(a)g
-(m)o(ulti-k)o(ey)e(sequence)j(suc)o(h)f(as)f(those)h(de\014ned)315
-2266 y(for)19 b(k)o(eys)h(lik)o(e)g(Home)g(and)g(End.)35
-b(CSI)20 b(sequences)h(b)q(egin)g(with)e(a)h(Con)o(trol)e(Sequence)315
-2321 y(Indicator)g(\(CSI\),)g(usually)f(ESC-[.)29 b(If)19
-b(this)f(sequence)h(is)f(b)q(ound)h(to)f Fn("\\)p Fo(e[)p
-Fn(")p Fo(,)g(k)o(eys)g(pro-)315 2376 y(ducing)e(CSI)g(sequences)h
-(will)d(ha)o(v)o(e)i(no)g(e\013ect)f(unless)h(explicitly)e(b)q(ound)j
-(to)e(a)h(Readline)315 2430 y(command,)g(instead)f(of)h(inserting)f
-(stra)o(y)f(c)o(haracters)i(in)o(to)f(the)h(editing)f(bu\013er.)22
-b(This)15 b(is)315 2485 y(un)o(b)q(ound)h(b)o(y)g(default,)e(but)h
-(usually)g(b)q(ound)h(to)f(ESC-[.)75 2560 y Fn(insert-comment)e
-(\(M-#\))315 2615 y Fo(Without)j(a)g(n)o(umeric)h(argumen)o(t,)f
-(insert)g(the)h(v)m(alue)g(of)g(the)g Fn(comment-begin)e
-Fo(v)m(ariable)315 2670 y(at)j(the)h(b)q(eginning)g(of)f(the)h(curren)o
-(t)g(line.)30 b(If)19 b(a)g(n)o(umeric)g(argumen)o(t)f(is)g(supplied,)i
-(this)p eop end
+o(ed)315 2670 y(p)q(osition,)14 b(then)h(set)g(the)h(mark)e(to)h(the)g
+(old)g(cursor)g(p)q(osition.)p eop end
%%Page: 26 29
TeXDict begin 26 28 bop 75 -58 a Fo(Chapter)15 b(1:)k(Command)c(Line)h
-(Editing)1053 b(26)315 149 y(command)20 b(acts)f(as)h(a)g(toggle:)28
-b(if)19 b(the)h(c)o(haracters)f(at)h(the)g(b)q(eginning)g(of)f(the)h
-(line)g(do)315 204 y(not)d(matc)o(h)g(the)g(v)m(alue)g(of)g
-Fn(comment-begin)p Fo(,)f(insert)h(the)g(v)m(alue;)h(otherwise)e
-(delete)i(the)315 259 y(c)o(haracters)13 b(in)g Fn(comment-begin)e
-Fo(from)i(the)g(b)q(eginning)h(of)f(the)g(line.)19 b(In)14
-b(either)f(case,)h(the)315 314 y(line)h(is)g(accepted)g(as)g(if)g(a)g
-(newline)g(had)g(b)q(een)i(t)o(yp)q(ed.)75 394 y Fn(dump-functions)c
-(\(\))315 448 y Fo(Prin)o(t)f(all)g(of)h(the)g(functions)g(and)h(their)
-f(k)o(ey)g(bindings)g(to)f(the)i(Readline)f(output)g(stream.)315
-503 y(If)j(a)g(n)o(umeric)f(argumen)o(t)g(is)h(supplied,)g(the)g
+(Editing)1053 b(26)75 149 y Fn(character-search)13 b(\(C-]\))315
+204 y Fo(Read)k(a)f(c)o(haracter)g(and)h(mo)o(v)o(e)e(p)q(oin)o(t)h(to)
+g(the)h(next)f(o)q(ccurrence)i(of)e(that)g(c)o(haracter.)23
+b(A)315 259 y(negativ)o(e)14 b(argumen)o(t)h(searc)o(hes)g(for)f
+(previous)h(o)q(ccurrences.)75 343 y Fn(character-search-backward)d
+(\(M-C-]\))315 398 y Fo(Read)j(a)g(c)o(haracter)f(and)h(mo)o(v)o(e)f(p)
+q(oin)o(t)g(to)g(the)h(previous)g(o)q(ccurrence)h(of)e(that)g(c)o
+(haracter.)315 453 y(A)h(negativ)o(e)g(argumen)o(t)f(searc)o(hes)h(for)
+g(subsequen)o(t)g(o)q(ccurrences.)75 537 y Fn(skip-csi-sequence)e(\(\))
+315 592 y Fo(Read)h(enough)g(c)o(haracters)f(to)g(consume)h(a)g(m)o
+(ulti-k)o(ey)e(sequence)j(suc)o(h)f(as)f(those)h(de\014ned)315
+647 y(for)g(k)o(eys)h(lik)o(e)f(Home)h(and)g(End.)20
+b(CSI)15 b(sequences)h(b)q(egin)g(with)e(a)h(Con)o(trol)e(Sequence)j
+(In-)315 702 y(dicator)c(\(CSI\),)g(usually)h Fg(ESC)h([)p
+Fo(.)19 b(If)13 b(this)g(sequence)h(is)e(b)q(ound)i(to)f
+Fn("\\)p Fo(e[)p Fn(")p Fo(,)f(k)o(eys)h(pro)q(ducing)315
+756 y(CSI)k(sequences)h(ha)o(v)o(e)f(no)g(e\013ect)g(unless)g
+(explicitly)e(b)q(ound)j(to)f(a)f(Readline)h(command,)315
+811 y(instead)c(of)g(inserting)f(stra)o(y)g(c)o(haracters)g(in)o(to)g
+(the)i(editing)e(bu\013er.)19 b(This)13 b(is)g(un)o(b)q(ound)h(b)o(y)
+315 866 y(default,)g(but)i(usually)e(b)q(ound)i(to)f
+Fg(ESC)g([)p Fo(.)75 950 y Fn(insert-comment)e(\(M-#\))315
+1005 y Fo(Without)j(a)g(n)o(umeric)h(argumen)o(t,)f(insert)g(the)h(v)m
+(alue)g(of)g(the)g Fn(comment-begin)e Fo(v)m(ariable)315
+1060 y(at)j(the)h(b)q(eginning)g(of)f(the)h(curren)o(t)g(line.)30
+b(If)19 b(a)g(n)o(umeric)g(argumen)o(t)f(is)g(supplied,)i(this)315
+1115 y(command)g(acts)f(as)h(a)g(toggle:)28 b(if)19 b(the)h(c)o
+(haracters)f(at)h(the)g(b)q(eginning)g(of)f(the)h(line)g(do)315
+1169 y(not)d(matc)o(h)g(the)g(v)m(alue)g(of)g Fn(comment-begin)p
+Fo(,)f(insert)h(the)g(v)m(alue;)h(otherwise)e(delete)i(the)315
+1224 y(c)o(haracters)13 b(in)g Fn(comment-begin)e Fo(from)i(the)g(b)q
+(eginning)h(of)f(the)g(line.)19 b(In)14 b(either)f(case,)h(the)315
+1279 y(line)h(is)g(accepted)g(as)g(if)g(a)g(newline)g(had)g(b)q(een)i
+(t)o(yp)q(ed.)75 1363 y Fn(dump-functions)c(\(\))315
+1418 y Fo(Prin)o(t)f(all)g(of)h(the)g(functions)g(and)h(their)f(k)o(ey)
+g(bindings)g(to)f(the)i(Readline)f(output)g(stream.)315
+1473 y(If)j(a)g(n)o(umeric)f(argumen)o(t)g(is)h(supplied,)g(the)g
(output)f(is)h(formatted)e(in)i(suc)o(h)g(a)g(w)o(a)o(y)f(that)315
-558 y(it)f(can)i(b)q(e)g(made)f(part)f(of)h(an)g Ff(inputrc)j
+1528 y(it)f(can)i(b)q(e)g(made)f(part)f(of)h(an)g Ff(inputrc)j
Fo(\014le.)i(This)15 b(command)g(is)g(un)o(b)q(ound)h(b)o(y)f(default.)
-75 638 y Fn(dump-variables)e(\(\))315 692 y Fo(Prin)o(t)d(all)f(of)h
+75 1612 y Fn(dump-variables)e(\(\))315 1667 y Fo(Prin)o(t)d(all)f(of)h
(the)h(settable)f(v)m(ariables)g(and)h(their)f(v)m(alues)h(to)f(the)h
-(Readline)g(output)f(stream.)315 747 y(If)16 b(a)g(n)o(umeric)f
+(Readline)g(output)f(stream.)315 1721 y(If)16 b(a)g(n)o(umeric)f
(argumen)o(t)g(is)h(supplied,)g(the)g(output)f(is)h(formatted)e(in)i
-(suc)o(h)g(a)g(w)o(a)o(y)f(that)315 802 y(it)f(can)i(b)q(e)g(made)f
+(suc)o(h)g(a)g(w)o(a)o(y)f(that)315 1776 y(it)f(can)i(b)q(e)g(made)f
(part)f(of)h(an)g Ff(inputrc)j Fo(\014le.)i(This)15 b(command)g(is)g
-(un)o(b)q(ound)h(b)o(y)f(default.)75 882 y Fn(dump-macros)f(\(\))315
-936 y Fo(Prin)o(t)i(all)g(of)g(the)h(Readline)g(k)o(ey)g(sequences)h(b)
-q(ound)g(to)e(macros)g(and)h(the)g(strings)f(they)315
-991 y(output)g(to)f(the)i(Readline)f(output)g(stream.)22
+(un)o(b)q(ound)h(b)o(y)f(default.)75 1860 y Fn(dump-macros)f(\(\))315
+1915 y Fo(Prin)o(t)i(all)g(of)g(the)h(Readline)g(k)o(ey)g(sequences)h
+(b)q(ound)g(to)e(macros)g(and)h(the)g(strings)f(they)315
+1970 y(output)g(to)f(the)i(Readline)f(output)g(stream.)22
b(If)16 b(a)g(n)o(umeric)g(argumen)o(t)f(is)h(supplied,)g(the)315
-1046 y(output)g(is)f(formatted)g(in)h(suc)o(h)g(a)g(w)o(a)o(y)f(that)g
+2025 y(output)g(is)f(formatted)g(in)h(suc)o(h)g(a)g(w)o(a)o(y)f(that)g
(it)g(can)h(b)q(e)h(made)f(part)f(of)h(an)g Ff(inputrc)i
-Fo(\014le.)315 1101 y(This)d(command)g(is)g(un)o(b)q(ound)h(b)o(y)f
-(default.)75 1181 y Fn(execute-named-command)d(\(M-x\))315
-1235 y Fo(Read)h(a)f(bindable)h(Readline)g(command)g(name)f(from)g(the)
-h(input)f(and)h(execute)h(the)e(func-)315 1290 y(tion)g(to)g(whic)o(h)h
+Fo(\014le.)315 2080 y(This)d(command)g(is)g(un)o(b)q(ound)h(b)o(y)f
+(default.)75 2164 y Fn(execute-named-command)d(\(M-x\))315
+2219 y Fo(Read)h(a)f(bindable)h(Readline)g(command)g(name)f(from)g(the)
+h(input)f(and)h(execute)h(the)e(func-)315 2273 y(tion)g(to)g(whic)o(h)h
(it's)f(b)q(ound,)i(as)f(if)f(the)h(k)o(ey)g(sequence)h(to)e(whic)o(h)h
-(it)f(w)o(as)g(b)q(ound)i(app)q(eared)315 1345 y(in)19
+(it)f(w)o(as)g(b)q(ound)i(app)q(eared)315 2328 y(in)19
b(the)f(input.)31 b(If)19 b(this)f(function)h(is)f(supplied)h(with)f(a)
-h(n)o(umeric)g(argumen)o(t,)f(it)g(passes)315 1400 y(that)c(argumen)o
-(t)h(to)f(the)i(function)f(it)f(executes.)75 1479 y Fn
-(emacs-editing-mode)f(\(C-e\))315 1534 y Fo(When)j(in)f
+h(n)o(umeric)g(argumen)o(t,)f(it)g(passes)315 2383 y(that)c(argumen)o
+(t)h(to)f(the)i(function)f(it)f(executes.)75 2467 y Fn
+(emacs-editing-mode)f(\(C-e\))315 2522 y Fo(When)j(in)f
Fn(vi)f Fo(command)i(mo)q(de,)f(this)f(causes)i(a)f(switc)o(h)f(to)h
-Fn(emacs)f Fo(editing)h(mo)q(de.)75 1614 y Fn(vi-editing-mode)e
-(\(M-C-j\))315 1669 y Fo(When)j(in)f Fn(emacs)f Fo(editing)h(mo)q(de,)g
-(this)f(causes)i(a)f(switc)o(h)f(to)h Fn(vi)f Fo(editing)h(mo)q(de.)75
-1789 y Fm(1.5)33 b(Readline)21 b(vi)i(Mo)r(de)75 1869
-y Fo(While)15 b(the)h(Readline)g(library)f(do)q(es)h(not)f(ha)o(v)o(e)g
-(a)h(full)f(set)h(of)f Fn(vi)g Fo(editing)g(functions,)h(it)f(do)q(es)h
-(con)o(tain)75 1924 y(enough)h(to)g(allo)o(w)e(simple)h(editing)h(of)f
-(the)i(line.)25 b(The)17 b(Readline)g Fn(vi)g Fo(mo)q(de)g(b)q(eha)o(v)
-o(es)g(as)g(sp)q(eci\014ed)h(in)75 1978 y(the)d Fn(sh)g
-Fo(description)g(in)g(the)g Fh(posix)g Fo(standard.)137
-2046 y(In)g(order)g(to)f(switc)o(h)f(in)o(teractiv)o(ely)g(b)q(et)o(w)o
+Fn(emacs)f Fo(editing)h(mo)q(de.)75 2606 y Fn(vi-editing-mode)e
+(\(M-C-j\))315 2661 y Fo(When)j(in)f Fn(emacs)f Fo(editing)h(mo)q(de,)g
+(this)f(causes)i(a)f(switc)o(h)f(to)h Fn(vi)f Fo(editing)h(mo)q(de.)p
+eop end
+%%Page: 27 30
+TeXDict begin 27 29 bop 75 -58 a Fo(Chapter)15 b(1:)k(Command)c(Line)h
+(Editing)1053 b(27)75 149 y Fm(1.5)33 b(Readline)21 b(vi)i(Mo)r(de)75
+229 y Fo(While)15 b(the)h(Readline)g(library)f(do)q(es)h(not)f(ha)o(v)o
+(e)g(a)h(full)f(set)h(of)f Fn(vi)g Fo(editing)g(functions,)h(it)f(do)q
+(es)h(con)o(tain)75 284 y(enough)h(to)g(allo)o(w)e(simple)h(editing)h
+(of)f(the)i(line.)25 b(The)17 b(Readline)g Fn(vi)g Fo(mo)q(de)g(b)q
+(eha)o(v)o(es)g(as)g(sp)q(eci\014ed)h(in)75 339 y(the)d
+Fn(sh)g Fo(description)g(in)g(the)g Fh(posix)g Fo(standard.)137
+406 y(In)g(order)g(to)f(switc)o(h)f(in)o(teractiv)o(ely)g(b)q(et)o(w)o
(een)i Fn(emacs)e Fo(and)i Fn(vi)f Fo(editing)g(mo)q(des,)h(use)f(the)h
-(command)75 2100 y Fg(M-C-j)j Fo(\(b)q(ound)i(to)e(emacs-editing-mo)q
+(command)75 461 y Fg(M-C-j)j Fo(\(b)q(ound)i(to)e(emacs-editing-mo)q
(de)h(when)g(in)g Fn(vi)g Fo(mo)q(de)g(and)g(to)f(vi-editing-mo)q(de)h
-(in)g Fn(emacs)75 2155 y Fo(mo)q(de\).)h(The)15 b(Readline)h(default)f
-(is)f Fn(emacs)h Fo(mo)q(de.)137 2222 y(When)h(y)o(ou)e(en)o(ter)h(a)g
+(in)g Fn(emacs)75 516 y Fo(mo)q(de\).)h(The)15 b(Readline)h(default)f
+(is)f Fn(emacs)h Fo(mo)q(de.)137 583 y(When)h(y)o(ou)e(en)o(ter)h(a)g
(line)g(in)f Fn(vi)h Fo(mo)q(de,)g(y)o(ou)g(are)f(already)h(placed)g
-(in)g(`insertion')e(mo)q(de,)i(as)g(if)f(y)o(ou)75 2277
+(in)g(`insertion')e(mo)q(de,)i(as)g(if)f(y)o(ou)75 638
y(had)h(t)o(yp)q(ed)g(an)g(`)p Fn(i)p Fo('.)j(Pressing)c
Fn(ESC)h Fo(switc)o(hes)f(y)o(ou)g(in)o(to)g(`command')g(mo)q(de,)g
-(where)h(y)o(ou)g(can)f(edit)h(the)75 2332 y(text)h(of)h(the)g(line)f
+(where)h(y)o(ou)g(can)f(edit)h(the)75 692 y(text)h(of)h(the)g(line)f
(with)h(the)g(standard)f Fn(vi)h Fo(mo)o(v)o(emen)o(t)f(k)o(eys,)g(mo)o
-(v)o(e)g(to)h(previous)f(history)g(lines)h(with)75 2387
+(v)o(e)g(to)h(previous)f(history)g(lines)h(with)75 747
y(`)p Fn(k)p Fo(')d(and)i(subsequen)o(t)f(lines)g(with)g(`)p
Fn(j)p Fo(',)f(and)h(so)g(forth.)p eop end
-%%Page: 27 30
-TeXDict begin 27 29 bop 1830 -58 a Fo(27)75 149 y Fk(App)r(endix)26
+%%Page: 28 31
+TeXDict begin 28 30 bop 1830 -58 a Fo(28)75 149 y Fk(App)r(endix)26
b(A)41 b(GNU)27 b(F)-7 b(ree)26 b(Do)r(cumen)n(tation)j(License)679
251 y Fo(V)l(ersion)15 b(1.3,)f(3)h(No)o(v)o(em)o(b)q(er)g(2008)195
318 y(Cop)o(yrigh)o(t)421 317 y(c)409 318 y Fl(\015)g
(are)i(designated,)f(as)165 2670 y(b)q(eing)i(those)f(of)g(In)o(v)m
(arian)o(t)f(Sections,)h(in)h(the)f(notice)g(that)f(sa)o(ys)h(that)g
(the)g(Do)q(cumen)o(t)g(is)g(released)p eop end
-%%Page: 28 31
-TeXDict begin 28 30 bop 75 -58 a Fo(App)q(endix)16 b(A:)f(GNU)g(F)l
-(ree)g(Do)q(cumen)o(tation)g(License)802 b(28)165 149
+%%Page: 29 32
+TeXDict begin 29 31 bop 75 -58 a Fo(App)q(endix)16 b(A:)f(GNU)g(F)l
+(ree)g(Do)q(cumen)o(tation)g(License)802 b(29)165 149
y(under)15 b(this)e(License.)20 b(If)14 b(a)g(section)f(do)q(es)h(not)g
(\014t)f(the)h(ab)q(o)o(v)o(e)g(de\014nition)g(of)f(Secondary)h(then)g
(it)f(is)165 204 y(not)j(allo)o(w)o(ed)e(to)h(b)q(e)i(designated)f(as)f
(and)h(has)f(no)165 2595 y(e\013ect)d(on)g(the)g(meaning)g(of)g(this)g
(License.)100 2670 y(2.)29 b(VERBA)l(TIM)16 b(COPYING)p
eop end
-%%Page: 29 32
-TeXDict begin 29 31 bop 75 -58 a Fo(App)q(endix)16 b(A:)f(GNU)g(F)l
-(ree)g(Do)q(cumen)o(tation)g(License)802 b(29)165 149
+%%Page: 30 33
+TeXDict begin 30 32 bop 75 -58 a Fo(App)q(endix)16 b(A:)f(GNU)g(F)l
+(ree)g(Do)q(cumen)o(tation)g(License)802 b(30)165 149
y(Y)l(ou)19 b(ma)o(y)g(cop)o(y)f(and)i(distribute)e(the)h(Do)q(cumen)o
(t)g(in)g(an)o(y)g(medium,)g(either)g(commercially)e(or)165
204 y(noncommercially)l(,)k(pro)o(vided)g(that)g(this)g(License,)i(the)
(distinct)h(from)f(that)h(of)g(the)255 2670 y(Do)q(cumen)o(t,)h(and)g
(from)f(those)h(of)f(previous)h(v)o(ersions)f(\(whic)o(h)g(should,)h
(if)g(there)g(w)o(ere)f(an)o(y)l(,)p eop end
-%%Page: 30 33
-TeXDict begin 30 32 bop 75 -58 a Fo(App)q(endix)16 b(A:)f(GNU)g(F)l
-(ree)g(Do)q(cumen)o(tation)g(License)802 b(30)255 149
+%%Page: 31 34
+TeXDict begin 31 33 bop 75 -58 a Fo(App)q(endix)16 b(A:)f(GNU)g(F)l
+(ree)g(Do)q(cumen)o(tation)g(License)802 b(31)255 149
y(b)q(e)16 b(listed)f(in)h(the)g(History)e(section)h(of)g(the)h(Do)q
(cumen)o(t\).)21 b(Y)l(ou)16 b(ma)o(y)f(use)h(the)g(same)f(title)f(as)
255 204 y(a)h(previous)g(v)o(ersion)f(if)h(the)g(original)e(publisher)j
f(ma)o(y)h(at)165 2670 y(y)o(our)i(option)f(designate)h(some)g(or)f
(all)g(of)h(these)h(sections)e(as)h(in)o(v)m(arian)o(t.)22
b(T)l(o)15 b(do)i(this,)e(add)h(their)p eop end
-%%Page: 31 34
-TeXDict begin 31 33 bop 75 -58 a Fo(App)q(endix)16 b(A:)f(GNU)g(F)l
-(ree)g(Do)q(cumen)o(tation)g(License)802 b(31)165 149
+%%Page: 32 35
+TeXDict begin 32 34 bop 75 -58 a Fo(App)q(endix)16 b(A:)f(GNU)g(F)l
+(ree)g(Do)q(cumen)o(tation)g(License)802 b(32)165 149
y(titles)16 b(to)h(the)h(list)f(of)g(In)o(v)m(arian)o(t)g(Sections)h
(in)f(the)h(Mo)q(di\014ed)g(V)l(ersion's)f(license)h(notice.)27
b(These)165 204 y(titles)14 b(m)o(ust)h(b)q(e)g(distinct)g(from)f(an)o
2615 y(do)q(cumen)o(t,)g(and)f(follo)o(w)e(this)i(License)h(in)f(all)g
(other)f(resp)q(ects)i(regarding)f(v)o(erbatim)f(cop)o(ying)g(of)165
2670 y(that)f(do)q(cumen)o(t.)p eop end
-%%Page: 32 35
-TeXDict begin 32 34 bop 75 -58 a Fo(App)q(endix)16 b(A:)f(GNU)g(F)l
-(ree)g(Do)q(cumen)o(tation)g(License)802 b(32)100 149
+%%Page: 33 36
+TeXDict begin 33 35 bop 75 -58 a Fo(App)q(endix)16 b(A:)f(GNU)g(F)l
+(ree)g(Do)q(cumen)o(tation)g(License)802 b(33)100 149
y(7.)29 b(A)o(GGREGA)l(TION)15 b(WITH)h(INDEPENDENT)e(W)o(ORKS)165
221 y(A)g(compilation)e(of)i(the)g(Do)q(cumen)o(t)g(or)f(its)h(deriv)m
(ativ)o(es)f(with)g(other)h(separate)f(and)i(indep)q(enden)o(t)165
(of)g(a)g(cop)o(y)g(of)f(some)h(or)f(all)g(of)h(the)165
2670 y(same)i(material)e(do)q(es)j(not)f(giv)o(e)f(y)o(ou)h(an)o(y)g
(righ)o(ts)f(to)g(use)i(it.)p eop end
-%%Page: 33 36
-TeXDict begin 33 35 bop 75 -58 a Fo(App)q(endix)16 b(A:)f(GNU)g(F)l
-(ree)g(Do)q(cumen)o(tation)g(License)802 b(33)77 149
+%%Page: 34 37
+TeXDict begin 34 36 bop 75 -58 a Fo(App)q(endix)16 b(A:)f(GNU)g(F)l
+(ree)g(Do)q(cumen)o(tation)g(License)802 b(34)77 149
y(10.)29 b(FUTURE)15 b(REVISIONS)j(OF)d(THIS)h(LICENSE)165
217 y(The)21 b(F)l(ree)g(Soft)o(w)o(are)e(F)l(oundation)h(ma)o(y)g
(publish)h(new,)h(revised)f(v)o(ersions)f(of)g(the)h(GNU)g(F)l(ree)165
1948 y(CC-BY-SA)d(on)f(the)g(same)g(site)f(at)h(an)o(y)f(time)h(b)q
(efore)g(August)g(1,)g(2009,)e(pro)o(vided)i(the)g(MMC)f(is)165
2002 y(eligible)g(for)h(relicensing.)p eop end
-%%Page: 34 37
-TeXDict begin 34 36 bop 75 -58 a Fo(App)q(endix)16 b(A:)f(GNU)g(F)l
-(ree)g(Do)q(cumen)o(tation)g(License)802 b(34)75 149
+%%Page: 35 38
+TeXDict begin 35 37 bop 75 -58 a Fo(App)q(endix)16 b(A:)f(GNU)g(F)l
+(ree)g(Do)q(cumen)o(tation)g(License)802 b(35)75 149
y Fm(ADDENDUM:)20 b(Ho)n(w)h(to)h(use)g(this)g(License)g(for)g(y)n(our)
h(do)r(cumen)n(ts)75 229 y Fo(T)l(o)17 b(use)h(this)e(License)i(in)g(a)
f(do)q(cumen)o(t)g(y)o(ou)g(ha)o(v)o(e)g(written,)g(include)g(a)g(cop)o
@set EDITION 8.3
@set VERSION 8.3
-@set UPDATED 15 November 2024
+@set UPDATED 29 November 2024
@set UPDATED-MONTH November 2024
-@set LASTCHANGE Fri Nov 15 17:56:11 EST 2024
+@set LASTCHANGE Fri Nov 29 18:18:20 EST 2024
if (count == 0)
return 0;
+ /* If the current line has changed, save the changes. */
+#if 0 /* XXX old code can leak or corrupt rl_undo_list */
rl_maybe_replace_line ();
+#else
+ _rl_maybe_replace_line (1);
+#endif
r = _rl_next_history_internal (count);
/* If we don't have a line saved, then save this one. */
had_saved_line = _rl_saved_line_for_history != 0;
+
+ /* XXX - if we are not editing a history line and we already had a saved
+ line, we're going to lose this undo list. Not sure what the right thing
+ is here - replace the saved line? */
+
rl_maybe_save_line ();
/* If the current line has changed, save the changes. */
+#if 0 /* XXX old code can leak or corrupt rl_undo_list */
rl_maybe_replace_line ();
+#else
+ _rl_maybe_replace_line (1);
+#endif
r = _rl_previous_history_internal (count);
extern char *realloc ();
#endif
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+
#if defined (HAVE_STRING_H)
#include <string.h>
#endif