Module Name:    src
Committed By:   kre
Date:           Wed May 19 22:29:18 UTC 2021

Modified Files:
        src/usr.bin/printf: printf.1

Log Message:
Don't describe "%%: in the format as a format conversion, it isn't,
it is an escaped literal '%' character.   None of what applies to
format conversions applies to this.


To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 src/usr.bin/printf/printf.1

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/printf/printf.1
diff -u src/usr.bin/printf/printf.1:1.35 src/usr.bin/printf/printf.1:1.36
--- src/usr.bin/printf/printf.1:1.35	Mon Jun 29 22:50:11 2020
+++ src/usr.bin/printf/printf.1	Wed May 19 22:29:18 2021
@@ -1,4 +1,4 @@
-.\"	$NetBSD: printf.1,v 1.35 2020/06/29 22:50:11 uwe Exp $
+.\"	$NetBSD: printf.1,v 1.36 2021/05/19 22:29:18 kre Exp $
 .\"
 .\" Copyright (c) 1989, 1990, 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -32,7 +32,7 @@
 .\"
 .\"	from: @(#)printf.1	8.1 (Berkeley) 6/6/93
 .\"
-.Dd August 31, 2018
+.Dd May 19, 2021
 .Dt PRINTF 1
 .Os
 .Sh NAME
@@ -136,6 +136,11 @@ value is the 1- or 2-digit hexadecimal n
 .Pp
 Each format specification is introduced by the percent character
 .Pq Ql \&% .
+To produce a literal percent
+.Pq Ql \&% 
+in the output, write the percent chracter twice:
+.Pq Ql \&%% .
+This is not a format conversion.
 The remainder of the format specification includes,
 in the following order:
 .Bl -tag -width 5n
@@ -397,10 +402,6 @@ Characters from the string
 are printed until the end is reached or until the number of characters
 indicated by the precision specification is reached; if the
 precision is omitted, all characters in the string are printed.
-.It Cm \&%
-Print a literal percent character
-.Pq Ql % ;
-no argument is used.
 .El
 .Pp
 In no case does a non-existent or small field width cause truncation of

Reply via email to