diff options
-rw-r--r-- | shell/ash.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/shell/ash.c b/shell/ash.c index f74bef6b1..b596833e7 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -12431,7 +12431,7 @@ parsesub: { | |||
12431 | STPUTC(c, out); | 12431 | STPUTC(c, out); |
12432 | c = pgetc_eatbnl(); | 12432 | c = pgetc_eatbnl(); |
12433 | } while (isdigit(c)); | 12433 | } while (isdigit(c)); |
12434 | } else { | 12434 | } else if (c != '}') { |
12435 | /* $[{[#]]<specialchar>[}] */ | 12435 | /* $[{[#]]<specialchar>[}] */ |
12436 | int cc = c; | 12436 | int cc = c; |
12437 | 12437 | ||
@@ -12457,7 +12457,8 @@ parsesub: { | |||
12457 | } | 12457 | } |
12458 | 12458 | ||
12459 | USTPUTC(cc, out); | 12459 | USTPUTC(cc, out); |
12460 | } | 12460 | } else |
12461 | goto badsub; | ||
12461 | 12462 | ||
12462 | if (c != '}' && subtype == VSLENGTH) { | 12463 | if (c != '}' && subtype == VSLENGTH) { |
12463 | /* ${#VAR didn't end with } */ | 12464 | /* ${#VAR didn't end with } */ |