aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Per comment from Jim McQuillan <jam@mcquil.com>, don't logEric Andersen2001-05-072-4/+4
| | | | | syslogd startup/shutdown messages as KERN.EMERG, but use SYSLOG.INFO instead.
* Update comment re USE_SYSTEM_PWD_GRPEric Andersen2001-05-071-5/+6
| | | | -Erik
* Per some comments from Lars Kellogg-Stedman <lars@larsshack.org>,Eric Andersen2001-05-077-11/+16
| | | | | | make xreadlink() return NULL on failure, and make sure everyone uses the interface correctly. -Erik
* Another vi update from Sterling Huxley:Eric 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.
* woops, forgot the break statmentGlenn L McGrath2001-05-072-0/+2
|
* Tolerate -q argument, if -q is passed give a warning and continue rather ↵Glenn L McGrath2001-05-074-4/+12
| | | | than just fail
* Actually we dont need to check if the device is nfs as it wont be stat'edGlenn L McGrath2001-05-072-4/+2
|
* woops, i shouldnt be so presumtuous? about what the error will beGlenn L McGrath2001-05-072-2/+2
|
* Device may not be a real filenameGlenn L McGrath2001-05-072-20/+32
|
* Rewrite -c and -b processing to shrink code and eliminate buffer overrun.Matt Kraai2001-05-052-28/+8
|
* include libbb.h after other includesGlenn L McGrath2001-05-051-3/+2
|
* Larry's variant on Evin Robertson's fix to what I messed upEric Andersen2001-05-042-2/+2
| | | | | | trying to make job control work. This fix makes it so that hush doesn't error out when init hasn't set up job control, as in when init=/bin/sh
* Larry suggested using concat_path_file() would be an even safer betEric Andersen2001-05-043-9/+9
| | | | | | | for 'which'. I ageed, so I whipped this up -- which revealed a bug in concat_path_file. It turns out that that a '/' can be appended from either the path _or_ the filename, but only the former was checked. -Erik
* Wrote documentation and scripts for creating a busybox boot floppy. Initial ↵Mark Whitley2001-05-0411-0/+445
| | | | revision.
* Don't reset parents context when we encounter an terminator. FixesMatt Kraai2001-05-042-2/+0
| | | | if true; then if true; then true; fi; fi
* Fix a buffer overflow. Which accounted for the size of the path, plus the theEric Andersen2001-05-042-2/+2
| | | | | | '/', plus the size of the test command. It did not account for the terminating NULL, which overwrote the end of the string. -Erik
* If it fails to run a builtin, let it fall through toEric Andersen2001-05-042-2/+0
| | | | | exec the real thing. -Erik
* Fix two bugs reported by Ralph Jones.Matt Kraai2001-05-042-6/+14
|
* A todo update from larry to acknowledge the existance of hushEric Andersen2001-05-031-11/+12
|
* devfs does not support creation of regular files. So change theEric Andersen2001-05-032-12/+6
| | | | | test a bit so as to not possibly create a regular file. -Erik
* Remove summary header. Not present in GNU or SUSv2.Matt Kraai2001-05-032-4/+2
|
* Move up waitpid error check so that errno isn't clobbered by tcsetpgrp.Matt Kraai2001-05-022-6/+6
|
* Canonicalize path before trying to unmount it.Matt Kraai2001-05-022-2/+12
|
* Fix bug #1108 by always canonicalizing arguments.Matt Kraai2001-05-022-26/+32
|
* Some more job control updates. It will now sucessfully backgroundEric Andersen2001-05-022-92/+148
| | | | | stuff. Good luck getting things back into the foreground though... -Erik
* Don't treat newline as pipe separator when processing substitutions.Matt Kraai2001-05-022-2/+8
|
* Use .png for images (removing all .gifs) and make them all 90x36Eric Andersen2001-05-0211-7/+7
| | | | -Erik
* Fix $(...) construction. Noted and patched by Larry DoolittleMatt Kraai2001-05-022-0/+2
| | | | <ldoolitt@recycle.lbl.gov>. I'm just a patch whore. :)
* First pass at getting job control working. This gets the infrastructureEric Andersen2001-05-022-26/+284
| | | | | | in place, but something is still missing/wrong in there. Testing with 'grep foo &' seems to put _hush_ into the background. Pondering... -Erik
* Use the current pgrp, not pid, when resetting the foreground process group.Matt Kraai2001-05-022-2/+2
| | | | Fixes bizarre suspension when executing `echo`.
* Don't segfault if the first word is the empty string.Matt Kraai2001-05-022-4/+8
|
* Another update from Larry:Eric Andersen2001-05-022-34/+38
| | | | | Makes hush return code equal to that of the last command executed. Fixes the mode where input comes from a file.
* Skip headers with empty filenames, rather than stopping.Matt Kraai2001-05-012-2/+2
|
* Another refinement, this time from Larry.Eric Andersen2001-05-012-2/+2
|
* Argh. Now we break non-pristine builds. Check a bit more carefully.Eric Andersen2001-05-012-2/+2
| | | | -Erik
* Oops. The dangers of applying patches by hand...Eric Andersen2001-05-011-1/+1
|
* Another hush update from Larry:Eric Andersen2001-05-012-10/+26
| | | | | | | | | | | | | | Minor improvements. Something is still broken with running scripts via "hush filename". All the following are now handled acceptably (matches ash, not bash). if true; then echo foo1; fi if true; then echo foo2; fi if true; false; then echo bar; else echo foo3; fi if true || false; then echo foo4; fi - Larry
* A patch from Larry to fix pristine source builds (again).Eric Andersen2001-05-013-3/+3
| | | | I just can't seem to _not_ break it. Sigh.
* Some more hush.c updates from Larry Doolittle.Eric Andersen2001-04-302-26/+92
|
* Oops. I was a bit too hasty and also changed applet_name.Eric Andersen2001-04-302-2/+2
|
* Made new xreadlink function for libbb and changed applets to use it instead ofMark Whitley2001-04-3013-90/+77
| | | | readlink(2).
* These messages can be .rodata, so make them even more const.Eric Andersen2001-04-303-38/+38
| | | | -Erik
* These do not need initial values. Let them live in the bss.Eric Andersen2001-04-304-6/+6
| | | | -Erik
* Per suggestion by Matt, make sh.c a real target. There is noEric Andersen2001-04-301-4/+4
| | | | | need for the useless sh_link dummy target -- use the real thing. -Erik
* Fix user permissions of copied directories.Matt Kraai2001-04-301-1/+8
|
* Simplify permission handling for FIFOs.Matt Kraai2001-04-301-12/+1
|
* Fix exit status when there is an error copying a file.Matt Kraai2001-04-301-1/+1
|
* Logic reversal for last_char_isGlenn L McGrath2001-04-292-2/+2
|
* fix to applet_source_list rule so Debian package continues to buildDavid Kimdon2001-04-281-1/+1
|
* Matt was complaining. Hopefully this helps the sh.c link situationEric Andersen2001-04-271-4/+4
|