aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Get BB_LASH out of the list...andersen2001-05-244-4/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2718 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Plug another memory leak in hush. This one showed up when backtickedandersen2001-05-232-0/+2
| | | | | | | | commands were run. This one was sure a bugger to find. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2717 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix a massive memory leak in the run_list_test() function.andersen2001-05-232-66/+22
| | | | | | | | | Rename run_list_test() as free_pipe_list(). Rename run_pipe_test() as free_pipe(). -Erik git-svn-id: svn://busybox.net/trunk/busybox@2716 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from larry to fix some grammar errors.andersen2001-05-2332-89/+89
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2715 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Commit a patch by Larry Doolittle which fixes recursive calls to file_peek,kraai2001-05-232-14/+16
| | | | | | | and improves some debugging messages. git-svn-id: svn://busybox.net/trunk/busybox@2714 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Make more robust (patch by Larry Doolittle).kraai2001-05-231-5/+11
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2712 69ca8d6d-28ef-0310-b511-8ec308f3f277
* It turns out the descriptions of both dos2unix and unix2dosandersen2001-05-223-12/+12
| | | | | | | | were broken. This fixes. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2711 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Excellent. This patch from Larry fixes the behavior of hushandersen2001-05-222-2/+6
| | | | | | | when builtins are included in pipes. git-svn-id: svn://busybox.net/trunk/busybox@2710 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix this case. No, really this time.andersen2001-05-222-92/+122
| | | | | | | | | | | | unset FOO export FOO=bar FOO=baz echo "global env: " `env | grep ^FOO` echo "local env: " `set | grep ^FOO` -Erik git-svn-id: svn://busybox.net/trunk/busybox@2709 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix a race. Sometimes by the time we got to checkjobs(), theandersen2001-05-222-24/+54
| | | | | | | | pipe struct had already been freed. Return immediately if the pipe is NULL. git-svn-id: svn://busybox.net/trunk/busybox@2708 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Oops. Remove some debug noise I left in.andersen2001-05-222-10/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2707 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Updates from both Vladimir and Larryandersen2001-05-222-128/+178
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2706 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixed misnamed rewind command (noted by Tom Oehser).kraai2001-05-222-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2700 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixed extra -- lines (noted by Christophe Boyanique).kraai2001-05-222-2/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2699 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Make - read compressed data from stdin (thanks to Marius Groeger).kraai2001-05-222-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2697 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Correctly remove leading slashes upon extraction (thanks to Marius Groeger).kraai2001-05-222-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2696 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixed mishandling of -c & -l options and accounted for case when we'remarkw2001-05-212-14/+32
| | | | | | | grepping only one file. git-svn-id: svn://busybox.net/trunk/busybox@2692 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Lars Kellogg-Stedman <lars@larsshack.org> to fix bugandersen2001-05-2114-63/+62
| | | | | | | #1130 (i.e. When you turn on features it should always ADD features) git-svn-id: svn://busybox.net/trunk/busybox@2690 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A couple more minor touchupsandersen2001-05-213-9/+9
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2688 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Several cleanups for usage messagesandersen2001-05-213-120/+132
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2687 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix tell support.kraai2001-05-212-4/+26
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2685 69ca8d6d-28ef-0310-b511-8ec308f3f277
* The latest patch from Larryandersen2001-05-212-62/+122
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2682 69ca8d6d-28ef-0310-b511-8ec308f3f277
* This patch from Bernhard Kuhn <kuhn@lpr.e-technik.tu-muenchen.de> is based onandersen2001-05-213-14/+310
| | | | | | | | the work of Jinux Kim on his "babobox" (derived from busybox-0.42), and enables kernel module loading and unloading for uClinux/m68k. git-svn-id: svn://busybox.net/trunk/busybox@2681 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Gernot Poerner <gp@it-netservice.de>. Adds inandersen2001-05-215-3/+10
| | | | | | | mount bind support. git-svn-id: svn://busybox.net/trunk/busybox@2680 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix open mode for IOCTLs which write to the tape.kraai2001-05-212-4/+30
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2678 69ca8d6d-28ef-0310-b511-8ec308f3f277
* This is a patch from Vladimir:andersen2001-05-192-396/+368
| | | | | | | | | | | | | | | | | | | | | | | | | | | | > I rewrite *local_variable* function in hush.c with: > 1) remove many memory leaks > 2) add support read_only protect (require write builtin function for set this, > I write this special for variable HUSH_VERION=0.01) > 3) commad read set only local variable now > 4) remove many error messages if "set unset export" not defined variable > (bash syntax not put and set error code). Hmm, if I set result to -1, you hush > called waitpid and returned with error "no waitpid" ( i not found place this > error). > 5) destroy error in new version check xgetcwd()==NULL and set "(unknow)" - > this have error: crashe in next call `pwd`, but xgetcwd(not null) called > free(arg). > 6) next add integraion with libbb Valdimir's patch missed two cases of local variable handling FOO=bar export FOO=baz unset FOO and export FOO=bar FOO=baz which were working before, so I fixed those two cases. git-svn-id: svn://busybox.net/trunk/busybox@2677 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix an escape problem in the docs. Some \n's didn't have the '\'andersen2001-05-183-6/+6
| | | | | | | | escaped, and so were messsing the out output. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2676 69ca8d6d-28ef-0310-b511-8ec308f3f277
* (Almost) brand-new version of cut that supports muitiple lists of positions,markw2001-05-182-218/+462
| | | | | | | per feature request from Tom Oehser. git-svn-id: svn://busybox.net/trunk/busybox@2675 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Changed snprintf copies to use strncpy at the suggestion of Aaron Lehmann.kraai2001-05-182-16/+16
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2674 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Rewrote copyfd to use library functions, terminate, and copy correct data.kraai2001-05-183-26/+18
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2672 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix applet_name.kraai2001-05-172-0/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2671 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Switch from hstrerror to herror for libc5 systems.kraai2001-05-171-3/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2669 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove unused function. If necessary, we can use remove_file instead.kraai2001-05-172-62/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2666 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix invocation of builtin shell to have proper argc and argv.kraai2001-05-172-2/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2665 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Always print a newline after a matching substitution.kraai2001-05-172-12/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2664 69ca8d6d-28ef-0310-b511-8ec308f3f277
* It turns out job control in both hush and lash was broken by theandersen2001-05-174-20/+52
| | | | | | | | | signal handling in cmdedit.c. Disabling it makes the shells behave themselves again. hush isn't quite there, but is getting close... -Erik git-svn-id: svn://busybox.net/trunk/busybox@2663 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove/replace the "div" call.andersen2001-05-162-10/+14
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2657 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add missing include, noted by Larry Doolittle.kraai2001-05-161-0/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2656 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Whoops. Forgot the x.kraai2001-05-162-4/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2655 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add xgethostbyname and herror_msg* functions.kraai2001-05-1625-96/+236
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2654 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Change 'printf("%s\n", ...)' into 'puts(...)'. Noted and patched in hostname.ckraai2001-05-1622-36/+36
| | | | | | | by Larry Doolittle. git-svn-id: svn://busybox.net/trunk/busybox@2653 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Move init of a bunch of globals into main so we are at leastandersen2001-05-162-14/+32
| | | | | | | | a bit more reentrant. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2652 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix the behavior of local shell variables to match that of bash and ash.andersen2001-05-152-50/+218
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@2651 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Suggestion from Larry: no format string, use fputs instead.andersen2001-05-152-4/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2650 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Adam Heath <doogie@debian.org> to add arbitrary header supportandersen2001-05-155-9/+79
| | | | | | | to wget, so it can now do funky interactive things with cgi scripts. git-svn-id: svn://busybox.net/trunk/busybox@2649 69ca8d6d-28ef-0310-b511-8ec308f3f277
* This patch from Adam Heath <doogie@debian.org>, makes print_fileandersen2001-05-155-6/+72
| | | | | | | (used by cat, grep, sed, etc) quite a bit faster. git-svn-id: svn://busybox.net/trunk/busybox@2648 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Vladimir:andersen2001-05-1512-68/+70
| | | | | | | | | | 1) fixed a bug that could crash df, mount, and umount applets if the root device name was longer then the word "root" (/dev/loop1 vs /dev/root) - 2) severl functions needed static declaration in the umount applet 3) update declaration for function in last_char_is() in libbb git-svn-id: svn://busybox.net/trunk/busybox@2647 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Oops. I left in some debug noise.andersen2001-05-152-2/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2646 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Write set_local_var() and fixup lookup_param() so you can now useandersen2001-05-152-8/+202
| | | | | | | | shell local variables. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2645 69ca8d6d-28ef-0310-b511-8ec308f3f277
* This patch covers one big part of variable handling.andersen2001-05-152-10/+98
| | | | | | | | | | | | | | | | | | $ a=b foo should be handled correctly. $ a=b is parsed OK, but the actual variable setting is not yet written. Except for some weird exceptions related to quoting rules, this code passes (matches ash behavior) all the tests I threw at it. If someone now writes set_local_var(), and updates lookup_param() to match, we can claim success! - Larry git-svn-id: svn://busybox.net/trunk/busybox@2644 69ca8d6d-28ef-0310-b511-8ec308f3f277