diff options
Diffstat (limited to 'bin/sh/parser.c')
-rw-r--r-- | bin/sh/parser.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/bin/sh/parser.c b/bin/sh/parser.c index 1ffa2c3..291f152 100644 --- a/bin/sh/parser.c +++ b/bin/sh/parser.c @@ -1141,7 +1141,6 @@ parsesub: { #ifndef GDB_HACK static const char types[] = "}-+?="; #endif - int bracketed_name = 0; /* used to handle ${[0-9]*} variables */ c = pgetc(); if (c != '(' && c != '{' && !is_name(c) && !is_special(c)) { @@ -1160,7 +1159,6 @@ parsesub: { USTPUTC(VSNORMAL, out); subtype = VSNORMAL; if (c == '{') { - bracketed_name = 1; c = pgetc(); if (c == '#') { if ((c = pgetc()) == '}') @@ -1176,16 +1174,6 @@ parsesub: { STPUTC(c, out); c = pgetc(); } while (is_in_name(c)); - } else if (is_digit(c)) { - if (bracketed_name) { - do { - STPUTC(c, out); - c = pgetc(); - } while (is_digit(c)); - } else { - STPUTC(c, out); - c = pgetc(); - } } else { if (! is_special(c)) badsub: synerror("Bad substitution"); |