aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* Fix incorrect length passed to accept noted by Larry Doolittle.kraai2001-05-152-2/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2643 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Added some testcases for grep and sed (many more could still be added)markw2001-05-141-0/+13
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2642 69ca8d6d-28ef-0310-b511-8ec308f3f277
* ...Need to print just a few more newlines.markw2001-05-142-4/+10
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2641 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A compromise solution for insmodandersen2001-05-142-8/+30
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2640 69ca8d6d-28ef-0310-b511-8ec308f3f277
* ...And now that we're chomping lines, we need to re-add the newline later...markw2001-05-142-6/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2639 69ca8d6d-28ef-0310-b511-8ec308f3f277
* We will chomp() lines so REG_NEWLINE does not break stuff. Thanks, Matt.markw2001-05-142-0/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2638 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixed a subtle bug in the handling of -l and -c flags.markw2001-05-142-38/+38
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2637 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Added REG_NEWLINE as cflags to xregcomp for normal addresses so EOL $ will workmarkw2001-05-142-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2636 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Follow symbolic links when searching for modules.kraai2001-05-142-8/+8
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2635 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Per suggestion from Vladimir, eliminate check_wildcard_match(), whichandersen2001-05-146-234/+97
| | | | | | | | | | | | | | was only being used by insmod these days. Also, I spent a minute adjusting insmod so that it first searches /lib/modules/`uname -r` and then (if that fails) searches /lib/modules, which makes bb insmod behave much more like the real insmod, and should avoid nasty surprises (such as the recent "Modutils vs. Busybox..." thread). -Erik git-svn-id: svn://busybox.net/trunk/busybox@2634 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add missing periods and delete superfluous whitespace.kraai2001-05-141-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2633 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Do not ever change permissions on existing directories, onlyandersen2001-05-132-4/+12
| | | | | | | | | | on directories we created while extracting a tarball. Fix based on bug report and patch from Konstantin Boldyshev <konst@linuxassembly.org> -Erik git-svn-id: svn://busybox.net/trunk/busybox@2632 69ca8d6d-28ef-0310-b511-8ec308f3f277
* When doing a 'wget -O -' turn on the quiet flag, lest the status barandersen2001-05-132-2/+4
| | | | | | | | noise get mingled with the retrieved webpage. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2631 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A patch from Aaron Lehmann <aaronl@vitelus.com> to fix aandersen2001-05-132-2/+18
| | | | | | | crash on a broken regexp. git-svn-id: svn://busybox.net/trunk/busybox@2630 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Make the locale stuff only do the getpid==1 check if BB_INIT is definedandersen2001-05-132-2/+10
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2629 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Added support for 'r' command in sed.markw2001-05-112-20/+146
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2621 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix up some silly warningsandersen2001-05-114-12/+12
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2614 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix a segfault in lash, hush, and cmdedit. Each of these usedandersen2001-05-1110-5/+40
| | | | | | | | | xgetcwd, but did not check the return for a NULL, and then continued to call strlen on the NULL when the cwd had been removed from under it. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2613 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use xgetcwdandersen2001-05-112-4/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2612 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix the chown usage text, also thanks to Lars Kellogg-Stedman ↵andersen2001-05-113-6/+9
| | | | | | <lars@larsshack.org> git-svn-id: svn://busybox.net/trunk/busybox@2611 69ca8d6d-28ef-0310-b511-8ec308f3f277
* This patch from Lars Kellogg-Stedman, fixes the behavior ofandersen2001-05-112-6/+22
| | | | | | | | | | chown to be consistant with GNU chown, so that it follows symlinks (who cares about the perms on a link anyways?) unless the -h option is supplied. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2606 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Check that putenv succeeded, suggested by Jonas Holmberg.kraai2001-05-112-2/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2605 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix env usage information.kraai2001-05-113-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2604 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix handling of '-' option and way that variables are added to thekraai2001-05-112-12/+28
| | | | | | | | environment from Jonas Holmberg <jonas.holmberg@axis.com>. Fix handling of command options by adding + to getopt string. git-svn-id: svn://busybox.net/trunk/busybox@2603 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix symlink removal problem noted by Erik Andersen.kraai2001-05-111-1/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2602 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add installation instructions from Tomas Pospisek <tpo_hp@sourcepole.ch>.kraai2001-05-101-0/+8
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2597 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Make stdio functions which can be interrupted by the progressmeter timerkraai2001-05-092-10/+98
| | | | | | | recover gracefully from EINTR. git-svn-id: svn://busybox.net/trunk/busybox@2589 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Bump version to 0.52preandersen2001-05-094-3/+9
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2587 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A few more structural updates for job control.andersen2001-05-082-8/+26
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@2573 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix a stupid segfault caused by dereferencing a NULL ptr.andersen2001-05-082-0/+4
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@2572 69ca8d6d-28ef-0310-b511-8ec308f3f277
* This patch from Evin Robertson <nitfol@my-deja.com> fixes export so it works.andersen2001-05-072-2/+8
| | | | | | | | This way leaks memory, but oh well. We will probably fix that when we get around to doing local variables. git-svn-id: svn://busybox.net/trunk/busybox@2570 69ca8d6d-28ef-0310-b511-8ec308f3f277
* This syncs things with Vladimir's latest patches. Also getsandersen2001-05-072-8/+8
| | | | | | | | rid of useless 'const int' declarations. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2569 69ca8d6d-28ef-0310-b511-8ec308f3f277
* This is Vladimir's update to last_char_is(). Since 'char *' isandersen2001-05-071-4/+7
| | | | | | | | the least common denominator, I modified it to use that (not const), which will minimize the need for casting elsewhere. git-svn-id: svn://busybox.net/trunk/busybox@2568 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Silence cut so it doesn't whine during compilationandersen2001-05-072-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2567 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A patch from Vladimir to simplify chomp()andersen2001-05-071-7/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2566 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A patch from Vladimir to simplify concat_path_file() andandersen2001-05-071-11/+7
| | | | | | | make it less likely to break. git-svn-id: svn://busybox.net/trunk/busybox@2565 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A patch from Vladimir to use last_char_is(), and a patch fromandersen2001-05-072-8/+14
| | | | | | | | Larry to fix a silly bug when BB_FEATURE_VI_OPTIMIZE_CURSOR is not defined. git-svn-id: svn://busybox.net/trunk/busybox@2564 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Vladimir to use last_char_is to simplify du.candersen2001-05-072-12/+10
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2563 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Vladimir to remove testing stuff from sttyandersen2001-05-072-134/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2562 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A bug fix from Vladimir for a memory leak I stupidlyandersen2001-05-072-4/+4
| | | | | | | added to which.c. git-svn-id: svn://busybox.net/trunk/busybox@2561 69ca8d6d-28ef-0310-b511-8ec308f3f277
* More hush updates from Larry:andersen2001-05-072-38/+108
| | | | | | | | | | Update some comments. Generate partial placeholders for the missing builtins. Write builtin_umask. Properly treat exec without arguments as a means to open/close files within the running script. Implement "4<&-" that encodes for file descriptor closure. git-svn-id: svn://busybox.net/trunk/busybox@2555 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Jim McQuillan to pass the terminal type to the remote host.andersen2001-05-073-2/+109
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2554 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Per comment from Jim McQuillan <jam@mcquil.com>, don't logandersen2001-05-072-4/+4
| | | | | | | | syslogd startup/shutdown messages as KERN.EMERG, but use SYSLOG.INFO instead. git-svn-id: svn://busybox.net/trunk/busybox@2553 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Update comment re USE_SYSTEM_PWD_GRPandersen2001-05-071-5/+6
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@2552 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Per some comments from Lars Kellogg-Stedman <lars@larsshack.org>,andersen2001-05-077-11/+16
| | | | | | | | | make xreadlink() return NULL on failure, and make sure everyone uses the interface correctly. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2551 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Another vi update from Sterling Huxley:andersen2001-05-072-448/+696
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - All of the ESC sequences are now in variables. This should make re-targeting for other terminals easier. - The initial screen draw does not force out every single column. Should be faster. - The place_cursor() routine trys to be smarter about moving the cursor. This is optional based on BB_FEATURE_VI_OPTIMIZE_CURSOR. - The 't' and 'f' intra-line positioning commands were added. They can now be used as targets in 'c' and 'd' commands, i.e., dfx - delete from dot to next 'x' dtx - delete from dot to the char before next 'x' - show_status_line() uses a static int checksum to remember what is currently displayed on the screen and not re-draw the status line unless it has changed. - Some of the code in refresh() was moved out to format_line(). refresh() trys to send out the smallest segment containing the changed chars rather than the whole line. - Added "flash" to the :set command to specify if error indication should be by flashing the screen or ringing the bell. - Changed the rawmode() routine so that it turns off the NL -> CR NL translation. On output of a NL, the OS will not add a CR. - If vi was started as "view", with global read-only mode, and another file is opened, the file is opened read-only rather than read+write. git-svn-id: svn://busybox.net/trunk/busybox@2550 69ca8d6d-28ef-0310-b511-8ec308f3f277
* woops, forgot the break statmentbug12001-05-072-0/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2548 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Tolerate -q argument, if -q is passed give a warning and continue rather ↵bug12001-05-074-4/+12
| | | | | | than just fail git-svn-id: svn://busybox.net/trunk/busybox@2547 69ca8d6d-28ef-0310-b511-8ec308f3f277