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): mark up $<n> properly -...



details:   https://anonhg.NetBSD.org/src/rev/aa2be3ffe2bd
branches:  trunk
changeset: 368315:aa2be3ffe2bd
user:      uwe <uwe%NetBSD.org@localhost>
date:      Tue Jul 05 13:48:07 2022 +0000

description:
awk(1): mark up $<n> properly - '$' is an unary op, not part of the name

diffstat:

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

diffs (79 lines):

diff -r a4642cdef083 -r aa2be3ffe2bd external/historical/nawk/bin/awk.1
--- a/external/historical/nawk/bin/awk.1        Tue Jul 05 13:29:18 2022 +0000
+++ b/external/historical/nawk/bin/awk.1        Tue Jul 05 13:48:07 2022 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: awk.1,v 1.16 2022/07/05 13:29:18 uwe Exp $
+.\"    $NetBSD: awk.1,v 1.17 2022/07/05 13:48:07 uwe Exp $
 .\"
 .\" Copyright (C) Lucent Technologies 1997
 .\" All Rights Reserved
@@ -136,10 +136,10 @@
 .Va FS
 is null, the input line is split into one field per character.
 The fields are denoted
-.Va $1 ,
-.Va $2 ,
+.Li $ Ns Va 1 ,
+.Li $ Ns Va 2 ,
 \&..., while
-.Va $0
+.Li $ Ns Va 0
 refers to the entire line.
 Setting any other field causes the re-evaluation of
 .Li $ Ns Va 0
@@ -164,7 +164,7 @@
 An empty
 .Ar expression-list
 stands for
-.Va $0 .
+.Li $ Ns Va 0 .
 String constants are quoted
 .Em \&"\ \&" ,
 with the usual C escapes recognized within.
@@ -283,7 +283,8 @@
 Set
 .Va var
 (or
-.Va $0 if
+.Li $ Ns Va 0
+if
 .Va var
 is not specified)
 to the next input record from the current input file.
@@ -294,7 +295,8 @@
 Set
 .Va var
 (or
-.Va $0 if
+.Li $ Ns Va 0
+if
 .Va var
 is not specified)
 to the next input record from the specified file
@@ -408,7 +410,7 @@
 If no
 .Ar t
 is supplied,
-.Va $0
+.Li $ Ns Va 0
 is used instead.
 .\"Within the replacement text
 .\".Ar s ,
@@ -460,7 +462,7 @@
 the length of its argument
 taken as a string,
 or of
-.Va $0
+.Li $ Ns Va 0
 if no argument.
 .It Fn match s r
 the position in
@@ -509,7 +511,7 @@
 If
 .Ar t
 is not given,
-.Va $0
+.Li $ Ns Va 0
 is used.
 .It Fn substr s m [n]
 Returns the at most



Home | Main Index | Thread Index | Old Index