aboutsummaryrefslogtreecommitdiff
path: root/shell (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Change strdup calls to xstrdup (patch from Steve Merrifield).kraai2001-11-122-4/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3666 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use fopen wrapper.kraai2001-11-121-4/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3663 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Some more minor build cleanupsandersen2001-11-101-13/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3654 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Cleanup some config problems. Add a sane default config that basicallyandersen2001-11-101-0/+4
| | | | | | | matches the default old Config.h git-svn-id: svn://busybox.net/trunk/busybox@3648 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Aaron Lehmann <aaronl@vitelus.com>;andersen2001-10-311-26/+24
| | | | | | | | | | | | | | This diff does 2 things: 1) removes an unnecessary function. saves 64 bytes on i386 2) allows you to disable checking of mail (actually, it's now disabled by default). this would be a nice CML1 option, but for now it's a #(define|undef) in the C file like the other internal ash options. this saves an additional 352 bytes if you leave mail disabled. git-svn-id: svn://busybox.net/trunk/busybox@3617 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixup some silly prototype warningsandersen2001-10-311-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3614 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from ASA <llb@udm.net.ru> to that source filesandersen2001-10-311-6/+25
| | | | | | | are properly passed their arguments. git-svn-id: svn://busybox.net/trunk/busybox@3613 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add in some (theoretical) uClinux support. Some init cleanupsandersen2001-10-283-3/+21
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3596 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixup the location of pwd.h and grp.handersen2001-10-242-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3572 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from vodz:andersen2001-10-241-133/+30
| | | | | | | | | 1) complete true: $ > /tmp/tmpfile 2) the builtin pwd now does not unwrap symlinks 3) reduce 680 bytes git-svn-id: svn://busybox.net/trunk/busybox@3569 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Major rework of the directory structure and the entire build system.andersen2001-10-247-105/+199
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@3561 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add an option to make the shells not advertise their busybox natureandersen2001-10-194-2/+11
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3548 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove the now unused ARITH_* definesandersen2001-10-191-27/+1
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@3547 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Scrub up some function prototypes.andersen2001-10-181-19/+12
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@3540 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Magnus Damm <damm@opensource.se> to avoid lash hangingandersen2001-10-031-1/+7
| | | | | | | on serial ports git-svn-id: svn://busybox.net/trunk/busybox@3475 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Commit my changes to xxreadtoken() to reduce code size. Also set definesmjn32001-09-111-5/+85
| | | | | | | | | so that the table implementations of copynode, calcsize, and cmdtxt are used. Hopefully this will result in wider testing. ;-) If it breaks, just unset the appropriate defines. git-svn-id: svn://busybox.net/trunk/busybox@3411 69ca8d6d-28ef-0310-b511-8ec308f3f277
* define IFS_BROKENandersen2001-09-061-1/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3405 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from vodz to make ash cope with leading redirectionsandersen2001-09-061-2/+9
| | | | | | | (i.e. '2>/dev/null ls rubbish') will now work. git-svn-id: svn://busybox.net/trunk/busybox@3401 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix a warning and potential segfault in lash when BB_FEATURE_CLEAN_UPandersen2001-08-221-2/+2
| | | | | | | is enabled git-svn-id: svn://busybox.net/trunk/busybox@3331 69ca8d6d-28ef-0310-b511-8ec308f3f277
* I stupidly forgot one level of pointer indirection in the cmdtxt(), calcsize(),mjn32001-08-121-19/+23
| | | | | | | | | | and copynode() table implementations. Commit the fix but keep them disabled until others check them out. Uncomment "//#define CMDTXT_TABLE", "//#define CALCSIZE_TABLE", and "//#define COPYNODE_TABLE" to try them out. Saves over 600 bytes on i386. git-svn-id: svn://busybox.net/trunk/busybox@3275 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix a merging errorandersen2001-08-101-2/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3248 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A few bug fixes and significant size savings. Combined effort ofmjn32001-08-101-1178/+1063
| | | | | | | | Vladimir N. Oleynik dzo@simtreas.ru, Aaron Lehmann aaronl@vitelus.com, and myself. git-svn-id: svn://busybox.net/trunk/busybox@3247 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Small size optimization from Aaron Lehmannandersen2001-08-101-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3245 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix stupid grammar error.andersen2001-08-101-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3243 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add support for underscores in variable names.kraai2001-08-061-13/+13
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3212 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Teach libc5 what a sighandler_t isandersen2001-08-021-0/+4
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@3190 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Scrub away the last leftovers from BB_FEATURE_<shell>. Good thingandersen2001-08-021-1/+1
| | | | | | | | for multibuild.pl -- I would have missed this stupid mess otherwise. -Erik git-svn-id: svn://busybox.net/trunk/busybox@3185 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Latest patch from vodz. Adds a check for divide by zero in the posixandersen2001-08-022-140/+55
| | | | | | | | | math suport, cleaner math syntax error checking, moves redundant signal string tables (from kill and ash) into libbb and provides a few cleanups elsewhere. git-svn-id: svn://busybox.net/trunk/busybox@3181 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Allow multiple shells to be enabled.kraai2001-08-014-9/+9
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3177 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix the let builtin (so we can close bug #1196) and remove theandersen2001-07-311-48/+28
| | | | | | | | nonstandard exp builtin. -Erik git-svn-id: svn://busybox.net/trunk/busybox@3171 69ca8d6d-28ef-0310-b511-8ec308f3f277
* This incorporates Posix math support into ash. The Posix math supportandersen2001-07-301-49/+56
| | | | | | | | | | was written by Aaron Lehmann <aaronl@vitelus.com> for busybox. This patch makes a few trivial changes to Aaron's code so that it can be used (in theory) by the other shells as well... -Erik git-svn-id: svn://busybox.net/trunk/busybox@3165 69ca8d6d-28ef-0310-b511-8ec308f3f277
* char renamed can never be negative on ARM (rp->renamed[i] != EMPTY)russ2001-07-261-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3147 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Some patches to make dietlibc work...andersen2001-07-221-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3134 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Cleanup from vodzandersen2001-07-171-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3105 69ca8d6d-28ef-0310-b511-8ec308f3f277
* This is vodz' latest patch. Sorry it took so long...andersen2001-07-173-6/+14
| | | | | | | | | | | | 1) ping cleanup (compile fix from this patch already applied). 2) traceroute call not spare ntohl() now (and reduce size); 3) Fix for functions not declared static in insmod, ash, vi and mount. 4) a more simple API cmdedit :)) 5) adds "stopped jobs" warning to ash on Ctrl-D and fixes "ignoreeof" option 6) reduce exporting library function index->strchr (traceroute), bzero->memset (syslogd) git-svn-id: svn://busybox.net/trunk/busybox@3103 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from vodz:andersen2001-07-126-105/+44
| | | | | | | | | | Changed email address cmdedit API change optimizations for traceroute and md5sum added a new shared create_icmp_socket() function git-svn-id: svn://busybox.net/trunk/busybox@3078 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Allow assignments in the export and readonly commands.kraai2001-07-121-1/+9
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3077 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove debugging statement.kraai2001-07-121-1/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3075 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix a stupid search and replace bug...andersen2001-07-101-4/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3055 69ca8d6d-28ef-0310-b511-8ec308f3f277
* vodz' latest update to ash.candersen2001-07-101-1162/+942
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3046 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add in a shell tagline (per lash/hush behavior) to make it easierandersen2001-07-072-31/+158
| | | | | | | | | to know which shell is in use. Add in 'help' to list available builtins, and fixup msh so it can do STANDALONE_SHELL. -Erik git-svn-id: svn://busybox.net/trunk/busybox@3025 69ca8d6d-28ef-0310-b511-8ec308f3f277
* This is vodz' latest ash update.andersen2001-07-061-571/+131
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3013 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A bit of testing today showed that ASH_BBAPPS_AS_BUILTINS wasandersen2001-07-051-6/+2
| | | | | | | | | | totally breaking the shell. Simple thinge like 'FOO=100' caused it to segfault. It turns out that disabling "bltincmd" is a very bad idea. -Erik git-svn-id: svn://busybox.net/trunk/busybox@3001 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Some updates to ash from vodz. Makes ash smaller. I made a fewandersen2001-07-021-2671/+2788
| | | | | | | | changes, esp describing all the current ash configuration options. Now ash adds 66k in the default configuration. git-svn-id: svn://busybox.net/trunk/busybox@2968 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from vodz to fix freeing a static in cmdedit.andersen2001-07-021-1/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2967 69ca8d6d-28ef-0310-b511-8ec308f3f277
* This is a busybox port of the Minix shell. It is reasonably capable,andersen2001-06-291-0/+4799
| | | | | | | | | | | | | handles all the basic stuff (for, case/esac, while, if/then/else), and is very small (adds just 38k on x86). It is not as rigorously correct about Bourne semantics as bash, but for most things it is quite workable. There is still some work to be done to further shrink it (it has its own globbing functions instead of using the libc ones, for example), but it is quite usable as is. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2949 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove vodz from credits, per his requestandersen2001-06-281-4/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2942 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Scrub up the licensing blockandersen2001-06-281-832/+65
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@2941 69ca8d6d-28ef-0310-b511-8ec308f3f277
* This a an ash applet I put together. It is similar to the one putandersen2001-06-281-0/+14242
| | | | | | | | | | together by vodz, but uses newer sources, has the removed features commented out instead of simply deleted (so they could be re-enabled) and the builtins all work. This adds 72k. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2940 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove unneeded stuff.andersen2001-06-281-6/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2939 69ca8d6d-28ef-0310-b511-8ec308f3f277