Change the argument names in the prototypes and discussion for

sub/gsub to match those in gensub. Noted by Kai-Uwe Eckhardt in
PR 48667.
This commit is contained in:
dholland 2014-03-23 01:29:12 +00:00
parent e2ddf9ecf7
commit f6f4f5e81c

View File

@ -1,4 +1,4 @@
.\" $NetBSD: awk.1,v 1.2 2011/04/20 10:10:32 drochner Exp $
.\" $NetBSD: awk.1,v 1.3 2014/03/23 01:29:12 dholland Exp $
.\"
.\" Copyright (C) Lucent Technologies 1997
.\" All Rights Reserved
@ -419,8 +419,8 @@ supported by GNU
are
.Em not
supported at this moment.
.It Fn gsub r t "[s]"
same as
.It Fn gsub r s "[t]"
Same as
.Fn sub
except that all occurrences of the regular expression
are replaced;
@ -477,13 +477,13 @@ according to the
.Xr printf 3
format
.Ar fmt .
.It Fn sub r t "[s]"
.It Fn sub r s "[t]"
substitutes
.Ar t
.Ar s
for the first occurrence of the regular expression
.Ar r
in the string
.Ar s .
in the target string
.Ar t .
If
.Ar s
is not given,