diff options
author | kraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-05-02 16:26:12 +0000 |
---|---|---|
committer | kraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-05-02 16:26:12 +0000 |
commit | 7de48581f2496d0b8f8ef06653be1a509afb88f3 (patch) | |
tree | c7c3b667eef4b4ec7b6ee787fc2a40989c75b550 | |
parent | 1970755bcad38a904a33210eab5f316ea47507e9 (diff) | |
download | busybox-w32-7de48581f2496d0b8f8ef06653be1a509afb88f3.tar.gz busybox-w32-7de48581f2496d0b8f8ef06653be1a509afb88f3.tar.bz2 busybox-w32-7de48581f2496d0b8f8ef06653be1a509afb88f3.zip |
Fix $(...) construction. Noted and patched by Larry Doolittle
<ldoolitt@recycle.lbl.gov>. I'm just a patch whore. :)
git-svn-id: svn://busybox.net/trunk/busybox@2513 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r-- | hush.c | 1 | ||||
-rw-r--r-- | shell/hush.c | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -1950,6 +1950,7 @@ static int handle_dollar(o_string *dest, struct p_context *ctx, struct in_str *i | |||
1950 | lookup_param(dest, ctx, &alt); | 1950 | lookup_param(dest, ctx, &alt); |
1951 | break; | 1951 | break; |
1952 | case '(': | 1952 | case '(': |
1953 | b_getch(input); | ||
1953 | process_command_subs(dest, ctx, input, ')'); | 1954 | process_command_subs(dest, ctx, input, ')'); |
1954 | break; | 1955 | break; |
1955 | case '*': | 1956 | 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 | |||
1950 | lookup_param(dest, ctx, &alt); | 1950 | lookup_param(dest, ctx, &alt); |
1951 | break; | 1951 | break; |
1952 | case '(': | 1952 | case '(': |
1953 | b_getch(input); | ||
1953 | process_command_subs(dest, ctx, input, ')'); | 1954 | process_command_subs(dest, ctx, input, ')'); |
1954 | break; | 1955 | break; |
1955 | case '*': | 1956 | case '*': |