OpenBSD CVS

CVS log for src/usr.bin/printf/printf.1


[BACK] Up to [local] / src / usr.bin / printf

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.35 / (download) - annotate - [select for diffs], Fri May 7 14:31:27 2021 UTC (3 years ago) by martijn
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, HEAD
Changes since 1.34: +9 -3 lines
Diff to previous 1.34 (colored)

Fix the \x escape sequence to be limited to max 2 characters, instead of
consuming as long as there are isxdigit(3) characters available.

While here document it and mark it as an extension.

OK millert@

Revision 1.34 / (download) - annotate - [select for diffs], Thu Jan 16 16:46:47 2020 UTC (4 years, 4 months ago) by schwarze
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.33: +3 -3 lines
Diff to previous 1.33 (colored)

Usually, -width Fl (which is 10n) is too wide and hence ugly.
Change several instances, most of them to the usual -width Ds.

Revision 1.33 / (download) - annotate - [select for diffs], Fri Aug 2 14:40:13 2019 UTC (4 years, 9 months ago) by schwarze
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.32: +22 -3 lines
Diff to previous 1.32 (colored)

document octal escape format in %b arguments;
omission reported by Andras Farkas <deepbluemistake at gmail dot com>;
OK deraadt@ jmc@, and Andras Farkas also checked the patch

Revision 1.32 / (download) - annotate - [select for diffs], Sun Jun 2 06:16:37 2019 UTC (4 years, 11 months ago) by bentley
Branch: MAIN
Changes since 1.31: +3 -3 lines
Diff to previous 1.31 (colored)

Fix incorrect character escape.

From Stephen Gregoratto; thanks!

Revision 1.31 / (download) - annotate - [select for diffs], Tue Mar 13 14:53:05 2018 UTC (6 years, 2 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.30: +10 -15 lines
Diff to previous 1.30 (colored)

remove the Ic macro from EXAMPLES, and use a much more standard literal;
while there, kill some Tn

Revision 1.30 / (download) - annotate - [select for diffs], Fri Nov 18 15:59:10 2016 UTC (7 years, 6 months ago) by schwarze
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.29: +10 -5 lines
Diff to previous 1.29 (colored)

Fix two documentation bugs:
1. Specifying a precision for the %s format character limits the number
of bytes printed, not the number of characters.
2. Document the intentional POSIX violation of ignoring the locale.
Feedback and OK jmc@, bentley@.

Revision 1.29 / (download) - annotate - [select for diffs], Sat Feb 28 21:51:57 2015 UTC (9 years, 2 months ago) by bentley
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.28: +4 -4 lines
Diff to previous 1.28 (colored)

Reduce usage of predefined strings in manpages.

Predefined strings are not very portable across troff implementations,
and they make the source much harder to read. Usually the intended
character can be written directly.

No output changes, except for two instances where the incorrect escape
was used in the first place.

tweaks + ok schwarze@

Revision 1.28 / (download) - annotate - [select for diffs], Wed Oct 22 21:00:05 2014 UTC (9 years, 6 months ago) by schwarze
Branch: MAIN
Changes since 1.27: +13 -4 lines
Diff to previous 1.27 (colored)

document the special \c escape sequence that can only be used with %b;
gap found by guenther@ following a question asked
by Frank Brodbeck <fab at split dash brain dot de>;
while here, sort escape sequences,
this part of the patch from Frank Brodbeck;
ok guenther@

Revision 1.27 / (download) - annotate - [select for diffs], Sun May 25 07:36:36 2014 UTC (9 years, 11 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.26: +6 -8 lines
Diff to previous 1.26 (colored)

don't use plural "arguments" in SYNOPSIS, since "..." makes it
redundant; tweak the rest of the page to stop using both forms,
and tweak usage(), which was wrong anyway, to match this;

Revision 1.26 / (download) - annotate - [select for diffs], Tue May 13 20:37:48 2014 UTC (10 years ago) by jmc
Branch: MAIN
Changes since 1.25: +5 -8 lines
Diff to previous 1.25 (colored)

- document two escape sequences as extensions in STANDARDS
- document undefined behaviour for unlisted formats in
combination with `#'; guenther helped me organise this into a saner
piece of text

ok guenther

Revision 1.25 / (download) - annotate - [select for diffs], Thu Oct 21 13:20:51 2010 UTC (13 years, 7 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.24: +3 -5 lines
Diff to previous 1.24 (colored)

more EXIT STATUS bits; from Daniel Dickman

Revision 1.24 / (download) - annotate - [select for diffs], Fri Sep 3 11:09:29 2010 UTC (13 years, 8 months ago) by jmc
Branch: MAIN
Changes since 1.23: +3 -3 lines
Diff to previous 1.23 (colored)

add an EXIT STATUS section for /usr/bin;

Revision 1.23 / (download) - annotate - [select for diffs], Fri Mar 26 19:30:40 2010 UTC (14 years, 1 month ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.22: +4 -4 lines
Diff to previous 1.22 (colored)

dispense with some wacky escape sequences;

Revision 1.22 / (download) - annotate - [select for diffs], Sun Feb 8 17:15:10 2009 UTC (15 years, 3 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.21: +3 -3 lines
Diff to previous 1.21 (colored)

bump the posix reference in STANDARDS to IEEE Std 1003.1-2008, with a few
updates to follow;

Revision 1.21 / (download) - annotate - [select for diffs], Mon Sep 15 19:22:32 2008 UTC (15 years, 8 months ago) by martynas
Branch: MAIN
Changes since 1.20: +38 -2 lines
Diff to previous 1.20 (colored)

- describe how printf(1) and printf(3) %e, %E, %g, %G, %a, %A behave
when the argument is infinity/not-a-number
ok millert@, jmc@

Revision 1.20 / (download) - annotate - [select for diffs], Sun Sep 14 11:44:54 2008 UTC (15 years, 8 months ago) by martynas
Branch: MAIN
Changes since 1.19: +17 -4 lines
Diff to previous 1.19 (colored)

describe %a/%A.  from freebsd
tweaks/ok millert@, jmc@

Revision 1.19 / (download) - annotate - [select for diffs], Mon Sep 8 20:16:13 2008 UTC (15 years, 8 months ago) by martynas
Branch: MAIN
Changes since 1.18: +17 -4 lines
Diff to previous 1.18 (colored)

- add descriptions for %F, and infinity/not-a-number from printf(3)
- add missing %e to the format list

Revision 1.18 / (download) - annotate - [select for diffs], Thu May 31 19:20:14 2007 UTC (16 years, 11 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

convert to new .Dd format;

Revision 1.17 / (download) - annotate - [select for diffs], Wed May 30 04:41:34 2007 UTC (16 years, 11 months ago) by jmc
Branch: MAIN
Changes since 1.16: +5 -4 lines
Diff to previous 1.16 (colored)

- use a consistent text for STANDARDS
- note which options are extensions to POSIX

Revision 1.16 / (download) - annotate - [select for diffs], Tue Jun 3 02:56:14 2003 UTC (20 years, 11 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.15: +2 -6 lines
Diff to previous 1.15 (colored)

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999.  Proofed by myself and Theo.

Revision 1.15 / (download) - annotate - [select for diffs], Tue Mar 18 08:37:35 2003 UTC (21 years, 2 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)

small typos;

ok miod@

Revision 1.14 / (download) - annotate - [select for diffs], Thu Nov 14 02:57:28 2002 UTC (21 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.13: +3 -3 lines
Diff to previous 1.13 (colored)

use $ or # before commands in examples

Revision 1.13 / (download) - annotate - [select for diffs], Sat Feb 17 17:15:27 2001 UTC (23 years, 3 months ago) by pjanzen
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE, OPENBSD_3_2, OPENBSD_3_1_BASE, OPENBSD_3_1, OPENBSD_3_0_BASE, OPENBSD_3_0, OPENBSD_2_9_BASE, OPENBSD_2_9
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored)

It's not that I mind split infinitives.  I just like to save'em for when
they're really needed.

Revision 1.12 / (download) - annotate - [select for diffs], Thu Oct 19 18:18:54 2000 UTC (23 years, 7 months ago) by aaron
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE, OPENBSD_2_8
Changes since 1.11: +12 -1 lines
Diff to previous 1.11 (colored)

Put the fmt strings CAVEATS section into userland printf(1) man page, too;
it applies here as well.

Revision 1.11 / (download) - annotate - [select for diffs], Thu Mar 23 21:10:18 2000 UTC (24 years, 2 months ago) by aaron
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE, OPENBSD_2_7
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

Fix some formatting problems I missed before.

Revision 1.10 / (download) - annotate - [select for diffs], Fri Mar 10 20:17:49 2000 UTC (24 years, 2 months ago) by aaron
Branch: MAIN
Changes since 1.9: +33 -26 lines
Diff to previous 1.9 (colored)

Various cleanups and standardization.

Revision 1.9 / (download) - annotate - [select for diffs], Mon Mar 6 03:15:59 2000 UTC (24 years, 2 months ago) by aaron
Branch: MAIN
Changes since 1.8: +10 -4 lines
Diff to previous 1.8 (colored)

Add HISTORY sections; from FreeBSD.

Revision 1.8 / (download) - annotate - [select for diffs], Sat Jan 22 12:46:30 2000 UTC (24 years, 4 months ago) by aaron
Branch: MAIN
Changes since 1.7: +10 -1 lines
Diff to previous 1.7 (colored)

Add a couple of useful examples.

Revision 1.7 / (download) - annotate - [select for diffs], Sat Jun 5 01:21:37 1999 UTC (24 years, 11 months ago) by aaron
Branch: MAIN
CVS Tags: OPENBSD_2_6_BASE, OPENBSD_2_6
Changes since 1.6: +9 -9 lines
Diff to previous 1.6 (colored)

- remove trailing white space
- remove arguments from .Os macros
- remove arguments from .Nm macros, where appropriate
- some more Dq/Sq/Ql insanity
- still lots to do in the usr.bin tree... :/

Revision 1.6 / (download) - annotate - [select for diffs], Mon Nov 30 01:48:02 1998 UTC (25 years, 5 months ago) by aaron
Branch: MAIN
CVS Tags: OPENBSD_2_5_BASE, OPENBSD_2_5
Changes since 1.5: +43 -21 lines
Diff to previous 1.5 (colored)

cleanup; also note that ``0'' flag is ignored when used with a precision
specifier and any of the d, i, o, u, or x (X) formats, as per gcc warnings

Revision 1.5 / (download) - annotate - [select for diffs], Sun Sep 27 16:57:50 1998 UTC (25 years, 7 months ago) by aaron
Branch: MAIN
CVS Tags: OPENBSD_2_4_BASE, OPENBSD_2_4
Changes since 1.4: +12 -12 lines
Diff to previous 1.4 (colored)

usr.bin/ man page cleanups, n-s

Revision 1.4 / (download) - annotate - [select for diffs], Tue Aug 25 13:35:52 1998 UTC (25 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.3: +3 -1 lines
Diff to previous 1.3 (colored)

doc \e in printf

Revision 1.3 / (download) - annotate - [select for diffs], Fri Jun 12 12:13:35 1998 UTC (25 years, 11 months ago) by d
Branch: MAIN
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)

there is no %w format

Revision 1.2 / (download) - annotate - [select for diffs], Wed Jun 26 05:37:58 1996 UTC (27 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_3_BASE, OPENBSD_2_3, OPENBSD_2_2_BASE, OPENBSD_2_2, OPENBSD_2_1_BASE, OPENBSD_2_1, OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.1: +1 -1 lines
Diff to previous 1.1 (colored)

rcsid

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:45:57 1995 UTC (28 years, 7 months ago) by deraadt
CVS Tags: netbsd_1_1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of NetBSD tree

Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 18 08:45:57 1995 UTC (28 years, 7 months ago) by deraadt
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.