mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-08-06 10:12:38 +02:00
commit bash-20151023 snapshot
This commit is contained in:
+1760
-1759
File diff suppressed because it is too large
Load Diff
+16
-11
@@ -5,12 +5,12 @@
|
||||
.\" Case Western Reserve University
|
||||
.\" chet.ramey@case.edu
|
||||
.\"
|
||||
.\" Last Change: Tue Oct 13 17:03:11 EDT 2015
|
||||
.\" Last Change: Tue Oct 20 10:48:01 EDT 2015
|
||||
.\"
|
||||
.\" bash_builtins, strip all but Built-Ins section
|
||||
.if \n(zZ=1 .ig zZ
|
||||
.if \n(zY=1 .ig zY
|
||||
.TH BASH 1 "2015 October 11" "GNU Bash 4.4"
|
||||
.TH BASH 1 "2015 October 20" "GNU Bash 4.4"
|
||||
.\"
|
||||
.\" There's some problem with having a `@'
|
||||
.\" in a tagged paragraph with the BSD man macros.
|
||||
@@ -3217,8 +3217,8 @@ or
|
||||
.RE
|
||||
.PP
|
||||
.B Bash
|
||||
performs the expansion by executing \fIcommand\fP and
|
||||
replacing the command substitution with the standard output of the
|
||||
performs the expansion by executing \fIcommand\fP in a subshell environment
|
||||
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.
|
||||
@@ -3269,19 +3269,23 @@ is invalid,
|
||||
prints a message indicating failure and no substitution occurs.
|
||||
.SS Process Substitution
|
||||
.PP
|
||||
\fIProcess substitution\fP is supported on systems that support named
|
||||
pipes (\fIFIFOs\fP) or the \fB/dev/fd\fP method of naming open files.
|
||||
\fIProcess substitution\fP allows a process's input or output to be
|
||||
referred to using a filename.
|
||||
It takes the form of
|
||||
\fB<(\fP\fIlist\^\fP\fB)\fP
|
||||
or
|
||||
\fB>(\fP\fIlist\^\fP\fB)\fP.
|
||||
The process \fIlist\fP is run with its input or output connected to a
|
||||
\fIFIFO\fP or some file in \fB/dev/fd\fP. The name of this file is
|
||||
The process \fIlist\fP is run asynchronously, and its input or output
|
||||
appears as a filename.
|
||||
This filename is
|
||||
passed as an argument to the current command as the result of the
|
||||
expansion. If the \fB>(\fP\fIlist\^\fP\fB)\fP form is used, writing to
|
||||
expansion.
|
||||
If the \fB>(\fP\fIlist\^\fP\fB)\fP form is used, writing to
|
||||
the file will provide input for \fIlist\fP. If the
|
||||
\fB<(\fP\fIlist\^\fP\fB)\fP form is used, the file passed as an
|
||||
argument should be read to obtain the output of \fIlist\fP.
|
||||
Process substitution is supported on systems that support named
|
||||
pipes (\fIFIFOs\fP) or the \fB/dev/fd\fP method of naming open files.
|
||||
.PP
|
||||
When available, process substitution is performed
|
||||
simultaneously with parameter and variable expansion,
|
||||
@@ -3325,9 +3329,10 @@ If
|
||||
.B IFS
|
||||
has a value other than the default, then sequences of
|
||||
the whitespace characters
|
||||
.B space
|
||||
.BR space ,
|
||||
.BR tab ,
|
||||
and
|
||||
.B tab
|
||||
.B newline
|
||||
are ignored at the beginning and end of the
|
||||
word, as long as the whitespace character is in the
|
||||
value of
|
||||
|
||||
+13
-9
@@ -14,7 +14,7 @@ This is Edition @value{EDITION}, last updated @value{UPDATED},
|
||||
of @cite{The GNU Bash Reference Manual},
|
||||
for @code{Bash}, Version @value{VERSION}.
|
||||
|
||||
Copyright @copyright{} 1988--2014 Free Software Foundation, Inc.
|
||||
Copyright @copyright{} 1988--2015 Free Software Foundation, Inc.
|
||||
|
||||
@quotation
|
||||
Permission is granted to copy, distribute and/or modify this document
|
||||
@@ -2246,8 +2246,8 @@ or
|
||||
@end example
|
||||
|
||||
@noindent
|
||||
Bash performs the expansion by executing @var{command} and
|
||||
replacing the command substitution with the standard output of the
|
||||
Bash performs the expansion by executing @var{command} in a subshell environment
|
||||
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.
|
||||
@@ -2296,8 +2296,8 @@ failure to the standard error and no substitution occurs.
|
||||
@subsection Process Substitution
|
||||
@cindex process substitution
|
||||
|
||||
Process substitution is supported on systems that support named
|
||||
pipes (@sc{fifo}s) or the @file{/dev/fd} method of naming open files.
|
||||
Process substitution allows a process's input or output to be
|
||||
referred to using a filename.
|
||||
It takes the form of
|
||||
@example
|
||||
<(@var{list})
|
||||
@@ -2308,16 +2308,20 @@ or
|
||||
>(@var{list})
|
||||
@end example
|
||||
@noindent
|
||||
The process @var{list} is run with its input or output connected to a
|
||||
@sc{fifo} or some file in @file{/dev/fd}. The name of this file is
|
||||
The process @var{list} is run asynchronously, and its input or output
|
||||
appears as a filename.
|
||||
This filename is
|
||||
passed as an argument to the current command as the result of the
|
||||
expansion. If the @code{>(@var{list})} form is used, writing to
|
||||
expansion.
|
||||
If the @code{>(@var{list})} form is used, writing to
|
||||
the file will provide input for @var{list}. If the
|
||||
@code{<(@var{list})} form is used, the file passed as an
|
||||
argument should be read to obtain 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.
|
||||
Process substitution is supported on systems that support named
|
||||
pipes (@sc{fifo}s) or the @file{/dev/fd} method of naming open files.
|
||||
|
||||
When available, process substitution is performed simultaneously with
|
||||
parameter and variable expansion, command substitution, and arithmetic
|
||||
@@ -2341,7 +2345,7 @@ at the beginning and end of the results of the previous
|
||||
expansions are ignored, and any sequence of @env{IFS}
|
||||
characters not at the beginning or end serves to delimit words.
|
||||
If @env{IFS} has a value other than the default, then sequences of
|
||||
the whitespace characters @code{space} and @code{tab}
|
||||
the whitespace characters @code{space}, @code{tab}, and @code{newline}
|
||||
are ignored at the beginning and end of the
|
||||
word, as long as the whitespace character is in the
|
||||
value of @env{IFS} (an @env{IFS} whitespace character).
|
||||
|
||||
+2
-2
@@ -2,10 +2,10 @@
|
||||
Copyright (C) 1988-2015 Free Software Foundation, Inc.
|
||||
@end ignore
|
||||
|
||||
@set LASTCHANGE Tue Oct 13 17:03:11 EDT 2015
|
||||
@set LASTCHANGE Tue Oct 20 10:48:33 EDT 2015
|
||||
|
||||
@set EDITION 4.4
|
||||
@set VERSION 4.4
|
||||
|
||||
@set UPDATED 13 October 2015
|
||||
@set UPDATED 20 October 2015
|
||||
@set UPDATED-MONTH October 2015
|
||||
|
||||
Reference in New Issue
Block a user