aboutsummaryrefslogtreecommitdiff
path: root/shell (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
| * ash,hush: optional support for $HISTFILESIZE.Denys Vlasenko2011-03-313-3/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | Based on patch from Alexey Fomenko (ext-alexey.fomenko AT nokia.com) function old new delta size_from_HISTFILESIZE - 44 +44 hush_main 998 1025 +27 ash_main 1348 1374 +26 read_line_input 3361 3372 +11 new_line_input_t 17 24 +7 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * hush: remove outdated commentsDenys Vlasenko2011-03-301-5/+1
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * hush: fix source1.testsDenys Vlasenko2011-03-301-27/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta parse_and_run_stream 95 139 +44 static_get 22 25 +3 file_get 260 263 +3 builtin_umask 133 132 -1 parse_stream 2442 2425 -17 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/2 up/down: 50/-18) Total: 32 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | Merge commit '19311bfa7b8e8c6effa9c375de9b0eb4338bee12' into mergeRon Yorston2012-03-226-99/+172
|\| | | | | | | | | | | Conflicts: coreutils/ls.c shell/ash.c
| * hush: document a bug about aborting on sourced file error when non-interactiveDenys Vlasenko2011-03-242-0/+15
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * hush: make parse errors in sourced file non-fatal in interactive scriptDenys Vlasenko2011-03-241-45/+52
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * hush: fix a case where return in sourced file has no effectDenys Vlasenko2011-03-243-0/+9
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * ash,hush: recheck LANG before every line inputDenys Vlasenko2011-03-232-17/+31
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * ash/hush: shrink help textDenys Vlasenko2011-03-082-2/+2
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * remove stray empty lineDenys Vlasenko2011-03-071-1/+0
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * ash/hush: provide help textDenys Vlasenko2011-03-072-21/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ ./busybox ash --help BusyBox v1.19.0.git (2011-03-07 11:25:29 CET) multi-call binary. Usage: ash [-/+OPTCHARS] [-/+o OPTNAME]... [-c 'SCRIPT' [ARG0 [ARGS]] / SCRIPT_FILE [ARGS]] Unix shell interpreter $ ./busybox hush --help BusyBox v1.19.0.git (2011-03-07 11:25:29 CET) multi-call binary. Usage: hush [-nx] [-c 'SCRIPT' [ARG0 [ARGS]] / SCRIPT_FILE [ARGS]] Unix shell interpreter function old new delta packed_usage 28163 28212 +49 setcmd 85 78 -7 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/1 up/down: 49/-7) Total: 42 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * ash: fix execution of shell scripts without shebangDenys Vlasenko2011-03-071-10/+19
| | | | | | | | | | | | We were assuming #!/bin/sh, whereas we had to simply re-enter ash. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * convert "do {...} while (1);" -> "while (1) {...}"Denys Vlasenko2011-03-021-8/+8
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | Merge commit 'da4441c44f6efccb6f7b7588404d9c6bfb7b6af8' into mergeRon Yorston2012-03-2213-47/+220
|\| | | | | | | | | | | | | Conflicts: libbb/vfork_daemon_rexec.c networking/wget.c procps/ps.c
| * slightly better wording in commentsDenys Vlasenko2011-02-212-4/+4
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * ash: fix ash-signals/signal8 testcase failureDenys Vlasenko2011-02-215-12/+130
| | | | | | | | | | | | | | | | | | | | | | function old new delta killcmd 109 224 +115 kill_main 882 910 +28 changepath 194 195 +1 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/0 up/down: 144/0) Total: 144 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * hush: do not print killer signal's name for SIGPIPEDenys Vlasenko2011-02-142-2/+5
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * ash: fix TMOUT not restoring tty attributesDenys Vlasenko2011-02-082-47/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta pgetc 420 500 +80 readtoken1 3202 3239 +37 read_line_input 3316 3337 +21 udhcpc_main 2610 2630 +20 file_get 266 272 +6 expandarg 958 963 +5 localcmd 257 259 +2 addLines 85 87 +2 read_line 94 95 +1 ed_main 2540 2541 +1 timed_out 1 - -1 lineedit_read_key 256 255 -1 alrm_sighandler 44 - -44 cmdloop 539 434 -105 ------------------------------------------------------------------------------ (add/remove: 0/2 grow/shrink: 10/2 up/down: 175/-151) Total: 24 bytes text data bss dec hex filename 887379 936 17200 905515 dd12b busybox_old 887411 936 17192 905539 dd143 busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * echo: do not retry on write errorsDenys Vlasenko2011-02-076-1/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta echo_main 297 336 +39 stpcpy - 22 +22 run_pipe 1561 1566 +5 pseudo_exec_argv 187 192 +5 hush_exit 75 80 +5 ------------------------------------------------------------------------------ (add/remove: 3/0 grow/shrink: 4/0 up/down: 98/0) Total: 76 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * ash: optional support for $TMOUT variableDenys Vlasenko2011-02-041-0/+47
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * 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>