mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-06-28 07:59:50 +02:00
commit bash-20110415 snapshot
This commit is contained in:
+17
-12
@@ -1,6 +1,6 @@
|
||||
<HTML>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<!-- Created on March, 9 2011 by texi2html 1.64 -->
|
||||
<!-- Created on April, 11 2011 by texi2html 1.64 -->
|
||||
<!--
|
||||
Written by: Lionel Cons <Lionel.Cons@cern.ch> (original author)
|
||||
Karl Berry <karl@freefriends.org>
|
||||
@@ -33,10 +33,10 @@ Send bugs and suggestions to <texi2html@mathematik.uni-kl.de>
|
||||
<H1>Bash Reference Manual</H1></P><P>
|
||||
|
||||
This text is a brief description of the features that are present in
|
||||
the Bash shell (version 4.2, 28 December 2010).
|
||||
the Bash shell (version 4.2, 11 April 2011).
|
||||
</P><P>
|
||||
|
||||
This is Edition 4.2, last updated 28 December 2010,
|
||||
This is Edition 4.2, last updated 11 April 2011,
|
||||
of <CITE>The GNU Bash Reference Manual</CITE>,
|
||||
for <CODE>Bash</CODE>, Version 4.2.
|
||||
</P><P>
|
||||
@@ -2069,7 +2069,7 @@ This mechanism is similar to
|
||||
<VAR>filename expansion</VAR> (see section <A HREF="bashref.html#SEC37">3.5.8 Filename Expansion</A>),
|
||||
but the file names generated need not exist.
|
||||
Patterns to be brace expanded take the form of an optional <VAR>preamble</VAR>,
|
||||
followed by either a series of comma-separated strings or a seqeunce expression
|
||||
followed by either a series of comma-separated strings or a sequence expression
|
||||
between a pair of braces,
|
||||
followed by an optional <VAR>postscript</VAR>.
|
||||
The preamble is prefixed to each string contained within the braces, and
|
||||
@@ -3101,7 +3101,8 @@ standard error:
|
||||
</pre></td></tr></table>Of the two forms, the first is preferred.
|
||||
This is semantically equivalent to
|
||||
<TABLE><tr><td> </td><td class=example><pre>><VAR>word</VAR> 2>&1
|
||||
</pre></td></tr></table></P><P>
|
||||
</pre></td></tr></table>(see Duplicating File Descriptors below).
|
||||
</P><P>
|
||||
|
||||
<HR SIZE="6">
|
||||
<A NAME="SEC45"></A>
|
||||
@@ -3129,7 +3130,8 @@ The format for appending standard output and standard error is:
|
||||
<TABLE><tr><td> </td><td class=example><pre>&>><VAR>word</VAR>
|
||||
</pre></td></tr></table>This is semantically equivalent to
|
||||
<TABLE><tr><td> </td><td class=example><pre>>><VAR>word</VAR> 2>&1
|
||||
</pre></td></tr></table></P><P>
|
||||
</pre></td></tr></table>(see Duplicating File Descriptors below).
|
||||
</P><P>
|
||||
|
||||
<HR SIZE="6">
|
||||
<A NAME="SEC46"></A>
|
||||
@@ -6383,7 +6385,8 @@ The shell function <CODE>${FUNCNAME[$i]}</CODE> is defined in the file
|
||||
<A NAME="IDX158"></A>
|
||||
<DT><CODE>BASH_SUBSHELL</CODE>
|
||||
<DD><A NAME="IDX159"></A>
|
||||
Incremented by one each time a subshell or subshell environment is spawned.
|
||||
Incremented by one within each subshell or subshell environment when
|
||||
the shell begins executing in that environment.
|
||||
The initial value is 0.
|
||||
<P>
|
||||
|
||||
@@ -8217,9 +8220,6 @@ using the syntax
|
||||
|
||||
The <VAR>subscript</VAR>
|
||||
is treated as an arithmetic expression that must evaluate to a number.
|
||||
If <VAR>subscript</VAR> evaluates to a number less than zero, it is used as
|
||||
an offset from one greater than the array's maximum index (so a subcript
|
||||
of -1 refers to the last element of the array).
|
||||
To explicitly declare an array, use
|
||||
<TABLE><tr><td> </td><td class=example><pre>declare -a <VAR>name</VAR>
|
||||
</pre></td></tr></table>The syntax
|
||||
@@ -8281,6 +8281,11 @@ If <VAR>subscript</VAR> is <SAMP>`@'</SAMP> or
|
||||
<SAMP>`*'</SAMP>, the expansion is the number of elements in the array.
|
||||
Referencing an array variable without a subscript is equivalent to
|
||||
referencing with a subscript of 0.
|
||||
If the <VAR>subscript</VAR>
|
||||
used to reference an element of an indexed array
|
||||
evaluates to a number less than zero, it is used as
|
||||
an offset from one greater than the array's maximum index (so a subcript
|
||||
of -1 refers to the last element of the array).
|
||||
</P><P>
|
||||
|
||||
An array variable is considered set if a subscript has been assigned a
|
||||
@@ -16386,7 +16391,7 @@ to permit their use in free software.
|
||||
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bashref.html#SEC_About"> ? </A>]</TD>
|
||||
</TR></TABLE>
|
||||
<H1>About this document</H1>
|
||||
This document was generated by <I>Chet Ramey</I> on <I>March, 9 2011</I>
|
||||
This document was generated by <I>Chet Ramey</I> on <I>April, 11 2011</I>
|
||||
using <A HREF="http://www.mathematik.uni-kl.de/~obachman/Texi2html
|
||||
"><I>texi2html</I></A>
|
||||
<P></P>
|
||||
@@ -16548,7 +16553,7 @@ the following structure:
|
||||
<BR>
|
||||
<FONT SIZE="-1">
|
||||
This document was generated
|
||||
by <I>Chet Ramey</I> on <I>March, 9 2011</I>
|
||||
by <I>Chet Ramey</I> on <I>April, 11 2011</I>
|
||||
using <A HREF="http://www.mathematik.uni-kl.de/~obachman/Texi2html
|
||||
"><I>texi2html</I></A>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user