mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-06-28 16:09:51 +02:00
documentation updates
This commit is contained in:
+29
-29
@@ -4,9 +4,9 @@
|
||||
<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.2, 29 July 2022).
|
||||
the Bash shell (version 5.2, 19 September 2022).
|
||||
|
||||
This is Edition 5.2, last updated 29 July 2022,
|
||||
This is Edition 5.2, last updated 19 September 2022,
|
||||
of The GNU Bash Reference Manual,
|
||||
for Bash, Version 5.2.
|
||||
|
||||
@@ -77,10 +77,10 @@ Next: <a href="#Introduction" accesskey="n" rel="next">Introduction</a>, Previou
|
||||
<span id="Bash-Features-1"></span><h1 class="top">Bash Features</h1>
|
||||
|
||||
<p>This text is a brief description of the features that are present in
|
||||
the Bash shell (version 5.2, 29 July 2022).
|
||||
the Bash shell (version 5.2, 19 September 2022).
|
||||
The Bash home page is <a href="http://www.gnu.org/software/bash/">http://www.gnu.org/software/bash/</a>.
|
||||
</p>
|
||||
<p>This is Edition 5.2, last updated 29 July 2022,
|
||||
<p>This is Edition 5.2, last updated 19 September 2022,
|
||||
of <cite>The GNU Bash Reference Manual</cite>,
|
||||
for <code>Bash</code>, Version 5.2.
|
||||
</p>
|
||||
@@ -3323,7 +3323,7 @@ the current locale and the values of the
|
||||
<p>For example, in the default C locale, ‘<samp>[a-dx-z]</samp>’ is equivalent to
|
||||
‘<samp>[abcdxyz]</samp>’. Many locales sort characters in dictionary order, and in
|
||||
these locales ‘<samp>[a-dx-z]</samp>’ is typically not equivalent to ‘<samp>[abcdxyz]</samp>’;
|
||||
it might be equivalent to ‘<samp>[aBbCcDdxXyYz]</samp>’, for example. To obtain
|
||||
it might be equivalent to ‘<samp>[aBbCcDdxYyZz]</samp>’, for example. To obtain
|
||||
the traditional interpretation of ranges in bracket expressions, you can
|
||||
force the use of the C locale by setting the <code>LC_COLLATE</code> or
|
||||
<code>LC_ALL</code> environment variable to the value ‘<samp>C</samp>’, or enable the
|
||||
@@ -4292,7 +4292,7 @@ The return status is zero.
|
||||
current shell context. If <var>filename</var> does not contain a slash,
|
||||
the <code>PATH</code> variable is used to find <var>filename</var>,
|
||||
but <var>filename</var> does not need to be executable.
|
||||
When Bash is not in <small>POSIX</small> mode, the current directory is searched
|
||||
When Bash is not in <small>POSIX</small> mode, it searches the current directory
|
||||
if <var>filename</var> is not found in <code>$PATH</code>.
|
||||
If any <var>arguments</var> are supplied, they become the positional
|
||||
parameters when <var>filename</var> is executed. Otherwise the positional
|
||||
@@ -6335,7 +6335,7 @@ versions through 4.2.
|
||||
<dt><span><code>direxpand</code></span></dt>
|
||||
<dd><p>If set, Bash
|
||||
replaces directory names with the results of word expansion when performing
|
||||
filename completion. This changes the contents of the readline editing
|
||||
filename completion. This changes the contents of the Readline editing
|
||||
buffer.
|
||||
If not set, Bash attempts to preserve what the user typed.
|
||||
</p>
|
||||
@@ -7118,7 +7118,7 @@ Emacs shell buffer and disables line editing.
|
||||
</p>
|
||||
</dd>
|
||||
<dt id='index-ENV'><span><code>ENV</code><a href='#index-ENV' class='copiable-anchor'> ¶</a></span></dt>
|
||||
<dd><p>Expanded and executed similarlty to <code>BASH_ENV</code>
|
||||
<dd><p>Expanded and executed similarly to <code>BASH_ENV</code>
|
||||
(see <a href="#Bash-Startup-Files">Bash Startup Files</a>)
|
||||
when an interactive shell is invoked in
|
||||
<small>POSIX</small> Mode (see <a href="#Bash-POSIX-Mode">Bash POSIX Mode</a>).
|
||||
@@ -9256,7 +9256,7 @@ the <code>eval</code> builtin.
|
||||
</li><li> While variable indirection is available, it may not be applied to the
|
||||
‘<samp>#</samp>’ and ‘<samp>?</samp>’ special parameters.
|
||||
|
||||
</li><li> When expanding the ‘<samp>*</samp>’ special parameter in a pattern context where the
|
||||
</li><li> Expanding the ‘<samp>*</samp>’ special parameter in a pattern context where the
|
||||
expansion is double-quoted does not treat the <code>$*</code> as if it were
|
||||
double-quoted.
|
||||
|
||||
@@ -9517,7 +9517,7 @@ are not special within double-quoted word expansions
|
||||
<dd><ul>
|
||||
<li> the shell does not print a warning message if an attempt is made to
|
||||
use a quoted compound assignment as an argument to declare
|
||||
(declare -a foo=’(1 2)’). Later versions warn that this usage is
|
||||
(e.g., declare -a foo=’(1 2)’). Later versions warn that this usage is
|
||||
deprecated
|
||||
</li><li> word expansion errors are considered non-fatal errors that cause the
|
||||
current command to fail, even in posix mode
|
||||
@@ -10106,7 +10106,7 @@ empty line.
|
||||
</p></dd>
|
||||
</dl>
|
||||
|
||||
<p>(Depending on your configuration, the <tt class="key">Backspace</tt> key be set to
|
||||
<p>(Depending on your configuration, the <tt class="key">Backspace</tt> key might be set to
|
||||
delete the character to the left of the cursor and the <tt class="key">DEL</tt> key set
|
||||
to delete the character underneath the cursor, like <kbd>C-d</kbd>, rather
|
||||
than the character to the left of the cursor.)
|
||||
@@ -10192,7 +10192,7 @@ Word boundaries are the same as those used by <kbd>M-f</kbd>.
|
||||
</p>
|
||||
</dd>
|
||||
<dt><span><kbd>M-<span class="key">DEL</span></kbd></span></dt>
|
||||
<dd><p>Kill from the cursor the start of the current word, or, if between
|
||||
<dd><p>Kill from the cursor to the start of the current word, or, if between
|
||||
words, to the start of the previous word.
|
||||
Word boundaries are the same as those used by <kbd>M-b</kbd>.
|
||||
</p>
|
||||
@@ -10510,7 +10510,7 @@ been mapped to <code>self-insert</code>. The default is ‘<samp>off</samp>
|
||||
</dd>
|
||||
<dt id='index-echo_002dcontrol_002dcharacters'><span><code>echo-control-characters</code><a href='#index-echo_002dcontrol_002dcharacters' class='copiable-anchor'> ¶</a></span></dt>
|
||||
<dd><p>When set to ‘<samp>on</samp>’, on operating systems that indicate they support it,
|
||||
readline echoes a character corresponding to a signal generated from the
|
||||
Readline echoes a character corresponding to a signal generated from the
|
||||
keyboard. The default is ‘<samp>on</samp>’.
|
||||
</p>
|
||||
</dd>
|
||||
@@ -10717,7 +10717,7 @@ The default is ‘<samp>off</samp>’.
|
||||
<dd><p>If set to ‘<samp>on</samp>’, Readline will undo all changes to history lines
|
||||
before returning when <code>accept-line</code> is executed. By default,
|
||||
history lines may be modified and retain individual undo lists across
|
||||
calls to <code>readline</code>. The default is ‘<samp>off</samp>’.
|
||||
calls to <code>readline()</code>. The default is ‘<samp>off</samp>’.
|
||||
</p>
|
||||
</dd>
|
||||
<dt id='index-show_002dall_002dif_002dambiguous'><span><code>show-all-if-ambiguous</code><a href='#index-show_002dall_002dif_002dambiguous' class='copiable-anchor'> ¶</a></span></dt>
|
||||
@@ -10749,7 +10749,7 @@ The default value is ‘<samp>off</samp>’.
|
||||
<dt id='index-skip_002dcompleted_002dtext'><span><code>skip-completed-text</code><a href='#index-skip_002dcompleted_002dtext' class='copiable-anchor'> ¶</a></span></dt>
|
||||
<dd><p>If set to ‘<samp>on</samp>’, 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, readline
|
||||
performing completion in the middle of a word. If enabled, Readline
|
||||
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.
|
||||
@@ -10811,7 +10811,7 @@ interpreted as part of the key name.
|
||||
The name of the key can be expressed in different ways, depending on
|
||||
what you find most comfortable.
|
||||
</p>
|
||||
<p>In addition to command names, readline allows keys to be bound
|
||||
<p>In addition to command names, Readline allows keys to be bound
|
||||
to a string that is inserted when the key is pressed (a <var>macro</var>).
|
||||
</p>
|
||||
<p>The <code>bind <span class="nolinebreak">-p</span></code><!-- /@w --> command displays Readline function names and
|
||||
@@ -11831,7 +11831,7 @@ in the macro appear as if typed at the keyboard.
|
||||
</p>
|
||||
</dd>
|
||||
<dt id='index-print_002dlast_002dkbd_002dmacro-_0028_0029'><span><code>print-last-kbd-macro ()</code><a href='#index-print_002dlast_002dkbd_002dmacro-_0028_0029' class='copiable-anchor'> ¶</a></span></dt>
|
||||
<dd><p>Print the last keboard macro defined in a format suitable for the
|
||||
<dd><p>Print the last keyboard macro defined in a format suitable for the
|
||||
<var>inputrc</var> file.
|
||||
</p>
|
||||
</dd>
|
||||
@@ -11894,12 +11894,12 @@ the saved position, and the old cursor position is saved as the mark.
|
||||
</dd>
|
||||
<dt id='index-character_002dsearch-_0028C_002d_005d_0029'><span><code>character-search (C-])</code><a href='#index-character_002dsearch-_0028C_002d_005d_0029' class='copiable-anchor'> ¶</a></span></dt>
|
||||
<dd><p>A character is read and point is moved to the next occurrence of that
|
||||
character. A negative count searches for previous occurrences.
|
||||
character. A negative argument searches for previous occurrences.
|
||||
</p>
|
||||
</dd>
|
||||
<dt id='index-character_002dsearch_002dbackward-_0028M_002dC_002d_005d_0029'><span><code>character-search-backward (M-C-])</code><a href='#index-character_002dsearch_002dbackward-_0028M_002dC_002d_005d_0029' class='copiable-anchor'> ¶</a></span></dt>
|
||||
<dd><p>A character is read and point is moved to the previous occurrence
|
||||
of that character. A negative count searches for subsequent
|
||||
of that character. A negative argument searches for subsequent
|
||||
occurrences.
|
||||
</p>
|
||||
</dd>
|
||||
@@ -11908,7 +11908,7 @@ occurrences.
|
||||
defined for keys like Home and End. Such sequences begin with a
|
||||
Control Sequence Indicator (CSI), usually ESC-[. If this sequence is
|
||||
bound to "\e[", keys producing such sequences will have no effect
|
||||
unless explicitly bound to a readline command, instead of inserting
|
||||
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-[.
|
||||
</p>
|
||||
@@ -12641,7 +12641,7 @@ via <var>CDPATH</var>: Readline can’t tell those completions are directori
|
||||
The <samp>-o nospace</samp> option tells Readline to not append a space
|
||||
character to the directory name, in case we want to append to it.
|
||||
The <samp>-o bashdefault</samp> option brings in the rest of the "Bash default"
|
||||
completions – possible completion that Bash adds to the default Readline
|
||||
completions – possible completions that Bash adds to the default Readline
|
||||
set. These include things like command name completion, variable completion
|
||||
for words beginning with ‘<samp>$</samp>’ or ‘<samp>${</samp>’, completions containing pathname
|
||||
expansion patterns (see <a href="#Filename-Expansion">Filename Expansion</a>), and so on.
|
||||
@@ -12888,10 +12888,10 @@ the history list as a single entry.
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<p>When any of the <samp>-w</samp>, <samp>-r</samp>, <samp>-a</samp>, or <samp>-n</samp> options is
|
||||
used, if <var>filename</var>
|
||||
is given, then it is used as the history file. If not, then
|
||||
the value of the <code>HISTFILE</code> variable is used.
|
||||
<p>If a <var>filename</var> argument is supplied
|
||||
when any of the <samp>-w</samp>, <samp>-r</samp>, <samp>-a</samp>, or <samp>-n</samp> options
|
||||
is used, Bash uses <var>filename</var> as the history file.
|
||||
If not, then the value of the <code>HISTFILE</code> variable is used.
|
||||
</p>
|
||||
<p>The return value is 0 unless an invalid option is encountered, an
|
||||
error occurs while reading or writing the history file, an invalid
|
||||
@@ -13186,7 +13186,7 @@ substituted, or, if no previous history substitutions took place,
|
||||
the last <var>string</var>
|
||||
in a !?<var>string</var><code>[?]</code>
|
||||
search.
|
||||
If <var>new</var> is is null, each matching <var>old</var> is deleted.
|
||||
If <var>new</var> is null, each matching <var>old</var> is deleted.
|
||||
The final delimiter is optional if it is the last
|
||||
character on the input line.
|
||||
</p>
|
||||
@@ -13391,7 +13391,7 @@ supply the <samp>--srcdir=PATH</samp> argument to tell <code>configure</code> wh
|
||||
source files are. <code>configure</code> automatically checks for the
|
||||
source code in the directory that <code>configure</code> is in and in ‘..’.
|
||||
</p>
|
||||
<p>If you have to use a <code>make</code> that does not supports the <code>VPATH</code>
|
||||
<p>If you have to use a <code>make</code> that does not support the <code>VPATH</code>
|
||||
variable, you can compile Bash for one architecture at a
|
||||
time in the source code directory. After you have installed
|
||||
Bash for one architecture, use ‘<samp>make distclean</samp>’ before
|
||||
@@ -13474,7 +13474,7 @@ Next: <a href="#Sharing-Defaults" accesskey="n" rel="next">Sharing Defaults</a>,
|
||||
<span id="Specifying-the-System-Type-1"></span><h3 class="section">10.5 Specifying the System Type</h3>
|
||||
|
||||
<p>There may be some features <code>configure</code> can not figure out
|
||||
automatically, but need to determine by the type of host Bash
|
||||
automatically, but needs to determine by the type of host Bash
|
||||
will run on. Usually <code>configure</code> can figure that
|
||||
out, but if it prints a message saying it can not guess the host
|
||||
type, give it the <samp>--host=TYPE</samp> option. ‘<samp>TYPE</samp>’ can
|
||||
@@ -14227,7 +14227,7 @@ The <code>ERR</code> trap is not inherited by shell functions unless the
|
||||
<p>The <code>trap</code> builtin (see <a href="#Bourne-Shell-Builtins">Bourne Shell Builtins</a>) allows a
|
||||
<code>RETURN</code> pseudo-signal specification, similar to
|
||||
<code>EXIT</code> and <code>DEBUG</code>.
|
||||
Commands specified with an <code>RETURN</code> trap are executed before
|
||||
Commands specified with a <code>RETURN</code> trap are executed before
|
||||
execution resumes after a shell function or a shell script executed with
|
||||
<code>.</code> or <code>source</code> returns.
|
||||
The <code>RETURN</code> trap is not inherited by shell functions unless the
|
||||
|
||||
Reference in New Issue
Block a user