aboutsummaryrefslogtreecommitdiff
path: root/shell (follow)
Commit message (Collapse)AuthorAgeFilesLines
* general warning cleanupoldNguyễn Thái Ngọc Duy2009-05-101-1/+3
|
* Config.in: comment out programs/features that will not get supported anytime ↵Nguyễn Thái Ngọc Duy2009-04-281-2/+8
| | | | soon
* shell/ash: redo execcmd() and get rid of shellexec()Nguyễn Thái Ngọc Duy2009-04-231-0/+11
|
* shell/ash: pass env vars over when forking shellNguyễn Thái Ngọc Duy2009-04-231-0/+3
|
* run-command: rework interface to pass program path directlyNguyễn Thái Ngọc Duy2009-04-231-12/+7
|
* shell/ash: reimplement openhere()Nguyễn Thái Ngọc Duy2009-04-231-0/+43
|
* shell/ash: reimplement evalpipe()Nguyễn Thái Ngọc Duy2009-04-231-0/+62
|
* shell/ash: reimplement evalsubshell()Nguyễn Thái Ngọc Duy2009-04-232-3/+23
|
* shell/ash: reimplement evalbackcmd() and backquoteNguyễn Thái Ngọc Duy2009-04-232-0/+40
|
* shell/ash: replace updatepwd()Nguyễn Thái Ngọc Duy2009-04-231-0/+89
|
* shell/ash: replace shellexec() with shellspawn()Nguyễn Thái Ngọc Duy2009-04-233-0/+156
|
* shell/ash: link forkshell to main programNguyễn Thái Ngọc Duy2009-04-231-0/+21
|
* shell/ash: use dup2() where possible, due to copyfd's inefficenciesNguyễn Thái Ngọc Duy2009-04-231-1/+13
|
* shell/ash: reimplement copy_fd as Windows does not have F_DUPFDNguyễn Thái Ngọc Duy2009-04-231-0/+17
| | | | | This implementation is quite inefficient. Looking forward to an improvement when we manage file handle table ourselves
* shell/ash: search for .exe automatically if .exe is not givenNguyễn Thái Ngọc Duy2009-04-231-1/+21
|
* shell/ash: stop looking at \r (for CRLF ending)Nguyễn Thái Ngọc Duy2009-04-231-0/+4
|
* shell/ash: suport /dev/null in redirectionNguyễn Thái Ngọc Duy2009-04-231-0/+24
|
* shell/ash: teach it to understand semicolon as path separatorNguyễn Thái Ngọc Duy2009-04-231-0/+12
|
* shell/ash: massive ifdefs to unrelevant remove codeNguyễn Thái Ngọc Duy2009-04-231-3/+104
| | | | | This does not mean that it compiles. But at least it makes later patches easier to see.
* shell/ash: add forkshell_* to transfer data via pipeNguyễn Thái Ngọc Duy2009-04-232-0/+129
|
* shell/ash: add basic code for transferring internal dataNguyễn Thái Ngọc Duy2009-04-231-0/+783
| | | | | | | Because there is no such thing like fork() on Windows, we somehow need a way to "clone" a shell process. This code streamlines important information that a subshell will need, make it ready for sending to the subshell.
* fixes up to 1.6.1Nguyễn Thái Ngọc Duy2009-04-231-0/+4
|
* use "glibc errno" trick not only for ash, but for entire busyboxvda2007-05-311-11/+0
| | | | | | | | (add/remove: 1/1 grow/shrink: 37/37 up/down: 139/-228) Total: -89 bytes git-svn-id: svn://busybox.net/trunk/busybox@18716 69ca8d6d-28ef-0310-b511-8ec308f3f277
* hush: trivial buglet found by randomconfig testingvda2007-05-301-0/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18704 69ca8d6d-28ef-0310-b511-8ec308f3f277
* whitespace fixesvda2007-05-302-8/+8
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18703 69ca8d6d-28ef-0310-b511-8ec308f3f277
* usage.c: remove reference to busybox.hvda2007-05-264-5/+9
| | | | | | | | *: s/include "busybox.h"/include "libbb.h" git-svn-id: svn://busybox.net/trunk/busybox@18696 69ca8d6d-28ef-0310-b511-8ec308f3f277
* xpipe: introduce (saves ~170 bytes)vda2007-05-262-6/+3
| | | | | | | | udhcp/signalpipe.c: use pipe instead of socketpair. git-svn-id: svn://busybox.net/trunk/busybox@18695 69ca8d6d-28ef-0310-b511-8ec308f3f277
* hush: fix 'echo abc`sleep 5`def' + Ctrl-Z and Ctrl-C bugs. +50 bytes of code.vda2007-05-251-6/+18
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18691 69ca8d6d-28ef-0310-b511-8ec308f3f277
* hush: avoid duplicating HUSH_VERSIONvda2007-05-251-15/+16
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18690 69ca8d6d-28ef-0310-b511-8ec308f3f277
* hush: micro-optimization in new variable codevda2007-05-251-5/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18689 69ca8d6d-28ef-0310-b511-8ec308f3f277
* hush: we can't do without variable->value member, saving 25 bytes of codevda2007-05-251-42/+38
| | | | | | | and some runtime memory. Rename few variables. git-svn-id: svn://busybox.net/trunk/busybox@18688 69ca8d6d-28ef-0310-b511-8ec308f3f277
* hush: rework variable storage and environment handling.vda2007-05-254-167/+238
| | | | | | | | | More that -100 bytes of code + memory leak plugged. Added a testcase for it. git-svn-id: svn://busybox.net/trunk/busybox@18687 69ca8d6d-28ef-0310-b511-8ec308f3f277
* hush: update README with yet another failure casevda2007-05-241-0/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18685 69ca8d6d-28ef-0310-b511-8ec308f3f277
* hush: fix segfaulting syntax error in interactive hushvda2007-05-241-23/+29
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18684 69ca8d6d-28ef-0310-b511-8ec308f3f277
* hush: improve 2 testsuite testsvda2007-05-244-2/+17
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18683 69ca8d6d-28ef-0310-b511-8ec308f3f277
* hush: add 2 tests for correct syntax error reportingvda2007-05-242-0/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18682 69ca8d6d-28ef-0310-b511-8ec308f3f277
* hush: fix handling of unmatched ${name (without closing '}') -vda2007-05-241-5/+7
| | | | | | | | | | was eating all remaining input, potentially megabytes. nofork: save/restore die_jmp too nofork: use -2222 instead of -111 as "special" return valur for zero (-111 is used by some applets. -2222 won't fit in exitcode and thus safer) git-svn-id: svn://busybox.net/trunk/busybox@18680 69ca8d6d-28ef-0310-b511-8ec308f3f277
* hush: make syntax error messages a bit more usefulvda2007-05-233-29/+37
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18674 69ca8d6d-28ef-0310-b511-8ec308f3f277
* hush: prepare testsuite for new, fixed error message formatvda2007-05-231-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18673 69ca8d6d-28ef-0310-b511-8ec308f3f277
* hush: fix job control with eval /bin/external_progvda2007-05-233-92/+96
| | | | | | | | | hush: fix parsing of unterminated "str with no EOL hush: improved make_string() (smaller, faster, needs less RAM) hush: renamed several functions git-svn-id: svn://busybox.net/trunk/busybox@18672 69ca8d6d-28ef-0310-b511-8ec308f3f277
* hush: fix a bit different instance of "No EOL" bug,vda2007-05-235-40/+57
| | | | | | | add testsuite for that. Expand another testsuite. git-svn-id: svn://busybox.net/trunk/busybox@18671 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fix execute bit on hush-misc/shift.testsvda2007-05-231-0/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18670 69ca8d6d-28ef-0310-b511-8ec308f3f277
* hush: add 3 CONFIG_xxx, allowing for smaller and less capable hush.vda2007-05-212-38/+109
| | | | | | | Minimal hush is ~9k now (lash is ~7k). git-svn-id: svn://busybox.net/trunk/busybox@18663 69ca8d6d-28ef-0310-b511-8ec308f3f277
* shells: update README and testsuite. environment memory leakvda2007-05-213-1/+17
| | | | | | | needs to be fixed - and documented! git-svn-id: svn://busybox.net/trunk/busybox@18662 69ca8d6d-28ef-0310-b511-8ec308f3f277
* hush: using smallints where we can. save ~20 bytes in code andvda2007-05-211-47/+50
| | | | | | | some data storage at runtime. git-svn-id: svn://busybox.net/trunk/busybox@18661 69ca8d6d-28ef-0310-b511-8ec308f3f277
* hush: fix shift + $0 bug; add testcasevda2007-05-203-1/+9
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18660 69ca8d6d-28ef-0310-b511-8ec308f3f277
* hush: trivial size optimizationvda2007-05-201-5/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18659 69ca8d6d-28ef-0310-b511-8ec308f3f277
* hush: make process substitution configurable; add a testcasevda2007-05-204-1/+22
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18658 69ca8d6d-28ef-0310-b511-8ec308f3f277
* ash: implement type -p, costs less than 10 bytesvda2007-05-201-16/+11
| | | | | | | (patch by Mats Erik Andersson <mats.andersson64@comhem.se>) git-svn-id: svn://busybox.net/trunk/busybox@18654 69ca8d6d-28ef-0310-b511-8ec308f3f277
* cttyhack: new applet.vda2007-05-183-0/+95
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18649 69ca8d6d-28ef-0310-b511-8ec308f3f277