Module Name: src Committed By: dholland Date: Sun Mar 23 01:29:12 UTC 2014
Modified Files: src/external/historical/nawk/bin: awk.1 Log Message: 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. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/external/historical/nawk/bin/awk.1 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/historical/nawk/bin/awk.1 diff -u src/external/historical/nawk/bin/awk.1:1.2 src/external/historical/nawk/bin/awk.1:1.3 --- src/external/historical/nawk/bin/awk.1:1.2 Wed Apr 20 10:10:32 2011 +++ src/external/historical/nawk/bin/awk.1 Sun Mar 23 01:29:12 2014 @@ -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,