aboutsummaryrefslogtreecommitdiff
path: root/coreutils/tr.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Patch from Jean Wolter:Rob Landley2006-04-191-11/+16
| | | | | | | | | | | | | | | it looks like the introduced support for character classes and equivalence classes is not correct. The attached patch tries to fix some symptoms and tries to make tr behave like gnu tr for the added test cases. The patch  - removes if clauses with side effects  - fixes handling of buffer pointer (strcat added characters to the    buffer without increasing the buffer pointer)  - re-arranges character classes to match ASCII order regards, Jean
* We use -funsigned-char now, so having a separate RESERVE_CONFIG_UBUFFER isRob Landley2006-04-101-1/+1
| | | | a bit silly. Wean of that where it currently makes no difference...
* Robert P. Day removed 8 gazillion occurrences of "extern" on functionRob Landley2006-03-061-1/+1
| | | | definitions. (That should only be on prototypes.)
* clean up yet more annoying signed/unsigned mismatches and fixupEric Andersen2006-01-301-12/+12
| | | | yet more incorrect types
* common BUFSIZ BSS buffer, small reduce code, data and bss"Vladimir N. Oleynik"2005-10-151-5/+4
|
* Rob Sullivan added character and equivalence classes to tr. I changed someRob Landley2005-10-081-3/+55
| | | | comments.
* Remove trailing whitespace. Update copyright to include 2004.Eric Andersen2004-03-151-7/+7
|
* Hideki IWAMOTO writes:Eric Andersen2004-03-121-2/+2
| | | | | | | | | | | | | | Current `tr' implementation has a problem, if `plain char' is signed. [current cvs version] >echo a | _install/usr/bin/tr '\0' '\377' Segmentation fault (core dumped) [patched version] >echo a | _install/usr/bin/tr '\0' '\377' a
* eliminate DOSTATIC, DODEBUG, etc and name them sensiblyEric Andersen2003-07-221-1/+1
|
* Update a bunch of docs. Run a script to update my email addr.Eric Andersen2003-07-141-1/+1
|
* Major coreutils update.Manuel Novoa III2003-03-191-5/+5
|
* Fixup some silly prototype warningsEric Andersen2001-10-311-1/+1
|
* Major rework of the directory structure and the entire build system.Eric Andersen2001-10-241-5/+5
| | | | -Erik
* Patch from vodz to support 'tr a-z A-Z' syntax.Eric Andersen2001-07-091-5/+13
|
* Per patch from vodz, change a couple of consts to defines, sinceEric Andersen2001-07-021-1/+3
| | | | | apparently gcc 2.95.4, at least, is too stupid to realize that a "static const int" is in fact a constant.
* Some more patchelttes from Larry Doolittle.Mark Whitley2001-05-241-2/+6
|
* Move messages.c to libbb. Make each string in messages.c be its own .o file.Eric Andersen2001-04-251-3/+0
| | | | | | | This way, we can new get rid of all that tedious #define rubbish we used to need to enable specific messages. This way is enormously simpler, and as a bonus also ends up saving us 96 bytes. -Erik
* Apply Vladimir's latest cleanup patch.Eric Andersen2001-04-091-1/+1
| | | | -Erik
* -Wshadow tr fix from Jeff GarzikEric Andersen2001-03-231-9/+9
|
* A nice patch from Larry Doolittle that adds -Wshadow andEric Andersen2001-03-211-5/+5
| | | | cleans up most of the now-revealed problems.
* It turns out that DODMALLOC was broken when I reorganized busybox.hEric Andersen2001-02-201-1/+1
| | | | | | header file usage before the 0.49 release. To fix it, I had to move the '#include "busybox.h"' to the end of the list of #include files. -Erik
* This patch, put together by Manuel Novoa III, is a merge of workEric Andersen2001-02-141-1/+1
| | | | | | done by Evin Robertson (bug#1105) and work from Manuel to make usage messages occupy less space and simplify how usage messages are displayed.
* Removed trailing \n from error_msg{,_and_die} messages.Matt Kraai2001-01-311-1/+1
|
* Fix header file usage -- there were many unnecessary header files included inEric Andersen2001-01-271-2/+2
| | | | | | | busybox.h which slowed compiles. I left only what was needed and then fixed up all the apps to include their own header files. I also fixed naming for pwd.h and grp.h functions. Tested to compile and run with libc5, glibc, and uClibc. -Erik
* Commit Larry Doolittle's buffers-on-stack/buffers-via-malloc patch.Eric Andersen2001-01-251-4/+5
| | | | -Erik
* #define -> static const int. Also got rid of some big static buffers.Mark Whitley2001-01-231-14/+26
|
* Changed names of functions in utility.c and all affected files, to makeMark Whitley2000-12-071-1/+1
| | | | compliant with the style guide. Everybody rebuild your tags file!
* Get rid of redundant TRUE and FALSE definitions.Matt Kraai2000-12-071-7/+0
|
* Patch from Matt Kraai to fix 'echo "1 2 3" | tr -s " "'Eric Andersen2000-12-061-1/+1
| | | | so it properly outputs "1 2 3".
* Renamed "internal.h" to the more sensible "busybox.h".Eric Andersen2000-09-251-1/+1
| | | | -Erik
* Extract usage information into a separate file.Matt Kraai2000-07-161-13/+0
|
* More cleanups.Eric Andersen2000-07-141-4/+4
| | | | -Erik
* Fix uninitialized variable.Eric Andersen2000-07-131-1/+1
| | | | -Erik
* From Matt Kraai <kraai@alumni.carnegiemellon.edu>Eric Andersen2000-07-131-24/+28
| | | | | | | | | | | | | > Here is a patch so that tr can handle NULL characters as well. Give it > a shot and let me know what you think. It is against the latest CVS > version. > > In my tests, the following now works as expected. > > tr '\0' '\n' > > Later, > Matt
* Always report the applet name when doing error reporting.Matt Kraai2000-07-121-1/+1
|
* Patch from Matt Kraai <kraai@alumni.carnegiemellon.edu>:Eric Andersen2000-07-101-2/+4
| | | | | | | | | | | | | | | | | | | GNU tr complains on the following: $ tr a '' tr: when not truncating set1, string2 must be non-empty BusyBox tr does not complain: $ tr a '' a ^D 0 It should result in an error, not in some spurious output. The attached patch generates an error. Matt
* * Fix to tr so it recognizes standard escape sequences. Merged commonEric Andersen2000-07-051-10/+2
| | | | | | | escape seq. code from tr and echo into utility.c. Fix thanks to Matt Kraai <kraai@alumni.carnegiemellon.edu>. * This should close Bug #1015. Please test. -Erik
* More libc portability updates, add in the website (which has not beenErik Andersen2000-05-191-12/+17
| | | | | archived previously). Wrote 'which' during the meeting today. -Erik
* More stuffErik Andersen2000-05-021-2/+4
| | | | -Erik
* Due to the license change I can now use Minix code. Minix trErik Andersen2000-05-011-525/+190
| | | | | | (adapted) now replaces BSD tr. Goes from 5k to 1k, and eliminates bsearch from the list of libc symbols. -Erik
* Bugfixes.Erik Andersen2000-04-171-5/+2
| | | | -Erik
* More documentation updates, and minor fixes to make things syncErik Andersen2000-04-151-7/+7
| | | | | up with the docs. -Erik
* * all mallocs now use xmalloc (and so are OOM error safe), andErik Andersen2000-03-211-3/+2
| | | | | | the common error handling saves a few bytes. Thanks to Bob Tinsley <bob@earthrise.demon.co.uk> for the patch. -Erik
* Add in tr and dirnameErik Andersen2000-03-051-0/+578
-Erik