aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/printf
Commit message (Collapse)AuthorAgeFilesLines
* MFC: Synch with mdoc fixes of revision 1.23 in HEAD.Giorgos Keramidas2002-07-151-13/+11
| | | | Notes: svn path=/stable/4/; revision=100046
* MFC printf(1) changes.Juli Mallett2002-04-293-84/+173
| | | | | | | | | | | | | | | | | | | | Notably revision 1.20 of printf.c and revision 1.21 of printf.1: - 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 revision 1.21 of printf.c: 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). PR: 35616 (some of it) Notes: svn path=/stable/4/; revision=95736
* MFC: localize it (LC_NUMERIC)Alexey Zelkin2002-03-122-0/+10
| | | | | | | | printf.c rev 1.17 printf.1 rev 1.12 Notes: svn path=/stable/4/; revision=92173
* MFC: 1.19: Replace reference to ANSI C draft with .St macro call.Ruslan Ermilov2002-01-161-4/+1
| | | | | | | Approved by: re (blanket) Notes: svn path=/stable/4/; revision=89427
* MFC: markup and misc fixes.Ruslan Ermilov2001-08-161-2/+2
| | | | | | | Approved by: re Notes: svn path=/stable/4/; revision=81777
* MFC: remove whitespace at EOL.Dima Dorfman2001-07-221-3/+3
| | | | Notes: svn path=/stable/4/; revision=80147
* MFC: r1.15: #if 0 sccsidKris Kennaway2001-03-041-0/+2
| | | | Notes: svn path=/stable/4/; revision=73475
* MFC: fix printf(1) for the case with a long string with no format charactersBen Smithurst2001-01-051-4/+16
| | | | | | | followed by a "%d" format. Notes: svn path=/stable/4/; revision=70697
* MFC: Prepare for mdoc(7)NG.Ruslan Ermilov2000-12-191-2/+5
| | | | Notes: svn path=/stable/4/; revision=70198
* MFC: support 64bit integer operandsStefan Eßer2000-07-221-14/+17
| | | | Notes: svn path=/stable/4/; revision=63756
* MFC: Remove redundat extern declaration. Add $FreeBSD$Paul Saab2000-07-041-1/+2
| | | | Notes: svn path=/stable/4/; revision=62494
* Document truncation of strings when a NUL character is reached in a formatChris Costello2000-01-191-0/+6
| | | | | | | | | | string. PR: 15929 Submitted by: Daniel Hagan <dhagan@cs.vt.edu> Notes: svn path=/head/; revision=56264
* Correct some hard sentence breaks. Only those surrounding the previousSheldon Hearn1999-09-141-2/+2
| | | | | | | | | | | commit and those which cause ugly nroff output have been fixed, since the purpose of the style guideline which they contravene is to reduce the sizes of deltas. Reported by: bde Notes: svn path=/head/; revision=51275
* Improve shell documentation:Sheldon Hearn1999-09-081-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Consistently misspell built-in as builtin. * Add a builtin(1) manpage and create builtin(1) MLINKS for all shell builtin commands for which no standalone utility exists. These MLINKS replace those that were created for csh(1). * Add appropriate xrefs for builtin(1) to the csh(1) and sh(1) manpages, as well as to the manpages of standalone utilities which are supported as shell builtin commands in at least one of the shells. In such manpages, explain that similar functionality may be provided as a shell builtin command. * Improve sh(1)'s description of the cd builtin command. Csh(1) already describes it adequately. Replace the cd(1) manpage with a builtin(1) MLINKS link. * Clean up some mdoc problems: use Xr instead of literal "foo(n)"; use Ic instead of Xr for shell builtin commands. * Undo English contractions. Reviewed by: mpp, rgrimes Notes: svn path=/head/; revision=51090
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50477
* Add $Id$, to make it simpler for members of the translation teams toNik Clayton1999-07-121-0/+1
| | | | | | | | | | | | | | | | | | | | track. The $Id$ line is normally at the bottom of the main comment block in the man page, separated from the rest of the manpage by an empty comment, like so; .\" $Id$ .\" If the immediately preceding comment is a @(#) format ID marker than the the $Id$ will line up underneath it with no intervening blank lines. Otherwise, an additional blank line is inserted. Approved by: bde Notes: svn path=/head/; revision=48792
* Fixed warnx format errors in printf and csh, and snprintf format errorsBruce Evans1998-12-071-7/+11
| | | | | | | | | 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.) Notes: svn path=/head/; revision=41582
* Back out revision 1.10. It broke the build of sh, which compilesJohn Polstra1997-11-181-4/+5
| | | | | | | this file with warnx() defined as a macro. Notes: svn path=/head/; revision=31277
* Fix: too many arguments for format string in 4 calls to warnx().John Polstra1997-11-181-5/+4
| | | | Notes: svn path=/head/; revision=31224
* #include <unistd.h> for getopt(3) call.Steve Price1997-08-071-0/+1
| | | | Notes: svn path=/head/; revision=27966
* Correct Synopsys section.Philippe Charnier1997-08-041-3/+3
| | | | Notes: svn path=/head/; revision=27887
* compare return value from getopt against -1 rather than EOF, per the finalWarner Losh1997-03-291-1/+1
| | | | | | | posix standard on the topic. Notes: svn path=/head/; revision=24360
* -Wall cleaning.Steve Price1996-12-141-2/+2
| | | | Notes: svn path=/head/; revision=20409
* Remove annoying -Wall warning.Steve Price1996-10-061-1/+1
| | | | Notes: svn path=/head/; revision=18732
* When used as a shell builtin, this program decoded a subset of argumentsPeter Wemm1996-10-011-4/+9
| | | | | | | | | | | | | | known to printf(3) and then used printf() to format it... The only problem what the #define printf out1fmt. The code was behaving differently when run as a shell builtin since out1fmt() isn't printf(3). Simple hack. Print to a buffer and fputs (also #defined for sh) the result. This should fix the printf builtin problem in PR#1673, rather than leaving the call commented out. (printf.o was being statically linked in anyway, we might as well use it) Notes: svn path=/head/; revision=18613
* Correctly match the format flags and their descriptions.Mike Pritchard1996-04-091-1/+1
| | | | | | | Submitted by: Dave Glowacki <dglo@ssec.wisc.edu> Notes: svn path=/head/; revision=15163
* Move out some of the shell builtin bogosity from printf's source toJoerg Wunsch1995-12-101-14/+1
| | | | | | | sh's builtin/bltin.h. Notes: svn path=/head/; revision=12730
* Remove trailing whitespace.Rodney W. Grimes1995-05-301-2/+2
| | | | Notes: svn path=/head/; revision=8874
* Make the syntax checks for the format string more strict. The stringJoerg Wunsch1995-05-071-12/+19
| | | | | | | | | "%8*s" is no longer considered to be a valid format description. This closes PR bin/386. Notes: svn path=/head/; revision=8323
* BSD 4.4 Lite Usr.bin SourcesRodney W. Grimes1994-05-273-0/+687
Notes: svn path=/cvs2svn/branches/CHRISTOS/; revision=1590