#
0ba01198 |
| 11-Apr-2005 |
Stefan Farfeleder <stefanf@FreeBSD.org> |
Replace buggy for-loops to skip certain character with strspn(). If *fmt was '\0' (eg in the invocation 'printf %'), the for-loop would miss the terminating null character.
MFC after: 1 week
|
#
fd757c50 |
| 21-Mar-2005 |
David Schultz <das@FreeBSD.org> |
Support the L modifier for floating-point values as an extension. When L is omitted, double precision is used, so printf(1) gives reproducable results. When L is specified, long double precision is
Support the L modifier for floating-point values as an extension. When L is omitted, double precision is used, so printf(1) gives reproducable results. When L is specified, long double precision is used, which may improve precision, depending on the machine.
show more ...
|
Revision tags: release/4.11.0_cvs, release/4.11.0, release/5.3.0_cvs, release/5.3.0 |
|
#
6ac6319b |
| 24-Sep-2004 |
Giorgos Keramidas <keramida@FreeBSD.org> |
Allow %' to be used as a format flag by printf(1). This makes it possible to print the thousands separator in the locale setups that have one, by something like this:
$ env -i LC_NUMERIC=en_US.
Allow %' to be used as a format flag by printf(1). This makes it possible to print the thousands separator in the locale setups that have one, by something like this:
$ env -i LC_NUMERIC=en_US.ISO8859-1 ./printf "%'0.2f\n" 12345 12,345.00
Reviewed by: das
show more ...
|
#
03b2eaac |
| 05-Jun-2004 |
David Schultz <das@FreeBSD.org> |
Enable support for the %a, %A, and %F format specifiers.
|
Revision tags: release/4.10.0_cvs, release/4.10.0 |
|
#
8c423a99 |
| 07-Mar-2004 |
Colin Percival <cperciva@FreeBSD.org> |
Make it possible for the %[eEfgG] formats to not result in an error being reported by /usr/bin/printf.
This bug has been around for 22 months... either nobody uses printf with floating-point values,
Make it possible for the %[eEfgG] formats to not result in an error being reported by /usr/bin/printf.
This bug has been around for 22 months... either nobody uses printf with floating-point values, or people are forgetting to check their return codes.
Approved by: rwatson (mentor)
show more ...
|
Revision tags: release/5.2.1_cvs, release/5.2.1, release/5.2.0_cvs, release/5.2.0, release/4.9.0_cvs, release/4.9.0, release/5.1.0_cvs, release/5.1.0, release/4.8.0_cvs, release/4.8.0, release/5.0.0_cvs, release/5.0.0, release/4.7.0_cvs |
|
#
f4ac32de |
| 05-Sep-2002 |
David Malone <dwmalone@FreeBSD.org> |
ANSIify function definitions. Add some constness to avoid some warnings. Remove use register keyword. Deal with missing/unneeded extern/prototypes. Some minor type changes/casts to avoid warnings.
R
ANSIify function definitions. Add some constness to avoid some warnings. Remove use register keyword. Deal with missing/unneeded extern/prototypes. Some minor type changes/casts to avoid warnings.
Reviewed by: md5
show more ...
|
Revision tags: release/4.6.2_cvs, release/4.6.2, release/4.6.1, release/4.6.0_cvs |
|
#
12e8db40 |
| 19-Jun-2002 |
Tim J. Robbins <tjr@FreeBSD.org> |
Fix duplicate % in %b format introduced in rev 1.22.
|
#
98dd6386 |
| 19-Jun-2002 |
Tim J. Robbins <tjr@FreeBSD.org> |
Let printf(1) tell the difference between zero width/precision and unspecified width/precision.
PR: 39116 Submitted by: Egil Brendsdal <egilb@ife.no> MFC after: 1 week
|
#
5f19035b |
| 19-Jun-2002 |
Tim J. Robbins <tjr@FreeBSD.org> |
Allow format strings containing "%%" to be reused.
PR: 39116 Submitted by: Egil Brendsdal <egilb@ife.no> MFC after: 1 week
|
#
37fd4590 |
| 19-Jun-2002 |
Tim J. Robbins <tjr@FreeBSD.org> |
Allow `%' to be written out with an octal escape (\45 or \045).
PR: 39116 Submitted by: Egil Brendsdal <egilb@ife.no> MFC after: 1 week
|
#
bacab7d6 |
| 25-Apr-2002 |
Tim J. Robbins <tjr@FreeBSD.org> |
Handle numbers larger than QUAD_MAX for unsigned conversions correctly. Exit with nonzero status if a conversion failed. Play nice if used as a shell builtin (currently disabled).
Submitted by: bde
Handle numbers larger than QUAD_MAX for unsigned conversions correctly. Exit with nonzero status if a conversion failed. Play nice if used as a shell builtin (currently disabled).
Submitted by: bde (partially) Approved by: mike
show more ...
|
#
ab5a295b |
| 23-Apr-2002 |
Juli Mallett <jmallett@FreeBSD.org> |
- printf shouldn't bail out if a conversion fails, it should just keep processing them. - \c escape to immediately stop output (similar to echo's \c) - \0NNN should be allowed for octal characte
- printf shouldn't bail out if a conversion fails, it should just keep processing them. - \c escape to immediately stop output (similar to echo's \c) - \0NNN should be allowed for octal character escapes (instead of just \NNN) - %b conversion, which is like %s but interprets \n \t etc. inside the string is missing.
And I may not be any poet, but in lieu of an in-tree regression test: ref5% ./printf '%s%b%b%c%s%d\n' 'PR' '\0072' '\t' '3' '56' 0x10 PR: 35616
Submitted by: tjr MFC after: 1 week
show more ...
|
#
d3cb5ded |
| 22-Mar-2002 |
Warner Losh <imp@FreeBSD.org> |
remove __P
|
Revision tags: release/4.5.0_cvs, release/4.4.0_cvs |
|
#
45af1a4c |
| 03-Dec-2001 |
David Malone <dwmalone@FreeBSD.org> |
Warns cleanups.
|
Revision tags: release/4.3.0_cvs, release/4.3.0 |
|
#
dc7d8c99 |
| 10-Feb-2001 |
Andrey A. Chernov <ache@FreeBSD.org> |
Localize it (LC_NUMERIC)
|
#
3c6e4a5c |
| 21-Dec-2000 |
Ben Smithurst <ben@FreeBSD.org> |
Fix printf(1) for cases where a long string with no format specifiers is followed by a %d (probably others too) format specifier.
Reviewed by: audit
|
Revision tags: release/4.2.0, release/4.1.1_cvs |
|
#
c9e05349 |
| 04-Sep-2000 |
Warner Losh <imp@FreeBSD.org> |
When we have both a rcsid and sccsid, ifdef 0 the sccsid. This appears to be the standard FreeBSD way to do this. style(9) is silent about this, however.
|
Revision tags: release/4.1.0 |
|
#
62a721e7 |
| 10-Jul-2000 |
Stefan Eßer <se@FreeBSD.org> |
Extend to deal with 64 bit numeric arguments.
|
Revision tags: release/3.5.0_cvs |
|
#
1ea7321b |
| 20-Apr-2000 |
Martin Cracauer <cracauer@FreeBSD.org> |
Remove redundat extern declaration
|
Revision tags: release/4.0.0_cvs, release/3.4.0_cvs, release/3.3.0_cvs, release/3.2.0, release/3.1.0, release/3.0.0, release/2.2.8 |
|
#
3b53d380 |
| 07-Dec-1998 |
Bruce Evans <bde@FreeBSD.org> |
Fixed warnx format errors in printf and csh, and snprintf format errors in sh, by using separate macros for the 1, 2 and 3-arg calls to warnx. (The 3-arg warnx macro in sh/bltin/bltin.h used to requi
Fixed warnx format errors in printf and csh, and snprintf format errors in sh, by using separate macros for the 1, 2 and 3-arg calls to warnx. (The 3-arg warnx macro in sh/bltin/bltin.h used to require bogus dummy args.)
show more ...
|
Revision tags: release/2.2.7, release/2.2.6 |
|
#
b0c9a86d |
| 18-Nov-1997 |
John Polstra <jdp@FreeBSD.org> |
Back out revision 1.10. It broke the build of sh, which compiles this file with warnx() defined as a macro.
|
#
c8a2e150 |
| 18-Nov-1997 |
John Polstra <jdp@FreeBSD.org> |
Fix: too many arguments for format string in 4 calls to warnx().
|
Revision tags: release/2.2.5_cvs |
|
#
9d19feb5 |
| 07-Aug-1997 |
Steve Price <steve@FreeBSD.org> |
#include <unistd.h> for getopt(3) call.
|
#
c44252b6 |
| 06-Jul-1997 |
Bruce Evans <bde@FreeBSD.org> |
Finish importing Lite2's src/usr.bin, except for ex, diff, grep, mail, pascal and vmstat.sparc. All changed files on the vendor branch should already have been imported.
|
Revision tags: release/2.2.2_cvs |
|
#
1c8af878 |
| 29-Mar-1997 |
Warner Losh <imp@FreeBSD.org> |
compare return value from getopt against -1 rather than EOF, per the final posix standard on the topic.
|