aboutsummaryrefslogtreecommitdiff
path: root/editors (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Patch from Rob Landley to fix backrefsbug12003-10-011-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7586 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch by Rob Landley, fix "newline after edit command"bug12003-10-011-2/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7584 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch by Rob Landley, work in progress update, fixes lots of bugs,bug12003-10-012-802/+678
| | | | | | | introduces a few others (but they are being worked on) git-svn-id: svn://busybox.net/trunk/busybox@7583 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix some typo's, remove some extra free statementsbug12003-09-241-4/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7560 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Configuration option to define wether to follows GNU sed's behaviour bug12003-09-162-26/+49
| | | | | | | | or the posix standard. Put the cleanup code back the way it was. git-svn-id: svn://busybox.net/trunk/busybox@7535 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix a bug that creapt in recently with substitution subprinting, and addbug12003-09-161-3/+2
| | | | | | | a test for it. git-svn-id: svn://busybox.net/trunk/busybox@7534 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix a simple mistake with pattern space, and add a test for itbug12003-09-151-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7529 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix some memory allocation problemsbug12003-09-151-18/+21
| | | | | | | ---------------------------------------------------------------------- git-svn-id: svn://busybox.net/trunk/busybox@7527 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Be entirely consistant when using ioctl(0, TIOCGWINSZ, &winsize)andersen2003-09-151-27/+9
| | | | | | | | to ensure proper fallback behavior on, i.e. serial consoles. -Erik git-svn-id: svn://busybox.net/trunk/busybox@7526 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add a test for the 'P' command and fix current implementation so itbug12003-09-151-0/+4
| | | | | | | doesnt permanently modify the pattern space. git-svn-id: svn://busybox.net/trunk/busybox@7521 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A test and fix for the sed 'n' commandbug12003-09-151-0/+8
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7520 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix for the sed-append-next-line testbug12003-09-151-0/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7518 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix recursion problembug12003-09-151-0/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7516 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Memory cleanups and fix for `echo "foo" | sed 's/foo/bar/;H;q'`bug12003-09-141-6/+20
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7513 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Cleanup memory usagebug12003-09-141-17/+32
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7512 69ca8d6d-28ef-0310-b511-8ec308f3f277
* The previous fix for 's/a/1/;s/b/2/;t one;p;:one;p' broke the case ofbug12003-09-141-3/+2
| | | | | | | | | | | echo fooba | ./busybox sed -n 's/foo//;s/bar/found/p' I really need to start adding these tests to the testsuite. keep the substituted and altered flags seperate git-svn-id: svn://busybox.net/trunk/busybox@7504 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Preserve substitution flag value within the current line.bug12003-09-141-1/+1
| | | | | | | | | | | | | | | | | Fixed the following testcase # cat strings |./busybox sed -n -f test3.sed 1 1 2 c c # cat strings a b c git-svn-id: svn://busybox.net/trunk/busybox@7503 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix branching commands.bug12003-09-141-13/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | If a label isnt specified, jump to end of script, not the last command in the script. Print an error and exit if you try and jump to a non-existant label Works for the following testcase # cat strings a b c d e f g # cat strings | ./busybox sed -n '/d/b;p' a b c e f g git-svn-id: svn://busybox.net/trunk/busybox@7502 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Rob Landley bug12003-09-141-60/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed a memory leak in add_cmd/add_cmd_str by moving the allocation of sed_cmd down to where it's actually first needed. In get_address, if index_of_next_unescaped_regexp_delim ever failed, we wouldn't notice because the return value was added to idx, which was already guaranteed to be > 0. (This is buried in the changes made when I redid get_address to be based on pointer arithmetic, because all the tests were gratuitously dereferencing with a constant zero, which wasn't obvious.) Comment in parse_regex_delim was wrong: 's' and 'y' both call it. The reason "sed_cmd->num_backrefs = 0;" isn't needed is that sed_cmd was allocated with cmalloc, which zeroes memory. Different handling of space after \ in i... Different handling of pattern "s/a/b s/c/d" Cool, resursive reads don't cause a crash. :) Fixed "sed -f blah filename - < filename" since GNU sed was handling both - and filenames on the same line. (You can even list - more than once, although it's immediate EOF...) git-svn-id: svn://busybox.net/trunk/busybox@7501 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Stupid typobug12003-09-141-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7500 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix some memory allocation problemsbug12003-09-141-2/+7
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7499 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix the following testcase by disabling global substitution if the regexbug12003-09-131-3/+5
| | | | | | | | is anchored to the start of line, there can be only one subst. echo "aah" | sed 's/^a/b/g' git-svn-id: svn://busybox.net/trunk/busybox@7497 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix the following testcase by storing the state of the adress match withbug12003-09-131-6/+8
| | | | | | | | | | | | | | | | | | | | | | the command. # cat strings a b c d e f g # ./busybox sed '1,2d;4,$d' <strings c # ./busybox sed '4,$d;1,2d' <strings # sed '4,$d;1,2d' <strings c # sed '1,2d;4,$d' <strings c git-svn-id: svn://busybox.net/trunk/busybox@7496 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix the substitution print subcommand, it should only print if itsbug12003-08-301-2/+1
| | | | | | | | | | own substitution matched, not previous ones. e.g echo fooba | sed -n 's/foo//;s/bar/found/p' shouldnt print anything git-svn-id: svn://busybox.net/trunk/busybox@7297 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Terje Kvernes adding quite a lot of missing documentationandersen2003-07-221-9/+15
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7093 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Update a bunch of docs. Run a script to update my email addr.andersen2003-07-142-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7061 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Thomas Cameron:andersen2003-07-141-3/+6
| | | | | | | | | | | | | | Hello all, This patch adds more "Help" text to the config system. Almost all applets now have a help entry. Also, I cleaned up the spacing of the existing text so that things are consistent. This patch is against this morning's CVS. Thomas Cameron CEI Systems, Inc. git-svn-id: svn://busybox.net/trunk/busybox@7058 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Kent Robotti adding a bunch of needed docs!andersen2003-07-051-2/+6
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@7038 69ca8d6d-28ef-0310-b511-8ec308f3f277
* New applet: patch, applies a unified diffbug12003-06-223-0/+297
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6964 69ca8d6d-28ef-0310-b511-8ec308f3f277
* New commands, 'G' and 'H'bug12003-04-261-1/+21
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6816 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix logic error in grouped commandsbug12003-04-121-42/+25
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6792 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix up indentingbug12003-04-111-78/+59
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6791 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Really fix the 'r' commandbug12003-04-091-4/+7
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6790 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix the sed 'r' commandbug12003-04-091-3/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6789 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fix substitution when replacing with &, we shouldnt check for an escape ↵bug12003-04-091-2/+1
| | | | | | charcter. Its already been taken care of _somewhere_ else git-svn-id: svn://busybox.net/trunk/busybox@6788 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Label ends at a newline, update comments, rename linked list fieldbug12003-04-091-36/+37
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6787 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Run through indentbug12003-04-081-301/+360
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6786 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixes block commands to correctly identify end of block, recognise the #n ↵bug12003-04-081-27/+63
| | | | | | directive, fix substitue command when regex isnt specified git-svn-id: svn://busybox.net/trunk/busybox@6785 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add hold space commands 'g', 'h', 'x'bug12003-04-071-5/+19
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6784 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Rename "line" to pattern_space to be more descriptive and closer to the ↵bug12003-04-071-34/+32
| | | | | | POSIX description git-svn-id: svn://busybox.net/trunk/busybox@6783 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Group common stringbug12003-03-301-4/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6771 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Small fix for sed 'y' commandbug12003-03-301-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6770 69ca8d6d-28ef-0310-b511-8ec308f3f277
* sed 'y' command, simplify some other codebug12003-03-301-33/+97
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6769 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Experimental support for embeded newline. (im evil)bug12003-03-302-10/+64
| | | | | | | Fix segfault when using 'N' with an odd number of lines. git-svn-id: svn://busybox.net/trunk/busybox@6768 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Still fine tunning the printing of the substitute commandbug12003-03-281-3/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6766 69ca8d6d-28ef-0310-b511-8ec308f3f277
* sed 't' branching commandbug12003-03-281-11/+13
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6765 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix sed 's' command's 'p' flag, so it can print line twicebug12003-03-281-12/+10
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6764 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fix q commandbug12003-03-281-2/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6763 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add basic branching support, sed ':' and 'b' commandsbug12003-03-281-0/+36
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6762 69ca8d6d-28ef-0310-b511-8ec308f3f277
* make sed cleanup use linked listbug12003-03-281-18/+15
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6761 69ca8d6d-28ef-0310-b511-8ec308f3f277