summaryrefslogtreecommitdiffstats
path: root/usr.bin/wc
Commit message (Collapse)AuthorAgeFilesLines
* Improve robustness of multibyte character handling (-m option), andtjr2004-04-091-19/+23
| | | | | simplify the read buffering now that we can feed partial multibyte characters to mbrtowc().
* mdoc(7) police: markup polishing.ru2002-11-261-4/+2
| | | | Approved by: re
* Locale environment variables influence wc(1) regardless of whether thetjr2002-08-111-4/+1
| | | | -m option is specified; correct ENVIRONMENT section.
* Use the iswspace(3) function now that it's been implemented.tjr2002-08-112-5/+5
|
* When counting words, check the correct character variable to see whether it'stjr2002-06-161-2/+2
| | | | | | a space or not. Noticed by: bde
* fstat() returns information about the target of any symbolic link thattjr2002-06-151-2/+2
| | | | was opened, not the link itself. Remove dead code.
* Correct the Standards section: wc is a utility, not a function.tjr2002-06-131-1/+1
|
* Bump document date for previous commit.tjr2002-06-131-1/+1
|
* Add the -m option, which counts characters (as opposed to -c, whichtjr2002-06-132-24/+83
| | | | | | | counts bytes). In locales that don't have multibyte characters, -m is effectively an alias for -c. This brings wc(1) up to P1003.1-2001 conformance.
* remove __Pimp2002-03-221-2/+2
|
* Leave the `copyright' variable exposed, since the main purpose of itmike2002-03-071-2/+2
| | | | | | is to put a copyright in the object file. Submitted by: bde
* Fix vendor ID (mostly obtained from rev 1.1).mike2002-02-281-21/+23
| | | | | | Make use of `static' storage-class for local functions. Replace uses of `u_quad_t' with `uintmax_t'.
* WARNS=2 fix, use __FBSDID().markm2001-12-111-8/+7
| | | | Not added to Makefgile as WARNS=2 will be made default.
* mdoc(7) police: utilize the new .Ex macro.ru2001-08-151-3/+1
|
* mdoc(7) police: s/BSD/.Bx/ where appropriate.ru2001-08-141-1/+4
|
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-1/+1
|
* Add DIAGNOSTICS section namecharnier2000-03-261-1/+1
|
* $Id$ -> $FreeBSD$peter1999-08-282-2/+2
|
* Correct style issues with the previous commit.sheldonh1999-08-131-19/+16
| | | | Requested by: bde
* Fix integer overflow for files containing more than 4GB by usingsheldonh1999-08-061-15/+16
| | | | | | | | | | | | | u_quad_int instead of u_long for counters. (NetBSD's rev 1.15 - 1.18) Deprecate register. (NetBSD's rev 1.13) The diffs from NetBSD were not applied verbatim, because we don't care about NO_QUAD right now. PR: 12959 Reported by: Nicholas Barnes <nb@ravenbrook.com> Obtained from: NetBSD
* Sync usage string according to man page. Silent -Wall.charnier1997-08-252-11/+11
|
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-291-2/+2
| | | | posix standard on the topic.
* Revert $FreeBSD$ to $Id$peter1997-02-222-2/+2
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-142-2/+2
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* [HISTORY] command appeared in Version 1 AT&T UNIXwosch1996-08-291-0/+6
| | | | Obtained from: A Quarter Century of UNIX, Peter H. Salus, page 41
* Changed all per-file errors to warnings. Exit with a nonzero status ofbde1996-04-131-55/+48
| | | | | | | if there was a per-file error. My test case of `wc /proc/curproc/*' works reasonably now (much like `size /proc/curproc/*'. Reviewed by: wosch
* Do not exit if a file is not readable. This is a short hackwosch1996-04-101-2/+4
| | | | until someone rewrite wc(1).
* Localize it.ache1996-01-101-2/+5
|
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-273-0/+357
OpenPOWER on IntegriCloud