From: Matt Kraai Date: Wed, 2 May 2001 16:26:12 +0000 (-0000) Subject: Fix $(...) construction. Noted and patched by Larry Doolittle X-Git-Tag: 0_52~253 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9f8caf134fc702d23c1d4f1a102883b54b684191;p=oweals%2Fbusybox.git Fix $(...) construction. Noted and patched by Larry Doolittle . I'm just a patch whore. :) --- diff --git a/hush.c b/hush.c index ed4979818..c55d86f5d 100644 --- a/hush.c +++ b/hush.c @@ -1950,6 +1950,7 @@ static int handle_dollar(o_string *dest, struct p_context *ctx, struct in_str *i lookup_param(dest, ctx, &alt); break; case '(': + b_getch(input); process_command_subs(dest, ctx, input, ')'); break; case '*': diff --git a/shell/hush.c b/shell/hush.c index ed4979818..c55d86f5d 100644 --- a/shell/hush.c +++ b/shell/hush.c @@ -1950,6 +1950,7 @@ static int handle_dollar(o_string *dest, struct p_context *ctx, struct in_str *i lookup_param(dest, ctx, &alt); break; case '(': + b_getch(input); process_command_subs(dest, ctx, input, ')'); break; case '*':