aboutsummaryrefslogtreecommitdiff
path: root/tr.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Apply Vladimir's latest cleanup patch.andersen2001-04-091-1/+1
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@2288 69ca8d6d-28ef-0310-b511-8ec308f3f277
* -Wshadow tr fix from Jeff Garzikandersen2001-03-231-9/+9
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2191 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A nice patch from Larry Doolittle that adds -Wshadow andandersen2001-03-211-5/+5
| | | | | | | cleans up most of the now-revealed problems. git-svn-id: svn://busybox.net/trunk/busybox@2177 69ca8d6d-28ef-0310-b511-8ec308f3f277
* It turns out that DODMALLOC was broken when I reorganized busybox.handersen2001-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 git-svn-id: svn://busybox.net/trunk/busybox@1864 69ca8d6d-28ef-0310-b511-8ec308f3f277
* This patch, put together by Manuel Novoa III, is a merge of workandersen2001-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. git-svn-id: svn://busybox.net/trunk/busybox@1805 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Removed trailing \n from error_msg{,_and_die} messages.kraai2001-01-311-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1732 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix header file usage -- there were many unnecessary header files included inandersen2001-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 git-svn-id: svn://busybox.net/trunk/busybox@1695 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Commit Larry Doolittle's buffers-on-stack/buffers-via-malloc patch.andersen2001-01-251-4/+5
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@1674 69ca8d6d-28ef-0310-b511-8ec308f3f277
* #define -> static const int. Also got rid of some big static buffers.markw2001-01-231-14/+26
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1642 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Changed names of functions in utility.c and all affected files, to makemarkw2000-12-071-1/+1
| | | | | | | compliant with the style guide. Everybody rebuild your tags file! git-svn-id: svn://busybox.net/trunk/busybox@1398 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Get rid of redundant TRUE and FALSE definitions.kraai2000-12-071-7/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1396 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Matt Kraai to fix 'echo "1 2 3" | tr -s " "'andersen2000-12-061-1/+1
| | | | | | | so it properly outputs "1 2 3". git-svn-id: svn://busybox.net/trunk/busybox@1387 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Renamed "internal.h" to the more sensible "busybox.h".andersen2000-09-251-1/+1
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@1119 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Extract usage information into a separate file.kraai2000-07-161-13/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@864 69ca8d6d-28ef-0310-b511-8ec308f3f277
* More cleanups.andersen2000-07-141-4/+4
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@853 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix uninitialized variable.andersen2000-07-131-1/+1
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@839 69ca8d6d-28ef-0310-b511-8ec308f3f277
* From Matt Kraai <kraai@alumni.carnegiemellon.edu>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 git-svn-id: svn://busybox.net/trunk/busybox@836 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Always report the applet name when doing error reporting.kraai2000-07-121-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@831 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Matt Kraai <kraai@alumni.carnegiemellon.edu>: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 git-svn-id: svn://busybox.net/trunk/busybox@797 69ca8d6d-28ef-0310-b511-8ec308f3f277
* * Fix to tr so it recognizes standard escape sequences. Merged commonandersen2000-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 git-svn-id: svn://busybox.net/trunk/busybox@737 69ca8d6d-28ef-0310-b511-8ec308f3f277
* More libc portability updates, add in the website (which has not beenerik2000-05-191-12/+17
| | | | | | | | archived previously). Wrote 'which' during the meeting today. -Erik git-svn-id: svn://busybox.net/trunk/busybox@558 69ca8d6d-28ef-0310-b511-8ec308f3f277
* More stufferik2000-05-021-2/+4
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@515 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Due to the license change I can now use Minix code. Minix trerik2000-05-011-525/+190
| | | | | | | | | (adapted) now replaces BSD tr. Goes from 5k to 1k, and eliminates bsearch from the list of libc symbols. -Erik git-svn-id: svn://busybox.net/trunk/busybox@513 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Bugfixes.erik2000-04-171-5/+2
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@468 69ca8d6d-28ef-0310-b511-8ec308f3f277
* More documentation updates, and minor fixes to make things syncerik2000-04-151-7/+7
| | | | | | | | up with the docs. -Erik git-svn-id: svn://busybox.net/trunk/busybox@457 69ca8d6d-28ef-0310-b511-8ec308f3f277
* * all mallocs now use xmalloc (and so are OOM error safe), anderik2000-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 git-svn-id: svn://busybox.net/trunk/busybox@416 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add in tr and dirnameerik2000-03-051-0/+578
-Erik git-svn-id: svn://busybox.net/trunk/busybox@389 69ca8d6d-28ef-0310-b511-8ec308f3f277