Standalone | means \[ba] while we want \[or] so add \& protection to

the few places where it was missing.
This commit is contained in:
uwe 2018-03-13 20:08:11 +00:00
parent 4243789c21
commit 882c5e3aae

View File

@ -1,4 +1,4 @@
.\" $NetBSD: sh.1,v 1.178 2018/03/13 19:43:52 uwe Exp $ .\" $NetBSD: sh.1,v 1.179 2018/03/13 20:08:11 uwe Exp $
.\" Copyright (c) 1991, 1993 .\" Copyright (c) 1991, 1993
.\" The Regents of the University of California. All rights reserved. .\" The Regents of the University of California. All rights reserved.
.\" .\"
@ -550,7 +550,7 @@ operators (their meaning is discussed later).
The following is a list of operators: The following is a list of operators:
.Bl -ohang -offset indent .Bl -ohang -offset indent
.It "Control operators:" .It "Control operators:"
.Dl & && \&( \&) \&; ;; ;& | || <newline> .Dl & && \&( \&) \&; ;; ;& \&| || <newline>
.It "Redirection operators:" .It "Redirection operators:"
.Dl < > >| << >> <& >& <<- <> .Dl < > >| << >> <& >& <<- <>
.El .El
@ -1081,7 +1081,7 @@ as is the standard input of the first command.
.Pp .Pp
The format for a pipeline is: The format for a pipeline is:
.Pp .Pp
.Dl [!] command1 [ | command2 ...] .Dl [!] command1 [ \&| command2 ...]
.Pp .Pp
The standard output of command1 is connected to the standard input of The standard output of command1 is connected to the standard input of
command2. command2.
@ -1120,7 +1120,7 @@ Because pipeline assignment of standard input or standard output or both
takes place before redirection, it can be modified by redirection. takes place before redirection, it can be modified by redirection.
For example: For example:
.Pp .Pp
.Dl $ command1 2>&1 | command2 .Dl $ command1 2>&1 \&| command2
.Pp .Pp
sends both the standard output and standard error of command1 sends both the standard output and standard error of command1
to the standard input of command2. to the standard input of command2.