aboutsummaryrefslogtreecommitdiff
path: root/shell (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
| * ash: cosmetic cleanupsDenys Vlasenko2011-02-041-13/+12
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * whitespace fixesDenys Vlasenko2011-02-031-3/+3
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * hush: use FEATURE_SH_NOFORK to enable NOFORK trickDenys Vlasenko2011-02-022-10/+10
| | | | | | | | | | | | Also expands docs Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | Merge commit '8d0e0cdadf726beab28ccdc7d69738c1534e1f74' into mergeRon Yorston2012-03-213-30/+42
|\| | | | | | | | | | | | | Conflicts: include/platform.h libbb/Kbuild.src libbb/messages.c
| * move utmp.h include to libbb.hDenys Vlasenko2011-01-251-0/+2
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * hush: improve prompt in nested {}s, remove unused in_str->promptme memberDenys Vlasenko2011-01-181-21/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta setup_string_in_str 29 38 +9 parse_and_run_stream 79 88 +9 setup_file_in_str 32 39 +7 parse_stream 2430 2422 -8 file_get 262 235 -27 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/2 up/down: 25/-35) Total: -10 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * hush: fix "cmd & <newline>" problemDenys Vlasenko2011-01-181-5/+16
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * mass removal of underscores from _BB_DIR_foo and _BB_SUID_fooDenys Vlasenko2011-01-183-8/+8
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * hush: fix wrong prompt problem on empty interactive commantsDenys Vlasenko2011-01-071-1/+10
| | | | | | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* | Eat trailing CRs as well as LFs when expanding backquotesRon Yorston2012-02-161-1/+2
| |
* | Replace backslash with forward slash in environmentRon Yorston2012-02-161-0/+7
| |
* | Implement nonblocking waitRon Yorston2012-02-141-3/+4
| |
* | Create fake HOME environment variableRon Yorston2012-02-091-0/+19
| |
* | Skip carriage return in read builtin commandRon Yorston2012-02-061-1/+1
| |
* | win32: ash: teach "cd" DOS path separator '\'Nguyễn Thái Ngọc Duy2011-01-141-7/+8
| | | | | | | | | | | | docd() is rewritten to deal with DOS paths. Surprisingly, I did not consider '\' as path separator, only '/'. Teach it to see '\' just like '/'. Should fix github issue 3.
* | Merge remote-tracking branch 'upstream/master'Nguyễn Thái Ngọc Duy2011-01-0412-238/+465
|\|
| * init: simpler handling of leading dash in commandsDenys Vlasenko2010-12-251-1/+1
| | | | | | | | | | | | | | function old new delta init_exec 233 219 -14 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * hush: fix FEATURE_CLEAN_UP code (was freeing unallocated memory)Denys Vlasenko2010-12-211-45/+49
| | | | | | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
| * hush: fix build breakage (variable declared in for())Denys Vlasenko2010-12-181-21/+24
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * add if guards around include <malloc.h>Denys Vlasenko2010-12-051-1/+5
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * hush: move G_x_mode define to the more appropriate placeDenys Vlasenko2010-11-281-5/+5
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * Support set -o xtrace/noexec alternates for set -x/-nDan Fandrich2010-11-281-6/+14
| | | | | | | | | | Signed-off-by: Dan Fandrich <dan@coneharvesters.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * hush: display useful help textDan Fandrich2010-11-281-2/+8
| | | | | | | | | | Signed-off-by: Dan Fandrich <dan@coneharvesters.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * fixes for bugs discovered by randomconfig builds and testsDenys Vlasenko2010-11-222-3/+12
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * hush: fix improper handling of newline and hash chars in few corner casesDenys Vlasenko2010-11-227-123/+160
| | | | | | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
| * hush: add support for "set -o pipefail"Denys Vlasenko2010-11-143-23/+186
| | | | | | | | | | | | | | | | | | | | | | | | function old new delta checkjobs 467 517 +50 builtin_set 259 286 +27 o_opt_strings - 10 +10 hush_main 1011 1013 +2 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 3/0 up/down: 89/0) Total: 89 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * hush: preparatory patch for set -o pipefail supportDenys Vlasenko2010-11-141-4/+5
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * whitespace cleanupDenys Vlasenko2010-10-292-13/+5
| | | | | | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* | Merge commit 'e4dcba1c103dc28e927e004791e331aaf604383d'Nguyễn Thái Ngọc Duy2011-01-042-4/+4
|\| | | | | | | | | Conflicts: libbb/make_directory.c
| * *: whitespace fixesDenys Vlasenko2010-10-282-4/+4
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | Merge commit '06f719fd79fe15ce6fd5431bc58fcb22851de24d^'Nguyễn Thái Ngọc Duy2011-01-0412-540/+637
|\|
| * *: whitespace fixesDenys Vlasenko2010-10-051-1/+1
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * hush: remove "doesn't support brace expansion" from config help textDenys Vlasenko2010-10-041-2/+2
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * hush: remove brace expansion from TODO list in comments. No code changes.Denys Vlasenko2010-10-031-4/+5
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * hush: small code shrinkDenys Vlasenko2010-10-031-2/+6
| | | | | | | | | | | | | | function old new delta expand_on_ifs 231 222 -9 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * hush: add brace expansion testcaseDenys Vlasenko2010-10-032-0/+14
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * hush: implement brace expansionDenys Vlasenko2010-10-031-5/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When enabled: function old new delta glob_brace - 402 +402 next_brace_sub - 70 +70 expand_on_ifs 185 231 +46 bbconfig_config_bz2 4923 4929 +6 o_save_ptr 282 140 -142 ------------------------------------------------------------------------------ (add/remove: 2/0 grow/shrink: 2/1 up/down: 524/-142) Total: 382 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * hush: preparatory patch, no code changesDenys Vlasenko2010-10-031-25/+26
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * ash: fix signal and "set -e" interactionDenys Vlasenko2010-09-255-6/+58
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * hush: use smaller EXP_FLAG_foo constantsDenys Vlasenko2010-09-211-11/+11
| | | | | | | | | | | | | | | | | | | | function old new delta expand_string_to_string 126 124 -2 parse_stream 2376 2370 -6 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-8) Total: -8 bytes Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
| * shell/math: better comment. no code changesDenys Vlasenko2010-09-171-2/+2
| | | | | | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
| * hush: move shell_ver from globals to main's stack.Denys Vlasenko2010-09-161-8/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta hush_main 995 1011 +16 pseudo_exec_argv 253 251 -2 execvp_or_die 50 48 -2 maybe_set_to_sigexit 50 47 -3 hush_exit 78 75 -3 builtin_wait 274 271 -3 check_and_run_traps 205 200 -5 init_sigmasks 214 190 -24 builtin_trap 465 441 -24 reset_traps_to_defaults 238 211 -27 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/9 up/down: 16/-93) Total: -77 bytes Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
| * 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>
| * 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).