aboutsummaryrefslogtreecommitdiff
path: root/editors (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Fix calls to {m,c,re}alloc so that they use x{m,c,re}alloc instead ofkraai2000-09-131-3/+2
| | | | | | | segfaulting or handling errors the same way themselves. git-svn-id: svn://busybox.net/trunk/busybox@1039 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Applied patch from Mark Ferrell <mferrell@mvista.com> to use the 'p' option inmarkw2000-08-211-9/+39
| | | | | | | substitution expressions. git-svn-id: svn://busybox.net/trunk/busybox@965 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Applied patch from Mark Ferrell <mferrell@mvista.com> to fix sed '1,$p' wheremarkw2000-08-101-2/+2
| | | | | | | sed was only printing the first line and then exiting. git-svn-id: svn://busybox.net/trunk/busybox@945 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Modified print_subst_w_backrefs() so it will print backslash escapedmarkw2000-07-251-0/+6
| | | | | | | characters properly, just like GNU sed. git-svn-id: svn://busybox.net/trunk/busybox@907 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use BB_FEATURE_CLEAN_UP where appropriateandersen2000-07-251-2/+2
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@904 69ca8d6d-28ef-0310-b511-8ec308f3f277
* As per a discussion on the mailing list between Matt and Pavel. I have removedmarkw2000-07-201-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. git-svn-id: svn://busybox.net/trunk/busybox@889 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Centralize handling of --help.kraai2000-07-191-4/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@883 69ca8d6d-28ef-0310-b511-8ec308f3f277
* New message added to messages.c: full_versionproski2000-07-171-1/+4
| | | | | | | Used where possible git-svn-id: svn://busybox.net/trunk/busybox@871 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - Added support for backreferences in substitution expressions up to ninemarkw2000-07-171-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. git-svn-id: svn://busybox.net/trunk/busybox@869 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Extract usage information into a separate file.kraai2000-07-161-16/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@864 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixed a couple of buglets:markw2000-07-141-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. git-svn-id: svn://busybox.net/trunk/busybox@862 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - Added support for semicolon delimited command lines. (woo-hoo!)markw2000-07-141-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. git-svn-id: svn://busybox.net/trunk/busybox@861 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use errorMsg rather than fprintf.kraai2000-07-141-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@848 69ca8d6d-28ef-0310-b511-8ec308f3f277
* It dawned on me that I would need to grow a char buffer one extra char biggermarkw2000-07-141-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. git-svn-id: svn://busybox.net/trunk/busybox@845 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Added error checking for edit commands; only a beginning address can bemarkw2000-07-141-1/+4
| | | | | | | specified. git-svn-id: svn://busybox.net/trunk/busybox@844 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Added support for (a)ppend, (i)nsert, and (c)hange commands to sed.markw2000-07-141-7/+88
| | | | git-svn-id: svn://busybox.net/trunk/busybox@843 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixed bug where sed '/foo/p' was printing "invalid command".markw2000-07-131-2/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@842 69ca8d6d-28ef-0310-b511-8ec308f3f277
* (Something I should have done in the previous checkin...) Also broke outmarkw2000-07-131-37/+43
| | | | | | | | substitution command execution from do_sed_command() and put it in it's own do_subst_command() function. git-svn-id: svn://busybox.net/trunk/busybox@841 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Minor code reorg: Changed the interface to index_of_next_unescaped_slash to anmarkw2000-07-131-48/+58
| | | | | | | | interface that seems a little more sensible to me. Also broke out s/// expression parsing into it's own subroutine. git-svn-id: svn://busybox.net/trunk/busybox@840 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Changed bb_regcomp to xregcomp and #if 0'ed out destroy_cmd_strs in sed.cmarkw2000-07-121-8/+6
| | | | | | | (maybe I'll remove it later). git-svn-id: svn://busybox.net/trunk/busybox@833 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Always report the applet name when doing error reporting.kraai2000-07-121-7/+7
| | | | git-svn-id: svn://busybox.net/trunk/busybox@831 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Applied patch from Matt Kraai to call destroy_cmd_strs in atexit(), rathermarkw2000-07-111-22/+17
| | | | | | | than peppering it throughout the code. git-svn-id: svn://busybox.net/trunk/busybox@824 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Applied patch from Matt Kraai which does the following:markw2000-07-111-83/+50
| | | | | | | | | | - adds case-insensitive matching in sed s/// epxressions - consolodates common regcomp code in grep & sed into bb_regcomp and put in utility.c - cleans up a bunch of cruft git-svn-id: svn://busybox.net/trunk/busybox@812 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Brand, new sed that uses libc regex routines.markw2000-07-101-280/+483
| | | | | | | | | | There is some common code used by both sed & grep that should be put into utility.c as per Mat Kraai's suggestions/patch on the mailing list. Specifically, a common regex_compile() and a regex_subst() function need to be made. git-svn-id: svn://busybox.net/trunk/busybox@806 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Updates to a number of apps to remove warnings/compile errors under libc5.andersen2000-06-191-1/+1
| | | | | | | | Tested under both libc5 and libc6 and all seems well with these fixes. -Erik git-svn-id: svn://busybox.net/trunk/busybox@660 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix some spelling errors in the source as well.andersen2000-06-161-2/+2
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@655 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Lots of updates. Finished implementing BB_FEATURE_TRIVIAL_HELPerik2000-05-121-3/+6
| | | | | | | | | | | which lets you compile out most of the "--help" output, saving up to 17k. Renamed mnc to nc. -Erik git-svn-id: svn://busybox.net/trunk/busybox@532 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Upates to include copyright 2000 to everythingerik2000-04-131-1/+1
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@447 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixed a bug where "sed 's/foo/bar/g'" (i.e. a script w/o a -e)erik2000-03-061-123/+123
| | | | | | | | would go into an infinite loop. -Erik git-svn-id: svn://busybox.net/trunk/busybox@392 69ca8d6d-28ef-0310-b511-8ec308f3f277
* More minor touchups.erik2000-02-101-124/+126
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@362 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Some formatting updates (ran the code through indent)erik2000-02-081-260/+262
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@357 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Bunches of fixes. Typos, bugs, etc.erik2000-01-041-1/+1
| | | | | | | | | Added 'gunzip -t'. inittab support _almost_ works (but it isn't ready for prime time useage yet). -Erik git-svn-id: svn://busybox.net/trunk/busybox@276 69ca8d6d-28ef-0310-b511-8ec308f3f277
* * sed now supports addresses (numeric or regexp, with negation) anderik1999-12-291-84/+254
| | | | | | | | | | | has an append command, thanks to Marco Pantaleoni <panta@prosa.it> * Fixed dmesg. It wasn't parsing its options (-n or -s) properly. * Some cosmetic fixes to ls output formatting to make it behave more like GNU ls. -Erik git-svn-id: svn://busybox.net/trunk/busybox@274 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Updates to usage, and made tar work.andersen1999-11-101-7/+7
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@94 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Stuffandersen1999-11-091-33/+35
| | | | git-svn-id: svn://busybox.net/trunk/busybox@87 69ca8d6d-28ef-0310-b511-8ec308f3f277
* More stuf. sed works.andersen1999-10-291-7/+25
| | | | git-svn-id: svn://busybox.net/trunk/busybox@67 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Stufandersen1999-10-291-4/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@66 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Stuffandersen1999-10-291-48/+62
| | | | git-svn-id: svn://busybox.net/trunk/busybox@65 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Stufandersen1999-10-281-0/+150
git-svn-id: svn://busybox.net/trunk/busybox@64 69ca8d6d-28ef-0310-b511-8ec308f3f277