Source-Changes-HG archive

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

[src/trunk]: src/external/historical/nawk/bin awk(1): A few more formatting t...



details:   https://anonhg.NetBSD.org/src/rev/3fbb06b768db
branches:  trunk
changeset: 368322:3fbb06b768db
user:      uwe <uwe%NetBSD.org@localhost>
date:      Tue Jul 05 15:35:53 2022 +0000

description:
awk(1): A few more formatting tweaks to inlibe code bits and pieces

diffstat:

 external/historical/nawk/bin/awk.1 |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (47 lines):

diff -r 386cc587e968 -r 3fbb06b768db external/historical/nawk/bin/awk.1
--- a/external/historical/nawk/bin/awk.1        Tue Jul 05 15:32:45 2022 +0000
+++ b/external/historical/nawk/bin/awk.1        Tue Jul 05 15:35:53 2022 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: awk.1,v 1.22 2022/07/05 15:28:02 uwe Exp $
+.\"    $NetBSD: awk.1,v 1.23 2022/07/05 15:35:53 uwe Exp $
 .\"
 .\" Copyright (C) Lucent Technologies 1997
 .\" All Rights Reserved
@@ -167,7 +167,7 @@
 stands for
 .Li $ Ns Va 0 .
 String constants are quoted
-.Em \&"\ \&" ,
+.Li \(dq\(dq ,
 with the usual C escapes recognized within.
 Expressions take on string or numeric values as appropriate,
 and are built using the
@@ -175,14 +175,14 @@
 (see next subsection).
 Variables may be scalars, array elements
 (denoted
-.Va x[i] )
+.Va x\| Ns Li [ Ns Va i\^ Ns Li ] )
 or fields.
 Variables are initialized to the null string.
 Array subscripts may be any string,
 not necessarily numeric;
 this allows for a form of associative memory.
 Multiple subscripts such as
-.Va [i,j,k]
+.Li [ Ns Ar i Ns Li \&, Ns Ar j Ns Li \&, Ns Ar k Ns Li ]
 are permitted; the constituents are concatenated,
 separated by the value of
 .Va SUBSEP .
@@ -199,9 +199,9 @@
 Increment and decrement, can be used either as postfix or prefix.
 .It Ic ^
 Exponentiation (the
-.Ic **
+.Ic **\^
 form is also supported, and
-.Ic **=
+.Ic **\^=
 for the assignment operator).
 .It + \- \&!
 Unary plus, unary minus and logical negation.



Home | Main Index | Thread Index | Old Index