summaryrefslogtreecommitdiff
path: root/usr.bin/awk
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2015-01-16 15:53:25 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2015-01-16 15:53:25 +0000
commit3277a6d21dea172a2276bc730820ea00213812cb (patch)
tree73081f74f0d3d3ca59e592902b2152efdb003a5c /usr.bin/awk
parent6c8c44b6aafe20210ad8ed4ea754e326eca2ff93 (diff)
fix placement of opening parentheses, and drop some .Xo while here
Diffstat (limited to 'usr.bin/awk')
-rw-r--r--usr.bin/awk/awk.122
1 files changed, 7 insertions, 15 deletions
diff --git a/usr.bin/awk/awk.1 b/usr.bin/awk/awk.1
index 6d05cb7a483..3c9f24d82c6 100644
--- a/usr.bin/awk/awk.1
+++ b/usr.bin/awk/awk.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: awk.1,v 1.42 2014/12/15 20:31:40 tedu Exp $
+.\" $OpenBSD: awk.1,v 1.43 2015/01/16 15:53:24 schwarze Exp $
.\"
.\" Copyright (C) Lucent Technologies 1997
.\" All Rights Reserved
@@ -22,7 +22,7 @@
.\" ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
.\" THIS SOFTWARE.
.\"
-.Dd $Mdocdate: December 15 2014 $
+.Dd $Mdocdate: January 16 2015 $
.Dt AWK 1
.Os
.Sh NAME
@@ -199,19 +199,11 @@ An action is a sequence of statements.
A statement can be one of the following:
.Pp
.Bl -tag -width Ds -offset indent -compact
-.It Xo Ic if ( Ar expression ) Ar statement
-.Op Ic else Ar statement
-.Xc
-.It Ic while ( Ar expression ) Ar statement
-.It Xo Ic for
-.No ( Ar expression ; expression ; expression ) statement
-.Xc
-.It Xo Ic for
-.No ( Ar var Ic in Ar array ) statement
-.Xc
-.It Xo Ic do
-.Ar statement Ic while ( Ar expression )
-.Xc
+.It Ic if Ar ( expression ) Ar statement Op Ic else Ar statement
+.It Ic while Ar ( expression ) Ar statement
+.It Ic for Ar ( expression ; expression ; expression ) statement
+.It Ic for Ar ( var Ic in Ar array ) statement
+.It Ic do Ar statement Ic while Ar ( expression )
.It Ic break
.It Ic continue
.It Xo Ic {