diff options
author | Denys Vlasenko <dvlasenk@redhat.com> | 2010-09-16 11:50:46 +0200 |
---|---|---|
committer | Denys Vlasenko <dvlasenk@redhat.com> | 2010-09-16 11:50:46 +0200 |
commit | bed7c81ea24e9e9ba2a897e233de2abefe611e8b (patch) | |
tree | b18a4559e60300fecd7275c0088f8942441072a2 /shell/hush.c | |
parent | 063847d6bd23e184c409f37645ba90fa4d039ada (diff) | |
download | busybox-w32-bed7c81ea24e9e9ba2a897e233de2abefe611e8b.tar.gz busybox-w32-bed7c81ea24e9e9ba2a897e233de2abefe611e8b.tar.bz2 busybox-w32-bed7c81ea24e9e9ba2a897e233de2abefe611e8b.zip |
shell/math: deconvolute and explain ?: handling. Give better error message
function old new delta
arith_apply 1271 1283 +12
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'shell/hush.c')
-rw-r--r-- | shell/hush.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/hush.c b/shell/hush.c index ad30ac1ea..a888332bc 100644 --- a/shell/hush.c +++ b/shell/hush.c | |||
@@ -4938,8 +4938,8 @@ static NOINLINE int expand_vars_to_list(o_string *output, int n, char *arg) | |||
4938 | *p = '\0'; /* replace trailing <SPECIAL_VAR_SYMBOL> */ | 4938 | *p = '\0'; /* replace trailing <SPECIAL_VAR_SYMBOL> */ |
4939 | debug_printf_subst("ARITH '%s' first_ch %x\n", arg, first_ch); | 4939 | debug_printf_subst("ARITH '%s' first_ch %x\n", arg, first_ch); |
4940 | res = expand_and_evaluate_arith(arg, NULL); | 4940 | res = expand_and_evaluate_arith(arg, NULL); |
4941 | debug_printf_subst("ARITH RES '"arith_t_fmt"'\n", res); | 4941 | debug_printf_subst("ARITH RES '"ARITH_FMT"'\n", res); |
4942 | sprintf(arith_buf, arith_t_fmt, res); | 4942 | sprintf(arith_buf, ARITH_FMT, res); |
4943 | val = arith_buf; | 4943 | val = arith_buf; |
4944 | break; | 4944 | break; |
4945 | } | 4945 | } |