platform/upstream/busybox.git
14 years agoforgotten "git add"...
Denys Vlasenko [Sun, 30 May 2010 01:47:40 +0000 (03:47 +0200)]
forgotten "git add"...

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoreorder parts of bbunzip.c, no code changes
Denys Vlasenko [Sun, 30 May 2010 01:46:54 +0000 (03:46 +0200)]
reorder parts of bbunzip.c, no code changes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agounxz: new applet, complete with xzcat and xz -d aliases
Denys Vlasenko [Sun, 30 May 2010 01:35:18 +0000 (03:35 +0200)]
unxz: new applet, complete with xzcat and xz -d aliases

function                                             old     new   delta
unpack_xz_stream_stdin                                 -    3953   +3953
lzma_main                                              -    2601   +2601
lzma_len                                               -     516    +516
dec_vli                                                -     165    +165
dict_repeat                                            -     103    +103
lzma_reset                                             -      98     +98
fill_temp                                              -      98     +98
crc32_validate                                         -      93     +93
xz_dec_reset                                           -      77     +77
unxz_main                                              -      77     +77
index_update                                           -      47     +47
xz_crc32                                               -      40     +40
packed_usage                                       27044   27060     +16
make_new_name_unxz                                     -      14     +14
applet_names                                        2240    2254     +14
applet_main                                         1312    1324     +12
applet_nameofs                                       656     662      +6
unpack_unxz                                            -       5      +5
send_tree                                            355     360      +5
applet_install_loc                                   164     166      +2
------------------------------------------------------------------------------
(add/remove: 15/0 grow/shrink: 6/0 up/down: 7942/0)          Total: 7942 bytes
   text    data     bss     dec     hex filename
 844032     453    6812  851297   cfd61 busybox_old
 852063     453    6812  859328   d1cc0 busybox_unstripped

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agorename FEATURE_LZMA_ALIAS to just LZMA
Denys Vlasenko [Sun, 30 May 2010 01:33:50 +0000 (03:33 +0200)]
rename FEATURE_LZMA_ALIAS to just LZMA

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agolzop: fix indentation
Denys Vlasenko [Sat, 29 May 2010 23:57:52 +0000 (01:57 +0200)]
lzop: fix indentation

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agobbunzip: silence warning about unused variable
Bernhard Reutner-Fischer [Thu, 27 May 2010 13:39:01 +0000 (15:39 +0200)]
bbunzip: silence warning about unused variable

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agotrivial fixes: use uint8_t, not __u8; fix defconfig for fgconsole
Denys Vlasenko [Thu, 27 May 2010 11:35:04 +0000 (13:35 +0200)]
trivial fixes: use uint8_t, not __u8; fix defconfig for fgconsole

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agobuild system: make gen_build_files.sh messages more inline with the rest
Denys Vlasenko [Thu, 27 May 2010 00:33:31 +0000 (02:33 +0200)]
build system: make gen_build_files.sh messages more inline with the rest

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agotrim help text. -29 bytes
Denys Vlasenko [Thu, 27 May 2010 00:30:04 +0000 (02:30 +0200)]
trim help text. -29 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agounlzma: add "lzma -d" alias, add -t support, rename lzmacat->lzcat
Denys Vlasenko [Thu, 27 May 2010 00:22:54 +0000 (02:22 +0200)]
unlzma: add "lzma -d" alias, add -t support, rename lzmacat->lzcat

Also coalesce some common strings

   text    data     bss     dec     hex filename
 844110     453    6812  851375   cfdaf busybox_old
 844061     453    6812  851326   cfd7e busybox_unstripped

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoip addr: shrink
Bernhard Reutner-Fischer [Tue, 25 May 2010 16:46:09 +0000 (18:46 +0200)]
ip addr: shrink

function                                             old     new   delta
ipaddr_list_or_flush                                1254    1248      -6
ipaddr_modify                                       1299    1279     -20
.rodata                                           135249  135193     -56
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-82)             Total: -82 bytes

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoip addr: unify parsing args
Bernhard Reutner-Fischer [Tue, 25 May 2010 15:42:01 +0000 (17:42 +0200)]
ip addr: unify parsing args

function                                             old     new   delta
do_ipaddr                                             87      84      -3
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-3)               Total: -3 bytes

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoip rule: unify parsing args
Bernhard Reutner-Fischer [Tue, 25 May 2010 15:22:17 +0000 (17:22 +0200)]
ip rule: unify parsing args

function                                             old     new   delta
do_iprule                                             83     134     +51
print_rule                                           736     726     -10
iprule_list                                           73       -     -73
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 1/1 up/down: 51/-83)            Total: -32 bytes

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoip tunnel: unify parsing args; no obj-code changes
Bernhard Reutner-Fischer [Tue, 25 May 2010 15:19:35 +0000 (17:19 +0200)]
ip tunnel: unify parsing args; no obj-code changes

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoip link: add qlen
Bernhard Reutner-Fischer [Tue, 25 May 2010 14:57:08 +0000 (16:57 +0200)]
ip link: add qlen

qlen had a variable but was not handled..

function                                             old     new   delta
do_iplink                                           1113    1261    +148
.rodata                                           135225  135249     +24
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/0 up/down: 172/0)             Total: 172 bytes

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoiplink: shrink
Bernhard Reutner-Fischer [Tue, 25 May 2010 14:16:28 +0000 (16:16 +0200)]
iplink: shrink

function                                             old     new   delta
do_change                                            490     487      -3
ipaddr_list_link                                      18       -     -18
do_iplink                                           1169    1113     -56
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 0/2 up/down: 0/-77)             Total: -77 bytes

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoiplink: support add/delete
Bernhard Reutner-Fischer [Tue, 25 May 2010 08:34:27 +0000 (10:34 +0200)]
iplink: support add/delete

function                                             old     new   delta
do_change                                              -     490    +490
.rodata                                           135193  135225     +32
do_iplink                                           1146    1169     +23
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 2/0 up/down: 545/0)             Total: 545 bytes

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoipaddress: print OPERSTATEs and NO-CARRIER
Bernhard Reutner-Fischer [Tue, 25 May 2010 07:55:42 +0000 (09:55 +0200)]
ipaddress: print OPERSTATEs and NO-CARRIER

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agounzip: another small code shrink
Denys Vlasenko [Mon, 24 May 2010 11:07:55 +0000 (13:07 +0200)]
unzip: another small code shrink

function                                             old     new   delta
find_cdf_offset                                      173     160     -13

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agounzip: tiny code shrink -2 bytes
Denys Vlasenko [Mon, 24 May 2010 02:46:18 +0000 (04:46 +0200)]
unzip: tiny code shrink -2 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agounzip: restore unix file mode if possible. closes bug 1045
Denys Vlasenko [Mon, 24 May 2010 02:33:02 +0000 (04:33 +0200)]
unzip: restore unix file mode if possible. closes bug 1045

function                                             old     new   delta
unzip_main                                          2197    2188      -9
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 0/1 up/down: 173/-182)           Total: -9 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agofgconsole: new applet by Grigory Batalov <bga@altlinux.org>
Grigory Batalov [Sun, 23 May 2010 21:22:10 +0000 (23:22 +0200)]
fgconsole: new applet by Grigory Batalov <bga@altlinux.org>

function                                             old     new   delta
fgconsole_main                                         -      51     +51
applet_names                                        2227    2237     +10
applet_main                                         1304    1308      +4
applet_nameofs                                       652     654      +2
applet_install_loc                                   163     164      +1
packed_usage                                       27079   27073      -6
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 4/1 up/down: 68/-6)              Total: 62 bytes

Signed-off-by: Grigory Batalov <bga@altlinux.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoifconfig: do not truncate interface names. closes bug 1795
Denys Vlasenko [Sun, 23 May 2010 21:04:15 +0000 (23:04 +0200)]
ifconfig: do not truncate interface names. closes bug 1795

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoshell: consolidate builtin_foo.? into shell_common.?; delete obsolete shells
Denys Vlasenko [Sun, 23 May 2010 15:49:50 +0000 (17:49 +0200)]
shell: consolidate builtin_foo.? into shell_common.?; delete obsolete shells

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agofix unescaped $ in makefile
Denys Vlasenko [Sun, 23 May 2010 14:14:06 +0000 (16:14 +0200)]
fix unescaped $ in makefile

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agops: make "ps -o BAD" emit list of good -o params
Denys Vlasenko [Sat, 22 May 2010 22:34:42 +0000 (00:34 +0200)]
ps: make "ps -o BAD" emit list of good -o params

also make ps help more informative

function                                             old     new   delta
find_out_spec                                         58     103     +45
packed_usage                                       27039   27079     +40

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agogetty: do not emit bogus error message on EOF
Denys Vlasenko [Sat, 22 May 2010 19:17:46 +0000 (21:17 +0200)]
getty: do not emit bogus error message on EOF

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agofuser: code shrink, fixing default signal, exitcode and PID display
Maksym Kryzhanovskyy [Sat, 22 May 2010 18:41:08 +0000 (20:41 +0200)]
fuser: code shrink, fixing default signal, exitcode and PID display

Defult signal is KILL, not TERM.
We used to not display PIDs with -k but without -s, but
upstream (fuser from PSmisc 22.7) still shows PIDs.
Filtering out of our own PID was buggy.

function                                             old     new   delta
fuser_main                                           669     918    +249
search_dev_inode                                      67      74      +7
add_pid                                               38      39      +1
scan_pid_maps                                        225     222      -3
add_inode                                             91      88      -3
packed_usage                                       27047   27039      -8
scan_dir_links                                       102      76     -26
scan_link                                             78      46     -32
file_to_dev_inode                                     64       -     -64
scan_proc_net                                        307       -    -307
------------------------------------------------------------------------------
(add/remove: 0/2 grow/shrink: 3/5 up/down: 257/-443)         Total: -186 bytes

Signed-off-by: Maksym Kryzhanovskyy <xmaks@email.cz>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agohush: trivial code shrink
Denys Vlasenko [Sat, 22 May 2010 15:50:43 +0000 (17:50 +0200)]
hush: trivial code shrink

function                                             old     new   delta
static_get                                            26      22      -4

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agohush: reduce #ifdef forest a bit, rename handle_dollar -> parse_dollar
Denys Vlasenko [Sat, 22 May 2010 15:30:39 +0000 (17:30 +0200)]
hush: reduce #ifdef forest a bit, rename handle_dollar -> parse_dollar

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agohush: fix hush -c 'echo $0' - was showing empty string
Denys Vlasenko [Sat, 22 May 2010 04:32:11 +0000 (06:32 +0200)]
hush: fix hush -c 'echo $0' - was showing empty string

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agohush: fix segfault in ${?:N:M}
Denys Vlasenko [Sat, 22 May 2010 04:20:26 +0000 (06:20 +0200)]
hush: fix segfault in ${?:N:M}

function                                             old     new   delta
expand_vars_to_list                                 2374    2409     +35
builtin_umask                                        132     133      +1
builtin_exit                                          47      48      +1
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 37/0)               Total: 37 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agohush: fix "hush -c 'echo $#'" showing -1
Denys Vlasenko [Sat, 22 May 2010 04:05:02 +0000 (06:05 +0200)]
hush: fix "hush -c 'echo $#'" showing -1

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agohush: support ${var:EXPR:EXPR}!
Denys Vlasenko [Sat, 22 May 2010 01:12:29 +0000 (03:12 +0200)]
hush: support ${var:EXPR:EXPR}!

function                                             old     new   delta
handle_dollar                                        574     681    +107
expand_and_evaluate_arith                              -      77     +77
expand_vars_to_list                                 2302    2374     +72
add_till_closing_bracket                             359     368      +9
builtin_exit                                          48      47      -1
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 3/1 up/down: 265/-1)            Total: 264 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agohush: fix a nommu todo in recent commits
Denys Vlasenko [Fri, 21 May 2010 22:53:32 +0000 (00:53 +0200)]
hush: fix a nommu todo in recent commits

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agohush: fix more obscure ${var%...} cases
Denys Vlasenko [Fri, 21 May 2010 22:26:06 +0000 (00:26 +0200)]
hush: fix more obscure ${var%...} cases

function                                             old     new   delta
add_till_closing_paren                               313     359     +46
builtin_exit                                          48      47      -1

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agohush: fix a=abc; c=c; echo ${a%${c}}
Denys Vlasenko [Fri, 21 May 2010 17:52:01 +0000 (19:52 +0200)]
hush: fix a=abc; c=c; echo ${a%${c}}

function                                             old     new   delta
expand_vars_to_list                                 2229    2302     +73
add_till_closing_paren                               286     313     +27
handle_dollar                                        623     574     -49
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 100/-49)            Total: 51 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agohush: handle expansions in ${var?expanded_word} constructs
Denys Vlasenko [Fri, 21 May 2010 15:54:46 +0000 (17:54 +0200)]
hush: handle expansions in ${var?expanded_word} constructs

function                                             old     new   delta
expand_vars_to_list                                 2209    2229     +20

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agohush: reorganized TODO comment at top
Denys Vlasenko [Fri, 21 May 2010 13:46:24 +0000 (15:46 +0200)]
hush: reorganized TODO comment at top

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agohush: add a list of unsupported builtins
Denys Vlasenko [Fri, 21 May 2010 13:35:44 +0000 (15:35 +0200)]
hush: add a list of unsupported builtins

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agohush: handle ${var:NUM:} too
Denys Vlasenko [Fri, 21 May 2010 13:24:12 +0000 (15:24 +0200)]
hush: handle ${var:NUM:} too

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agotrylink: gold may not support --sort-common (yet)
Bernhard Reutner-Fischer [Fri, 21 May 2010 10:11:34 +0000 (12:11 +0200)]
trylink: gold may not support --sort-common (yet)

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agolxdialog: fix ncursesw include detection
Bernhard Reutner-Fischer [Fri, 21 May 2010 09:47:45 +0000 (11:47 +0200)]
lxdialog: fix ncursesw include detection

the lib was checked but the include not, do so.
TODO: check if upstream fixed that already or fix it there, too.

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agohush: remove extra comparison from prev commit
Denys Vlasenko [Thu, 20 May 2010 23:25:16 +0000 (01:25 +0200)]
hush: remove extra comparison from prev commit

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agohush: optional support for ${var:N:M} bashism
Denys Vlasenko [Thu, 20 May 2010 23:15:42 +0000 (01:15 +0200)]
hush: optional support for ${var:N:M} bashism

function                                             old     new   delta
expand_vars_to_list                                 1999    2183    +184
handle_dollar                                        682     623     -59

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agohush: explain various parameter expansion ops in comments
Denys Vlasenko [Thu, 20 May 2010 19:46:45 +0000 (21:46 +0200)]
hush: explain various parameter expansion ops in comments

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agohush: small code shrink
Denys Vlasenko [Thu, 20 May 2010 14:37:53 +0000 (16:37 +0200)]
hush: small code shrink

function                                             old     new   delta
expand_vars_to_list                                 2012    1999     -13

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agohush: shrink variable expansion code
Denys Vlasenko [Thu, 20 May 2010 14:27:42 +0000 (16:27 +0200)]
hush: shrink variable expansion code

function                                             old     new   delta
expand_vars_to_list                                 2164    2012    -152

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agohush: fix var=`exit 2` not setting $? to 2
Denys Vlasenko [Thu, 20 May 2010 12:27:09 +0000 (14:27 +0200)]
hush: fix var=`exit 2` not setting $? to 2

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoupdate shell/README
Denys Vlasenko [Thu, 20 May 2010 10:56:14 +0000 (12:56 +0200)]
update shell/README

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoash: eliminate 16 bytes in bss
Denys Vlasenko [Thu, 20 May 2010 10:50:42 +0000 (12:50 +0200)]
ash: eliminate 16 bytes in bss

   text   data    bss    dec    hexfilename
 841423    441   7572 849436  cf61cbusybox_old
 841430    441   7556 849427  cf613busybox_unstripped

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agohush: code shrink
Denys Vlasenko [Thu, 20 May 2010 02:22:55 +0000 (04:22 +0200)]
hush: code shrink

   text    data     bss     dec     hex filename
 843121     453    6828  850402   cf9e2 busybox_old
 843108     453    6828  850389   cf9d5 busybox_unstripped

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agohush: support "cd -- DIR" and such
Denys Vlasenko [Thu, 20 May 2010 01:39:43 +0000 (03:39 +0200)]
hush: support "cd -- DIR" and such

function                                             old     new   delta
skip_dash_dash                                         -      33     +33
builtin_exit                                          43      48      +5
builtin_umask                                        121     125      +4
builtin_shift                                        115     119      +4
builtin_cd                                            71      75      +4
builtin_wait                                         271     274      +3
builtin_source                                       171     174      +3
builtin_exec                                          57      60      +3
builtin_eval                                          46      45      -1
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 7/1 up/down: 59/-1)              Total: 58 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoshell: make it possible to alias one of shells to "bash"
Denys Vlasenko [Thu, 20 May 2010 00:09:45 +0000 (02:09 +0200)]
shell: make it possible to alias one of shells to "bash"

function                                             old     new   delta
packed_usage                                       27047   27054      +7
applet_names                                        2227    2232      +5
applet_main                                         1304    1308      +4
applet_nameofs                                       652     654      +2
applet_install_loc                                   163     164      +1
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 5/0 up/down: 19/0)               Total: 19 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agosetkeycodes: fix handling of 0exx scancodes
Denys Vlasenko [Wed, 19 May 2010 15:15:54 +0000 (17:15 +0200)]
setkeycodes: fix handling of 0exx scancodes

function                                             old     new   delta
setkeycodes_main                                     143     130     -13

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agomount: handle EDQUOT > 255 properly. closes bug 1579
Denys Vlasenko [Wed, 19 May 2010 15:01:29 +0000 (17:01 +0200)]
mount: handle EDQUOT > 255 properly. closes bug 1579

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agovi: fix "set ic" command; code shrink while at it. closes bug 1765
Denys Vlasenko [Tue, 18 May 2010 23:54:37 +0000 (01:54 +0200)]
vi: fix "set ic" command; code shrink while at it. closes bug 1765

function                                             old     new   delta
colon                                               2970    2848    -122

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agolosetup: support /dev/loop10 and higher. closes bug 1627
Denys Vlasenko [Tue, 18 May 2010 22:39:17 +0000 (00:39 +0200)]
losetup: support /dev/loop10 and higher. closes bug 1627

function                                             old     new   delta
query_loop                                            91      95      +4
losetup_main                                         288     285      -3

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoash: fix var_leak.tests so that it actually catches the NOFORK bug
Denys Vlasenko [Tue, 18 May 2010 14:13:56 +0000 (16:13 +0200)]
ash: fix var_leak.tests so that it actually catches the NOFORK bug

+ document the bug better

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agotypo fix
Denys Vlasenko [Tue, 18 May 2010 13:52:23 +0000 (15:52 +0200)]
typo fix

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoash: fix bug which causes signal6.tests to fail
Denys Vlasenko [Tue, 18 May 2010 13:49:07 +0000 (15:49 +0200)]
ash: fix bug which causes signal6.tests to fail

function                                             old     new   delta
trapcmd                                              271     277      +6
localcmd                                             277     275      -2

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoash: fix var_leak testcase
Denys Vlasenko [Tue, 18 May 2010 12:35:20 +0000 (14:35 +0200)]
ash: fix var_leak testcase

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoash: fix testsuite false positives
Denys Vlasenko [Tue, 18 May 2010 12:11:21 +0000 (14:11 +0200)]
ash: fix testsuite false positives

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoash,hush: make bare "." set exitcode to 2
Denys Vlasenko [Tue, 18 May 2010 07:12:53 +0000 (09:12 +0200)]
ash,hush: make bare "." set exitcode to 2

function                                             old     new   delta
dotcmd                                               300     305      +5
builtin_source                                       176     171      -5

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agomake scripts/gen_build_files.sh standard-clean
Denys Vlasenko [Mon, 17 May 2010 22:24:17 +0000 (00:24 +0200)]
make scripts/gen_build_files.sh standard-clean

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoshell/README: describe special builtins
Denys Vlasenko [Mon, 17 May 2010 21:51:00 +0000 (23:51 +0200)]
shell/README: describe special builtins

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agohush: update bash compat todo comment
Denys Vlasenko [Mon, 17 May 2010 16:56:58 +0000 (18:56 +0200)]
hush: update bash compat todo comment

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoash,hush: make "source" a synonym for . if bash compat is on
Denys Vlasenko [Mon, 17 May 2010 15:49:52 +0000 (17:49 +0200)]
ash,hush: make "source" a synonym for . if bash compat is on

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoash: fix ". empty_file" exitcode. +5 bytes
Denys Vlasenko [Mon, 17 May 2010 15:10:46 +0000 (17:10 +0200)]
ash: fix ". empty_file" exitcode. +5 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agotypo fix
Denys Vlasenko [Mon, 17 May 2010 10:33:13 +0000 (12:33 +0200)]
typo fix

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agolineedit: fix insertion deep inside line (*several lines* before end)
Denys Vlasenko [Mon, 17 May 2010 10:30:44 +0000 (12:30 +0200)]
lineedit: fix insertion deep inside line (*several lines* before end)

function                                             old     new   delta
input_backward                                       212     229     +17

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agofix false positive in signal5.tests
Denys Vlasenko [Mon, 17 May 2010 08:14:20 +0000 (10:14 +0200)]
fix false positive in signal5.tests

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoash: use CONFIG_FEATURE_EDITING_MAX_LEN
Denys Vlasenko [Mon, 17 May 2010 08:10:01 +0000 (10:10 +0200)]
ash: use CONFIG_FEATURE_EDITING_MAX_LEN

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agotypo fix
Denys Vlasenko [Mon, 17 May 2010 07:55:13 +0000 (09:55 +0200)]
typo fix

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agohush: fix hush-bugs/parse_err.tests
Denys Vlasenko [Mon, 17 May 2010 07:49:47 +0000 (09:49 +0200)]
hush: fix hush-bugs/parse_err.tests

function                                             old     new   delta
parse_stream                                        2325    2339     +14
builtin_umask                                        121     123      +2
builtin_type                                         116     114      -2

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoadd two more tests which currently fail
Denys Vlasenko [Mon, 17 May 2010 02:57:55 +0000 (04:57 +0200)]
add two more tests which currently fail

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoash: fix signal5.tests
Denys Vlasenko [Mon, 17 May 2010 02:42:40 +0000 (04:42 +0200)]
ash: fix signal5.tests

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agolineedit: trivial simplifications. -7 bytes
Denys Vlasenko [Mon, 17 May 2010 02:05:53 +0000 (04:05 +0200)]
lineedit: trivial simplifications. -7 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoash: add two testcases for (not yet fixed) ash bugs
Denys Vlasenko [Mon, 17 May 2010 00:56:18 +0000 (02:56 +0200)]
ash: add two testcases for (not yet fixed) ash bugs

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoscripts/gen_build_files.sh: revert to using /bin/sh
Denys Vlasenko [Sun, 16 May 2010 23:59:16 +0000 (01:59 +0200)]
scripts/gen_build_files.sh: revert to using /bin/sh

People want busybox to build w/o bash, with /bin/sh = ash

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agolineedit: fix moving backwards across lines with wide chars
Denys Vlasenko [Sun, 16 May 2010 22:45:44 +0000 (00:45 +0200)]
lineedit: fix moving backwards across lines with wide chars

function                                             old     new   delta
input_backward                                       212     208      -4

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoconsolidate ESC sequences
Denys Vlasenko [Sun, 16 May 2010 21:42:13 +0000 (23:42 +0200)]
consolidate ESC sequences

function                                             old     new   delta
bell                                                   2       -      -2
CMdown                                                 2       -      -2
Ceos                                                   4       -      -4
Ceol                                                   4       -      -4
CMup                                                   4       -      -4
SOs                                                    5       -      -5
SOn                                                    5       -      -5
CMrc                                                   9       -      -9

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agostop using LAST_SUPPORTED_WCHAR and CONFIG_LAST_SUPPORTED_WCHAR, it's confusing
Denys Vlasenko [Sun, 16 May 2010 19:15:03 +0000 (21:15 +0200)]
stop using LAST_SUPPORTED_WCHAR and CONFIG_LAST_SUPPORTED_WCHAR, it's confusing

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agolineedit: partially fix wide and combining chars editing
Tomas Heinrich [Sun, 16 May 2010 18:46:53 +0000 (20:46 +0200)]
lineedit: partially fix wide and combining chars editing

Signed-off-by: Tomas Heinrich <heinrich.tomas@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agofindutils: Add Config.in and Kbuild to .gitignore
Peter Tyser [Thu, 13 May 2010 23:56:22 +0000 (18:56 -0500)]
findutils: Add Config.in and Kbuild to .gitignore

These are auto-generated files and should be ignored by git.

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoscripts/Makefile.clean: Make Kbuild and Makefile optional
Peter Tyser [Thu, 13 May 2010 23:46:00 +0000 (18:46 -0500)]
scripts/Makefile.clean: Make Kbuild and Makefile optional

During cleaning, some directories might not have a Makefile or Kbuild
file.  Previously scripts/Makefile.clean would spit out the following
error when neither file could be found:
ptyser@petert busybox $ make mrproper
scripts/Makefile.clean:17: /home/user/busybox/findutils/Makefile: No such file or directory
make[1]: *** No rule to make target `/home/user/busybox/findutils/Makefile'.  Stop.
make: *** [_clean_findutils] Error 2

This issue can be triggered by running 'make mrproper' in a freshly
cloned busybox repository.

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoMakefile: Clean up auto-generated Kbuild and Config.in files
Peter Tyser [Sun, 16 May 2010 00:48:21 +0000 (02:48 +0200)]
Makefile: Clean up auto-generated Kbuild and Config.in files

Previously these auto-generated files were left behind after a 'make
mrproper' was ran.

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agohush: mention PPID, RANDOM support
Denys Vlasenko [Sun, 16 May 2010 00:36:18 +0000 (02:36 +0200)]
hush: mention PPID, RANDOM support

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agosetsid: check for setsid error directly
Denys Vlasenko [Sun, 16 May 2010 00:12:56 +0000 (02:12 +0200)]
setsid: check for setsid error directly

function                                             old     new   delta
setsid_main                                           74      66      -8

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agogen_build_files.sh uses bashism, document it
Denys Vlasenko [Sat, 15 May 2010 19:08:51 +0000 (21:08 +0200)]
gen_build_files.sh uses bashism, document it

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agocttyhack: document the need to setsid
Denys Vlasenko [Sat, 15 May 2010 18:43:07 +0000 (20:43 +0200)]
cttyhack: document the need to setsid

function                                             old     new   delta
packed_usage                                       26988   27057     +69

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agogen_build_files: use raw reads (ones which don't eat backslashes)
Denys Vlasenko [Fri, 14 May 2010 18:30:44 +0000 (20:30 +0200)]
gen_build_files: use raw reads (ones which don't eat backslashes)

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agocttyhack: don't do anything if ctty is already available
Denys Vlasenko [Fri, 14 May 2010 02:08:20 +0000 (04:08 +0200)]
cttyhack: don't do anything if ctty is already available

function                                             old     new   delta
cttyhack_main                                        244     269     +25

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agorandomtest fixes
Denys Vlasenko [Wed, 12 May 2010 13:59:32 +0000 (15:59 +0200)]
randomtest fixes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agosed: fix a command with multible trailing backslashes
Denys Vlasenko [Tue, 11 May 2010 23:49:04 +0000 (01:49 +0200)]
sed: fix a command with multible trailing backslashes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agolineedit: change how cmdedit_set_out_char works
Denys Vlasenko [Tue, 11 May 2010 12:49:13 +0000 (14:49 +0200)]
lineedit: change how cmdedit_set_out_char works

Rename two badly names functions, use "clear to end of screen"
to eliminate annoying problems with clearing wide/combining chars,
and such. Run tested.

function                                             old     new   delta
put_cur_glyph_and_inc_cursor                           -     124    +124
put_till_end_and_adv_cursor                            -      24     +24
input_delete                                         125     130      +5
Ceos                                                   5       4      -1
Ceol                                                   5       4      -1
input_end                                             24       -     -24
cmdedit_set_out_char                                 122       -    -122
------------------------------------------------------------------------------
(add/remove: 2/2 grow/shrink: 1/2 up/down: 153/-148)            Total: 5 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agorandomtest fixes
Denys Vlasenko [Tue, 11 May 2010 10:02:48 +0000 (12:02 +0200)]
randomtest fixes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoifplugd: fix typo in prev commit
Denys Vlasenko [Tue, 11 May 2010 02:37:13 +0000 (04:37 +0200)]
ifplugd: fix typo in prev commit

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agorandomtest fixes
Denys Vlasenko [Tue, 11 May 2010 02:32:04 +0000 (04:32 +0200)]
randomtest fixes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agorandomtest fixes
Denys Vlasenko [Tue, 11 May 2010 01:53:57 +0000 (03:53 +0200)]
randomtest fixes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>