summaryrefslogtreecommitdiff
path: root/usr.bin/fmt
AgeCommit message (Collapse)Author
2018-10-18Fix not accounting for NUL for allocation size and move to reallocarrayOtto Moerbeek
while there. ok deraadt@ millert@
2017-07-09remove redundant variable declarations in Makefiles, since those areMarc Espie
the default. okay millert@
2017-02-20* Hoist Copyright notice to the top, don't hide it in the middle.Ingo Schwarze
* Add Copyright and license for my changes, and for pjanzen@'s in 2000. * Comply with the obnoxious license condition that we must list changes in the source code. * Delete a fragment of an ancient RCS change log listing changes by Gareth McCaughan himself. The license does NOT require us to keep that, and it does not contain interesting information, not even for historians. OK pjanzen@ deraadt@
2017-02-19Do not break the line at U+00A0 NO-BREAK SPACE.Ingo Schwarze
Bug pointed out by Eric dot Pruitt at gmail dot com on misc@. OK millert@ bentley@
2016-10-24Unify wording for LC_CTYPE in ENVIRONMENT:Ingo Schwarze
* Consistently use "character encoding locale" as suggested by stsp@. * Resolve various gratuitious wording variations. OK jmc@.
2016-01-07UTF-8 support for fmt -c.Ingo Schwarze
This implies two small changes in behaviour: 1. Let fmt -c replace invalid bytes with ASCII question marks just like when called without -c. 2. On lines to be centered, replace each tab with a single blank, simply because there is no useful way to define the meaning of a tab on such a line. Having the width of a tab depend on what is to the right of it would be completely crazy (and complicate the code a lot), and otherwise, tabs on adjacent lines of different length wouldn't align anyway. OK millert@
2015-12-31Remove use of sysexits.h.Todd C. Miller
2015-12-15missing space in previous;Jason McIntyre
2015-12-15UTF-8 support; does not yet handle the -c option.Ingo Schwarze
No longer expand tabs up front in get_line(), their width depends on the width of characters earlier on the line. Always NUL-terminate the input buffer for easier and safer handling. Get rid of the hand-rolled output buffer, just let stdio do its work. OK tedu@
2015-10-09Change all tame callers to namechange to pledge(2).Theo de Raadt
2015-10-05use the normal -1 check for tame failureTheo de Raadt
2015-10-05tame "stdio rpath" is enough for the general case, which opens fileTheo de Raadt
after file from argv. If it is discovered to be reading from stdin only, go to tame "stdio" ok doug
2015-09-11avoid gratuitious use of the low-level .br requestIngo Schwarze
2015-02-28Reduce usage of predefined strings in manpages.Anthony J. Bentley
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@
2013-11-26unsigned char casts for ctypeTheo de Raadt
ok krw
2012-01-17tweak previous;Jason McIntyre
2012-01-17Change the exit value on errors to be more 4.4BSD like. Use the sum oflum
errors up to a maximum of 127, then to do not increment anymore, though programme execution continues. Use 127 as a maximum because error codes above this are: 1. bad because of signed bugs in programs. 2. used as the traditional shell $? representation of "kill by signal" where $? = 128 + signal. (from deraadt@ and guenther@ respectively)
2012-01-15Document the EXIT STATUS and remove an outdated related comment.Ingo Schwarze
While here, * as usual, the "first appeared" clause requires fixing, and * mention the date of the original implementation, using information from the CSRG archive CD 1. Triggered by a question asked by lum@, feedback and ok jmc@.
2010-10-28more roff adjustments;Jason McIntyre
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
2007-05-31convert to new .Dd format;Jason McIntyre
2007-03-20remove some bogus *p tests from charles longeauTed Unangst
ok deraadt millert
2006-11-29trim usage(); ok millert deraadtJason McIntyre
2006-11-29- clean up the !}fmt sectionJason McIntyre
- better Xr
2006-11-29various improvements;Jason McIntyre
2006-11-29- sync synopsis and usage()Jason McIntyre
- sort options - avoid line split
2005-03-08weeping the tree for printf(s) where printf("%s",s) should be used.Chad Loder
This is a regression introduced during conversion from perror(3) to err(3) OK mickey@
2004-06-29use warn() instead of perror; err*() are used alreadyMichael Shalayeff
2004-04-01knf and ansi, mostly from joris vinkTed Unangst
2003-12-01Format string fixes from art's amd64 tree.Alexander Yurchenko
ok rohee@ espie@
2003-06-10- section reorderJason McIntyre
- COMPATIBILITY merge - macro cleanup - kill whitespace at EOL - new sentence, new line ssh pages ok markus@
2003-06-03Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2001-11-29Restore historic behavior:Todd C. Miller
o don't fmt lines that start with '.' to avoid hosing *roff o add -n flag to disable above behavior (undocumented feature in old fmt) Patch from Ruslan Ermilov (FreeBSD)
2001-11-28Some minor format beautification from FreeBSD and add the AUTHORSTodd C. Miller
section back in.
2001-11-28from FreeBSD:Todd C. Miller
Some KNF Call setlocale() Remove some silliness for non-BSD systems
2001-09-05oopsJakob Schlyter
2001-09-05grammar; PR#2048Jakob Schlyter
2001-07-12first pass at a -Wall cleanupTheo de Raadt
2000-11-09Change all option list specifications to ".Bl -tag -width Ds". Most manAaron Campbell
pages just needed their -width parameter tweaked to "Ds", which provides a nice width of 6 constant characters. For consistency more than anything.
2000-06-25allow 'fmt -w width' and 'fmt -width'.Paul Janzen
ok millert@
2000-03-07Various cleanup.Aaron Campbell
2000-03-05Finish standardizing options list introduction.Aaron Campbell
1999-12-30dont strip off international characters; fixes pr/1020Niels Provos
1999-12-15safe strcpyTheo de Raadt
1999-07-04correct use of .Nm; some other formatting nitsAaron Campbell
1998-12-16more .Nm fixesAaron Campbell
1998-12-14adjust argv and argc correctly when reading max from command lineTodd C. Miller
1998-12-14pasto that caused goal and max params not to workTodd C. Miller
1998-09-26usr.bin/ man page fixes, f-m.Aaron Campbell
1998-04-25We no longer need head.c from ucbMailTodd C. Miller