aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/tr
Commit message (Collapse)AuthorAgeFilesLines
* ANSIify function definitions.David Malone2002-09-041-10/+3
| | | | | | | | | | | | 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 Notes: svn path=/head/; revision=102944
* When translating and -C is specified, behave as if the complemented set wasTim J. Robbins2002-07-291-0/+26
| | | | | | | in the locale collating order as required by SUSv3. Notes: svn path=/head/; revision=100891
* When translating and the -c option is specified, handle the case where theTim J. Robbins2002-07-291-6/+11
| | | | | | | | second string argument is more than one character in length in the way required by SUSv3 (and the way GNU textutils and SVR4 do it). Notes: svn path=/head/; revision=100874
* Use err instead of errx when malloc fails. "malloc" is not a helpfulTim J. Robbins2002-07-051-1/+1
| | | | | | | error message. Notes: svn path=/head/; revision=99433
* Improve parsing of character and equivalence classes:Tim J. Robbins2002-06-151-4/+9
| | | | | | | | [:*] and [=*] are parsed as `infinitely many repetitions of :' (or *) instead of literal characters (SUSv3) Notes: svn path=/head/; revision=98242
* Move the #include and #define's to the top of the file.Tim J. Robbins2002-06-141-4/+4
| | | | Notes: svn path=/head/; revision=98222
* Bump the size of the equivalence set to NCHARS; this file was left outTim J. Robbins2002-06-141-1/+1
| | | | | | | of a previous commit implementing equivalence classes. Notes: svn path=/head/; revision=98221
* Sort sections. Avoid using "The -? option" at the start of option descriptions.Tim J. Robbins2002-06-141-11/+7
| | | | Notes: svn path=/head/; revision=98217
* Don't treat the trailing ']' of an equivalence class expression as aTim J. Robbins2002-06-141-1/+2
| | | | | | | | character in the set. tr -d '[=a=]' was deleting ]'s as well as a's. Noticed by the textutils test suite. Notes: svn path=/head/; revision=98215
* Add the P1003.1-2001 -C option which complements the set of charactersTim J. Robbins2002-06-142-29/+58
| | | | | | | (not byte values) specified by the first string argument. Notes: svn path=/head/; revision=98214
* Implement support for equivalence classes ([=e=]) when the mapping isTim J. Robbins2002-06-143-14/+45
| | | | | | | one-to-one (SUSv3) Notes: svn path=/head/; revision=98210
* remove __PWarner Losh2002-03-223-12/+13
| | | | Notes: svn path=/head/; revision=92922
* properly handle zero length first string when doing -cAlfred Perlstein2002-03-021-0/+1
| | | | | | | | PR: 34663 MFC After: 3 days Notes: svn path=/head/; revision=91562
* WARNS=2 fixes, use __FBSDID(), kill register keyword.Mark Murray2001-12-112-35/+37
| | | | Notes: svn path=/head/; revision=87705
* mdoc(7) police: utilize the new .Ex macro.Ruslan Ermilov2001-08-151-3/+1
| | | | Notes: svn path=/head/; revision=81687
* mdoc(7) police: s/BSD/.Bx/ where appropriate.Ruslan Ermilov2001-08-141-1/+3
| | | | Notes: svn path=/head/; revision=81622
* Remove whitespace at EOL.Dima Dorfman2001-07-151-2/+2
| | | | Notes: svn path=/head/; revision=79755
* mdoc(7) police: -column lists require column width specifiers.Ruslan Ermilov2001-07-061-2/+2
| | | | Notes: svn path=/head/; revision=79361
* mdoc(7) police: split punctuation characters + misc fixes.Ruslan Ermilov2001-02-011-1/+1
| | | | Notes: svn path=/head/; revision=71895
* Prepare for mdoc(7)NG.Ruslan Ermilov2000-12-191-33/+33
| | | | Notes: svn path=/head/; revision=70197
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-201-4/+4
| | | | Notes: svn path=/head/; revision=68963
* Avoid use of direct troff requests in mdoc(7) manual pages.Ruslan Ermilov2000-11-101-9/+9
| | | | Notes: svn path=/head/; revision=68575
* Add DIAGNOSTICS section namePhilippe Charnier2000-03-261-1/+1
| | | | Notes: svn path=/head/; revision=58628
* $Id$ -> $FreeBSD$Peter Wemm1999-08-283-3/+3
| | | | 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
* Submitted by: Joachim Kuebart, thanks.Wolfgang Helbig1997-10-122-11/+23
| | | | | | | Add -u option to force unbuffered output Notes: svn path=/head/; revision=30322
* Use err(3) instead of local redefinition. Cosmetic in usage().Philippe Charnier1997-08-184-50/+30
| | | | Notes: svn path=/head/; revision=28368
* 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
* Merge from Lite2Peter Wemm1997-03-111-1/+4
| | | | Notes: svn path=/head/; revision=23693
* Cast char's to (u_char) before passing them to isctype() functions.Joerg Wunsch1996-03-191-2/+2
| | | | Notes: svn path=/head/; revision=14720
* Fix a couple of sign-extension bugs.Joerg Wunsch1996-03-171-2/+2
| | | | | | | Submitted by: serg@bcs1.bcs.zaporizhzhe.ua (Sergey Shkonda) Notes: svn path=/head/; revision=14648
* Updated to BSD4.4lite2. Fixes PR836. `echo abcd | tr a-d A-BC-D' nowBruce Evans1995-11-281-3/+3
| | | | | | | works. Notes: svn path=/head/; revision=12505
* Fix broken charclass handlingAndrey A. Chernov1995-10-282-3/+15
| | | | | | | Add setlocale LC_CTYPE Notes: svn path=/head/; revision=11895
* Remove declamations which <ctype.h> already does for us.Poul-Henning Kamp1995-10-211-13/+0
| | | | Notes: svn path=/head/; revision=11630
* Added #include <ctype.h>Poul-Henning Kamp1995-10-211-0/+1
| | | | Notes: svn path=/head/; revision=11629
* Remove trailing whitespace.Rodney W. Grimes1995-05-301-1/+1
| | | | Notes: svn path=/head/; revision=8874
* Fix print class mistypeAndrey A. Chernov1994-10-281-1/+1
| | | | Notes: svn path=/head/; revision=3983
* BSD 4.4 Lite Usr.bin SourcesRodney W. Grimes1994-05-275-0/+978
Notes: svn path=/cvs2svn/branches/CHRISTOS/; revision=1590