commit bash-20101222 snapshot

This commit is contained in:
Chet Ramey
2011-12-12 22:12:13 -05:00
parent e88665cc60
commit 89c77bc75b
87 changed files with 18450 additions and 3360 deletions
+11 -11
View File
@@ -5,12 +5,12 @@
.\" Case Western Reserve University
.\" chet@po.cwru.edu
.\"
.\" Last Change: Mon Dec 6 22:25:10 EST 2010
.\" Last Change: Fri Dec 24 16:00:06 EST 2010
.\"
.\" bash_builtins, strip all but Built-Ins section
.if \n(zZ=1 .ig zZ
.if \n(zY=1 .ig zY
.TH BASH 1 "2010 December 6" "GNU Bash-4.2"
.TH BASH 1 "2010 December 24" "GNU Bash-4.2"
.\"
.\" There's some problem with having a `@'
.\" in a tagged paragraph with the BSD man macros.
@@ -879,24 +879,22 @@ command completes. Otherwise, the \fBelse\fP \fIlist\fP is
executed, if present. The exit status is the exit status of the
last command executed, or zero if no condition tested true.
.TP
\fBwhile\fP \fIlist\fP; \fBdo\fP \fIlist\fP; \fBdone\fP
\fBwhile\fP \fIlist-1\fP; \fBdo\fP \fIlist-2\fP; \fBdone\fP
.PD 0
.TP
\fBuntil\fP \fIlist\fP; \fBdo\fP \fIlist\fP; \fBdone\fP
\fBuntil\fP \fIlist-1\fP; \fBdo\fP \fIlist-2\fP; \fBdone\fP
.PD
The \fBwhile\fP command continuously executes the \fBdo\fP
\fIlist\fP as long as the last command in \fIlist\fP returns
The \fBwhile\fP command continuously executes the list
\fIlist-2\fP as long as the last command in the list \fIlist-1\fP returns
an exit status of zero. The \fBuntil\fP command is identical
to the \fBwhile\fP command, except that the test is negated;
the
.B do
.I list
.I list-2
is executed as long as the last command in
.I list
.I list-1
returns a non-zero exit status.
The exit status of the \fBwhile\fP and \fBuntil\fP commands
is the exit status
of the last \fBdo\fP \fIlist\fP command executed, or zero if
of the last command executed in \fIlist-2\fP, or zero if
none was executed.
.SS Coprocesses
.PP
@@ -3218,6 +3216,7 @@ they are to be matched literally.
The special pattern characters have the following meanings:
.PP
.PD 0
.RS
.TP
.B *
Matches any string, including the null string.
@@ -3297,6 +3296,7 @@ and
the syntax \fB[.\fP\fIsymbol\fP\fB.]\fP matches the collating symbol
\fIsymbol\fP.
.RE
.RE
.PD
.PP
If the \fBextglob\fP shell option is enabled using the \fBshopt\fP
+21 -24
View File
@@ -5,12 +5,12 @@
.\" Case Western Reserve University
.\" chet@po.cwru.edu
.\"
.\" Last Change: Mon Sep 6 22:07:38 EDT 2010
.\" Last Change: Fri Dec 24 16:00:06 EST 2010
.\"
.\" bash_builtins, strip all but Built-Ins section
.if \n(zZ=1 .ig zZ
.if \n(zY=1 .ig zY
.TH BASH 1 "2010 September 6" "GNU Bash-4.2"
.TH BASH 1 "2010 December 24" "GNU Bash-4.2"
.\"
.\" There's some problem with having a `@'
.\" in a tagged paragraph with the BSD man macros.
@@ -476,7 +476,7 @@ A \fItoken\fP that performs a control function. It is one of the following
symbols:
.RS
.PP
.if t \fB\(bv\(bv & && ; ;; ( ) | |& <newline>\fP
.if t \fB|| & && ; ;; ( ) | |& <newline>\fP
.if n \fB|| & && ; ;; ( ) | |& <newline>\fP
.RE
.PD
@@ -586,7 +586,7 @@ of the operators
.BR & ,
.BR && ,
or
.BR \(bv\(bv ,
.BR || ,
and optionally terminated by one of
.BR ; ,
.BR & ,
@@ -596,7 +596,7 @@ or
Of these list operators,
.B &&
and
.B \(bv\(bv
.B ||
have equal precedence, followed by
.B ;
and
@@ -617,7 +617,7 @@ command to terminate in turn. The return status is the
exit status of the last command executed.
.PP
AND and OR lists are sequences of one of more pipelines separated by the
\fB&&\fP and \fB\(bv\(bv\fP control operators, respectively.
\fB&&\fP and \fB||\fP control operators, respectively.
AND and OR lists are executed with left associativity.
An AND list has the form
.RS
@@ -633,7 +633,7 @@ returns an exit status of zero.
An OR list has the form
.RS
.PP
\fIcommand1\fP \fB\(bv\(bv\fP \fIcommand2\fP
\fIcommand1\fP \fB||\fP \fIcommand2\fP
.PP
.RE
.PP
@@ -763,8 +763,7 @@ and
.I expression2
are true.
.TP
.if t \fIexpression1\fP \fB\(bv\(bv\fP \fIexpression2\fP
.if n \fIexpression1\fP \fB||\fP \fIexpression2\fP
\fIexpression1\fP \fB||\fP \fIexpression2\fP
True if either
.I expression1
or
@@ -772,9 +771,7 @@ or
is true.
.PD
.LP
The \fB&&\fP and
.if t \fB\(bv\(bv\fP
.if n \fB||\fP
The \fB&&\fP and \fB||\fP
operators do not evaluate \fIexpression2\fP if the value of
\fIexpression1\fP is sufficient to determine the return value of
the entire conditional expression.
@@ -882,24 +879,22 @@ command completes. Otherwise, the \fBelse\fP \fIlist\fP is
executed, if present. The exit status is the exit status of the
last command executed, or zero if no condition tested true.
.TP
\fBwhile\fP \fIlist\fP; \fBdo\fP \fIlist\fP; \fBdone\fP
\fBwhile\fP \fIlist-1\fP; \fBdo\fP \fIlist-2\fP; \fBdone\fP
.PD 0
.TP
\fBuntil\fP \fIlist\fP; \fBdo\fP \fIlist\fP; \fBdone\fP
\fBuntil\fP \fIlist-1\fP; \fBdo\fP \fIlist-2\fP; \fBdone\fP
.PD
The \fBwhile\fP command continuously executes the \fBdo\fP
\fIlist\fP as long as the last command in \fIlist\fP returns
The \fBwhile\fP command continuously executes the list
\fIlist-2\fP as long as the last command in the list \fIlist-1\fP returns
an exit status of zero. The \fBuntil\fP command is identical
to the \fBwhile\fP command, except that the test is negated;
the
.B do
.I list
.I list-2
is executed as long as the last command in
.I list
.I list-1
returns a non-zero exit status.
The exit status of the \fBwhile\fP and \fBuntil\fP commands
is the exit status
of the last \fBdo\fP \fIlist\fP command executed, or zero if
of the last command executed in \fIlist-2\fP, or zero if
none was executed.
.SS Coprocesses
.PP
@@ -3221,6 +3216,7 @@ they are to be matched literally.
The special pattern characters have the following meanings:
.PP
.PD 0
.RS
.TP
.B *
Matches any string, including the null string.
@@ -8480,8 +8476,8 @@ or
reserved words, part of any command executed in a
.B &&
or
.B \(bv\(bv
list except the command following the final \fB&&\fP or \fB\(bv\(bv\fP,
.B ||
list except the command following the final \fB&&\fP or \fB||\fP,
any command in a pipeline but the last,
or if the command's return value is
being inverted with
@@ -9266,6 +9262,7 @@ If the first argument is not a valid unary conditional operator, the expression
is false.
.TP
3 arguments
The following conditions are applied in the order listed.
If the second argument is one of the binary conditional operators listed above
under
.SM
@@ -9398,7 +9395,7 @@ part of the test in an
statement, part of a command executed in a
.B &&
or
.B \(bv\(bv
.B ||
list, or if the command's return value is
being inverted via
.BR ! .