aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Add the -d optionbug12003-09-241-1/+31
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7558 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add the "install" applet, move get_ug_id to libbb as its used by chown,bug12003-09-2410-18/+155
| | | | | | | chgrp and install. git-svn-id: svn://busybox.net/trunk/busybox@7557 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch by Steinar H. Gunderson to fix debian bug #211675.bug12003-09-201-1/+1
| | | | | | | | Linking to my_getgrnam from libpwdgrp wasnt working, instead it was trying to use functionality from glibc, which pulled in libnss. git-svn-id: svn://busybox.net/trunk/busybox@7549 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch by Junio C Hamano to workaround a gcc compiler bug.bug12003-09-171-22/+23
| | | | | | | | | | | | | | | | | | | | | | The construct certain vintages of GCC (the one I have trouble with is 3.2.3) have trouble with looks like the following: static struct st a; static struct st *p = &a; struct st { int foo; }; static void init(void) { a.foo = 0; } The problem disappears if we move the struct declaration up to let the compiler know the shape of the struct before the first definition uses it, like this: struct st { int foo; }; /* this has been moved up */ static struct st a; static struct st *p = &a; static void init(void) { a.foo = 0; } git-svn-id: svn://busybox.net/trunk/busybox@7537 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Configuration option to define wether to follows GNU sed's behaviour bug12003-09-165-29/+70
| | | | | | | | 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-162-3/+11
| | | | | | | a test for it. git-svn-id: svn://busybox.net/trunk/busybox@7534 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Compile get_terminal_width_heightbug12003-09-161-7/+8
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7533 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Stephane Billiart to fix an unused variable warning.bug12003-09-151-1/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7532 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Bastian Blank to fix a problem when runing find under ash.bug12003-09-151-3/+3
| | | | | | | | | | | | | "If the shell is compiled with -DJOBS, this is all fine -- find wasn't stopped (it was killed), so it correctly uses WTERMSIG instead of WSTOPSIG. However, if the shell _isn't_ compiled with -DJOBS (which it isn't in d-i), only WSTOPSIG is used, which extracts the high byte instead of the low byte from the status code. Since the status code is 13 (SIGPIPE), "st" suddenly gets the value 0, which is equivalent to SIGEXIT. Thus, ash prints out "EXIT" on find's exit." git-svn-id: svn://busybox.net/trunk/busybox@7531 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Tito, Reduces the size of busybox's strings applet from 1900 tobug12003-09-151-12/+11
| | | | | | | 1788 bytes (for strings.o). git-svn-id: svn://busybox.net/trunk/busybox@7530 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix a simple mistake with pattern space, and add a test for itbug12003-09-152-2/+15
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7529 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch by Jean Wolter to fix a bug where a script wouldnt be executedbug12003-09-151-1/+4
| | | | | | | | | | | | | | | unless it had #!/bin/sh in the first line "It correctly locates the script, tries to execute it via execve which fails. After that it tries to hand it over to /bin/sh which fails too, since ash - neither provides the absolute pathname to /bin/sh - nor tries to lookup the script via PATH if called as "sh script" " git-svn-id: svn://busybox.net/trunk/busybox@7528 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-1510-95/+110
| | | | | | | | 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
* fix function prototypeandersen2003-09-151-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7525 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Needs prototype for close()andersen2003-09-151-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7524 69ca8d6d-28ef-0310-b511-8ec308f3f277
* comparison was always false due to limited range of data types.andersen2003-09-151-1/+1
| | | | | | | | Carefully cast to unsigned long long prior to multiply to get the expected result. git-svn-id: svn://busybox.net/trunk/busybox@7523 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Do not shadow the global name 'accept'andersen2003-09-151-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7522 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add a test for the 'P' command and fix current implementation so itbug12003-09-152-0/+14
| | | | | | | 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-152-0/+20
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7520 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Test for use of newline in regex's, this feature is used by mostbug12003-09-151-0/+10
| | | | | | | configure scripts. git-svn-id: svn://busybox.net/trunk/busybox@7519 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
* Test the N commandbug12003-09-151-0/+9
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7517 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
* Check sed doesnt go into an infinite loop (yes it does)bug12003-09-151-0/+11
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7515 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Update Matteo Croce's email addressbug12003-09-151-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7514 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
* Update sed branch testsbug12003-09-143-15/+17
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7506 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add two new tests, sed-recurses-properly should always workbug12003-09-143-1/+16
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7505 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 compile error, Vodz, last_path_113bug12003-09-121-4/+8
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7495 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Typo.bug12003-09-121-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7494 69ca8d6d-28ef-0310-b511-8ec308f3f277
* As vodz just pointed out, I screwup up the call to bb_xasprintf!andersen2003-09-121-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7492 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove final \nandersen2003-09-121-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7491 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix obligitory typosandersen2003-09-121-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7490 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Final changelog updateandersen2003-09-121-0/+102
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7489 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove version #andersen2003-09-121-2/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7488 69ca8d6d-28ef-0310-b511-8ec308f3f277
* I suppose it is now Sept 12...andersen2003-09-121-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7487 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Update webpage a bitandersen2003-09-123-31/+88
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7486 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix handling of hardlinks when OLDGNU and GNU extensions arent enabled.bug12003-09-121-3/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7485 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use the typeflag to identify if its a hardlink on OLD and GNU posixbug12003-09-121-6/+6
| | | | | | | modes, fixes a bug extracting hardlinks to symlinks. git-svn-id: svn://busybox.net/trunk/busybox@7484 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Invoke run-parts on /etc/network/if-*.d per the behavior ofandersen2003-09-121-7/+4
| | | | | | | the upstream ifupdown code... git-svn-id: svn://busybox.net/trunk/busybox@7483 69ca8d6d-28ef-0310-b511-8ec308f3f277