aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * shell/math: deconvolute and explain ?: handling. Give better error messageDenys Vlasenko2010-09-166-129/+144
| | | | | | | | | | | | | | function old new delta arith_apply 1271 1283 +12 Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
| * shell/math: return string error indicator, not integerDenys Vlasenko2010-09-156-131/+113
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta expand_and_evaluate_arith 87 106 +19 expand_one_var 1563 1570 +7 arith 12 18 +6 evaluate_string 678 680 +2 arith_apply 1269 1271 +2 builtin_umask 133 132 -1 ash_arith 118 75 -43 expand_vars_to_list 1094 1038 -56 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 5/3 up/down: 36/-100) Total: -64 bytes Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
| * sleep: make it non-NOFORK. Fixes ^C in standalone shellDenys Vlasenko2010-09-142-3/+4
| | | | | | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
| * shell/math.c: stop using bss variableDenys Vlasenko2010-09-132-22/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta evaluate_string - 678 +678 expand_one_var 1543 1563 +20 builtin_type 114 116 +2 expand_and_evaluate_arith 89 87 -2 prev_chk_var_recursive 4 - -4 ash_arith 122 118 -4 arith_lookup_val 142 132 -10 arith 674 12 -662 ------------------------------------------------------------------------------ (add/remove: 1/1 grow/shrink: 2/4 up/down: 700/-682) Total: 18 bytes Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
| * shell/math.c: rename arith_eval_hooks to arith_state, put error code into itDenys Vlasenko2010-09-134-81/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta expand_and_evaluate_arith 79 89 +10 arith 675 674 -1 arith_lookup_val 151 142 -9 ash_arith 135 122 -13 arith_apply 1304 1269 -35 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/4 up/down: 10/-58) Total: -48 bytes Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
| * shell/math.c: small code shrink; fixed incomprehensible commentsDenys Vlasenko2010-09-131-112/+113
| | | | | | | | | | | | | | function old new delta arith_apply 1334 1304 -30 Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
| * shell: small code shrinkDenys Vlasenko2010-09-131-8/+9
| | | | | | | | | | | | | | function old new delta arith 680 675 -5 Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
| * shell: shrink arith code; and prepare for returning text error codesDenys Vlasenko2010-09-132-65/+63
| | | | | | | | | | | | | | function old new delta arith 701 680 -21 Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* | win32: ash: fix path_advance() not advancing correctlyNguyễn Thái Ngọc Duy2011-01-041-1/+10
| | | | | | | | | | | | | | | | | | *p can be either ':' or ';' at the end of path_advance(). However the code expects it to be ':' only. This effectively skips the rest of $PATH after the first component when Windows' $PATH is used. This should fix Github#1. While at it, also fix pathopt code expecting ':' only (again).
* | Merge branch 'ash'Nguyễn Thái Ngọc Duy2010-09-232-0/+28
|\ \
| * | win32: ash: implement ^C (and Ctrl+Break)Nguyễn Thái Ngọc Duy2010-09-232-0/+28
| | | | | | | | | | | | ^C sometimes does not work while Ctrl+Break seems to always work
| * | Merge commit 'master~11^2' into ashNguyễn Thái Ngọc Duy2010-09-2312-25/+143
| |\ \
* | | | win32: enable fancy echoNguyễn Thái Ngọc Duy2010-09-221-1/+1
| | | |
* | | | Merge branch 'vi'Nguyễn Thái Ngọc Duy2010-09-224-11/+26
|\ \ \ \
| * | | | defconfig.mingw32: enable viNguyễn Thái Ngọc Duy2010-09-141-10/+10
| | | | |
| * | | | Merge branch 'lineedit' into viNguyễn Thái Ngọc Duy2010-09-142-8/+96
| |\ \ \ \
| * | | | | win32: read_key: implement timeoutNguyễn Thái Ngọc Duy2010-09-141-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | will be needed by CONFIG_FEATURE_VI_ASK_TERMINAL
| * | | | | win32: vi: reimplement mysleep() because poll() won't work on stdinNguyễn Thái Ngọc Duy2010-09-141-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes vi work on rxvt for Windows. There is work to do in winansi.c in order to make vim work on Windows console.
| * | | | | win32: platform.h: reuse memrchr() in platform.cNguyễn Thái Ngọc Duy2010-09-141-0/+2
| | | | | |
* | | | | | Merge branch 'ash'Nguyễn Thái Ngọc Duy2010-09-223-2/+15
|\ \ \ \ \ \ | | |_|/ / / | |/| | | |
| * | | | | win32: ash: make waitpid return early if there is no childNguyễn Thái Ngọc Duy2010-09-221-0/+2
| | | | | |
| * | | | | win32: lineedit: make read_key() pass Ctrl+<letter> to read_line_inputNguyễn Thái Ngọc Duy2010-09-222-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes ^C and ^D work properly regarding ash input handling (i.e. does not crash ash). Pressing ^C in ash does not stop running programs though.
| * | | | | win32: lineedit: initialize initial_settingsNguyễn Thái Ngọc Duy2010-09-221-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | initial_settings.c_cc[] is used to detect Ctrl-C, Ctrl-D. Don't let garbage drive read_line_input()
| * | | | | win32: lineedit: fallback to fgets if a tty is not foundNguyễn Thái Ngọc Duy2010-09-211-2/+4
| | | | | |
* | | | | | win32: enable sha* (needs WIN32_NET)Nguyễn Thái Ngọc Duy2010-09-212-3/+6
| | | | | |
* | | | | | win32: net: add missing stub header filesNguyễn Thái Ngọc Duy2010-09-213-0/+0
| | | | | |
* | | | | | Merge branch 'net' (early part)Nguyễn Thái Ngọc Duy2010-09-207-6/+83
|\ \ \ \ \ \
| * | | | | | win32: enable wgetNguyễn Thái Ngọc Duy2010-09-202-2/+3
| | | | | | |
| * | | | | | wget: flush HTTP request before receving replyNguyễn Thái Ngọc Duy2010-09-201-0/+2
| | | | | | |
| * | | | | | win32: re-enable xconnect.cNguyễn Thái Ngọc Duy2010-09-203-3/+14
| | | | | | |
| * | | | | | win32: reimplement connect()Nguyễn Thái Ngọc Duy2010-09-202-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | connect() now returns a socket handle, i.e. a HANDLE. This kind of handle works with read()/write(). But on the other hand, FILE* functions are dead because they are not crt file handles??
| * | | | | | win32: reimplement socket()Nguyễn Thái Ngọc Duy2010-09-202-1/+32
| | | | | | |
| * | | | | | win32: add init_winsock()Nguyễn Thái Ngọc Duy2010-09-202-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All network applets must call this function before using any winsock functions.
| * | | | | | win32: implement inet_aton()Nguyễn Thái Ngọc Duy2010-09-203-0/+13
| | | | | | |
* | | | | | | win32: enable rpm2cpio and xz integrationNguyễn Thái Ngọc Duy2010-09-201-2/+2
| | | | | | |
* | | | | | | win32: enable lzop (requires WIN32_NET)Nguyễn Thái Ngọc Duy2010-09-202-1/+2
| | | | | | |
* | | | | | | win32: Config.in: add description for WIN32_NET wrt non-network appletsNguyễn Thái Ngọc Duy2010-09-201-0/+4
| | | | | | |
* | | | | | | Merge branch 'net' (early part) into archivalNguyễn Thái Ngọc Duy2010-09-202-0/+8
|\| | | | | |
| * | | | | | win32: Makefile: support building with network supportNguyễn Thái Ngọc Duy2010-09-151-0/+3
| | | | | | |
| * | | | | | win32: Config.in: WIN32_NETNguyễn Thái Ngọc Duy2010-09-141-0/+5
| | |/ / / / | |/| | | |
* | | | | | win32: enable (un)lzma, (un)xzNguyễn Thái Ngọc Duy2010-09-202-3/+9
| | | | | |
* | | | | | Merge branch 'master' into archivalNguyễn Thái Ngọc Duy2010-09-201-0/+15
|\ \ \ \ \ \ | | |_|_|/ / | |/| | | |
| * | | | | win32: add BUGSNguyễn Thái Ngọc Duy2010-09-201-0/+15
| | | | | |
* | | | | | win32: bbunpack: close stdin before removing compressed fileNguyễn Thái Ngọc Duy2010-09-201-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Windows does not allow to remove an opening file. Close it first, then we can remove it.
* | | | | | win32: enable cpio (including cpio creating)Nguyễn Thái Ngọc Duy2010-09-201-3/+3
| | | | | |
* | | | | | win32: tar: do not check for archiving the target archive itselfNguyễn Thái Ngọc Duy2010-09-201-0/+2
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | While it is generally a good thing to do, st_dev and st_ino on Windows is unreliable (i.e. always zero). This makes tar think every file is the archive it is creating, thus refuse to add them to the archive.
* | | | | win32: lowercase argv[0] before searching for applet nameNguyễn Thái Ngọc Duy2010-09-171-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On Windows, busybox.exe can be called BusyBox.exe, BUSYBOX.EXE... Applet search is done using bsearch(), doing case-insensitive search would be more difficult. So just lowercase everything down. BUSYBOX_APPLET_NAME environment variable are supposed to be case-sensitive though.
* | | | | win32: date: escape literal %e properlyNguyễn Thái Ngọc Duy2010-09-171-1/+1
| | | | |
* | | | | Merge branch 'ash'Nguyễn Thái Ngọc Duy2010-09-153-9/+97
|\ \ \ \ \ | | |/ / / | |/| | |
| * | | | win32: lineedit: enable historyNguyễn Thái Ngọc Duy2010-09-141-1/+1
| | |/ / | |/| |