Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Removed obsolete function, strdup_substr. | Matt Kraai | 2001-07-05 | 1 | -2/+2 |
| | |||||
* | Rewrote mkdir (and touched lots of things in the process). | Matt Kraai | 2001-06-21 | 1 | -9/+0 |
| | |||||
* | Always apply commands with no specified range. | Matt Kraai | 2001-06-21 | 1 | -0/+4 |
| | |||||
* | - Fixed bug where you couldn't mix line number and regexes in two-address cmds | Mark Whitley | 2001-06-11 | 1 | -117/+132 |
| | | | | | | - Fixed bug where you couldn't use two addresses for a 'c' cmd - Moved the do_sed_cmd function into process_file to simplify some things - Reduced a buncha lines of code in the process | ||||
* | Use safe_strncpy. | Matt Kraai | 2001-05-27 | 1 | -3/+2 |
| | |||||
* | Patch from larry to fix some grammar errors. | Eric Andersen | 2001-05-23 | 1 | -1/+1 |
| | |||||
* | Always print a newline after a matching substitution. | Matt Kraai | 2001-05-17 | 1 | -6/+1 |
| | |||||
* | ...Need to print just a few more newlines. | Mark Whitley | 2001-05-14 | 1 | -2/+5 |
| | |||||
* | ...And now that we're chomping lines, we need to re-add the newline later... | Mark Whitley | 2001-05-14 | 1 | -3/+3 |
| | |||||
* | We will chomp() lines so REG_NEWLINE does not break stuff. Thanks, Matt. | Mark Whitley | 2001-05-14 | 1 | -0/+1 |
| | |||||
* | Added REG_NEWLINE as cflags to xregcomp for normal addresses so EOL $ will work | Mark Whitley | 2001-05-14 | 1 | -1/+1 |
| | |||||
* | Added support for 'r' command in sed. | Mark Whitley | 2001-05-11 | 1 | -10/+73 |
| | |||||
* | Fixed a buglet where an extra newline was being added after an insert command | Mark Whitley | 2001-04-20 | 1 | -7/+10 |
| | | | | in some cases. | ||||
* | Made a correction to a bad test expression. Props to Larry Doolittle for | Mark Whitley | 2001-04-20 | 1 | -2/+1 |
| | | | | spotting this one. | ||||
* | Applied patch from Anthony Towns that he posted to Debian bug tracking. | Mark Whitley | 2001-03-26 | 1 | -2/+3 |
| | |||||
* | Applied patch from Erik Habbinga to fix a problem with an uninitialized | Mark Whitley | 2001-03-14 | 1 | -0/+4 |
| | | | | substitution delimiter. | ||||
* | Get rid of long stale usage message code. | Eric Andersen | 2001-02-17 | 1 | -4/+3 |
| | | | | -Erik | ||||
* | This patch, put together by Manuel Novoa III, is a merge of work | Eric Andersen | 2001-02-14 | 1 | -2/+2 |
| | | | | | | done by Evin Robertson (bug#1105) and work from Manuel to make usage messages occupy less space and simplify how usage messages are displayed. | ||||
* | Fix wget error message and add (and use) chomp library function. | Matt Kraai | 2001-02-01 | 1 | -2/+1 |
| | |||||
* | Removed trailing \n from error_msg{,_and_die} messages. | Matt Kraai | 2001-01-31 | 1 | -10/+10 |
| | |||||
* | Fix up copyright msgs. Bump version to 0.49 in preparation for0_49 | Eric Andersen | 2001-01-27 | 1 | -1/+1 |
| | | | | | a release. Update the website with release details. -Erik | ||||
* | Fix header file usage -- there were many unnecessary header files included in | Eric Andersen | 2001-01-27 | 1 | -0/+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 | ||||
* | Changed email address to codepoet.org, updated list of applets / docs I | Mark Whitley | 2001-01-04 | 1 | -1/+1 |
| | | | | maintain in AUTHORS. | ||||
* | I just whipped up support for arbitrary regex delimiters, so | Eric Andersen | 2001-01-02 | 1 | -63/+18 |
| | | | | | | | | now things such as $ echo foo | sed 'sxfooxb\arx' bar will work as expected (and so doogie can stop complaining). -Erik | ||||
* | Use busybox error handling functions wherever possible. | Matt Kraai | 2000-12-22 | 1 | -4/+2 |
| | |||||
* | Change calls to error_msg.* and strerror to use perror_msg.*. | Matt Kraai | 2000-12-18 | 1 | -1/+1 |
| | |||||
* | Changed names of functions in utility.c and all affected files, to make | Mark Whitley | 2000-12-07 | 1 | -11/+11 |
| | | | | compliant with the style guide. Everybody rebuild your tags file! | ||||
* | Remove unneeded junk | Eric Andersen | 2000-11-14 | 1 | -4/+0 |
| | |||||
* | Removed REG_NEWLINE from regcomp to fix the same bug found in grep where it | Mark Whitley | 2000-11-03 | 1 | -1/+1 |
| | | | | | would not match blank lines (bug #1064). Followed Matt Kraii's suit on his 1.42 revision of grep. Tested it, works. | ||||
* | Now, what was that logic block doing up there? | Mark Whitley | 2000-11-03 | 1 | -6/+6 |
| | |||||
* | Re-worked the support for s///p, fixed a backref limit buglet, and cleaned up | Mark Whitley | 2000-11-03 | 1 | -71/+86 |
| | | | | | | a few other ugly places (do_subst_command got a much-needed overhaul). Also took out BB_FEATURE_SED_PATTERN_SPACE from Config.h[.Hurd] as the 'p' is now a standard feature (adds almost no bloat). | ||||
* | Consolidate handling of some fopen failures. | Matt Kraai | 2000-09-27 | 1 | -3/+1 |
| | |||||
* | Renamed "internal.h" to the more sensible "busybox.h". | Eric Andersen | 2000-09-25 | 1 | -1/+1 |
| | | | | -Erik | ||||
* | Fix calls to {m,c,re}alloc so that they use x{m,c,re}alloc instead of | Matt Kraai | 2000-09-13 | 1 | -3/+2 |
| | | | | segfaulting or handling errors the same way themselves. | ||||
* | Applied patch from Mark Ferrell <mferrell@mvista.com> to use the 'p' option in | Mark Whitley | 2000-08-21 | 1 | -9/+39 |
| | | | | substitution expressions. | ||||
* | Applied patch from Mark Ferrell <mferrell@mvista.com> to fix sed '1,$p' where | Mark Whitley | 2000-08-10 | 1 | -2/+2 |
| | | | | sed was only printing the first line and then exiting. | ||||
* | Modified print_subst_w_backrefs() so it will print backslash escaped | Mark Whitley | 2000-07-25 | 1 | -0/+6 |
| | | | | characters properly, just like GNU sed. | ||||
* | Use BB_FEATURE_CLEAN_UP where appropriate | Eric Andersen | 2000-07-25 | 1 | -2/+2 |
| | | | | -Erik | ||||
* | As per a discussion on the mailing list between Matt and Pavel. I have removed | Mark Whitley | 2000-07-20 | 1 | -5/+1 |
| | | | | | | the -V (version) flag from busybox sed. It is unnecessary because sed is not a standalone and should therefore be independently reporting a version number. Moreover, it is extra code that we just don't need. | ||||
* | Centralize handling of --help. | Matt Kraai | 2000-07-19 | 1 | -4/+0 |
| | |||||
* | New message added to messages.c: full_version | Pavel Roskin | 2000-07-17 | 1 | -1/+4 |
| | | | | Used where possible | ||||
* | - Added support for backreferences in substitution expressions up to nine | Mark Whitley | 2000-07-17 | 1 | -18/+76 |
| | | | | | | | | | | | | | | | (\1, \2...\9). This touched a lot of places in this file and I added a new function 'print_subst_w_backrefs' in order to keep 'do_subst_command' a little more tidy. * I tested this good 'n hard, but will always appreciate more testing from other, willing folks. - Noticed that the index_of_next_unescaped_slash was subtly wrong so I changed both the functionality and behavior (it used to skip over the first char in the string you passed it, assuming it was a leading '/'--this assumption is no longer made) this necessitated changing the lines that call this function just slightly. | ||||
* | Extract usage information into a separate file. | Matt Kraai | 2000-07-16 | 1 | -16/+0 |
| | |||||
* | Fixed a couple of buglets: | Mark Whitley | 2000-07-14 | 1 | -6/+29 |
| | | | | | | | | | | | | | | | | - add_cmd_str: segv's were being generated if there was a '# comment' line (and probably other kinds of lines, too) that was not followed by a semi-colon or whitespace - parse_edit_cmd: was returning a wrong number (too low) for the index; it was not accounting for backslashes eaten, for the fact that we start at the 3rd index in the string, or for the fact that we add an extra newline. - parse_cmd_str: was returning a wrong number (again, too low) for the index in the case of single-letter commands (p,d). There was some over-compensation for this in the 'return' stmt at the end which also needed some help. - load_cmd_file: was not eating trailing newlines off the line read from the command file. This had the deleterious effect of printing an extra newlines after text displayed from edit (i,a,c) commands. | ||||
* | - Added support for semicolon delimited command lines. (woo-hoo!) | Mark Whitley | 2000-07-14 | 1 | -31/+72 |
| | | | | | | | | | - Obsoleted the trim_str function (#if 0'ed out -- maybedelete later) in favor of strrspn. - Obsoleted the strrspn function (#if 0'ed out as well) as soon as I discovered that it wasn't needed either. - Fixed a subtle bug in parse_subst_cmd where it would choke with an error if there was any trailing space after the s/match/replace/ expression. | ||||
* | Use errorMsg rather than fprintf. | Matt Kraai | 2000-07-14 | 1 | -3/+3 |
| | |||||
* | It dawned on me that I would need to grow a char buffer one extra char bigger | Mark Whitley | 2000-07-14 | 1 | -1/+4 |
| | | | | | | to accomodate a trailing '\n'ewline that I append to it later one. This is only necessary for the case of one inserted, appended, or changed line, but it's still necessary. | ||||
* | Added error checking for edit commands; only a beginning address can be | Mark Whitley | 2000-07-14 | 1 | -1/+4 |
| | | | | specified. | ||||
* | Added support for (a)ppend, (i)nsert, and (c)hange commands to sed. | Mark Whitley | 2000-07-14 | 1 | -7/+88 |
| | |||||
* | Fixed bug where sed '/foo/p' was printing "invalid command". | Mark Whitley | 2000-07-13 | 1 | -2/+1 |
| |