History log of /netbsd-src/usr.bin/printf/printf.1 (Results 1 – 25 of 41)
Revision Date Author Comments
# b4820880 24-Nov-2024 kre <kre@NetBSD.org>

Random minor wording and markup cleanups.


# 96604f8b 06-Aug-2024 uwe <uwe@NetBSD.org>

printf(1): misc tweaks

Move the advise about getopt's "--" to where the format is disussed.
Use .Vt for types.


# 087edea2 06-Aug-2024 uwe <uwe@NetBSD.org>

printf(1): move \e description to its lexicographic place


# 17515bfc 06-Aug-2024 kre <kre@NetBSD.org>

Add %C format conversion and -L option to printf(1)

%C does what everyone always thought %c should do, but doesn't,
and operates rather like the %c conversion in printf(3) (to be
more precise, like

Add %C format conversion and -L option to printf(1)

%C does what everyone always thought %c should do, but doesn't,
and operates rather like the %c conversion in printf(3) (to be
more precise, like %lc). It takes a code point integer value
in the current locale's LC_CTYPE and prints the character designated.

-L (this printf's first, and only, option) makes the floating conversions
use long double instead of double.

In the manual (printf.1) document both of those, and also be more
precise as to when things are affecting bytes, and when they're
manipulating characters (which makes no difference if LC_ALL=C).

show more ...


# 2773222a 13-Feb-2023 andvar <andvar@NetBSD.org>

s/chracter/character/ in documentation.


# 6db93d57 19-May-2021 kre <kre@NetBSD.org>

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.


# e78db94b 29-Jun-2020 uwe <uwe@NetBSD.org>

Add quotes around command substitution in the example
so that it works regardless of IFS and buts.
Requested by kre@


# 7a8bed0a 26-Jun-2020 uwe <uwe@NetBSD.org>

Drop redundant quoting in the nested printf example.


# 0e9ddc2d 26-Jun-2020 uwe <uwe@NetBSD.org>

Use ASCII single quote.


# 0f2a8223 26-Jun-2020 uwe <uwe@NetBSD.org>

Try to improve markup to get a nicer PostScript output.

While here edit slightly for consistency: get the octal character
ranges in order, use \num to refer to octal everywhere, etc.


# 24f342df 31-Aug-2018 kre <kre@NetBSD.org>

PR standards/53563

POSIX requires that signed numbers (strings preceded by '+' or '-')
be allowed as inputs to all of the integer format conversions, including
those which treat the data as unsigned

PR standards/53563

POSIX requires that signed numbers (strings preceded by '+' or '-')
be allowed as inputs to all of the integer format conversions, including
those which treat the data as unsigned.

Hence we do not need a variant function whose only difference from its
companion is to reject strings starting with '-' - instead we use
the primary function (getintmax()) for everything and remove getuintmax().

Minor update to the man page to indicate that the arg to all of the
integer conversions (diouxX) must be an integer constant (with an
optional sign) and to make it blatantly clear that %o is octal and
%u is unsigned decimal (for some reason those weren't explicitly stated
unlike d i x and X). Delete "respectively", it is not needed (and does
not really apply).

XXX pullup -8

show more ...


# 2fb3e9fa 24-Jul-2018 kre <kre@NetBSD.org>

Add the new formats to the list of format cracters (oops...)


# ddc0976a 24-Jul-2018 kre <kre@NetBSD.org>

Add support for F a and A formats (which go with the eEfgG formats
already supported.)


# 520d24e3 24-Jul-2018 kre <kre@NetBSD.org>

Correct a typo (off by one (key)) ...
There is no 'w' format, but there is an 'e'


# 2458e695 12-Mar-2018 wiz <wiz@NetBSD.org>

Remove Tn.


# ab87b602 12-Mar-2018 dholland <dholland@NetBSD.org>

Explicitly mention use of -- for format strings beginning with -,
per PR 21970.


# fc99b6a4 13-Apr-2014 snj <snj@NetBSD.org>

Change some standard exit status text to ".Ex -std"
From Eitan Adler in PR bin/47790.


# 57e01018 05-Apr-2010 joerg <joerg@NetBSD.org>

\\*(Pm -> \*(Pm


# 31ea1ec6 11-Mar-2009 joerg <joerg@NetBSD.org>

Use semantic markup


# 0a268c3e 01-Sep-2008 dholland <dholland@NetBSD.org>

Fix description of %b format. PR 39111 from Paul Goyette.


# 76807ad9 06-May-2008 apb <apb@NetBSD.org>

Add a note about the stupid behaviour of "%c" format.


# 89aaa1bb 07-Aug-2003 agc <agc@NetBSD.org>

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22365, verified by myself.


# abe0b8ad 28-Apr-2003 wiz <wiz@NetBSD.org>

Use .Aq instead of \*[Lt]...\*[Gt]; sort SEE ALSO; add some more commas;
new sentence, new line; fix some mdoc nits.


# 86be450d 28-Apr-2003 augustss <augustss@NetBSD.org>

Add missing comma.


# c02b3bbd 24-Nov-2002 christos <christos@NetBSD.org>

Fixes from David Laight:
- ansification
- format of output of jobs command (etc)
- job identiers %+, %- etc
- $? and $(...)
- correct quoting of output of set, export -p and readonly -p
- differentia

Fixes from David Laight:
- ansification
- format of output of jobs command (etc)
- job identiers %+, %- etc
- $? and $(...)
- correct quoting of output of set, export -p and readonly -p
- differentiation between nornal and 'posix special' builtins
- correct behaviour (posix) for errors on builtins and special builtins
- builtin printf and kill
- set -o debug (if compiled with DEBUG)
- cd src obj (as ksh - too useful to do without)
- unset -e name, remove non-readonly variable from export list.
(so I could unset -e PS1 before running the test shell...)

show more ...


12