summaryrefslogtreecommitdiff
path: root/usr.bin/wc
AgeCommit message (Collapse)Author
2015-12-08UTF-8 support: implement -m for character countingIngo Schwarze
and use iswspace(3) for word counting. Requires using getline(3) rather than read(2) to make sure that characters aren't chopped to pieces. Using feedback from millert@ on an earlier version. Feedback and OK tedu@.
2015-10-09Change all tame callers to namechange to pledge(2).Theo de Raadt
2015-10-03wc only opens files read-only, proceses them, and spits results to stdout.Theo de Raadt
tame "stdio rpath" works, right before calling getopt()
2015-04-21Back in January, Kaspars at Bankovskis dot net reported that the wc(1)Ingo Schwarze
manual claims that -m would count characters, while our version of the command actually doesn't, lacking POSIX multibyte support. Since nobody stood up to fix the code, sync the docs with reality for now. OK jmc@
2015-03-13remove the first comma from constructs like ", and," and ", or,": you can useJason McIntyre
"and" and "or" to join sentence clauses, and you can use commas, but both hinders reading;
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
2014-11-15No point in documenting an outright bug fixed in 4.3BSD.Anthony J. Bentley
Suggested by schwarze@
2013-11-27remove erroneous char cast to switch expression processing getopt(3);Okan Demirmen
not used in any cases. ok deraadt@, guenther@, millert@
2013-11-23send a extra space to the bit bucketTheo de Raadt
2013-11-12simpler prototype repairsTheo de Raadt
2010-09-03add an EXIT STATUS section for /usr/bin;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
2009-08-16replace ".Ar file ..." with ".Ar" whenever possible.Igor Sobrado
ok jmc@
2009-02-08bump the posix reference in STANDARDS to IEEE Std 1003.1-2008, with a fewJason McIntyre
updates to follow;
2009-01-04replace hardcoded exit values with .Ex macros;Igor Sobrado
ok jmc@
2008-06-19do not print spurious whitespace when reading from stdin;Otto Moerbeek
from Bernd Ahlers with a twist from me; ok millert@
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-30- use a consistent text for STANDARDSJason McIntyre
- note which options are extensions to POSIX
2005-10-19Add -h option to display human-readable numbers.Marc Espie
okay otto@, deraadt@, jmc@. (note that is mostly useless from scripts, hence okay as a non-standard option).
2005-04-11spacingTheo de Raadt
2004-12-19remove section detailing `file' operand: none of our other pages do itJason McIntyre
(well, there probably are exceptions) and it's kind of obvious; ok millert@
2004-04-07- alter .Nd to reflect that characters can be counted alsoJason McIntyre
(syncs description w/ posix) - remove unnecessary .Fl - note that the default listing may show character, rather than byte, count started by PR from Juan Vera (#3738)
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.
2003-01-12typos; jmc@prioris.mini.pw.edu.plTheo de Raadt
2002-09-17ansiTheo de Raadt
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2001-11-19kill more registersMike Pechkin
millert@ ok
2001-07-12first pass at a -Wall cleanupTheo de Raadt
2000-03-23More pedantic man page formatting insanity, lalalaAaron Campbell
2000-03-14Finish off cleanup usr.bin/ man pages.Aaron Campbell
2000-03-06Some section re-ordering.Aaron Campbell
2000-03-05Finish standardizing options list introduction.Aaron Campbell
1999-10-17Use the AT&T UNIX macros.Aaron Campbell
1999-02-02Remove useless cast to quad_t. Gcc thinks "%qd" in printf is the same as ↵Todd C. Miller
"%lld" so we get a warning on alpha with -Wall. Live with it.
1999-02-02 o Some minor updates from lite2 (mostly in the man page)Todd C. Miller
o Add support for large files by using quads as counters
1998-11-04be really pedantic about punctuation following -mdoc macro'd textAaron Campbell
1998-10-30usr.bin/ man page fixes, t-zAaron Campbell
1996-06-26rcsidTheo de Raadt
1995-10-18initial import of NetBSD treeTheo de Raadt