aboutsummaryrefslogtreecommitdiff
path: root/hush.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Larry's variant on Evin Robertson's fix to what I messed upandersen2001-05-041-1/+1
| | | | | | | | | 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 git-svn-id: svn://busybox.net/trunk/busybox@2537 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Don't reset parents context when we encounter an terminator. Fixeskraai2001-05-041-1/+0
| | | | | | | if true; then if true; then true; fi; fi git-svn-id: svn://busybox.net/trunk/busybox@2534 69ca8d6d-28ef-0310-b511-8ec308f3f277
* If it fails to run a builtin, let it fall through toandersen2001-05-041-1/+0
| | | | | | | | exec the real thing. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2531 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Move up waitpid error check so that errno isn't clobbered by tcsetpgrp.kraai2001-05-021-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2519 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Some more job control updates. It will now sucessfully backgroundandersen2001-05-021-46/+74
| | | | | | | | stuff. Good luck getting things back into the foreground though... -Erik git-svn-id: svn://busybox.net/trunk/busybox@2516 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Don't treat newline as pipe separator when processing substitutions.kraai2001-05-021-1/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2515 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix $(...) construction. Noted and patched by Larry Doolittlekraai2001-05-021-0/+1
| | | | | | | <ldoolitt@recycle.lbl.gov>. I'm just a patch whore. :) git-svn-id: svn://busybox.net/trunk/busybox@2513 69ca8d6d-28ef-0310-b511-8ec308f3f277
* First pass at getting job control working. This gets the infrastructureandersen2001-05-021-13/+142
| | | | | | | | | in place, but something is still missing/wrong in there. Testing with 'grep foo &' seems to put _hush_ into the background. Pondering... -Erik git-svn-id: svn://busybox.net/trunk/busybox@2512 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use the current pgrp, not pid, when resetting the foreground process group.kraai2001-05-021-1/+1
| | | | | | | Fixes bizarre suspension when executing `echo`. git-svn-id: svn://busybox.net/trunk/busybox@2511 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Don't segfault if the first word is the empty string.kraai2001-05-021-2/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2510 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Another update from Larry:andersen2001-05-021-17/+19
| | | | | | | | Makes hush return code equal to that of the last command executed. Fixes the mode where input comes from a file. git-svn-id: svn://busybox.net/trunk/busybox@2509 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Another hush update from Larry:andersen2001-05-011-5/+13
| | | | | | | | | | | | | | | | | 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 git-svn-id: svn://busybox.net/trunk/busybox@2500 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Some more hush.c updates from Larry Doolittle.andersen2001-04-301-13/+46
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2497 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use BUFSIZ for the_command to match size used in cmdeditandersen2001-04-271-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2475 69ca8d6d-28ef-0310-b511-8ec308f3f277
* An update to hush from Larry:andersen2001-04-271-94/+20
| | | | | | | | | | | | | | It should recover more smoothly from syntax errors, and it now has a decent guess when the reserved word construct is over (or not) to control execution and prompting. I took out all the redundant standalone test copies of libbb routines, but left in a hook so I can include those for my testing. I'll post that include file on my web site. - Larry git-svn-id: svn://busybox.net/trunk/busybox@2474 69ca8d6d-28ef-0310-b511-8ec308f3f277
* This is the initial checkin of Larry Doolittle's hush.c, using hisandersen2001-04-261-0/+2191
April 25, 2001 snapshot, adjusted a bit by me so it has cmdedit support. This checkin also removes sh.c. In the future sh.c will be a symlink to your shell of choice. For now, this symlink will default to pointing to lash.c (as in the past). If you change the symlink to point to hush.c, then thats what you will get. This symlink business is a temporary situation, which will be cleaned up Real Soon Now(tm). -Erik git-svn-id: svn://busybox.net/trunk/busybox@2466 69ca8d6d-28ef-0310-b511-8ec308f3f277