busybox/shell/hush_test
Denys Vlasenko eb17b6f6c9 ash: eval: Return status in eval functions
Backported from dash:

    eval: Return status in eval functions

    The exit status is currently clobbered too early for case statements
    and loops.  This patch fixes it by making the eval functions return
    the current exit status and setting them in one place -- evaltree.

    Harald van Dijk pointed out a number of bugs in the original patch.

function                                             old     new   delta
evalcommand                                         1226    1242     +16
cmdloop                                              383     398     +15
evalfor                                              223     227      +4
evalcase                                             271     275      +4
localcmd                                             348     350      +2
evaltreenr                                           927     928      +1
evaltree                                             927     928      +1
evalsubshell                                         150     151      +1
evalpipe                                             356     357      +1
parse_command                                       1585    1584      -1
evalloop                                             177     164     -13
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 9/2 up/down: 45/-14)             Total: 31 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2016-09-28 19:41:57 +02:00
..
hush-arith shell/math: deconvolute and explain ?: handling. Give better error message 2010-09-16 11:50:46 +02:00
hush-bugs hush: document buggy handling of duplicate "local" 2015-04-18 19:38:13 +02:00
hush-glob ash,hush: add a test which fails for ash since commit 549deab 2015-09-04 03:33:02 +02:00
hush-leak
hush-misc ash: eval: Return status in eval functions 2016-09-28 19:41:57 +02:00
hush-parsing hush: fix remaining known two bugs with IFS expansion. Closes 4027. 2011-08-01 18:16:43 +02:00
hush-psubst hush: fix handling of \" in quoted/unquoted cmd 2010-09-12 15:05:39 +02:00
hush-read hush: use ash's read builtin 2010-01-12 23:29:57 +01:00
hush-trap hush: add tests for interrupting read 2011-05-09 01:05:33 +02:00
hush-vars hush: add recent ash tests to hush testsuite too (they all pass for hush) 2015-05-18 10:23:16 +02:00
hush-z_slow hush: plug a memory leak 2010-01-12 06:47:39 +01:00
.gitignore
run-all hush: fix a bug in FEATURE_SH_STANDALONE=y config. Closes 9186 2016-08-19 18:43:06 +02:00