diff options
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ash.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/shell/ash.c b/shell/ash.c index c731a333b..105edd4c8 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -7324,13 +7324,15 @@ subevalvar(char *start, char *str, int strloc, | |||
7324 | if (idx >= end) | 7324 | if (idx >= end) |
7325 | break; | 7325 | break; |
7326 | STPUTC(*idx, expdest); | 7326 | STPUTC(*idx, expdest); |
7327 | if (stackblock() != restart_detect) | ||
7328 | goto restart; | ||
7327 | if (quotes && (unsigned char)*idx == CTLESC) { | 7329 | if (quotes && (unsigned char)*idx == CTLESC) { |
7328 | idx++; | 7330 | idx++; |
7329 | len++; | 7331 | len++; |
7330 | STPUTC(*idx, expdest); | 7332 | STPUTC(*idx, expdest); |
7333 | if (stackblock() != restart_detect) | ||
7334 | goto restart; | ||
7331 | } | 7335 | } |
7332 | if (stackblock() != restart_detect) | ||
7333 | goto restart; | ||
7334 | idx++; | 7336 | idx++; |
7335 | len++; | 7337 | len++; |
7336 | rmesc++; | 7338 | rmesc++; |