Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/bin/sh Standalone | means \[ba] while we want \[or] so add \...



details:   https://anonhg.NetBSD.org/src/rev/396027b95796
branches:  trunk
changeset: 321373:396027b95796
user:      uwe <uwe%NetBSD.org@localhost>
date:      Tue Mar 13 20:08:11 2018 +0000

description:
Standalone | means \[ba] while we want \[or] so add \& protection to
the few places where it was missing.

diffstat:

 bin/sh/sh.1 |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r aa52c307fa2f -r 396027b95796 bin/sh/sh.1
--- a/bin/sh/sh.1       Tue Mar 13 19:43:52 2018 +0000
+++ b/bin/sh/sh.1       Tue Mar 13 20:08:11 2018 +0000
@@ -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
 .\"    The Regents of the University of California.  All rights reserved.
 .\"
@@ -550,7 +550,7 @@
 The following is a list of operators:
 .Bl -ohang -offset indent
 .It "Control operators:"
-.Dl &  &&  \&(  \&)  \&;  ;; ;& | || <newline>
+.Dl &  &&  \&(  \&)  \&;  ;; ;& \&| || <newline>
 .It "Redirection operators:"
 .Dl <  >  >|  <<  >>  <&  >&  <<-  <>
 .El
@@ -1081,7 +1081,7 @@
 .Pp
 The format for a pipeline is:
 .Pp
-.Dl [!] command1 [ | command2 ...]
+.Dl [!] command1 [ \&| command2 ...]
 .Pp
 The standard output of command1 is connected to the standard input of
 command2.
@@ -1120,7 +1120,7 @@
 takes place before redirection, it can be modified by redirection.
 For example:
 .Pp
-.Dl $ command1 2>&1 | command2
+.Dl $ command1 2>&1 \&| command2
 .Pp
 sends both the standard output and standard error of command1
 to the standard input of command2.



Home | Main Index | Thread Index | Old Index