summaryrefslogtreecommitdiffstats
path: root/usr.bin/tr
Commit message (Collapse)AuthorAgeFilesLines
* Back out [:upper:] and [:lower:] classes sorting, it is not requiredache2003-08-051-6/+3
| | | | by POSIX and gains nothing with current code.
* Clarify upper/lower conversion description more.ache2003-08-051-7/+4
|
* Explain better what happens when [:lower:] <-> [:upper:]ache2003-08-051-0/+19
|
* No functional changes, just code reorganization from prev. commit, itache2003-08-042-12/+18
| | | | | | makes one malloc unneeded, removes two bzero's and makes code more readable. "Bright ideas comes only _after_ commits."
* POSIX require complex processing of 'c-c' ranges: if one of the endpointsache2003-08-042-22/+41
| | | | | | | is octal sequence, range is taken in the byte values order, for non-octal endpoints range is taken in the sorted collation order. Implement it.
* Special fix just forache2003-08-041-0/+7
| | | | | | | | tr -[cC]s '[:upper:]' '[:lower:]' case (or vice versa): chars taken from s2 can be different this time due to lack of complex upper/lower processing, so fill string2 again to not miss some.
* Microoptimization of prev. patch: do strdup() only if (cflag || Cflag)ache2003-08-031-3/+5
|
* 1) Fix -C - it was broken since introduced, wrong array sortedache2003-08-032-23/+19
| | | | 2) Fix last (repeated) char after [:class:], it was \0 in original code
* Remove charcoll() stabilization added in 1.16, it gains nothing but conflictsache2003-08-031-5/+1
| | | | with ranges.
* POSIX requires 'c-c' must conform collate and be in collation orderache2003-08-033-15/+23
|
* This patch address two problems.ache2003-08-033-20/+70
| | | | | | | | | | | | | | | | 1st one is relatively minor: according our own manpage, upper and lower classes must be sorted, but currently not. 2nd one is serious: tr '[:lower:]' '[:upper:]' (and vice versa) currently works only if upper and lower classes have exact the same number of elements. When it is not true, like for many ISO8859-x locales which have bigger amount of lowercase letters, tr may do nasty things. See this page http://www.opengroup.org/onlinepubs/007908799/xcu/tr.html for detailed description of desired tr behaviour in such cases.
* Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/schweikh2002-12-301-1/+1
| | | | Add FreeBSD Id tag where missing.
* mdoc(7) police: markup polishing.ru2002-11-261-7/+5
| | | | Approved by: re
* Use .Fl/Ar for flags and arguments.charnier2002-10-171-4/+6
|
* ANSIify function definitions.dwmalone2002-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
* When translating and -C is specified, behave as if the complemented set wastjr2002-07-291-0/+26
| | | | in the locale collating order as required by SUSv3.
* When translating and the -c option is specified, handle the case where thetjr2002-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).
* Use err instead of errx when malloc fails. "malloc" is not a helpfultjr2002-07-051-1/+1
| | | | error message.
* Improve parsing of character and equivalence classes:tjr2002-06-151-4/+9
| | | | | [:*] and [=*] are parsed as `infinitely many repetitions of :' (or *) instead of literal characters (SUSv3)
* Move the #include and #define's to the top of the file.tjr2002-06-141-4/+4
|
* Bump the size of the equivalence set to NCHARS; this file was left outtjr2002-06-141-1/+1
| | | | of a previous commit implementing equivalence classes.
* Sort sections. Avoid using "The -? option" at the start of option descriptions.tjr2002-06-141-11/+7
|
* Don't treat the trailing ']' of an equivalence class expression as atjr2002-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.
* Add the P1003.1-2001 -C option which complements the set of characterstjr2002-06-142-29/+58
| | | | (not byte values) specified by the first string argument.
* Implement support for equivalence classes ([=e=]) when the mapping istjr2002-06-143-14/+45
| | | | one-to-one (SUSv3)
* remove __Pimp2002-03-223-12/+13
|
* properly handle zero length first string when doing -calfred2002-03-021-0/+1
| | | | | PR: 34663 MFC After: 3 days
* WARNS=2 fixes, use __FBSDID(), kill register keyword.markm2001-12-112-35/+37
|
* 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/+3
|
* Remove whitespace at EOL.dd2001-07-151-2/+2
|
* mdoc(7) police: -column lists require column width specifiers.ru2001-07-061-2/+2
|
* mdoc(7) police: split punctuation characters + misc fixes.ru2001-02-011-1/+1
|
* Prepare for mdoc(7)NG.ru2000-12-191-33/+33
|
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-4/+4
|
* Avoid use of direct troff requests in mdoc(7) manual pages.ru2000-11-101-9/+9
|
* Add DIAGNOSTICS section namecharnier2000-03-261-1/+1
|
* $Id$ -> $FreeBSD$peter1999-08-283-3/+3
|
* Add $Id$, to make it simpler for members of the translation teams tonik1999-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
* Submitted by: Joachim Kuebart, thanks.helbig1997-10-122-11/+23
| | | | Add -u option to force unbuffered output
* Use err(3) instead of local redefinition. Cosmetic in usage().charnier1997-08-184-50/+30
|
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-291-1/+1
| | | | posix standard on the topic.
* Merge from Lite2peter1997-03-111-1/+4
|
* Cast char's to (u_char) before passing them to isctype() functions.joerg1996-03-191-2/+2
|
* Fix a couple of sign-extension bugs.joerg1996-03-171-2/+2
| | | | Submitted by: serg@bcs1.bcs.zaporizhzhe.ua (Sergey Shkonda)
* Updated to BSD4.4lite2. Fixes PR836. `echo abcd | tr a-d A-BC-D' nowbde1995-11-281-3/+3
| | | | works.
* Fix broken charclass handlingache1995-10-282-3/+15
| | | | Add setlocale LC_CTYPE
* Remove declamations which <ctype.h> already does for us.phk1995-10-211-13/+0
|
* Added #include <ctype.h>phk1995-10-211-0/+1
|
* Remove trailing whitespace.rgrimes1995-05-301-1/+1
|
OpenPOWER on IntegriCloud