summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles.Forsyth <devnull@localhost>2007-10-03 13:08:17 +0000
committerCharles.Forsyth <devnull@localhost>2007-10-03 13:08:17 +0000
commit8021bc361bd3bdf42ea86d3c80befba4417b1bec (patch)
treea92c29bbe8ff6aac83496769957b7dd06043d76f
parent1311e23dda88a63b0497469995cbfa52c2432671 (diff)
20071003-1408
-rw-r--r--man/1/sh29
-rw-r--r--man/1/sh-std15
2 files changed, 33 insertions, 11 deletions
diff --git a/man/1/sh b/man/1/sh
index 4dd30d14..401897e2 100644
--- a/man/1/sh
+++ b/man/1/sh
@@ -301,6 +301,29 @@ The operator is invoked and its value substituted.
See
.IR "Built-in Commands" ,
below, for more information on builtins.
+.HP
+.BI <{ command }
+.HP
+.BI >{ command }
+.br
+The
+.I command
+is executed asynchronously with its standard output or standard input
+connected to a pipe.
+The value of the argument is the name of a file
+referring to the other end of the pipe.
+This allows the construction of
+non-linear pipelines.
+For example, the following runs two commands
+.B old
+and
+.B new
+and uses
+.B cmp
+to compare their outputs
+.EX
+ cmp <{old} <{new}
+.EE
.PD
.SS Free Carets
In most circumstances,
@@ -394,6 +417,12 @@ may be redirected from a file by the sequence
or by the sequence
.BI <> file \f1,
which opens the file for writing as well as reading.
+Note that if
+.I file
+is in fact a parsed braced block, the redirection will be treated as
+pipe to the given command - it is identical to the
+.B "<{}"
+operator mentioned above.
.PP
Redirections may be applied to a file-descriptor other than standard input
or output by qualifying the redirection operator
diff --git a/man/1/sh-std b/man/1/sh-std
index 7a07399f..b3367c7f 100644
--- a/man/1/sh-std
+++ b/man/1/sh-std
@@ -463,17 +463,10 @@ its standard input is connected; otherwise file descriptor
is connected.
.B Pipe
yields the name of a file that can be opened to access
-the other end of the pipe. This allows the construction
-of non-linear pipelines. For example, the following runs two commands
-.B old
-and
-.B new
-and uses
-.B cmp
-to compare their outputs
-.EX
- cmp ${pipe from {old}} ${pipe from {new}}
-.EE
+the other end of the pipe. Note that this command is now
+deprecated in favour of the
+.B <{}
+redirection operator built in to the shell.
.TP
.B ${split}
.B Split