Fix $(...) construction. Noted and patched by Larry Doolittle
authorMatt Kraai <kraai@debian.org>
Wed, 2 May 2001 16:26:12 +0000 (16:26 -0000)
committerMatt Kraai <kraai@debian.org>
Wed, 2 May 2001 16:26:12 +0000 (16:26 -0000)
<ldoolitt@recycle.lbl.gov>.  I'm just a patch whore.  :)

hush.c
shell/hush.c

diff --git a/hush.c b/hush.c
index ed4979818846f6443247c7188cb27183f5ed7655..c55d86f5da63dffa81ed9a1cda4ace5f19a91e4a 100644 (file)
--- 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 '*':
index ed4979818846f6443247c7188cb27183f5ed7655..c55d86f5da63dffa81ed9a1cda4ace5f19a91e4a 100644 (file)
@@ -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 '*':