History

20071003-1408

Charles.Forsyth committed 19 years ago

Commit 5f99f291 parent 0204e412 files · +33 −11Browse files

Unified · Split

2 files
  1. man/1/sh +29 −0
  2. man/1/sh-std +4 −11
man/1/sh+29−0
@@ -301,6 +301,29 @@ The operator is invoked and its value substituted. · 300 unmodified lines
301See301See
302.IR "Built-in Commands" ,302.IR "Built-in Commands" ,
303below, for more information on builtins.303below, for more information on builtins.
304.HP
305.BI <{ command }
306.HP
307.BI >{ command }
308.br
309The
310.I command
311is executed asynchronously with its standard output or standard input
312connected to a pipe.
313The value of the argument is the name of a file
314referring to the other end of the pipe.
315This allows the construction of
316non-linear pipelines.
317For example, the following runs two commands
318.B old
319and
320.B new
321and uses
322.B cmp
323to compare their outputs
324.EX
325 cmp <{old} <{new}
326.EE
304.PD327.PD
305.SS Free Carets328.SS Free Carets
306In most circumstances,329In most circumstances,
@@ -394,6 +417,12 @@ may be redirected from a file by the sequence · 87 unmodified lines
394or by the sequence417or by the sequence
395.BI <> file \f1,418.BI <> file \f1,
396which opens the file for writing as well as reading.419which opens the file for writing as well as reading.
420Note that if
421.I file
422is in fact a parsed braced block, the redirection will be treated as
423pipe to the given command - it is identical to the
424.B "<{}"
425operator mentioned above.
397.PP426.PP
398Redirections may be applied to a file-descriptor other than standard input427Redirections may be applied to a file-descriptor other than standard input
399or output by qualifying the redirection operator428or output by qualifying the redirection operator
man/1/sh-std+4−11
@@ -463,17 +463,10 @@ its standard input is connected; otherwise file descriptor · 462 unmodified lines
463is connected.463is connected.
464.B Pipe464.B Pipe
465yields the name of a file that can be opened to access465yields the name of a file that can be opened to access
466the other end of the pipe. This allows the construction466the other end of the pipe. Note that this command is now
467of non-linear pipelines. For example, the following runs two commands467deprecated in favour of the
468.B old468.B <{}
469and469redirection operator built in to the shell.
470.B new
471and uses
472.B cmp
473to compare their outputs
474.EX
475 cmp ${pipe from {old}} ${pipe from {new}}
476.EE
477.TP470.TP
478.B ${split}471.B ${split}
479.B Split472.B Split